Professional Documents
Culture Documents
(t) + a
1
(t)x
(t) + a
0
(t)x(t) = g(t)
(b) Solve the ODE
1
2
x
+ 2x = tan(2t),
4
< x <
4
.
Solution: First solve the homogeneous equation
1
2
x
1
+ x
2
v
2
= 0
x
1
v
1
+ x
2
v
2
= 2 tan(2t),
where the factor of 2 on tan 2t is a result of the coecient
1
2
on x
cos 2t sin 2t
2 sin 2t 2 cos 2t
v
1
v
0
2 tan 2t
.
The (Wronskian) matrix on the left is invertible since x
1
and x
2
are independent, so we can invert it and compute
1
v
cos 2t sin 2t
2 sin 2t 2 cos 2t
1
0
2 tan 2t
cos 2t
1
2
sin 2t
sin 2t
1
2
cos 2t
0
2 tan 2t
sin 2t tan 2t
sin 2t
To nd v
1
we must nd an antiderivative of sin 2t tan 2t, as follows:
sin 2t tan 2t dt =
sin
2
2t
cos 2t
dt =
1 cos
2
2t
cos 2t
dt
=
1
cos 2t
dt +
cos 2tdt
=
1
2
log
sin t + cos t
sin t cos t
+
1
2
sin 2t
Thus v
1
=
1
2
log
sin t+cos t
sin tcos t
+
1
2
sin 2t. Also, v
2
=
sin 2tdt =
1
2
cos 2t. Putting this all together, we nd that
x
p
= cos 2t
1
2
log
sin t + cos t
sin t cos t
+
1
2
sin 2t
+ sin 2t
1
2
cos 2t
=
1
2
cos 2t log
sin t + cos t
sin t cos t
,
so the general solution is
x(t) = c
1
cos 2t + c
2
sin 2t
1
2
cos 2t log
sin t + cos t
sin t cos t
(3) (a) Find the Fourier cosine series for the function f(x) = sin x on the interval [0, ].
(b) Specialize your Fourier series to x = /2 to get an interesting identity.
Solution:
(a) The coecients a
n
(n 0) for the cosine series are given by the formulae
a
n
=
2
0
sin xcos nxdx
First notice a
0
=
2
0
sin xdx =
4
. To compute the integral for n > 0, recall that sin(A+B) = sin Acos B+
sin B cos A and sin(AB) = sin Acos B sin B cos A. Subtracting these formulae gives the relation sin(A+
B) sin(AB) = 2 sin B cos A. We use this in the above integral, taking B = x, A = nx. This gives
a
n
=
2
0
1
2
(sin(n + 1)x sin(n 1)x) dx
When n = 1, the integrand is sin 2x sin 0 = sin 2x, so a
1
=
2
0
1
2
sin 2xdx =
2
1
2
1
2
cos 2x
0
= 0. For
n 2, we calculate
1
2 MATH 54 FINAL EXAM SOLUTION
a
n
=
2
0
1
2
(sin(n + 1)x sin(n 1)x) dx
=
1
1
n + 1
cos(n + 1)x +
1
n 1
cos(n 1)x
0
(this makes sense since n = 1)
=
1
1
n + 1
(1)
n+1
+
1
n 1
(1)
n1
+
1
n + 1
1
n 1
=
1
(1)
n
1
n + 1
1
n 1
+
1
n + 1
1
n 1
=
1
((1)
n
+ 1)
1
n + 1
1
n 1
=
1
((1)
n
+ 1)
2
n
2
1
4
(1n
2
)
n even
0 n odd
Thus the fourier cosine series for f is
sin x
2
n=2
1
((1)
n
+ 1)
4
1 n
2
cos nx =
2
k=1
4
(1 4k
2
)
cos 2kx.
(b) At x = /2, we get after multiplying through by , = 2 +
k=1
(1)
k
4
14k
2
.
(4) (a) Write the general form of dAlemberts solution to the wave equation
2
u
t
2
=
2
u
x
2
for a function u(x, t) with
x, t R. Briey explain how the ingredients of the solution can be found from the initial conditions.
(b) By dAlemberts method or otherwise, solve the equation explicitly with 2-periodic functions of x, subject
to the intial conditions u(x, 0) = sin
2
x and
u
t
(x, 0) = cos x.
Solution:
(a)
(b) Using dAlemberts formula
u(x, t) =
1
2
sin
2
(x + t) + sin
2
(x t)
+
1
2
(sin(x + t) sin(x t))
=
1
2
sin
2
(x + t) + sin
2
(x t) + 2 sin t cos x
= (sin xcos t)
2
+ (sin t cos x)
2
+ sin t cos x
(5) (a) Write the general solution of the vector-valued ODE
dx
dt
=
1.4 1.6
.8 .2
x.
(b) Draw a phase diagram of this ODE, roughly sketching a few trajectories.
(c) Which axis is the rst to be crossed, if we start with the initial value x(0) =
2
1
?
Solution:
(a) Let A denote the matrix appearing in the equation. The solutions to a rst-order vector ODE have the form
e
t
x, where x is an eigenvector for A with eigenvalue . The eigenvalues of A are =
3
5
4
5
i. An eigenvector
for =
3
5
+
4
5
i is v =
1 + i
1
1
1
and
1
0
, yielding two
real independent solutions
x
1
(t) = e
3
5
t
cos
4
5
t
1
1
sin
4
5
t
1
0
and x
2
(t) = e
3
5
t
sin
4
5
t
1
1
+ cos
4
5
t
1
0
2
1
1
1
+c
2
1
0
cos
4
5
t
2
1
+ sin
4
5
t
4
3
2
1
4
3