ODE Notes Lecture 2-4
ODE Notes Lecture 2-4
2.1. Introduction
There are various methods for solving a first order linear differential equations. The
method of “Separation of Variables” is the most fundamental. If the differential
equation is of the form,
dy f ( x)
= F ( x, y ) =
dx g ( y)
we say that the variables are separable and obtain the solution from
g(y)dy = f(x)dx
by integrating both sides
Hence ∫ g ( y )dy = ∫ f ( x)dx
In this method, we must manage to transform the given equation in the form
g(y)dy = f(x)dx
so that the variables g(y) and dy are on one side and f(x) and dx on the other side.
Not all functions F(xy) are separable into the form f(x) dx = g (y) dy.
Example 1
dy 2 x 2
Solve the equation = 3
dx y
Solution
We can transform the equation.
dy 2 x 2
= 3 into the form
dx y
y dy = 2x2dx
3
Then ∫ y 3 dy = ∫ 2 x 2 dx
y 4 2 x3
= +C
4 3
y 4 2x3
or = +C
4 3
or 3 y 4 = 8 x 3 + 3 A , is the required solution
Example 2
dy xy 2 + x
Solve =
dx yx 2 + y
Solution
dy xy 2 + x
Let =
dx yx 2 + y
We shall try to separate f(y) and dy on one side and f(x) and d(x) on the other side.
( )
dy x 1 + y 2
=
( )
dx y 1 + x 2
x(1 + y ) 2
ydy =
(1 + x ) dx2
ydy x
= dx
1+ y 2
1+ x2
ydy xdx
∫ 1+ y 2
=∫
1+ x2
(2)
u′
we can make the integrals in the form of ∫ u dx whose integration is ln u. (2) becomes
1 ydy 1 xdx
∫
2 1+ y 2
= ∫
2 1+ x2
1
2
( 1
) (
ln 1 + y 2 = ln 1 + x 2 + C
2
)
( ) ( )
ln 1 + y = ln 1 + x 2 + C1 , (C1 = 2C)
2
Whenever ln appears after integration we always call the constant as ln A and put
A inside the logarithm to reduce the number of terms.
( )
ln 1 + y 2 = ln A 1 + x 2( )
Raising both sides to the base e,
e ln (1+ y ) = e ln A(1+ x )
2 2
For example
xy
f ( x, y ) =
x + y2
2
kx.ky
f (kx, ky ) = 2 2
k x + k 2 y2
k 2 xy
= 2 2
k x + y 2
xy
=
x + y2
2
= f ( x, y )
xy xy
Here f (kx, ky ) = k 0 2 = f ( x, y ) . Hence 2 is a homogeneous function of
x +y 2
x + y2
degree 0.
dy
2.6. Method of solving = f (x, y ) when f(x,y) is a homogeneous function of x
dx
and y
dy
Let = f ( x, y )
dx
Put the substitution y = vx
dy dv
So that =v+ x .
dx dx
As we shall see in the following examples the given homogeneous function will become
dv
v+x = f (v )
dx
dv
x = f (v ) − v
dx
x f (v ) − v
=
dx dv
dv dx
or =
f (v ) − v x
dv dx
Then ∫ =∫
f (v ) − v x
Thus the variables v and x are separated and the equation is solved.
Example 3
xy
a. Show that is a homogeneous function in x and y.
x + y2 2
Solution
xy
a. Let f ( x, y ) =
x + y2
2
k 2 ( xy )
f (kx, ky ) =
k 2 x2 + y2 ( )
= f ( x, y )
xy
Hence 2 is a homogeneous equation.
x + y2
dy dv
b. If we let y = vx, then =v+ x .
dx dx
Substitution of this in the given equation, we get
dv xy
v+x = 2 becomes
dx x + y 2
dv x.xv
v+x = 2 2 2
dx x + v x
dv v
v+x =
dx 1 + v 2
dv v
x = −v
dx 1 + v 2
x
dv v − v 1 − v 2
=
( )
dx 1+ v2
v − v − v3
=
1+ v2
dv − v 3
x =
dx 1 + v 2
x − v3
=
(
dx 1 + v 2 dv )
dx
=−
(
1 + v 2 dv )
(variables are separated )
x v3
dx 1 v2
∫ x ∫ v 3 + v 3 dv
= −
1
ln A = − ∫ v −3 + dv
v
−2
v
= − ln v
2
1
ln Ax − ln v = 2
2v
Ax 1 y
ln = 2 where v =
v 2v x
Ax x
2 2
ln = 2
y 2y
This is the required solution.
Example 4
( )
Solve x 3 + y 3 dx − 3xy 2 dy = 0
Solution
( )
Let x 3 + y 3 dx − 3xy 2 dy = 0
( )
x 3 + y 3 dx = 3xy 2 dy
dy x 3 + y 3
= ’
dx 3 xy 2
x3 + y 3
is a homogeneous function of degree 0.
3 xy 2
Let y = vx be the substitution.
dy dv
=v+ x
dx dx
dv x 2 + v 3 x 3
v+x =
dx 3x.v 2 x 2
then
dv 1 + v 3
v+x =
dx 3v 2
dv 1 + v 3
x = −v
dx 3v 2
1 + v 3 − v(3v 2 )
=
3v 2
x 1− 2v 3
=
dx 3v 2 dv
dx 3v 2 dv
therefore =
x 1 − 2v 3
dx 3v 2 dv
∫ x ∫ 1 − 2v 3
=
1 − 6v 2 dv
ln ( Ax ) =
− 2 ∫ 1 − 2v 3
1
( )
ln ( Ax ) = − ln 1 − 2v 3 (using the substitution u = 1 – 2v3)
2
( )
1
ln ( Ax ) = ln 1 − 2v 3
−
2
( )
1
− y
Ax = 1 − 2v 3 2 where v =
x
1
−
2 y3 2
Ax = 1 − 3
x
−1
2 y3
A x = 1 − 3
2 2
x
x3
A2 x 2 = 3
x − 2 y3
x
A2 = 3
x − 2 y3
or (
x = c x3 − 2 y 3 )
is the required solution.
Example 5
Solve the equation (x 2
)
− 3 y 2 dx + 2 xydy = 0
Solution
( )
Let x 2 − 3 y 2 dx + 2 xydy = 0
or
dy
=−
(
x2 − 3y 2 )
dx 2 xy
dy 3 y 2 − x 2
=
dx 2 xy
3y2 − x2
if f ( x, y ) =
2 xy
3k 2 y 2 − k 2 x 2
f (kx, ky ) =
2kxky
(
k 2 3 y2 − x2
=
)
k 2 (2 xy )
= f ( x, y )
Hence the given equation is homogeneous.
dy dv
Letting y = vx, so that = v + x , the given equation becomes
dx dx
dv 3v y − x 2
2 2
v+x =
dx 2 xvx
3v − 1
2
=
2v
dv 3v 2 − 1
x = −v
dx 2v
dv v 2 − 1
x =
dx 2v
dx 2v
= 2 dv
x v −1
Integrating, we find ln (v 2 − 1) = ln cx
Hence v 2 − 1 = cx
y2
− 1 = cx
x2
y 2 − x 2 = cx 3
which is the required solution for the given equation.
2.7. First order equation reducible to homogeneous form.
Equation of the form
dy ax + by + c
= (1)
dx px + qy + r
or (ax + by + c)dx + (px +qy + r)dy = 0 (2)
where a, b, c, p, q, r are constants.
a b
Case 1. If ≠ then the transformation
p q
x=X+h
y=Y+k
where (h, k) is the solution of the system
ah + bk + c = 0
ph + qk + r = 0
reduces the equation to the homogeneous equation
(aX + bY)dx + (pX + qY)dy = 0 in the new variables X and Y
a b
Case II. If = then the transformation
p q
z = ax + by reduces the equation to a separable equation in the variables
x and z.
Example 6
Solve the equation
(3x + 2y – 5)dx + (2x + 3y – 5)dy = 0
Solution
x = X +h dx = dX
Taking (1)
y =Y +k dy = dY
dy 3x + 2 y − 5
= becomes
dx 2 x + 3 y − 5
dY 3 X + 2Y + 3h + 2k − 5
=−
dX 2 X + 3Y + 2h + 3k − 5
choose h, k such that
3h + 2k − 5 = 0
(2)
2h + 3k − 5 = 0
solving the simultaneous equations (2) we have h = 1 and k = 1
dY 3 X + 2Y
Hence =−
dX 2X + Y
Putting Y = vX
dY dv
=v+ X
dX dX
dv 3 + 2v
X =− −v
dX 2 + 3v
or
3 + 4v + 3v 2
=−
3v + 2
or −
dX
=− 2
(3v + 2)dv
X 3v + 4v + 3
Integrating
ln(3v 2 + 4v + 3) = −2 ln X + ln C
C
or 3v 2 + 4v + 3 = 2
X
2
3Y 4Y C
2
+ +3= 2
X X X
or 3Y2 + 4XY + 3X2 = C
or 3(y – 1)2 + 4(x – 1)(y – 1) + 3(x – 1)2 = c
or 3(x2 + y2) + 4xy – 10(x + y) = c
Example 7
dy x− y+3
Solve =−
dx 2x − 2 y + 5
Solution
−1 1
Here Ratio of coefficients of x = ½ and ratio of coefficients of y = = . Hence we
−2 2
put
x – y = z.
dx dy dz
Then − =
dx dx dx
dy dz dy dz
Or 1− = or = 1−
dx dx dx dx
dz z −3
Then 1− =
dx 2 z + 5
dz z −3
or = 1−
dx 2z + 5
2z + 5 − z − 3
=
2z + 5
dz z+2
= 1−
dx 2z + 5
2z + 5
or dx = 1 −
z+2
2z + 4 +1
=
z+2
1
dx = 2 + dv
z+2
Integrating both sides we have
or x + c = 2z + ln(z + 2)
or x + c = 2(x – y) + ln(x – y + )
Example 8
Solve the equation
(x – 2y + 1)dx + (4x – 3y – 6)dy = 0
Solution
dy x − 2 y +1
Let = (1)
dx 4 x − 3 y − 6
1 −2 1 2
Here the ratio of the coefficients of x is given by and and ≠
4 −3 4 3
dY
=
( X − 3) − 2(Y − 2) + 1 = X − 2Y (4)
dX 4( X + 3) − 3( y − 2) − 6 4 X − 3Y
Y = vX gives
dV 1 − 2v
v+ X =
dX 3v − 4
dV 1 − 2v
or X = −v
dX 3v − 4
dV 1 − 2v − 3v 2 + 4v
or X =
dX 3v − 4
dV − 3v + 2v + 1
2
or X =
dX 3v − 4
X 3v + 2v − 1
2
or =
dX − (3v − 4 )dv
or −
dX
= 2
(3v − 4)dv
X 3v + 2v − 1
Integrating both sides we have
(3v − 4)dv
X − ln( AX ) = 2
3v − 2v − 1
1 3 3v − 3
− ln( AX ) = ln(3v 2 − 2v − 1) − ln
2 4 3v + 1
3
1
3v − 3 4
= ln(3v − 2v − 1) − ln
2 2
3v + 1
3
1
3v − 3 4
ln ( AX ) = ln ÷ (3v 2
− 2v − 1) 2
3v + 1
(3v + 1)
5
c1
4
or finally ln = ln 4
v −1 x
X 4 (3v + 1) = c(v − 1)
5
or
y
Replacing v by we have
x
(3Y + X )5 = C (Y − X )
Finally replacing X by x – 3 and Y by y – 3, we obtain the solution of the original
equation inn the form
3( y + 2 ) + (x − 3) = c ( y − 2 − x + 3)
5
x + 3 y − 9 = C ( y − x + 1)
5
or
Exercise 2
Solve the following equations
1. x 3dx + ( y − 1) 2 dy = 0
2. (2 x + 3 y )dx + ( y − x )dy = 0
( )
3. xydx + 1 + x 2 dy = 0
4. y 2 dx − x 2 dy = 0
(
7. x 2 − y 2
dy
dx
) = 2 xy
dy
8. xy = x2 + y 2
dx
dy
9. x = x− y
dx
dy
10. xy = 3x 2 + xy
dx
(
11. x 2 + y 2
dy
dx
) = xy
dy
12. y = 2x + y
dx
dy x − y + 2
13. =
dx x+ y
dy 2 x + y − 2
14. =
dx 2 x + y + 1
dy
15. (x + y ) = x + y − 2
dx
dy 2 x + 3 y − 8
16. =
dx 5 x + y − 7
Summary
Further Reading:
1. Pure Mathematics
By Backhouse and others
Longman
2. Differential Equations
By Shepley L. Ross
John Wiley and Sons
New yolk. Toronto. Singapore
∂M ∂N
=
∂y ∂x
Theorem
∂M ∂N
If M, N, and are continuous functions of x and y then a necessary and
∂y ∂x
∂M ∂N
sufficient condition that Mdx + Ndy = 0 to be exact is that = . The solution of
∂y ∂x
∂F ∂F
such equation is F (x, y) = constant where dF = dx + dy = Mdx + Ndy = 0.
∂x ∂y
Example 1
a) Show that the equation
(3 x 2 + 4 xy )dx + (2 x 2 + 2 y )dy = 0
dy 3 x 2 + 4 xy
or =− 2 is exact
dx 2x + 2 y
b) Hence solve the equation
Solution
Let (3 x 2 + 4 xy )dx + (2 x 2 + 2 y )dy = 0 (1)
This is of the form Mdx + Ndy = 0
where M = 3x 2 + 4 xy , N = 2 x 2 + 2 y (2)
∂M ∂N
= 4 x and = 4x
∂y ∂x
∂M ∂N
Since = ,
∂y ∂x
Hence there exists a function F (x, y) such that the equation is exact.
∂F ∂F
dF = dx + dy = Mdx + Ndy (3)
∂x ∂y
∂F
From (3) =M
∂x
Hence ∂F = M∂x
and F = ∫ M∂x
= ∫ (3 x 2 + 4 xy )∂x (Note that this is a partial Integration with respect to x)
F ( x, y ) = x 3 + 2 x 2 y + φ ( y ) (4)
y is treated as a constant. Hence constant of integration may be φ ( y )
∂F
Again from (3) =N
∂y
From (4) and (2) we have
∂
= x 3 + 2 x 2 y + φy ) = 2 x 2 + 2 y
∂y
or 0 + 2 x 2 + φ ′( y ) = 2 x 2 + 2 y (5)
From (5) φ ′( y ) = 2 y (6)
Integrating we have φ ( y ) = y 2 (7)
No constant is needed
Substituting (7) in (4) we have F ( x, y ) = x 3 + 2 x 2 y + y 2 = c is the required solution.
Example 2
Solve the equation (8 y − x 2 y )dy + ( x + xy 2 )dx = 0
Solution
( x + xy 2 )dx + (8 y − x 2 y )dy = 0 (1)
This is of the form Mdx + Ndy = 0
∂M ∂N
= −2 xy =
∂y ∂x
Hence it is an exact equation and there exists a function F ( x, y ) such that
∂F ∂F
dF = dx + dy = Mdx + Ndy = 0 (2)
∂x ∂y
and F = Constant is the solution.
∂F
dx = Mdx = ( x − xy 2 )dx
∂x
∂F
Then ( x − xy 2 )
∂x
∂F = ( x − xy 2 )∂x
F = F ( x, y ) = ∫ ( x − xy 2 )∂x
x2 x2 y 2
= − + φ (y) (3)
2 2
∂F ( x, y )
From (2), = N ( x, y ) gives
∂y
∂ x2 x2 y 2 dφ
= − + Q( x, y ) = 8 y − x 2 y + φ ′( y ) - x 2 y + = 8 y − x2 y
∂y 2 2 dy
dφ
= 8y
dy
dφ = 8 ydy
φ = ∫ 8 ydy
= 4y2 (No need for constant)
x2 x2 y2
Substituting φ = 4 y 2 in (3) we have F ( x, y ) = − + 4 y2
2 2
The solution is F ( x, y ) = constant.
x2 x2 y2
− + 4 y 2 = constant
2 2
or x 2 − x 2 y 2 + 8 y 2 = c is the required solution of the equation.
Since the solution is F = constant the required solution is, x 2 − 2 x 2 y + y 2 = c
Example 3
a) Show that the equation
3 x − ( xy − 2)dx + ( x 3 + 2 y )dy = 0 is exact.
b) Hence solve the equation
Solution
Let 3 x − ( xy − 2)dx + ( x 3 + 2 y )dy = 0 (1)
This equation is the form Mdx + Ndy = 0
where M = 3x( xy − 2)dx and N = ( x 3 + 2 y )dy
∂M ∂N
= 3x 2 and = 3x 2
∂y ∂x
Hence the equation (1) is exact and there exists a function F such that
∂F ∂F
dF = dx + dy = Mdx + Ndy (2)
∂x ∂y
∂F
= M gives
∂x
∂F
= 3x 2 y − 6 x
∂x
or ∂F = (3 x 2 y − 6 x)∂x
or F = ∫ (3 x 2 y − 6 x)∂x
= x 3 y − 3x 2 + φ ( y ) (3)
∂F
From (2) =N
∂y
Hence
∂y
[
∂ 3
] ( )
x y − 3x 2 + φ ( y ) = x 3 + 2 y
or x + φ ′( y ) = x 3 2 y
3
or φ ′( y ) = 2 y
Integrating we have φ ( y ) = y 2 (4)
Substituting (4) in (3) we have
F = x 3 y − 3x 2 + y 2 and the solution is F = constant
Hence the required solution is
x 3 y − 3x 2 + y 2 = c
3.4 Integrating Factor
Consider the equation,
M ( x, y )dx + N ( x, y )dy = 0 (1)
Suppose (1) is not an exact equation. When each of the terms of (1) is multiplied by a
factor φ ( x, y ) the equation (1) may become exact. In other words
φ ( x, y ) M ( x, y )dx + φ ( x, y ) N ( x, y )dy = 0 may become an exact equation.
Finding the Integrating factor for the equation Mdx + Ndy = 0 is generally not easier;
However there are some standard forms of Integrating factors which we shall see in the
next section.
∂M ∂N
−
∂M ∂N ∂y ∂x
= g ( y ) , a function of y alone, then e ∫
− gdy
2) If − ≠ 0 and is an
∂y ∂x M
integrating factor of (1).
1
3) is an integrating factor of (1) if Mx + Ny ≠ 0 .
Mx + Ny
1
2 y xdy − ydx
4) x is an integrating factor for xdy – ydx since d =
x x2
Example 4
Consider the differential equation
(4 x + 3 y 2 )dx + 2 xdy = 0
a) Show that this equation is not exact.
b) Find an integrating factor of the form xn where n is a positive integer.
c) Using your integrating factor found in (b) solve the equation.
Solution
Let (4 x + 3 y 2 )dx + 2 xdy = 0 . It is of the form
Mdx + Ndy = 0 where
M = 4 x + 3 y 2 and N = 2xy
∂M ∂N
= 6 y and = 2y
∂y ∂x
∂M ∂N
Since ≠ the equation is not exact.
∂y ∂x
At this stage, you can find the integrating factor.
Let us try whether x2 is an integrating factor.
Multiply the equation throughout by x2
x 2 (4 x + 3 y 2 )dx + x 2 .2 xydy = 0
Now M = 4 x 3 + 3x 2 y 2 and N = 2 x 3 y
∂M ∂N
= 6x2 y =
∂y ∂x
There exists a function F(x,y) such that
∂F ∂F
dF = dx + dy = (4 x 3 + 3x 2 y 2 )dx + 2 x 3 ydy = 0
∂x ∂y
and F = constant will be the solution.
∂F
dx = (4 x 3 + 3x 2 y 2 )dx
∂x
∂F
= 4 x3 + 3x 2 y 2
∂x
∂F = (4 x 3 + 3x 2 y 2 )dx
F = ∫ (4 x 3 + 3x 2 y 2 )dx
F = x 4 + x3 y 2 + φ ( y) = 0 (1)
∂F
= N = 2 x 3 y gives
∂y
∂ 4
∂y
[ ]
x + x3 y 2 + φ ( y) = 2 x3 y
dφ
2 x3 y + = 2 x3 y
dy
dφ
= 0 which gives φ = constant c0
dy
From (1), F = x4 + x3y2 + c0. The solution is F = constant c1
x4 + x3y2 + c0 = c1. Then if we call c1 – c0 = c, the required solution is x4 + x3y2 = c
Example 5
a) Show that ydx – xdy = 0 is not exact.
1
2
b) Show that x is an integrating factor for the equation.
c) Solve the equation ydx – xdy = 0 using the integrating factor.
Solution
a) Let ydx – xdy = 0
Comparing this with Mdx + Ndx = 0
M= y and N = -x
∂M ∂N
=1 = −1
∂y ∂x
Hence the given equation is not exact.
1
2
b) Multiplying each term by x
1 1
2
ydx − 2 xdy = 0
x x
y 1
2
dx − dy = 0
x x
y 1
This is of the form Mdx + Ndy = 0 where M = 2
and N = −
x x
∂M 1 ∂N
= 2 =
∂y x ∂x
y 1
Now 2 dx − dy = 0 is exact.
x x
∂F ∂F
c) There Exists a Function F(x, y) such that dF = dx + dy Mdx + Ndy = 0
∂x ∂y
∂F y ∂F 1
= M = 2 and =N =−
∂x x ∂y x
∂F y
= 2
∂x x
y
∂F = 2 dx
x
y
F = y ∫ 2 dx
x
x −1
F=y + φ ( y)
−1
y
F = − + φ ( y) (1)
x
∂F
= N ( x, y )
∂y
∂ y 1
− + φ ( y ) = −
∂y x x
1 dφ 1
− + =−
x dy x
dφ
=0
dy
φ ( x, y ) = constant
y
From (1) F(x, y) = − + c0 . The solution is F(x, y) = c1
x
y y
Then, − + c0 = c1 or = c or y = cx is the solution.
x x
Exercise 3
1. Show that the equation
(3x + 2y)dx + (2x + y)dy = 0
is exact.
2. a). Show that the equation
2xy + 1)dx + (x2 + 4y)dy = 0
is exact.
b). Solve the above equation
Summary
You have learnt the following from this lesson.
1. Definition of axact differential equation.
2. Condition for the equation
M(x,y)dx + N(x, y)dy = 0 to be exact.
3. Method of solving M(x,y)dx + N(x, y)dy = 0 when it is exact.
4. Definition of integrating factors.
5. The use of integrating factors to solve the equation which is not exact.
Further Reading
1. Differential Equations
By Frank Ayres, Ph. D
Schaum’s outline series
McGraw Hill Book Company
New York, Toronto, Sydney.
2. Differential Equations
By Dr. D. Sengottaiyan Ph.D
Oxford Publications
Harrow, London. Nairobi.
LESSON 4
First Order Linear equations and Equations reducible to this form
(Bernoulis Equations)
4.1 Introduction;
In the previous lesson we have solved the differential equation of the form,
f(x) dx + g (y) dy = 0
In this lesson we shall consider the differential equation of first order and first degree.
The first order linear differential equation is of the form,
dy
+ Py = Q
dx
where p and Q are functions of x only.
ye∫ = ∫Qe∫ dx
Pdx Pdx
(2)
Proof
Multiply each tern of (1) by e ∫
Pdx
Pdx dy
Then e ∫ + e ∫ Py = Qe ∫
Pdx Pdx
dx
d ∫ Pdx dy ∫ Pdx
Now ye = e + ye (3)
dx dx
d ∫ Pdx
= Qe ∫
Pdx
Using (3) in (2) we have ye
dx
Then d ye ∫ = Qe ∫ dx
Pdx Pdx
ye ∫ = ∫ Qe ∫
Pdx Pdx
dx (4)
is the solution. Remember the equation in (4).
∫
Pdx
Step 1: Find
Step 2: Find e ∫
Pdx
The following examples illustrate the method of solving First order linear differential
equations.
Example 1
dy
Solve x + y = x 2
dx
yx = ∫ x 2 .x.dx
xy = ∫ x 3 dx
x4
xy = +c
4
x3 c
Then y = + is the required solution
4 x
Example 2
dy
Solve + y cot x = cosec x
dx
cos x
Step 1: ∫ pdx = ∫ cot x dx = ∫ sin x dx
= ln (sin x)
Step 2: e ∫
pdx
= e ln(sin x )
= sin x
y sin x = x + c
Then y = (cosec x) (x + c).
Example 3
dy 2x 1
Solve + y=
dx 1 + x 2
(1 + x 2 ) 2
2x 1
where p = and Q =
1+ x 2
(1 + x 2 ) 2
2x
i. ∫ pdx = ∫ dx = ln(1 + x 2 )
1+ x 2
ii. e ∫ = e ln(1+ x ) = (1 + x 2 )
pdx 2
Hence y =
1
1+ x2
( )
tan −1 x + c is the required solution.
Example 5
dy
Solve + y = xy 3
dx
This is Bernoulli equation where n = 3 multiply all the three terms by y-3 or divide each
term by y3.
dy
y −3 + y. y −3 = x (1)
dx
If we put v = y1− n = y1−3 = y −2 (2)
dv d − 2
= y
dx dx
dy −2 dy
= .
dy dx
dy
= − 2 y −3
dx
dy 1 dv
Therefore y −3 = (3)
dx − 2 dx
Substituting (2) and (3) in 1.
1 dv
+v = x
− 2 dx
dv
or − 2v = −2 x
dx
dy
This is Linear differential equation of the form + py = Q
dx
Therefore ∫ pdx = ∫ − 2dx = −2 x
Integrating factor is e ∫ = e − 2 x
pdx
Hence ye −2 x = ∫ − 2 xe −2 x dx
ye −2 x = −2∫ xe −2 x dx
e −2 x
= −2 xe − 2 x +
4
1
The solution is y = −2 x +
4
Example 6
dy
Solve − y = 4 y5 (1)
dx
Solution
This is Bernoulli’s equation where n = 5 multiply each term of (1) by y-5.
dy
Then y −5 − y −4 = 4 (2)
dx
Substituting y − ( n −1) = v or y −4 = v
or v = y-4 (3)
−4
dv dy
and =
dx dx
dv dy −4 dy
or = .
dx dy dx
dy
= − 4 y −5
dx
1 dv dy
= y −5 (4)
− 4 dx dx
Substituting (3) and (4) in (2) we have
1 dv
−v = 4
− 4 dx
dv
+ 4v = −16 (5)
dx
dy
Equation (5) is of the form + py = Q
dx
i. ∫ pdx = ∫ 4dx = 4 x
ii. e ∫ = e 4 x
pdx
iii. ve 4 x = ∫ − 16e 4 x dx
or ve 4 x = −4e 4 x + c
or v = −4 + ce−4 x
y −4 = −4 + ce −4 x
1
or 4 = −4 + ce − 4 x
y
Note:
Bernoulli’s Equation
dy
+ py = Qy n is reduced to
dx
dv
− (1 − n) pv = −(1 − n)Q using the substitution v = y (1− n )
dx
Example 7
dy
Solve the equation + y = xy 3
dx
Solution
dy
Let + y = xy 3 (1)
dx
dy
This is of the form + py = Qy n where p = 1 and Q = x, n = 3. Multiply each term of
dx
(1) by y-3
dy
y −3 + yy 3 = x
dx
dy
or y −3 + y −2 = x (2)
dx
Substitute v = y −2
dv d − 2 dy dy 1 dv
and = y = −2 y − 3 or y −3 = (3)
dx dx dx dx − 2 dx
Substitute (2) and (3) in (2) we have
1 dv
+v = x
− 2 dx
dv
or − 2v = −2 x (4)
dx
dy
This is of the form + py = Q where p = -2 and Q = -2x.
dx
Now ∫ pdx = ∫ − 2dx = −2 x
Integrating factor e ∫ = e − 2 x
pdx
The solution is e −2 x = ∫ − 2 xe −2 x
ve −2 x = −2∫ xe −2 x
1 −2 x
= e (2 x + 1) + c
2
1
v = x + + ce 2 x
2
1 1 1
Since v = 2 we have 2 = x + + ce 2 x which is the required solution
y y 2
Exercise 4
Solve the following Linear Equations
dy
1. + 2 xy = 4 x
dx
dy
2. + y cot x = cosec x
dx
dy 2 xy
3. − = 1+ x2
dx 1 + x 2
(
4. 1 + x 2 )
dy
dx
+ y =1
dy 2x 1
5. + y=
dx 1 + x 2
(
1+ x2 )
(
6. 1 + x 3 )
dy
dx
+ 3x 2 y = sin 2 x
dy
7. + y tan x = cos 3 x .
dx
dy
8. x + y = 1 − y
dx
dy
9. x + y = xe x
dx
(
10. 1 − x 2 )
dy
dx
− xy = 1
dy
11. − y cot x = sin x
dx
dy
12. x = y + x3 + 3x 2 − 2 x
dx
dy
13. (x − 2) = y + 2( x − 2) 3
dx
Summary
Further Reading
4. Differential Equations
By Shepley L. Ross
John Wiley & sons
New York Toronto. Singapore.
6. Differential equations
By Dr. D. Sengottaiyan
Oxford publications
London Nairobi.
LESSON 5
Second Order Homogeneous Linear Equations with constant
coefficients.
5.1 Introduction
In the previous lessons you have learnt different methods of solving first order
differential equations. In this lesson you will learn the method of solving second order
homogeneous linear equations with constant coefficients.
5.3 Definition of second order homogenous Linear equation with constant coefficients.
A second order homogeneous differential equation in the dependent variable y and the
independent variable x is an equation that can be expressed in the form,
d2y dy
a0 2 + a1 + a2 y = 0 (1)
dx dx
where a0 ≠ 0 and a0, a1, a2 are functions of x only or constants. If a0, a1, a2 are constants,
equation (1) is called a second order homogenous equation with constant coefficients.
For example,
d2y dy
a0 2 + a1 + a2 y = F ( x )
dx dx
d2y dy
2 2
+ 5 − 6 y = ex
dx dx
2
d y dy
2
− 3 + 7 y = sin x + x 2 are nonhomogenous second order equations where as
dx dx
d2y dy
2
− 3 + 7 y = 0 is a homogeneous equation.
dx dx
Example 1
d3y d2y dy d2y
5 x 3 + 8 xy 2 − 9 + xy = e is not a linear equation since the second term
x
has
dx dx dx dx 2
y in the coefficient. This is a non linear equation
Example 2
2
d 2 y dy dy
3 2 − 2 + 8 y = ln x is not a linear equation since the degree of is not unity. It
dx dx dx
is a non linear equation.
Example 3
d2y dy
5 2 − 8 x + 2 y = xy is not a linear equation since the right hand side is not a function
dx dx
of x only. This is a non – linear equation.
5.6 Operator Notation for a Second order linear equation with constant coefficients.
For the differential equations we can use convenient notations, D, D2, D3… instead of
d d2 d3
, , … respectively.
dx dx 2 dx 3
d2y dy
Then the linear equation 5 2 − 3 + 8 y = 0 is written as
dx dx
2 2
5D y – 3Dy + 8y = 0 or (5D – 3D + 8)y = 0
In general
d2y dy
a0 2 + a1 + a2 y = 0
dx dx
is written as
(a0D2 + a1 D + a2)y = 0 or f(D)y = 0. where f(D) = a0 D2 + a1D + a2
5.7 Method of solving the homogeneous second order linear Equation with constant
coefficients
Consider the equation,
d2y dy
a0 2 + a1 + a2 y = 0 (1)
dx dx
where a0, a1 and a2 are constants.
In an attempt to find a solution of the equation (1), we would naturally inquire whether
there is any familiar type of function f such that its derivatives are constant multiples of
the same function f. The answer is “yes” for the exponential function y = emx.
Now y = emx (2)
y′ = me mx
(3)
y′′ = m e
2 mx
(4)
If y = emx is a solution of (1) then the constant m must satisfy (6). We can write the
auxiliary equation and solve it for m. Three cases arise, according as the roots of (6) are;
real and distinct
real and repeated or
complex conjugate
Example 4
Consider the equation,
d2y dy
2
− 5 + 6y = 0
dx dx
The auxiliary equation is
m 2 − 5m + 6 = 0
or (m − 2 )(m − 3) = 0
Hence m1 = 2, m2 = 3
The roots are real and distinct. Thus e 2 x and e 3 x are independent solutions. The general
solution is written as y = c1e 2 x + c2 e3 x if the Wronskian of e 2 x and e 3 x are independent.
e2x e3 x
We can verify that the Wronskian determinant w = 2x 3x
= 3e 5 x − 2e 5 x = e 5 x ≠ 0 .
2e 3e
Hence y = c1e 2 x + c2 e3 x is the general solution.
Let y = e mx v . (1)
dy dv
= e mx + me mx v (2)
dx dx
d2y 2
mx d v dv dv
2
=e 2
+ .me mx + me mx + m 2 e mx v
dx dx dx dx
2
d v dv
= e mx 2 + 2me mx = m 2 e mx v (3)
dx dx
Substituting (1), (2) and (3) in the given equation, we have
d 2v
= e mx 2 = 0
dx
dv
Let w = then
dx
dw
e mx =0
dx
dw
or = 0 since e mx ≠ 0 or w = 0 where c is an arbitrary constant. If we choose c = 1
dx
dv
w= = 1 or v = x + c0
dx
Hence the second solution is y = e mx ( x + c0 ) choosing c0 = 0 we have the second solution
y = xe mx .
Thus the general solution is y = c1e mx + c2 xe mx if Wronskian determinant is ≠ 0
5.10 Theorem
Consider the second order homogeneous differential equation,
d2y dy
a0 2 + a1 + a2 y = 0 where a0, a1 and a2 are constants.
dx dx
i. If the auxiliary equation a0 m 2 + a1m + a2 = 0 has the two roots real and distinct (m1
and m2) then the solution of the equation is y = c1e m1 x + c2 e m2 x .
ii. If the auxiliary equation has repeated real roots m and m then the general solution is
y = c1e mx + c2 xe mx .
iii. If the auxiliary equation has Conjugate roots m = a ± ib then the solution is
y = e ax (c1 cos bx + c2 sin bx) .
Example 5
Solve the equation,
d2y dy
2
+ 10 + 25 y = 0
dx dx
Solution
d2y dy
Let 2
+ 10 + 25 y = 0 (1)
dx dx
The auxiliary equation m2 + 10m + 25 = 0 or (m + 5)2 has two equal roots –5, -5.
(repeated).
Hence the general solution of (1) is
y = c1e −5 x + c2 xe −5 x
Note that e −5 x and xe −5 x are independent from the Wronskian determinant.
Example 6
Solve the equation
d2y dy
4 2 − 12 + 5 y = 0
dx dx
Solution
d2y dy
Let 4 2 − 12 + 5 y = 0 (1)
dx dx
The characteristic equation of (1) is 4m2 – 12m + 5 = 0. (2)
The roots of the characteristic equation (2) are
12 ± 144 − 4(4)(5)
m=
2(4)
12 ± 64
=
8
12 ± 8
=
8
1 1
m = 2 and
2 2
5 1
x x
Hence the general solution is y = c1e 2 + c2 e 2 .
Example 7
Solve the equation,
d2y dy
2
− 4 + 13 y = 0 (1)
dx dx
Solution
d2y dy
Let 2
− 4 + 13 y = 0
dx dx
The characteristic equation of (1) is m2 – 4m + 13 = 0
4 ± 16 − 4(1)(13) 4 ± 6i
Whose roots are m = or m = or m = 2 ± 3i
2 2
Hence the general solution of (1) is y = e 2 x (c1 cos 3x + c2 sin 3 x) .
Example 8
d2y
Solve the equation + y = 0 (This is the equation concerning simple Harmonic
dx 2
motion of a particle)
Solution
d2y
Let + y=0
dx 2
The characteristic equation is
m 2 + 1 = 0 whose roots are
m = ±1 .
Hence the general solution of (1) is y = e ox ( A cos x + B sin x ) or y = A cos x + B sin x .
Example 9
Solve the initial value problem
d2y dy
2
− 6 + 25 y = 0 , y (0) = -3, y′(0) = −1
dx dx
Solution
The auxiliary equation is
m 2 − 6m + 25 = 0 whose roots are m = 3 ± 4i
Hence the general solution may be written
y = e 3 x (c1 cos 4 x + c2 sin 4 x)
using y = −3 when x = 0 , we have − 3 = c1 (1) + c2 (0) or c1 = −3
Then y = e 3 x (−3 cos 4 x + c2 sin 4 x)
and y′ = e3 x (4.3 sin 4 x + 4c2 sin 4 x) + (−3 cos 4 x + c2 sin 4 x)(3e 3 x )
using y′ = −1 hen x = 0 we have
− 1 = 3(0 + 4c2 ) + (−3 + 0)(3)
− 1 = 4c2 − 9 or c2 = 2
Hence the general solution is y = e3 x (2 sin 4 x − 3 cos 4 x ) .
Example 10
Solve the equation,
d3y d2y dy
3
+ 6 2
+ 11 − 6 y = 0 (1)
dx dx dx
Solution
The characteristic equation of (1) is
m 2 − 6m 2 + 11m − 6 = 0 (2)
using remainder theorem or factor theorem, (2) becomes (m – 1) (m – 2) (m – 3) = 0
whose roots are m = 1, m = 2, m = 3.
Hence the general solution may be written as
y = c1e x + c2 e 2 x + c3e3 x
e x , e 2 x , e 3 x is not zero (you can verify this)
Example 11
Solve the equation
d5y d4y d3y
− 2 + =0
dx 5 dx 4 dx 3
Solution
The auxiliary equation of (1) is
m 5 − 2m 4 + m 3 = 0
or m 3 (m 2 − 2m + 1) = 0
m 3 (m − 1)(m − 1) = 0
whose roots are m = 0, 0, 0, 1, 1
Hence the general solution of (1) is
y = c1e 0 x + c2 xe 0 x + c3 x 2 e 0 x + c4 e x + c5 xe x
or y = c1 + c2 x + c3 x 2 + c4 e x + c5 xe x .
Exercise 5
Solve the following second order homogeneous linear Equations (with constant
coefficients) (1 – 8)
d2y dy
1. 2
− 5 + 6y = 0
dx dx
d2y dy
2
− 8 + 16 y = 0
2. dx dx
d2y
2
+ 9y = 0
3. dx
4. ( D − 2 D + 10) y = 0
2
5. ( D + 2 D − 15) y = 0
2
6. ( D + 4 D) y = 0
3
7. ( D − 2 D + 5) y = 0
2 2
8. ( D + 25) y = 0
2
d2y dy
+ 6 + 9y = 0
, y (0) = 2, y′(0) = −3
2
10. dx dx
d2y dy
2
− 4 + 29 y = 0, y (0) = 0, y′(0) = 5
11. dx dx
d2y dy
2
+ 6 + 13 y = 0, y (0) = 3, y′(0) = −1
12. dx dx
Further Reading:
1. Differential Equations
By Frank Ayres, Ph. D
Schaum’s outlines series
Mc Graw Hill Book company
New York, Toronto, Sydney.
2. Differential Equations
By Shepley L. Ross
John Wiley and sons
New York. Toronto. Singapore
In the previous lesson, you have learnt the method of solving a second order
homogeneous linear equation with constant coefficients. Such equations contain only the
d 2 y dy
terms , and y each multiplied by a constant. Suppose the equations contain one
dx 2 dx
more term, a function of x. the additional term f(x) usually written on the right side and it
is called the nonhomogeneous term. These kinds of equations are called
nonhomogeneous equations.
For example
d2 y dy
d2y dy
2 2 + 8 + 4 y = 0 is a homogeneous equation where as 2 2 +8 + 4y = x3 + ex
dx dx dx dx
is a nonhomogeneous equation
6.3 The general form of a homogeneous linear equation of second order with
constant coefficients.
The equations
d2y dy
a0 2
+ a1 + a2 y = 0 (1)
dx dx
d2y dy
and a0 2
+ a1 + a 2 y = Q ( x ) where a0 ≠ 0 (2)
dx dx
are called respectively, the homogeneous and the nonhomogeneous equations of the
second order with constant coefficients when a0, a1, a2 are constants. The equation (2)
can also be written as,
(a0D2 + a1D + a2)y = Q(x) (3)
where a0 ≠0.
is the sum of the complementary function (solution of F(D)y = 0) and any particular
Integral, (P.I) of (1). Finding F(D)y = 0 is seen already in the previous lesson. There are
two important methods for finding the particular integral of F(D)y = Q(x)
F ( D ) y Q ( x)
Then =
F (D) F (D)
where F(D) is treated as an operator.
Q ( x)
or y= (2)
F (D)
suppose F(D) is factorisable so that
Q ( x) Q
then y = =
F ( D ) ( D − m1 )( D − m 2 )
1 1
We can operate first on Q and the result is further operated by
( D − m2 ) ( D − m1 )
Q
Let u = then (D – m2)u = Q
D − m2
du
Or − m 2 u = Q which is a linear equation. The integrating factor of the above
dx
equation is e − m2 x and the solution is
ue − m2 x
= ∫ Qe− m2 x dx
or u = em2 x ∫ Qe− m2 x dx
∫ Qdx
Q m2 x − m2 x
Thus = e e
D − m 2
Q 1
This is a linear equation whose solution is now y = = u
( D − m1 )( D − m2 ) D − m1
y = e+ m1x ∫ e− m1xudx
the method of finding P.I is illustrated in the following examples:
Example 1
Find the particular integral for the equation
d2y dy
2
− 5 + 6 y = e2 x
dx dx
Solution
d2y dy
Let 2
− 5 + 6 y = e2 x
dx dx
or (D2 – 5D + 6)y = e2x
1 e2 x 1
Now y = = u
D − 2 D − 3 D − 2
1
= u
D−2
= e + 2 x ∫ e − 2 x .udx
= e 2 x ∫ e − 2 x .e 2 x d x
= e 2 x ∫ 1dx
= e 2 x .x
2x
there is no constant for the particular integral. Hence the P.I is xe .
y = c1e3 x + c2 e 2 x + xe 2 x
Example 2
d2y dy
Solve 2
+ 5 + 6 y = e2 x
dx sx
Solution
i. The complementary function is obtained from
(D2 + 5D + 6)y = 0 (1)
auxiliary equation of (1) is
m2 + 5m + 6 = 0
or (m + 3)(m + 2) = 0 whose roots are m = -3, -2. then the
complementary function is
y = c1e-3x + c2e-2x
1
ii. The particular integral is obtained from e 2 x . Using the formula
( D + 2)( D + 3)
e2x e4x
Let u = = e − 2 x ∫ Qe 2 x dx = e − 2 x ∫ e 2 x .e 2 x dx = .x
D+2 4
Example 3
Solution
Let (D2 – 3D + 2)y = ex (1)
(D – 1)(D – 2)y = ex
ex
Now let u = = e 2 x ∫ Qe −2 x dx
D−2
= e 2 x ∫ e x .e −2 x dx
= e 2 x ∫ e − x dx
e− x
= e2 x
−1
= −e x
1 ex
= e ∫ e (−e )dx
−x
y=
x x
D − 1 ( D − 2)
= − xe x
Hence the general solution is
.y = C.F + P.I
-3x -2x x
or y = c1e + c2e – xe
Example 4
Let (D – a)(D – b)y = Q
Solution
Q
Then y=
( D − a )( D − b)
Q u
First we find u = and then find y =
D −b D−a
From ( ), u = e + bx ∫ e − bx Qdx
∫ u.dx
+ ax − ax
=e e
u
Then we find y =
D−a
Example 5
e5 x
Find the particular interval of (D – 1)(D – 2)y = .
D−2
Solution
This is of the form (D – a)(D – b)y = Q. The particular integral is
Q
y= .
( D − a )( D − b)
Q e5 x
First let us find u = =
D −b D −2
Q e5 x
u= =
D −b D −2
= e +2 x ∫ e −2 x .e5 x dx
= e 2 x ∫ e3 x dx
e2 x .e3 x e5 x
or u= =
3 3
Q 1 Q
=
( D − a)( D − b) D − a D − b
Now
u
=
D−a
= e + ax ∫ e − ax u.dx
Q 1 Q
Here =
( D − a)( D − b) D − a D − b
1
= u
D−a
= e1x ∫ e−1x .udx
e− x .e5 x
=e ∫x
dx
3
4x
x e
= e ∫ dx
3
e x .e4 x
=
4×3
e5 x
=
12
Exercise 6
Q( x)
Use = e ax ∫ e − ax Q( x)dx wherever necessary.
D−a
x +1 x2 +1 cos 6 x
4) 5) 6)
D +1 D +1 D −3
cot x e3 x
7) 8)
D2 +1 ( D + 3)( D − 2)
Solve the following equations (problems 9 – 15)
9) ( D 2 − 3D + 2) y = e 5 x
Summary
You have learnt the following from this lesson.
d2y dy
i). The equation 2
+ a1 + a2 y = Q( x) where a1 ≠ 0 and a0, a1, a2 and Q(x) are
dx dx
functions of x only is called a nonhomogeneous second order linear equation with
constant coefficients if Q(x) is not zero.
ii). The solution of a nonhomogeneous equation will have two parts namely the
complementary function yc and a particular integral yp.
Q( x)
iii). The particular integral = e ax ∫ e − ax Q( x)dx
D−a
Further Reading:
4. Differential Equations
By Frank Ayres, Ph. D
Schaum’s outlines series
Mc Graw Hill Book company
New York, Toronto, Sydney.
5. Differential Equations
By Shepley L. Ross
John Wiley and sons
New York. Toronto. Singapore