Use the variational method with trial wavefunction
ψα(z)={Nz(L−z)e−αz00≤z≤Lotherwise
to estimate the ground state energy of a particle of mass m in the potential
V(z)={mgz∞0≤z≤Lotherwise
where L is a fixed length. Minimize the expectation value of H with respect to α and compare with the exact result in the limit L→∞.