CoV23
From Exampleproblems
Find the extremals of the functional
subject to the constraint ![\int_0^\pi \left[ y(x)\right]^2dx=1, y(0)=y(\pi)=0\,](/wiki/images/math/4/7/b/47be608517bd433a15b0e0778f5e8193.png)
Let
where
is
a Lagrange multiplier. The Euler equation is


(i) Try
; let
. Then



But the solution for this is
, i.e.,
which does not satisfy the constraint 
(ii) Try
Then


so
; then
which, again, does not satisfy the constraint.
(iii)
; let
. Then


;
or

, so we reject this and take
,
which implies 
Thus
where
is any nonzero integer.
is found by imposing the constraint:
![\int_0^\pi b^2 \sin^2(nx)\,dx = 1 \implies \int_0^\pi b^2\, \frac{1-\cos(2nx)}{2}\,dx = 1
\implies\frac{b^2}{2} \left[x - \frac{\sin(2nx)}{2n}\right]_0^\pi = 1](/wiki/images/math/a/1/3/a139fcf15a94cb5a2e35b63989e52ec6.png)
Hence, the extremals of
subject to the given constraint are
