1. The auxiliary equation is r2 − 2r − 3 = 0 ⇒ (r − 3)(r + 1) = 0 ⇒ r = 3 or r = −1. Then the complementary solution is
yc= C1e3x+ C2e−x, C1, C2 ∈ R.
Take the particular solution yp = A sin 2x + B cos 2x. Then yp = A sin 2x + B cos 2x,
y0p = 2A cos 2x − 2B sin 2x, y00p = 4A sin 2x − 4B cos 2x,
y00p − 2yp0 − 3yp = (−7A + 4B) sin 2x + (−4A − 7B) cos 2x = cos x.
So we have −7A + 4B = 0 and −4A − 7B = 1 and A = −465 and B = −765. So the general solution is
y = yc+ yp = C1e3x+ C2e−x+ −4
65 sin 2x + −7
65 cos 2x, C1, C2 ∈ R.
3. The auxiliary equation is r2+9 = 0 ⇒ (r +3i)(r −3i) = 0 ⇒ r = 3i or r =
−3i. Then the complementary solution is yc= C1cos 3x+C2sin 3x, C1, C2 ∈ R. Take the particular solution yp = Ae−2x. Then
yp = Ae−2x, yp0 = −2Ae−2x, yp00 = 4Ae−2x,
yp00+ 9yp = 13Ae−2x = e−2x.
So we have 13A = 1 and A = 131. So the general solution is y = yc+ yp = C1cos 3x + C2sin 3x + 1
13e−2x, C1, C2 ∈ R.
5. The auxiliary equation is r2 − 4r + 5 = 0 ⇒ r = 2 ± i. Then the complementary solution is yc = e2x(C1cos x + C2sin x), C1, C2 ∈ R. Take the particular solution yp = Ae−x. Then
yp = Ae−x, yp0 = −Ae−x, y00p = Ae−x,
yp00− 4yp+ 5yp = 10Ae−x= e−x. 1
So we have 10A = 1 and A = 101. So the general solution is y = yc+ yp = e2x(C1cos x + C2sin x) + 1
10e−x, C1, C2 ∈ R.
13. The auxiliary equation is r2+9 = 0 ⇒ (r+3i)(r−3i) = 0 ⇒ r = 3i or r =
−3i. Then the complementary solution is yc= C1cos 3x+C2sin 3x, C1, C2 ∈ R. The trial particular solution is yp = Ae2x+ (Bx2+ Cx + D) cos x + (Ex2+ F x + G) sin x.
15. The auxiliary equation is r2− 3r + 2 = 0 ⇒ (r − 2)(r − 1) = 0 ⇒ r = 2 or r = 1. Then the complementary solution is yc = C1e2x+ C2ex, C1, C2 ∈ R.
The trial particular solution is Aex+ B sin x + C cos x.
19.(a) The auxiliary equation is 4r2+1 = 0 ⇒ (2r +i)(2r −i) = 0 ⇒ r = ±2i. Then the complementary solution is yc = C1cos12x + C2sin12x, C1, C2 ∈ R.Take the particular solution yp = A sin x + B cos x. Then
yp = A sin x + B cos x, yp0 = A cos x − B sin x, yp00= −A sin x − B cos x,
4y00p + yp = −3A sin 2x + −3B cos 2x = cos x.
So we have −3A = 0 and −3B = 1 and A = 0 and B = −13 . So the general solution is
y = yc+ yp = C1cos1
2x + C2sin1
2x + −1
3 cos x, C1, C2 ∈ R.
(b) From (a) we know yc= C1e−2x+ C2e−x, C1, C2 ∈ R. Set y1 = cosx2 and y2 = sinx2. We have y1y02− y2y01 = 12cos2 x2 +12sin2 x2 = 12. Thus
u01 = −cos x · sinx2
4 · 12 = −1
2 (2 cos2 x
2 − 1) sinx 2 u02 = cos x · cosx2
4 · 12 = 1
2(1 − 2 sin2 x 2) cosx
2
2
and
u1 = Z
u01dx = − cosx 2 −2
3cos3x 2 u2 =
Z
u02dx = sinx 2 − 2
3sin3 x 2.
Thus yp = u1(x) cosx2 + u2(x) sinx2 = −13 cos x and the general solution is
y = yc+ yp = C1cos1
2x + C2sin1
2x + −1
3 cos x, C1, C2 ∈ R.
21. (a) The auxiliary equation is r2 − 2r + 1 = 0 ⇒ r = 1. Then the complementary solution is yc = C1ex+C2xex, C1, C2 ∈ R. Take the particular solution yp = Ae2x. Then
yp = Ae2x, yp0 = 2Ae2x, yp00= 4Ae2x, yp00− 2yp+ yp = Aex = e2x. So we have A = 1 and A = 1. So the general solution is
y = yc+ yp = C1ex+ C2xex+ e2x, C1, C2 ∈ R.
(b) From (a) we know the complementary solution is yc= C1ex+C2xex, C1, C2 ∈ R. Set y1 = ex, y2 = xex. Then y1y20 − y2y01 = e2x and so
u01 = −xex ⇒ u1(x) = Z
−xexdx = −(x − 1)ex, u02 = ex ⇒ u2(x) =
Z
exdx = ex.
Thus, yp(x) = (1 − x)e2x+ xE2x= e2x and the general solution is y = yc+ yp = C1ex+ C2xex+ e2x, C1, C2 ∈ R.
3
23. The auxiliary equation is r2+ 1 = 0 ⇒ r = ±i. Then the complementary solution is yc = C1cos x + C2sin x, C1, C2 ∈ R. Set y1 = sin x, y2 = cos x.
Then y1y20 − y2y01 = −1 and so u01 = −sec2x cos x
−1 = sec x ⇒ u1(x) = Z
sec xdx = ln | sec x + tan x|, (for 0 ≤ x ≤ π 2) u02 = sec2x sin x
−1 = − sec x tan x ⇒ u2(x) = Z
− sec x tan xdx = − sec x.
Thus, yp(x) = ln | sec x + tan x| · sin x − sec x cos x and the general solution is y = yc+yp = C1cos x+C2sin x+ln | sec x+tan x|·sin x−sec x cos x, C1, C2 ∈ R.
25. The auxiliary equation is r2− 3r + 2 = 0 ⇒ (r − 2)(r − 1) = 0 ⇒ r = 2 or r = 1. Then the complementary solution is yc = C1e2x+ C2ex, C1, C2 ∈ R.
Set y1 = ex, y2 = e2x. Then y1y20 − y2y10 = e3x and so u01 = −e2x
(1 + e−x)e3x = −e−x
1 + e−x ⇒ u1(x) =
Z −e−x
1 + e−xdx = ln(1 + e−x) u02 = ex
(1 + e−x)e3x = ex
e3x+ e2x ⇒ u2(x) =
Z ex
e3x+ e2xdx = ln(ex+ 1
ex ) − e−x. Thus, yp(x) = exln(1 + e−x) + e2x[ln(exe+1x ) − e−x] and the general solution is y = yc+yp = C1e2x+C2ex+exln(1+e−x)+e2x[ln(ex+ 1
ex )−e−x], C1, C2 ∈ R.
27. The auxiliary equation is r2 − 2r + 1 = 0 ⇒ r = 1. Then the comple- mentary solution is yc = C1ex + C2xex, C1, C2 ∈ R. Set y1 = ex, y2 = xex. Then y1y20 − y2y01 = e2x and so
u01 = −xex e1+xx2
e2x = −x
1 + x2 ⇒ u1(x) =
Z −x
1 + x2dx = −1
2 ln(1 + x2) u02 = ex e1+xx2
e2x = 1
1 + x2 ⇒ u2(x) =
Z 1
1 + x2dx = tan−1x.
Thus, yp(x) = ex −12 ln(1 + x2) + xextan−1x and the general solution is y = yc+yp = C1ex+C2xex+exln(1+e−x)+ex−1
2 ln(1+x2)+xextan−1x, C1, C2 ∈ R.
4