MA-108 Differential Equations I: Ronnie Sebastian
MA-108 Differential Equations I: Ronnie Sebastian
Ronnie Sebastian
Department of Mathematics
Indian Institute of Technology Bombay
Powai, Mumbai - 76
1 / 36
Constant Coefficient Differential Operators
Definition
Consider
L = a0 Dn + a1 Dn−1 + . . . + an−1 D + an ,
2 / 36
Constant Coefficient Differential Operators
Example
D2 − 5D + 6 = (D − 3)(D − 2) as a linear transformation from
C 2 (I) → C(I), i.e. for any y ∈ C 2 (I),
3 / 36
Constant Coefficient Differential Operators
Example
Check that (D + 1)(D2 + D + 1) = (D2 + D + 1)(D + 1) as a
function from C 3 (I) → R. i.e. for each y ∈ C 3 (I),
4 / 36
Constant Coefficient Differential Operators
Dr ◦ Ds = Ds ◦ Dr = Dr+s
5 / 36
Constant Coefficient Differential Operators
Note that it is important that L and M are constant coefficient
equations.
Example
If L = D + x and M = D + 1, then
LM (f ) = (D + x)(D + 1)(f )
= (D + x)(f 0 + f )
= (f 00 + f 0 ) + x(f 0 + f )
6 / 36
Constant Coefficient Differential Operators
Example
Solve y 000 − 7y 0 − 6y = 0.
We notice that this is same as the solution space of
Ly = (D3 − 7D − 6I)y = 0
L = (D − 3)(D + 1)(D + 2)
= (D + 2)(D + 1)(D − 3) = (D − 3)(D + 2)(D + 1)
If (D + 1)y = 0 or (D − 3)y = 0, then Ly = 0.
This gives us that f (x) = e−x , g(x) = e−2x and h(x) = e3x are all
solutions to Ly = 0.
7 / 36
Constant Coefficient Differential Operators
8 / 36
Constant Coefficient Differential Operators
Consider
L = a0 Dn + a1 Dn−1 + . . . + an−1 D + an , ai ∈ R
Theorem
Let L and M be two constant coefficient linear differential
operators. Then,
1 L = M if and only if PL (x) = PM (x).
2 PL+M (x) = PL (x) + PM (x).
3 PLM (x) = PL (x) · PM (x).
Definition
Given a constant coefficient differential operator L we define
Ker(L) to be the space of functions y such that Ly = 0.
PL (x) = a0 xn + a1 xn−1 + . . . + an ai ∈ R
Assume that the roots of PL (x) are distinct and are all real. Then
PL (x) = a0 (x − r1 )(x − r2 ) . . . (x − rn )
10 / 36
Constant Coefficient Differential Operators
11 / 36
Constant Coefficient Differential Operators
12 / 36
Constant Coefficient Differential Operators
Example
Solve y (3) − 7y 0 + 6y = 0.
L = D3 − 7D + 6,
c1 ex + c2 e2x + c3 e−3x
13 / 36
Constant Coefficient Differential Operators
14 / 36
Constant Coefficient Differential Operators
Proof. That these functions are linearly independent is obvious,
since {1, x, x2 , . . . , xm } is linearly independent (erx is non-zero).
We need to show that these functions are in Ker (D − r)m .
When m = 1, we need to show
u1 (x) = erx ∈ Ker((D − r)),
which is true since
(D − r)(erx ) = rerx − rerx = 0.
Suppose m = 2. Since u1 is in Ker of (D − r), it is also in Ker of
(D − r)2 .
What about u2 = xerx ?
(D − r)2 (xerx ) = (D − r)(D − r)(xerx )
= (D − r)(xrerx + erx − rxerx )
= (D − r)(erx ) = 0.
15 / 36
Constant Coefficient Differential Operators
Let us use induction to prove the general case. Assume
u1 , u2 , . . . , um ∈ Ker((D − r)m ).
Clearly
Thus, if
{er1 x , . . . , xe1 −1 er1 x }∪{er2 x , . . . , xe2 −1 er2 x }∪. . .∪{er` x , . . . , xe` −1 er` x }
The above functions are linearly independent and since dim Ker
L = n, these form a basis.
Ex: Check that the above functions are linearly independent by
evaluating the Wronskian at 0.
17 / 36
Constant Coefficient Differential Operators
Example
Find the general solution of the ODE:
We have
and therefore,
L = (D − 2)2 (D + 3).
Thus the general solution is
where c1 , c2 , c3 ∈ R.
18 / 36
Constant Coefficient Differential Operators
Example
Find the general solution of the ODE:
L = D2 (D − 1)(D + 1)3
Ker(D2 ) = {1, x}
Ker(D − 1) = {ex }
Ker(D + 1)3 = {e−x , xe−x , x2 e−x }
with ci ∈ R.
19 / 36
Constant Coefficient Differential Operators: complex roots
Assume PL (x) has some complex roots. In the 2nd order case, if
m1 = a + ıb, m2 = a − ıb, then y1 = eax cos bx and y2 = eax sin bx
were the basis for Ker(L).
If PL (x) has a complex root a + ıb, then it also has a − ıb as a
root. Thus,
is a factor of PL (x).
Null space of (D − a)2 + b2 has a basis
20 / 36
Constant Coefficient Differential Operators: complex roots
eax cos bx, xeax cos bx, . . . , xm−1 eax cos bx,
eax sin bx, xeax sin bx, . . . , xm−1 eax sin bx.
21 / 36
Constant Coefficient Differential Operators: complex roots
Example
Find the general solution of
(x − 1)(x2 − 4x + 5)2 .
where ci ∈ R.
22 / 36
Examples
Example
Ex: Find the fundamental set of solutions to
{1, x, x2 , e2x , xe2x , cos 2x, sin 2x, x cos 2x, x sin 2x}
23 / 36
Annihilator or Undetermined Coefficient Method
The Annihilator method or method of undetermined
coefficients helps us in finding a particular solution of a
non-homogeneous equation.
Example
Find a particular solution of
Here, L = D4 − 16,
and let us take A = D5 . Then Ar(x) = 0.
We say A annihilates or kills r(x).
A solution y of L(y) = r(x) is also a solution of
D5 (D4 − 16) = 0.
24 / 36
Annihilator or Undetermined Coefficient Method
c1 +c2 x+c3 x2 +c4 x3 +c5 x4 +c6 e2x +c7 e−2x +c8 cos 2x+c9 sin 2x.
25 / 36
Annihilator or Undetermined Coefficient Method
Example
To find ci ’s in yp = c1 + c2 x + c3 x2 + c4 x3 + c5 x4 , solve
(4)
yp − 16yp = x4 + x + 1.
Then 24c5 − 16(c1 + c2 x + c3 x2 + c4 x3 + c5 x4 ) = x4 + x + 1.
Equating the coefficients, we get
24c5 − 16c1 = 1
−16c2 = 1
−16c3 = 0
−16c 4 = 0
−16c5 = 1
26 / 36
Annihilator or Undetermined Coefficient Method
c3 = c4 = 0,
c5 = c2 = −1/16,
c1 = −5/32.
5 1 1
Therefore yp = − − x − x4 .
32 16 16
27 / 36
Annihilator or Undetermined Coefficient Method
Example
Solve y (4) − 4y 00 = ex + x2 .
Let L = D4 − 4D2 = D2 (D − 2)(D + 2).
Let z(x) and w(x) be such that Lz = ex and Lw = x2 . Then
L(z + w) = ex + x2 .
Let us first solve Lz = ex . We know that ex is a solution of
M y = (D − I)y = 0.
Now, M Lz = (D − I)D2 (D − 2)(D + 2)z = 0.
Clearly z satisfies this equation. Hence z will be of the form
z = c1 + c2 x + c3 e2x + c4 e−2x + c5 ex .
28 / 36
Annihilator or Undetermined Coefficient Method
y (4) − 4y 00 = ex
we have
c5 − 4c5 = 1 =⇒ c5 = −1/3
Thus
z = (−1/3)ex .
29 / 36
Annihilator or Undetermined Coefficient Method
30 / 36
Annihilator or Undetermined Coefficient Method
24c5 − 2c3 = 0,
c4 = 0,
c5 = 1/12
c3 = 1
1 4
Therefore, w = x2 + x .
12
Hence a particular solution to Ly = ex + x2 is given by
1 1
yp = z + w = − ex + x2 + x4
3 12
31 / 36
Summary: Anhilator Method
32 / 36
Variation of Parameters
The variation of parameters method generalizes to nth order linear
ODE y (n) + p1 (x)y (n−1) + . . . + pn (x)y = r(x) where pi ’s and r
are continuous on I.
Let y1 , . . . , yn be a basis of solutions of homogeneous part.
Assume the particular solution yp is given by
Assume
v10 y1 + . . . + vn0 yn =0 (1)
v10 y10 + . . . + v10 yn0 =0 (2)
.. ..
. .
(n−2) (n−2)
v10 y1 + . . . + vn0 yn = 0 (n − 1)
(n)
Compute yp0 , . . . , yp and put in the ODE, we get
(n−1)
v10 y1 + . . . + vn0 yn(n−1) = r(x) (n)
33 / 36
Variation of Parameters
Thus,
0
y1 y2 · yn
v1 0
y10 y20 · yn0 v20 0
=
· .
· · · · ·
(n−1) (n−1) (n−1)
y1 y2 · yn vn0 r(x)
Use Cramer’s rule to solve for v10 , v20 , . . . , vn0 , and thus get
v1 , v2 , . . . , vn , and form
y = v 1 y1 + v 2 y2 + . . . + v n yn
here vi0 is given by
· yi−1 ·
y1 0 yi+1 yn
0 0 0 yn0
y1
· yi−1 0 yi+1 ·
· · · · · · ·
(n−1) (n−1) (n−1) (n−1)
y · yi−1 r(x) yi+1 · yn
vi = 1
0
W (y1 , . . . , yn ; x)
34 / 36
Variation of Parameters
Example
Solve y (3) − y (2) − y (1) + y = r(x).
Here L = D3 − D2 − D + 1 = (D − 1)2 (D + 1).
Hence, a basis of solutions is {ex , xex , e−x }.
We need to calculate W (x). Use Abel’s formula:
Rx
W (x) = W (0) e− 0 p1 (t)dt
= W (0) · ex .
−x
x x
e xe e
W (x) = ex ex + xex −e−x .
ex 2ex + xex e−x
1 0 1
=⇒ W (0) = 1 1 −1 = 4.
1 2 1
35 / 36
Variation of Parameters
Example (continued ...)
Hence,
W (x) = 4ex .
xex e−x
0
ex + xex −e−x
W1 (x) = 0 = −r(x)(2x + 1).
r(x) 2ex + xex e−x
Similarly,