Math2065: Intro To Pdes Tutorial Solutions (Week 2)
Math2065: Intro To Pdes Tutorial Solutions (Week 2)
Math2065: Intro To Pdes Tutorial Solutions (Week 2)
Semester 2, 2009
Tutorial Solutions (Week 2)
1. (a) Try yp = Aex , where A is a constant to be determined. Differentiating this form gives
1
yp = − ex .
3
(b) Try yp = A x + B. Then, y 00 = 0, and by substitution, we get
(d) Try yp = Ax2 + Bx + C, where A, B and C are constants (note that we must guess
the most general form of a second-order polynomial). Differentiating this form gives
yp (x) = x2 − 2.
(e) Note that e3x is a solution of the homogeneous ODE. So substituting Ae3x as a par-
ticular solution to the inhomogeneous equation will not work, since the left-hand side
will produce a zero. Therefore, we try yp = Axe3x , where A is a constant, using the
modification rule of multiplying the initial guess by a factor of x. Differentiating this
form gives
yp0 = Ae3x (1 + 3x) and yp00 = Ae3x (6 + 9x) .
Substituting into the ODE gives A = 31 . A particular solution is therefore
1
yp = xe3x .
3
2. The ODEs are all second order, linear, inhomogeneous, with constant coefficients.
(a) First find yh . The characteristic equation is λ2 + λ − 6 = 0 ⇒ λ = 2, −3. The general
solution of the homogeneous equation is therefore
yh = C1 e2x + C2 e−3x .
For yp , the form of R(x) suggests we try yp = Aex , where A is a constant. Differenti-
ating this form gives
yp0 = Aex and yp00 = Aex .
Substituting into the ODE gives A = − 45 . The general solution of the inhomogeneous
ODE is therefore
5
y = yh + yp = C1 e2x + C2 e−3x − ex .
4
Now, using the initial conditions, y(0) = 0 ⇒ C1 + C2 − 45 = 0 and y 0 (0) = 2 ⇒
2C1 − 3C2 − 54 = 2. Hence C1 = 57 , C2 = − 20 3
. Thus the particular solution which
satisfies the initial conditions is
7 3 5
y(x) = e2x − e−3x − ex .
5 20 4
(b) First find yh . The characteristic equation is λ2 + 3λ + 2 = 0 ⇒ λ = −2, −1. The
general solution of the homogeneous equation is therefore
yh = C1 e−2x + C2 e−x .
For yp , the form of R(x) suggests we try yp = (Ax + B)e4x , where A and B are
constants. Differentiating this form gives
yp0 = Ae4x + 4(Ax + B)e4x and yp00 = 8Ae4x + 16(Ax + B)e4x .
1 11
Substituting into the ODE gives A = 30
, B = − 900 . The general solution of the
inhomogeneous ODE is therefore
1 11 4x
y = yh + yp = C1 e−2x + C2 e−x + ( x− )e .
30 900
Now, using the initial conditions, y(0) = 0, y 0 (0) = 1 ⇒ C1 = − 36 37
and C2 = 26
25
.
Thus the particular solution which satisfies the initial conditions is
37 −2x 26 −x 1 11 4x
y(x) = − e + e +( x− )e .
36 25 30 900
(c) First find yh . The characteristic equation is λ2 − 4λ + 3 = 0 ⇒ λ = 1, 3. The general
solution of the homogeneous equation is therefore
yh = C1 e3x + C2 ex .
For yp the form of R(x) suggests we try yp = A sin x + B cos x, where A and B are
constants. Differentiating and the substituting into the ODE gives A = 15 , B = 25 . The
general solution of the inhomogeneous ODE is therefore
1 2
y = yh + yp = C1 e3x + C2 ex + sin x + cos x .
5 5
Now, using the initial conditions, y(0) = 1, y 0 (0) = 0 ⇒ C1 = − 52 and C2 = 1. Thus
the particular solution which satisfies the initial conditions is
2 1 2
y(x) = − e3x + ex + sin x + cos x .
5 5 5
3. We know y100 + ay10 + by1 = f1 , and also y200 + ay20 + by2 = f2 . Simply adding the two gives
(a) Let f1 = x, and look for a corresponding particular solution y1 of the form y1 = Ax+B,
where A and B are constants. Differentiating and substituting, we find A = 31 , B =
− 10
9
.
Similarly for f2 = cos x, try y2 = C sin x + D cos x, where C and D are constants.
1
Differentiating and substituting, we find C = 10 , D = 0. Hence
1 10 1
yp = x − + sin x .
3 9 10
(b) Let f1 = 2ex , and try y1 = Aex , where A is a constant. Differentiating and substituting,
we find A = 16 .
For f2 = sin x, try y2 = B sin x + C cos x, where B and C are constants. Differentiating
1 1
and substituting, we find B = 10 , C = − 10 . Hence
1 1 1
yp = ex + sin x − cos x .
6 10 10
(c) Let f1 = ex . Since ex is a solution of the homogeneous equation, try y1 = Axex , where
A is a constant. Differentiating and substituting gives A = − 21 .
Similarly for f2 = e2x , try y2 = Ce2x , where C is a constant. Differentiating and
substituting gives C = −1. Hence
1
yp = − xex − e2x .
2
ẍ + 4 x = cos ωt .
Substituting into ẍ + 4x = cos 2t (since ω = 2 now), we get, after some algebra (terms
with multiplicative factors of t thankfully cancel, as they must),