For real smooth coefficients with , the Rayleigh quotient has the displayed first variation. Its stationary points solve the Sturm-Liouville equation on an admissible class whose boundary variations make . Homogeneous Dirichlet boundary conditions do this by setting at the ends; homogeneous Neumann boundary conditions do it through . More general self-adjoint boundary conditions can require a boundary contribution to the quadratic form.
For an eigenfunction, the weaker identity suffices to give by integration by parts, but it does not by itself imply the condition on every variation. An explicit counterexample uses on and . This solves and has . Define a nearby family
It keeps , , , and , so for small . Nevertheless, has , , and , giving . Boundary-energy cancellation alone therefore cannot replace a specified variational domain.
Choose homogeneous Dirichlet boundary conditions, , and nonzero admissible functions with finite and positive . Variations obey the same zero endpoint values. At a stationary Rayleigh quotient, set . Then
The boundary term vanishes, and the fundamental lemma of the calculus of variations gives the Sturm-Liouville equation . Thus stationary functions are eigenfunctions. Conversely, multiply that equation by and integrate by parts to obtain ; its first variation then vanishes by the same calculation. This proves that stationary values are the corresponding eigenvalues. Homogeneous Neumann boundary conditions also make the displayed boundary terms vanish; general Robin boundary conditions can require a boundary contribution to the quadratic form.
For , , on , the polynomial trial function satisfies the endpoint conditions. Its Rayleigh quotient uses
so the polynomial estimate is . The trigonometric trial function gives
and hence . Both are upper bounds on the lowest eigenvalue, by the Rayleigh-Ritz method; neither trial is an exact eigenfunction, so the inequalities are strict.
Their closeness has a useful explanation beyond their similar single-arch shapes. Both trial functions are symmetric under , forcing . The reflection-symmetric trials for a linearly weighted Rayleigh quotient therefore reduce this problem to a constant multiple of the ordinary Dirichlet energy quotient. The sine is the best trial within this symmetric class, and the polynomial's value is only a factor larger. The unrestricted lowest eigenfunction can be asymmetric because the weight is asymmetric.
For a nonzero real function, write with . Multiplying the Sturm-Liouville equation by and integrating gives
Thus the stated vanishing boundary product proves .
For the variational statement, the first variation is
With admissible boundary conditions that also make for every allowed variation, the fundamental lemma of the calculus of variations identifies stationary functions with the eigenfunctions and stationary values with their eigenvalues. Zero Dirichlet boundary conditions, zero Neumann boundary conditions, and matched periodic data give familiar examples. The single printed condition proves the quotient identity but, by itself, does not specify the admissible variations needed for stationarity; the boundary conditions for variational Rayleigh quotients make this distinction explicit.
For the half-line equation, multiplication by gives and . Use the regular radial boundary condition at zero and square-integrable decay at infinity, under which the proposed Gaussian is admissible. With , , , so
The ratio of the two Gaussian integrals is , from a change of variables and the Gamma function recurrence. Differentiating gives , so the minimum on occurs at . The Gaussian variational bound for a radial harmonic oscillator therefore gives
Here the trial actually satisfies the differential equation with . Moreover, on the same regular decaying domain, integration by parts gives . Hence the estimate is exact, with . For , regular radial data mean the Neumann boundary condition ; imposing a zero Dirichlet boundary condition there would exclude this trial and give a different problem.
For nonzero with , the first variation of the Rayleigh quotient under is
Choose fixed admissible homogeneous boundary conditions that make the variation boundary term vanish, such as zero endpoint values or zero endpoint derivatives. Compactly supported then show that a stationary function satisfies the Sturm-Liouville equation with . Conversely an eigenfunction satisfying those admissible conditions makes the variation zero. Multiplying its differential equation by and integrating by parts gives
so the stipulated energy boundary term yields . The displayed energy condition alone is not a full specification of the admissible variations; it must be paired with boundary conditions for this variational equivalence.
For the final Dirichlet problem take the trial function , with . Then
The Rayleigh-Ritz variational principle makes this an upper bound for the lowest eigenvalue. It is strictly above the true value: equality would require itself to be a lowest eigenfunction, but cannot vanish throughout for a constant . Therefore
Although the weight vanishes at the left endpoint, it is positive in the interior and its weighted quadratic norm is positive for every nonzero admissible continuous function; this does not obstruct the stated Dirichlet variational comparison.
Introduce a Lagrange multiplier for the constraint and vary with , where . The first variation is
The fundamental lemma of the calculus of variations gives the Sturm-Liouville equation . Multiplying by , integrating by parts and using the endpoint conditions gives . Therefore the normalization implies . Assume the coefficient and function regularity needed for these variations and integrations; the condition makes the constraint derivative nonzero at a normalized function.
For the radial problem, set . A direct differentiation gives , so
Finite supplies the first boundary value. The Rayleigh quotient is . For the two trials, and , the numerator-denominator pairs are and , respectively. Hence
The exact eigenvalues are , so . Both trials give upper bounds by the Rayleigh-Ritz variational principle, and the first estimate is more accurate, since it is smaller. Trial admissibility uses the Dirichlet energy form for ; the first trial's nonzero radial derivative at the origin does not invalidate this variational calculation.
To improve, add independent trial functions and minimize the quotient over their span. Here merely combining the two supplied trials gives no improvement: their two-dimensional stiffness and mass matrices are
The lowest Ritz value is still ten. Instead add the symmetric quartic . On the span of , the generalized eigenvalue problem has
Its determinant is , so the least root gives
This is strictly better than both original estimates. The symmetry obstruction in a polynomial Rayleigh-Ritz trial space explains why the cubic addition failed while the quartic helps. It is also the shifted-interval version of the polynomial Rayleigh-Ritz trial space for a one-dimensional box.
Figure 1.
Original and improved polynomial trial functions compared with the lowest sine eigenfunction
. Details.