Choose a basis of a conforming finite element space and write . Testing the variational problem with each basis function gives
These are also the equations for the Ritz method. The stiffness matrix is symmetric and a positive-definite matrix: for a nonzero coefficient vector , linear independence gives , and
Thus there is a unique coefficient vector.
Subtracting the exact and discrete variational problems proves Galerkin orthogonality, for every . In the energy norm , the Pythagorean identity yields
Therefore the Ritz method is the best approximation in the energy norm. The Céa lemma also gives , so any dense sequence of conforming trial spaces converges.
Use the real Hilbert space , the zero-boundary Sobolev space, with norm . The Poincare inequality makes this equivalent to its usual Sobolev space norm. Define the symmetric bilinear form and continuous linear functional
The Cauchy-Schwarz inequality and the sharp interval Poincare inequality imply
Thus is a bounded bilinear form and a coercive bilinear form, and is bounded because is square-integrable. The Lax-Milgram theorem supplies a unique weak solution:
This is obtained from the differential equation by integration by parts; the test functions have zero boundary trace. Conversely, the weak solution satisfies in the sense of distributions. Since , it belongs to and solves the equation almost everywhere.
Equivalently, the Ritz method minimizes
over . Indeed , since the mixed term is . This proves existence and uniqueness of the minimizer directly from the weak solution, as well as its equivalence to the variational problem.