Beruflich Dokumente
Kultur Dokumente
1 Theoretical results
A non-homogenous linear differential equation with constant coefficients has
the form
0
(1.1) y (n) + a1 y (n−1) + . . . + an−1 y + an y = f (x)
y = yH + yP
1
where a1 , . . . , an ∈ R, x ∈ I ⊆ R \ {0}, I is an interval and f ∈ C(I). To
solve this equation we use the substitution x = et for x > 0 (or x = −et for
x < 0). Let z(t) = y(et ), for x > 0. Then
r(r −1)(r −2) . . . (r −n+1)+. . .+an−2 r(r −1)+an−1 r +an = 0, x ∈ (0, ∞).
2 Exercices
Ex. 1 Find the solution of the following non-homogeneous linear equations:
a) y 000 + 2y 00 − 3y 0 = 9x2 + 1;
b) y 00 − y = (4x + 2)ex ;
c) y 00 − 3y 0 + 2y = sin x;
a) y 000 − y 00 = x;
b) y 00 − 2y 0 + 3y = (x − 2)ex ;
d) y 000 − y 00 − y 0 + y = ex ;
2
e) y 00 − 2y 0 + 5y = xex sin 2x.
Ex. 3 Integrate the following equation using the method of variation of con-
stants.
a) y 00 + 3y 0 + 2y = 1
1+ex ;
b) y 000 + y 0 = 1
cos x ;
ex
c) y 00 − 2y 0 + y = x ,x > 0.
3 Solutions
Solutie Ex. 1 a) The corresponding homogenous equation y 000 + 2y 00 −
3y 0 = 0 has the characteristic equation r3 + 2r2 − 3r = 0 with the
real roots r1 = 0, r2 = 1 and r3 = −3. Therefore, the solution of the
homogeneous equation is
yH = C1 + C2 ex + C3 e−3x , C1 , C2 , C3 ∈ R.
3
b) The homogenous equation y 00 − y = 0 has the characteristic equation
r2 −1 = 0, hence r1,2 = ±1. The solution of the homogeneous equation
is
yH = C1 ex + C2 e−x .
Since α = 1, β = 0 then λ = 1, so a particular solution is of the form
yH = C1 ex + C2 e2x , C1 , C2 ∈ R.
1 3
y(x) = C1 ex + C2 e2x + sin x + cos x.
10 10
4
1
y 00 + 4y = − cos 3x (2).
2
A first particular solution is of the form yp1 = a cos x + b sin x, which
by replacing in equation (1) leads to a = 16 and b = 0. The other par-
ticular solutionis of the form yp2 = a sin 3x + b cos 3x and by replacing
1
in (2) we obtain b = 10 and a = 0. The general solution is
1 1
y(x) = C1 cos 2x + C2 sin 2x + cos x + cos 3x.
6 10
The right hand side of the equation has two terms of different forms:
for the first term, we search for a particular solution yP = x2 (ax + b)
and for the second part, we search for a particular solution yP = Cex .
1
By replacing into the initial equation we get a = 12 , b = 81 and c = − 12 ,
therefore the general solution is y = yH + yP 1 + yP 2 = C1 + C2 x +
3 2 x
C3 e2x + C4 sin x + C5 cos x + x12 + x8 − e2 .
yH = C1 + C2 x + C3 ex , C1 , C2 , C3 ∈ R.
5
The particular solution is of the form yP = (ax + b)ex . The general
solution of the equation is
√ √ x
y = ex C1 cos 2x + C2 sin 2x + − 1 .
2
yH = ex (C1 + C2 x) + C3 e−x , C1 , C2 , C3 ∈ R.
6
Consequently, we get C1 (x) = ln(1 + ex ) and C2 (x) = −ex + ln(1 + ex )
and the general solution is
yH = C1 + C2 sin x + C3 cos x, C1 , C2 , C3 ∈ R.
yH = (C1 + C2 x)ex , C1 , C2 ∈ R.
r3 − 4r2 + 5r − 2 = 0
7
and has the roots r1 = r2 = 1 and the simple root r3 = 2, so the
solution of the corresponding homogenous linear equation is
1
z(t) = zH (t) + zP (t) = (C1 + C2 t)et + C3 e2t + e3t
4
or
1
y(x) = (C1 + C2 ln x)x + C3 x2 + x3 .
4
b) Let x = et , z(t) = y(et ). The characteristic equation is r(r−1)−r−3 =
0 that is r2 − 2r − 3 = 0 which has two roots r1 = 3 and r2 = −1. The
linear equation is
z 00 − 2z 0 − 3z = 8e3t
with the homogenous solution zH (t) = C1 e3t +C2 e−t . Since f (t) = 8e3t
and 3 is a root of the characteristic equation we search for a particular
solution of the form zP = Ate3t . We have zP0 = Ae3t (3t + 1) and
zP00 = Ae3t (9t + 6). We replace these expressions to obtain zp0 (t)
It follows
Ae3t (9t + 6 − 6t − 2 − 3t) = 8e3t ,
hence 4A = 8 and A = 2. We obtain
8
c) Let x = et , z(t) = y(et ). The equation becomes z 00 − z 0 − 2z = sin t.
The solution is
3 1
z(t) = C1 e2t + C2 e−t − sin t + cos t,
10 10
or equivalently
1 3
y(x) = C1 x2 + C2 x−1 + cos(ln x) − sin(ln x).
10 10
f ) Let x = et , z(t) = y(et ). The equation becomes z 000 −6z 00 +11z 0 −6z = et .
The solution is
1
z(t) = C1 e2t + C2 e3t + tet ,
2
r equivalently
1
y(x) = C1 x + C2 x2 + C3 x3 + x ln x.
2
∞
X
Solutie Ex. 5 Let y(x) = cn xn , cn ∈ R, n ≥ 0. Then
n=0
∞
X ∞
X ∞
X
0 n−1 n−2
y (x) = ncn x ; n(n − 1)cn x = (n + 2)(n + 1)cn+2 xn .
n=0 n=0 n=0
9
We get the recurrence relation
cn
cn+2 = , n≥0
n+2
c0 c1
c2n = ; c2n+1 = , n ≥ 0.
2n · n! 1 · 3 · . . . · (2n + 1)
∞
X x2n x2
For c0 = 1, c1 = 0 ⇒ y1 (x) = = e 2 . For c = 0, c = 1 we have
0 1
2n n!
n=0
∞
X x2n+1
y2 (x) = .
1 · 3 · . . . · (2n + 1)
n=0
10