Professional Documents
Culture Documents
y( x ) = Ae x + Be− x
r 00 r − 2r 02 − r2 = 0 (1)
1
(b) The straight line from (1, −1) to (1, 1) can be expressed in polar coordinates as
1
r (θ ) = = sec θ
cos θ
for the range − π4 ≤ θ ≤ π
4. The first and second derivatives are given by
0 sin θ 00 1 2 sin2 θ
r (θ ) = , r (θ ) = + .
cos2 θ cos θ cos3 θ
Substituting into Eq. 1 gives
1 2 sin2 θ sin2 θ 1
r 00 r − 2r 02 − r2 = + − 2 − =0
cos2 θ cos4 θ cos4 θ cos2 θ
and the equation is satisfied. Substituting into Eq. 2 gives
r2 sec2 θ 1
√ =q =p =1
r 2 + r 02 1
+ sin2 θ cos2 θ + sin2 θ
cos2 θ cos4 θ
!
g( x )y0
d ∂F d
0= =
dx ∂y0
p
dx 1 + y 02
and hence
g( x )y0
p =C
1 + y 02
for some constant C. Therefore
and
C2
y 02 = .
[ g( x )]2 − C2
Hence
C
y0 = p .
[ g( x )]2 − C2
(b) For g( x ) = 1, the equation becomes
C
y0 = √
1 − C2
2
which is equivalent to y0 = D for some constant D, and hence y( x ) = Dx + E
for some constant E. This will satisfy the boundary conditions for
y( x ) = 2x − 2.
√
If g( x ) = x, the equation is
C
y0 = √
x − C2
and hence
C
Z p
y( x ) = √ dx = 2C x − C2 + D.
x − C2
The boundary conditions give
p p
0 = y(1) = 2C 1 − C2 + D, 2 = y(2) = 2C 2 − C2 + D
If the hint is used, and D is assumed to be zero, then it can be seen that C = 1
is the only solution, and thus
√
y( x ) = 2 x − 1.
and hence p
C2 − 1 = 2C 1 − C2 .
Squaring both sides again gives
C4 − 2C2 + 1 = 4C2 (1 − C2 ),
which simplifies to
5C4 − 6C2 + 1 = 0.
This can be factorized as
(5C2 − 1)(C2 − 1) = 0
√
and thus C = ±1, ± 1/5. Since squaring both sides may introduce more solu-
tions, these possible values for C can then be checked that they indeed satisfy
Eq. 3. It can be verified that C = 1 is the only valid solution.
3
2
1.5
1
y
0.5
Path for g( x ) =
√1
Path for g( x ) = x
0
1 1.2 1.4 1.6 1.8 2
x
√
(c) The two solutions are plotted in Fig. 1. It can be seen that the path for g( x ) = x
√ near x = 1 before leveling off near x = 2. This should
increases more quickly
be expected since x is smaller near x = 1, and thus y is able to grow more
quickly in this region without incurring a large penalty in the integral.
4. (a) To derive the more general Euler equation, assume first that y( x ) is an extremal
path, and consider Y ( x ) = y( x ) + eη ( x ) where e is a small parameter and η ( x )
is a variation that is twice-differentiable. Assume further that η ( x1 ) = η ( x2 ) =
0 and that η 0 ( x1 ) = η 0 ( x2 ) = 0. Then
Z x2 Z x2
0 00
I [Y ] = F ( x, Y, Y , Y )dx = F ( x, y + eη, y0 + eη 0 , y00 + eη 00 )dx
x1 x1
and Z x2
dI ∂F 0 ∂F 00 ∂F
0= = η +η 0 +η dx. (4)
de e=0 x1 ∂y ∂y ∂y00
Consider the second and third terms in this integral. Applying integration by
parts to the second term gives
∂F x2
Z x2 Z x2
0 ∂F d ∂F
η 0 dx = η 0 − η dx
x1 ∂y ∂y x1 x1 dx ∂y0
Z x2
d ∂F
= − η dx.
x1 dx ∂y0
4
Applying integration by parts twice to the third term gives
Z x2 x2 Z x
0 d
2
00 ∂F 0 ∂F ∂F
η dx = η 00 − η dx
x1 ∂y00 ∂y x1 x1 dx ∂y00
x2 Z x
d2
d ∂F 2 ∂F
= − η + η 2 dx
dx ∂y00 x1 x1 dx ∂y00
d2
Z x2
∂F
= η 2 dx.
x1 dx ∂y00
Therefore Eq. 4 can be written as
d2
Z x2
∂F d ∂F ∂F
0= η − + 2 dx.
x1 ∂y dx ∂y0 dx ∂y00
For this to be true for all possible variations η ( x ), it follows that
d2 ∂F d ∂F ∂F
2 00
− 0
+ = 0.
dx ∂y dx ∂y ∂y
(y00 )2
(b) For the case of F ( x, y, y0 , y00 ) = 2 , the equation from part (a) can be used to
obtain
d2 00
y =0
dx2
and thus
d4 y
= 0.
dx4
By integrating four times, it can be seen that the general solution is a cubic,
y ( x ) = a3 x 3 + a2 x 2 + a1 x + a0 .
To satisfy the boundary conditions y(0) = 1 and y0 (0) = 0 it can be seen that
a1 = 0 and a0 = 1. The condition y(1) = −1 gives
−1 = a3 + a2 + 1
0 = 3a3 + 2a2 ,
y( x ) = 1 − 6x2 + 4x3 .
5
1 y( x ) = 1 − 6x2 + 4x3
y∗ ( x ) = cos πx
0.5
-0.5
-1
0 0.2 0.4 0.6 0.8 1
x
and hence
1 1
Z
I [y] = (−12 + 24x )2 dx
2 0
144 1
Z
= (1 − 4x + 4x2 )dx
2 0
4
= 72 1 − 2 +
3
72
= = 24.
3
6
y00∗ ( x ) = −π 2 cos πx and hence
1 1 00 2
Z
I [y∗ ] = (y ) dx
2 0 ∗
1 1 4
Z
= π cos2 πx dx
2 0
π4 1 1
Z
= (1 + cos 2πx ) dx
2 0 2
π4 sin 2πx 1
= x+
4 2π 0
π 4
=
4
= 24.35227 . . . .
Figure 2 shows plots of y and y∗ . It can be seen that the curves are similar, and
thus it should be expected that I [y∗ ] is close to I [y] in value. It can also be seen
that I [y∗ ] > I [y] as would be expected since y is an extremal path, and in this
case a minimal path.
5. Assume that the curve is between the two points ( x, y) = (± a, 0), and that its shape
is given by y( x ), so that y(± a) = 0. The problem involves maximizing
Z a q
I [y] = 2πy 1 + y02 dx
−a
subject to the constraint Z a q
J [y] = 1 + y02 dx = l.
−a
This can be carried out by introducing a Lagrange multiplier λ and considering
K [y, λ] = I [y] + λ( J [y] − l )
Z a q
= −λl + (2πy + λ) 1 + y02 dx
Z a −a
= F (λ, x, y, y0 )dx
−a
7
Hence
C2 (1 + y02 ) = (2πy + λ)2
which can be rearranged to give
dy
q
C = (2πy + λ)2 − C2 .
dx
Then
dx dy
Z Z
= p
C (2πy + λ)2 − C2
and by making the substitution 2πy + λ = C cosh u, so that 2πdy = C sinh u du,
x − x0 1 C sinh u 1 u
Z Z
= du = du =
C 2π C sinh u 2π 2π
and hence
−λ + C cosh 2π (xC−x0 )
y( x ) =
2π
where x0 is a constant. From the conditions y(± a) = 0, it follows that x0 = 0 and
the solution is even. Furthermore
−λ + C cosh 2πa
C
0 = y( a) =
2π
and hence
2πa
λ = C cosh .
C
To determine C, the constraint can be considered, which gives
Z a q Z a r
2πx
l = 1 + y02 dx = 1 + sinh2 dx
−a −a C
2πx a
Z a
2πx C C 2πa
= cosh dx = sinh = sinh .
−a C 2π C −a π C
Writing α = 2πa/C, this can written as
l sinh α
= .
2a α
While it is not possible to write down an analytic expression for α there will be a
solution to this equation for l/2a ≥ 1, which should be expected, since the straight-
line distance between the two endpoints is 2a. Once α is determined, then an explicit
value for C can be determined. Hence the solution is
C 2πx 2πa
y( x ) = cosh − cosh .
2π C C
where C is a function of l and a.
8
6. (a) The kinetic energy and potential energy are given by
ma2 θ̇ 2
K= , V = −mga cos θ
2
respectively, where g is the gravitational acceleration. Hence the Lagrangian is
ma2 θ̇ 2
L(t, θ, θ̇ ) = K − V = + mga cos θ.
2
The Euler–Lagrange equation therefore gives
d ∂L ∂L d 2
0= − = ma θ̇ − (−mga sin θ ) = ma2 θ̈ + mga sin θ
dt ∂θ̇ ∂θ dt
and hence
aθ̈ + g sin θ = 0.
(b) If θ is small then sin θ ≈ θ and the equation becomes
aθ̈ + gθ = 0.
(c) For the case where L has no explicit t dependence, the Beltrami identity is
∂L
L − θ̇ =C
∂θ̇
for some constant C. In this case
ma2 θ̇ 2
2
+ mga cos θ − θ̇ ma θ̇ = C
2
and hence
ma2 θ̇ 2
− mga cos θ = −C.
2
This is equivalent to
K + V = const.
expressing conservation of energy.