The variational method is a method of finding approximate solution to quantum problems, typically finding eigenvalues and eigenfunctions of a time-independent Hamiltonian.
But we want E to be stationary, in which case δE=0 always. Thus, the left hand side must be zero. This is our condition to find ϕ; the rest is "just" a matter of solving the equation.
For example, consider the Schrödinger equationHψn=Enψn, indexed by a quantum numbern≥0. The ground state is n=0 with E0. We now consider a generic function ϕ. This can be expressed in Fourier series in the {ψn}nbasis as
We hit on a lower bound. In fact, while this doesn't give us a solution, it does gives a bound to restrict what E[ϕ] can be:
E[ϕ]=⟨ϕ∣ϕ⟩⟨ϕ∣H∣ϕ⟩≥E0
The variational method consists in minimizing this functional. Thus, the approximations given by the variational method are always overestimates and the actual ground state energy is guaranteed to be lower (or technically equal is the best case scenario).