Professional Documents
Culture Documents
Tutorial 4
1. Find a particular solution to
x2 y 00 − 3xy 0 + 4y = x2 .
x2 y 00 − 3xy 0 + 4y = 0,
r(r − 1) − 3r + 4 = r2 − 4r + 4
= (r − 2)2 ,
which has one (repeated) root r = 2. Thus two independent solutions are
y1 = x2 and y2 = x2 ln(x).
We now use variation of the parameters to find a particular solution. The
Wronskian is
y1 y2
W (x) = det
y0 y0
12 2 2
x x ln(x)
= det
2x 2x ln(x) + x
= x2 (2x ln(x) + x) − 2x(x2 ln(x))
= x3 .
−y2 f (x)
Z
u1 = dx
W (x)
Z 2
x ln(x)
=− dx
x3
Z
ln(x)
=− dx
x
1
= − (ln(x))2
2
(the last line can be found using substitution), and
Z
y1 f (x)
u2 = dx
W (x)
Z 2
x
= dx
x3
Z
1
= dx
x
= ln(x).
Then
yp = u1 y1 + u2 y2
1
= − (ln(x))2 x2 + ln(x)x2 ln(x)
2
1 2
= x (ln(x))2
2
is a particular solution.
y 0 = −x − 3y
3 5
Solution: We have A = . Eigenvalues satisfy
−1 −3
λ − 3 −5
det(λI − A) = det
1 λ+3
= (λ − 3)(λ + 3) + 5
= λ2 − 4
= (λ − 2)(λ + 2) = 0.
and
−t 2 0 −t 2 sin(5t)
x2 (t) = e sin(5t) + cos(5t) =e .
1 5 sin(5t) + 5 cos(5t)
A fundamental matrix is
−t 2 cos(5t) 2 sin(5t)
X(t) = e .
cos(5t) − 5 sin(5t) sin(5t) + 5 cos(5t)
−1
The solution
to the initial value problem is x(t) = X(t)X(0) x0 where
10
x0 = . We have
10
2 0 −1 1 5 0
X(0) = and so X(0) = .
1 5 10 −1 2
The solution is
−t 2 cos(5t) 2 sin(5t) 1 5 0 10
x(t) = e
cos(5t) − 5 sin(5t) sin(5t) + 5 cos(5t) 10 −1 2 10
2 cos(5t) 2 sin(5t) 5
= e−t
cos(5t) − 5 sin(5t) sin(5t) + 5 cos(5t) 1
10 cos(5t) + 2 sin(5t)
= e−t .
10 cos(5t) − 24 sin(5t)
That is,
x0 = x + 2y
y 0 = −2x + 5y
1 2
Solution: We have A = . Eigenvalues satisfy
−2 5
λ − 1 −2
det(λI − A) = det
2 λ−5
= (λ − 1)(λ − 5) + 4
= λ2 − 6λ + 9
= (λ − 3)2 = 0.
A fundamental matrix is
3t 1 t
X(t) = e 1 .
1 t+ 2
Additional example if there is extra time:
y 0 = 2y
Solution: Note that these two equations can be “decoupled” and solved one at
a time. Both are separable:
1 0 1 0
x = 2, y = 2.
x y
Integrating both sides (of both equations) yields
ln |x| = 2t + k1 , ln |y| = 2t + k2 .
This is the easiest way to solve this problem, but we could solve it using the
material we have
recently
learned. Let’s try doing it that way.
2 0
We have A = . Eigenvalues satisfy
0 2
λ−2 0
det(λI − A) = det
0 λ−2
= (λ − 2)2 = 0.
and
2t 0 0
x2 (t) = e = .
1 e2t
A fundamental matrix is
e2t 0
X(t) = .
0 e2t
x(t) = X(t)c
2t
e 0 c1
=
0 e2t c2
2t
c1 e
= .
c2 e2t
That is,
x(t) = c1 e2t
y(t) = c2 e2t ,
as expected.