Lecture 38P
Lecture 38P
Lecture 38P
Panchatcharam Mariappan1
1 Assistant Professor
1
Second-Order Linear ODE
• A second-order ODE is called linear if it can be written in the following
form
y ′′ + p(x)y ′ + q(x)y = r(x) (1)
• Nonlinear if it cannot be written in this form.
• If the coefficient of y ′′ is not unity, then one can divide the equation by the
coefficient and bring that to the standard form.
• If r(x) ≡ 0, then (1) is called homogeneous. That is,
yh = c1 y1 (x) + c2 y2 (x)
yp = c1 y1 + c2 y2
yp′ = c′1 y1 + c′2 y2 + c1 y1′ + c2 y2′
yp′′ = c′′1 y1 + c′′2 y2 + c′1 y1′ + c′2 y2′ + c′1 y1′ + c2 y2′ + c1 y1′′ + c2 y2′′
0 0
z }| { z }| {
yp′′ + p(x)yp′ + q(x)yp = c1 [y1′′ + p(x)y1′ + q(x)y1 ] +c2 [y2′′ + p(x)y2′ + q(x)y2 ]
+ c′′1 y1 + c′1 y1′ + c2 y2′′ + c′2 y2′ + p(x)[c′1 y1 + c′2 y2 ] + c′1 y1′ + c′2 y2′
d ′
= [c y1 + c′2 y2 ] + p(x)[c′1 y1 + c′2 y2 ] + c′1 y1′ + c′2 y2′
dx 1
4
Variation of Parameters
If we assume c′1 y1 + c′2 y2 = 0, then first two terms of the above equation
vanishes and we left with c′1 y1′ + c′2 y2′ = r(x).
Therefore, we have
c′1 y1 + c′2 y2 = 0
c′1 y1′ + c′2 y2′ = r(x)
7
Green’s Function
From method of variation of parameters, we observed that the particular
solution of (3) is given by
8
Green’s Function
x
yp (x) = G(x, t)r(t)dt (5)
x0
9
Green’s Function
The following Green’s function works for the boundary value problem.
b
yp (x) = G(x, t)r(t)dt (7)
a
y1 (t)y2 (x)
a≤t≤x
W (t)
G(x, t) = (8)
y 2 (t)y1 (x)
x≤t≤b
W (t)
10
Green’s Function
Example 2
Solve the IVP y ′′ + 4y = x, y(0) = 2, y ′ (0) = 1 using Green’s function
m2 + 4 = 0 =⇒ m = 2i, −2i
=⇒ y1 = cos 2x, y2 = sin 2x
=⇒ y2′ = 2 cos 2x, y1′ = −2 cos 2x
=⇒ W = 2(cos2 2x + sin2 2x) = 2
cos 2t sin 2x − cos 2x sin 2t 1
G(x, t) = = sin 2(x − t)
2 2
x
1
=⇒ yp = t sin 2(x − t)dt
2
0
11
Green’s Function
x sin 2x
=⇒ yp = −
4 8
x sin 2x
=⇒ y = A cos 2x + B sin 2x + −
4 8
y(0) = 0 =⇒ A = 2
1 1 1
y ′ (0) = 0 =⇒ 2B + − = 1 =⇒ B =
4 4 2
3 x
y(x) = 2 cos 2x + sin 2x +
8 4
12
Green’s Function
Example 3
Solve the BVP y ′′ + 4y = 3, y(0) = 1, y(π/4) = 0 using Green’s function
m2 + 4 = 0 =⇒ m = 2i, −2i
=⇒ y1 = cos 2x, y2 = sin 2x
=⇒ y1′ = −2 sin 2x, y1′ = 2 cos 2x
=⇒ W = 2(cos2 2x + sin2 2x) = 2
cos 2t sin 2x
0≤t≤x
G(x, t) = cos 2x2sin 2t
x ≤ t ≤ π/4
2
13
Green’s Function
π/4
=⇒ yp = G(x, t)r(t)dt
0
x π/4
3
=⇒ yp = sin 2x cos 2tdt + cos 2x sin 2tdt
2
0 x
3 3 cos 2x 3 3 cos 2x
=⇒ yp = − =⇒ y = A cos 2x + B sin 2x + −
4 4 4 4
π 3
y(0) = 0 =⇒ A = 1, y = 0 =⇒ B = −
4 4
1
=⇒ y(x) = (cos 2x − 3 sin 2x + 3)
4
14
Green’s Function
Example 4
Solve the IVP y ′′ − y = e2x , y(0) = 1, y ′ (0) = 0 using Green’s function
m2 − 1 = 0 =⇒ y1 = ex , y2 = e−x =⇒ W = −2
1 1
G(x, t) = − (et e−x − e−t ex ) = (ex−t − e−(x−t) )
2 2
x x
1
=⇒ yp = ex−t e2t dt − e−(x−t) e2t dt
2
0 0
x x
1 x
=⇒ yp = e et dt − e−x e3t dt
2
0 0
15
Green’s Function
1 2 2x x −x
=⇒ yp = e −e +e
2 3
x −x 1 2 2x x −x
=⇒ y = Ae + Be + e −e +e
2 3
1 x 1 −x 1 2x
=⇒ y = A − e + B+ e + e
2 2 3
Using IVP, we obtain
1
A = 0, B = −
3
1 1 1
=⇒ y = − ex + e−x + e2x
2 6 3
16
Thanks
Doubts and Suggestions
panch.m@iittp.ac.in
17
Engineering Mathematics-I
Lecture 38 : Variation of Parameters, Green’s Function
Panchatcharam Mariappan1
1 Assistant Professor
17