O.D.E 1 Notes
O.D.E 1 Notes
O.D.E 1 Notes
E 1
NOTES
LESSON 1
Differential Equations and Their Solutions
1.1 Introduction
The subject of differential equations constitutes a very important and useful branch of
modern mathematics. In this lesson we shall consider some definition of ordinary
differential equations.
1
∂ ∂ 3
Then (3 y 2 x 3 ) = 3 y 2 x = 9x2 y 2
∂x ∂x
∂ ∂
(7 y 2 sin x) = 7 sin x y 2 = 14 y sin x
∂y ∂x
d2y d dy
=
dx 2
dx dx
d3y d d 2 y
=
dx 3 dx dx 2
dny
similarly is defined.
dx n
d3y d2y dy
7 3
+ 8 2
+9 + 8y = ex
dx dx dx
dy d 2 y d 3 y d3y
contains, , , the highest differential coefficient is . Hence the order of
dx dx 2 dx 3 dx 3
the equation is three.
10
d 2 y dy
Consider 3 2 + + 8y = 0
dx dx
d2y
The highest differential coefficient present in this equation is . Hence the order of
dx 2
the equation is two.
2
For example consider the equation,
10
d2y
7
d3y dy
+ 2 + 3 + 8 y = 0
dx
3
dx dx
d3y d3y
The highest order present in this equation is . The degree of this is one. Hence
dx 3 dx 3
the degree of the differential equation is just one.
Example 1
Consider,
5 11
d 3 y d 2 y dy
20
3 + 2 + + y = x
dx dx dx
d3y
Here the highest differential coefficient is or the order of the equation is 3. The
dx 3
degree of this highest differential coefficient is five and hence the degree of this equation
is five.
Example 2
3
d 2 y 2 dy
Consider, 2 + 5 + 3 y = 0
dx dx
d2y
The highest differential coefficient present here is . First it should be free from
dx 2
radicals and fractional exponents.
3
d 2 y 2 dy
2 = −5 − 3 y
dx dx
3
d 2 y dy
2
2 = − 5 − 3 y
dx dx
Then the degree of the equation is three.
Consider,
2
dy
3 + = 2x
dx
2
dy
Removing the radical it is written as 3 + = 4 x 2 .
dx
Hence the degree of the equation is two.
3
The solution of a differential equation is an equation between x and y, which will satisfy
the differential equation.
Example 3
2 d2y dy
a) Show that y = x is a solution of the equation, 3 2 + 5 = 10x + 6
dx dx
b) Check whether y = x2 + c where c is any constant is also a solution of the equation.
Solution
Let y = x2 (1)
dy
= 2x (2)
dx
d2y
=2 (3)
dx 2
In general, the solution of an nth order differential equation will have n arbitrary
constants. For example the general solution of a second order equation will have two
arbitrary constants. When we give particular values for these constants we get particular
solutions of the equation.
4
Example 4
dy
Consider the equation = 3x2
dx
dy = 3x2 dx
integrating both sides,
∫ dy = 3∫ x dx
2
y = x3 + c
The general solution of the equation is a family of curves. When c takes the value, say
c = 2, y = x3 + 2 is a particular curve of the family and it is called a particular solution of
the equation
Example 5
The scientific law states that the acceleration of a particle during upward motion under
gravity is -g. Write down this law as a differential equation.
Solution
dx
Velocity of a particle is
dt
d 2x
Acceleration of the particle is where x is distance traveled by the particle at time t
dt 2
from a fixed origin.
d 2x
Then 2 = -g is the required differential equation.
dt
Can you account for the minus sign on the right hand side?
Example 6
Form the differential equation from
y = cx2 + sin x by eliminating the constant c.
Solution
The expression
y = cx2 + sin x
contains only one constant c. Then we can get differential equation of first order by
differentiating the expression once and eliminating the constant c.
Let y = cx2 + sin x (1)
dy
= 2cx + cos x (2)
dx
To eliminate one constant we need two equations (In general to eliminate n constants we
need n + 1 equations).
5
From (1) we can find c and the value of c is substituted in (2)
From (1), cx2 = y – sin x
y − sin x
c=
x2
putting this value of c in (2)
dy y − sin x
= 2 x + cos x
x
2
dx
dy 2
= ( y − sin x) + cos x is the required differential equation whose general solution is,
dx x
y = cx2 + sin x
Example 7
Find the differential equation whose solution is y = A cos 8x + B sin 8x.
Solution
To eliminate two constants A and B we need three equations. In addition to the given
equation we need two more. These two equations are obtained by differentiating the
given expression twice.
Let y = A cos 8x + B sin 8x (1)
dy
y′ = = −8 A sin 8 x + 8 B cos 8 x (2)
dx
d2y
y′′ = 2 = −64 A cos 8 x − 64 B sin 8 x (3)
dx
d2y
= −64( A cos 8 x + B sin 8 x)
dx 2
d2y
= −64 y using (1) in (3)
dx 2
Example 8
dy
Solve the equation, = sin x.
dx
Solution
Now dy = sin x dx
Integrating both sides
6
∫ dy = ∫ sin xdx
then, y = - cos x + c
y + cos x = c is the required general solution of the equation.
Example 9
The differentia equation of a family of circles is given by,
dy x
+ =0
dx y
a) Find the equation to the family of circles.
b) If one of the family passes thro the point (1, 2) find its equation.
Solution
dy x
Let + =0
dx y
dy x
=- =0
dx y
y dy = - x dx
x = 1, y = 2 should satisfy
x2 + y2 = A
12 + 22 = A or A = 5
Hence the particular solution or the equation of the particular circle is x2 + y2 = 5
Exercise 1
1. Find the order and degree of the following differential equations.
3
d 2 y dy
a) + 7 + 8 y 2 = sin x
dx
2
dx
7
3
d2y
8
dy
b) 2 + 10 + 9 y = cos x
dx dx
1
d 3 y 2 dy
2
c) 3 + + y = 0
dx dx
3
dy dy
d) + 4 + 6 y = e x
dx dx
3
dy d2y
e) − 3 2 + 7 y = e 2 x
dx dx
2
d 2 v dv dv
f) + x + v = 0
dx 2 dx dx
3. Find the second order differential equation by eliminating the constants A and B .
a) y = Ax + B
b) y = Aex + B
4. Show that the differential equation associated with the primitive y = Ax2 + Bx + C is
d3y
=0
dx 3
5. Obtain the differential equation associated with the primitive y = Ae2x + Bex + c
x d 2 y dy
6. Show that the differential equation associated with y = Ae + B is = .
dx 2 dx
7. Find
∂
a) (3x 2 + 5 y 2 + 8 xy )
∂x
∂
b) (3x 2 + 5 y 2 + 8 xy )
∂y
∂2
c) (8 x 3 + 9 x 2 − 7 y 2 )
∂x 2
8
∂2
d) (8 x 3 + 9 x 2 − 7 y 2 )
∂y 2
Summary
Further Reading
1. Differential Equations
By Shepley L. Ross
John Wiley & sons
New York Toronto. Singapore.
3. Differential equations
By Dr. D. Sengottaiyan
Oxford publications
London Nairobi.
9
LESSON 2
Equations of First order – Variables Separable and Homogeneous Equations
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.
10
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,
11
e ln (1+ y ) = e ln A(1+ x )
2 2
For example
f ( x, y ) =
xy
x + y2
2
f (kx, ky ) = 2 2
kx.ky
k x + k 2 y2
k 2 xy
= 2 2
k x + y 2
xy
=
x + y2
2
= f ( x, y )
Here f (kx, ky ) = k 0 2 = f ( x, y ) . Hence 2
xy xy
is a homogeneous function of
x +y 2
x + y2
degree 0.
12
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
a. Let f ( x, y ) =
xy
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
13
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
14
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
( )
ln ( Ax ) = − ln 1 − 2v 3 (using the substitution u = 1 – 2v3)
1
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.
15
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.
16
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
2h + 3k − 5 = 0
(2)
17
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
18
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
19
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
3v − 3 4
1
= ln(3v − 2v − 1) − ln
2 2
3v + 1
3
1
− 4
ln ( AX ) = ln
3v 3 2
÷ (3v 2
− 2v − 1)
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
20
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
15. (x + y ) = x + y − 2
dy
dx
dy 2 x + 3 y − 8
16. =
dx 5 x + y − 7
21
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
22
LESSON 3
First Order Exact Equations and Integrating Factors
In this lesson you will learn to solve a particular type of first order equation called an
exact differential equation.
∂M ∂N
=
∂y ∂x
23
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
24
∂
= 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)
25
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
3x − ( 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 = ∫ (3x 2 y − 6 x)∂x
= x 3 y − 3x 2 + φ ( y ) (3)
∂F
From (2) =N
∂y
Hence [
∂ 3
∂y
] ( )
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 − 3 x 2 + y 2 and the solution is F = constant
Hence the required solution is
x 3 y − 3x 2 + y 2 = c
26
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.
27
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 + 3 x 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 + 3 x 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
28
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
29
∂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
30
9. a). Show that the equation
dy
2 x ln x + y = 0 is not exact
dx
y
b). Prove that is an integrating factor for the equation.
x
c). Solve the above equation in (a)
10. Show that the equation
dy
( )
e y sin x + 1 + e y cos x = 0
dx
is exact and hence solve the equation
11. Show that the equation
( )
y 2 − x 2 dy + 2 xydx = 0
is exact and solve the equation.
12. Show that
( )
y 4 + 2 y 2 − x 3 + 5 x 2 y − 21xy 2
dy
dx
( )
+ x 3 − 3x 2 y + 5 xy 2 − 7 y 3 = 0
is exact and solve the 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.
31
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
32
Multiply each tern of (1) by e ∫
Pdx
Then e ∫ + e ∫ Py = Qe ∫
Pdx dy 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
33
1
∫ = ∫ x dx = ln x
Pdx
Step 1:
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
34
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
1
y (1 + x 2 ) = ∫ (1 + x 2 )dx
(1 + x 2 ) 2
1
y (1 + x 2 ) = ∫ dx
1+ x2
y (1 + x2) = tan-1 x + c
Hence y =
1
1+ x2
( )
tan −1 x + c is the required solution.
35
Example 4
dv
Solve − y = 4 y5
dx
This is Bernoulli equation where n = 5. Multiply each term by y-5
dy
y −5 − y. y −5 = 4 (1)
dx
put v = y − ( n −1) = y −4 (2)
dv d − 4
= y
dx dx
d − 4 dy
= y
dy dx
dy
= − 4 y −5
dx
dy 1 dv
Therefore y −5 = (3)
dx − 4 dx
Substitute (2) and (3) in (1).
1 dv
−v = 4
− 4 dx
dv
+ 4v = −16
dx
This is of the form
dy
+ py = Q where p = 4 and Q = -16
dx
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
36
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
37
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
38
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
+ y=
5.
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
39
13. (x − 2)
dy
= 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.
40
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
41
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
42
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
43
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
44
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 .
45
consider the equation
d2y dy
a0 2 + a1 + a2 y = 0 (1)
dx dx
The characteristic equation of (1) is
a0 m 2 + a1m + a2 = 0 (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 .
46
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
47
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
48
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
49
Microsoft Equation
3.0
50
LESSON 6
Second Order Nonhomogeneous Linear Equations with
Constant Coefficients
6.1 Introduction
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.
51
F(D)y = (a0D2 + a1D + a2)y = Q(x) (1)
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
52
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
53
= e3x ∫ e − x dx
= −e3xe− x
= 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
54
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
55
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
e 2 x .e3 x e5 x
or u= =
3 3
56
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)
57
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
58
Lesson 7
Determination of particular integrals using short methods
7.1 Introduction
In the previous lesson, you have found the particular integrals for non-homogeneous
linear equations with constant coefficients of the form
d2y dy
2
+ a1 + a2 y = Q (1)
dx dx
or ( )
a0 D 2 + a1 D + a2 y = Q
or f(D)y = Q
where f(D) = a0 D 2 + a1 D + a2
i. e ax
ii. sin (ax + b) and cos (ax + b)
iii. xn
iv. eaxu when u is a function of x.
v. xu when u is a function of x.
Theorem 1
e ax e ax
= if f (a ) ≠ 0
f ( D) f (a)
Proof
First we shall show that
59
i. f ( D )e ax = f (a)e ax if y = e ax
Let f(D) = a0 D 2 + a1 D + a2
d ax
if y = e ax , Dy = e = ae ax
dx
d2
D 2 y = 2 e ax = a 2 e ax
dx
( ) (
f (D ) y = a 0 a 2 e ax + a1 ae ax + a 2 e ax )
(
= a0 a 2 + a1a + a2 e ax )
f (D )e ax = f (a )e ax
or f(D) = f(a)
ax
or f(D)y = e (2)
e ax
y= [Dividing by f(D)]
f (D )
e ax
y= if f (a) ≠ 0
f (a)
Example 1
Solution
2 4x
Let (D – 5D + 6)y = e
60
Or (m – 3)(m – 2) = 0
Then m1 = 3 and m2 = 2
Example 2
Solve (D + 2)(D + 3)(D – 4)y = e5x
Solution
Let (D + 2)(D + 3)(D – 4)y = e5x (1)
The characteristic equation of (1) is (m + 2)(m + 3)(m – 4) = 0
Solution
Let (D2 – 5D + 6)y = e3x
Or (D – 3)(D – 2)y = e3x
61
The characteristic equation is (D – 3)(D – 2) = 0 whose roots are m1 = 3, m2 = 2.
Example 4
Solve (D – 2)2y = 5e3x + 4e2x
Solution
The characteristic equation is (m – 2)2 = 0. Hence m1 = 2 and m2 = 2 (repeated)
5e3 x + 4e 2 x
A particular integral is y =
(D − 2)2
One particular integral corresponding to 5e3x is given by
62
5e3x 5e3x
y1 = =
(D − 2)2 (3− 2)2
5e3x
= 2
1
= 5e3x
=
1
D−2
[
e 2 x .4∫ dx]
=
1
D−2
[ ]
4 xe 2 x
=
4
D−2
[ ]
xe 2 x
= 4.e 2 x ∫ e − 2 x .xe 2 x dx
= 4e 2 x ∫ xdx
x2
= 4e 2 x .
2
= 2 x 2e2 x
Formula
e ax e ax x r e ax
If = =
f ( D) (D − a )r r!
4e 2 x 4 x 2 ax
Hence = e
( D − 2) 2 2!
63
Example 5
Solve the equation (D – 1)(D + 3)(D – 5)y = cosh x
Solution
e x + e− x
Let (D – 1)(D + 3)(D – 5)y =
2
The complementary function is y = c1e x + c2 e −3 x + c3e5 x
ex
A particular integral corresponding to is given by
2
ex
y=
2( D − 1)( D + 3)( D − 5)
1 ex
=
2( D − 1) (1 + 3)(1 − 5)
1 ex
=
2( D − 1) − 16
1 x −x x
− 32 ∫
= e e .e dx
1
= − xe x
32
e− x
The particular integral corresponding to is given by
2
e− x
y=
2( D − 1)( D + 3)( D − 5)
e− x
=
2(−1 − 1)(−1 + 3)(−1 − 5)
e−x
=
48
Hence the general solution of the equation is
e− x 1 x
y = c1e x + c2e − 3 x + c3e5 x + − xe
48 32
64
or (a0D2 + a1D + a2)y = sin(ax + b)
or f(D)y = sin (ax + b)
sin(ax + b) sin( ax + b)
is = if f (−a 2 ) ≠ 0
f ( D) f (−a 2 )
(or replace D by –a2)
2
Proof
Suppose y = sin(ax + b)
d2y
D = 2 = −a 2 sin( ax + b)
2
dx
Then f(D2) = f(-a2)sin (ax + b)
1 1
sin( ax + b) = sin(ax + b) if f(-a2) = 0
Hence
( )
f D 2
(
f − a2 )
Note that D2 is replaced by –a2.
Example 6
Solve (D2 + 9)y = sin 5x
A particular integral is
sin 5 x sin 5 x
yp = = 2
( )
f D2 D +9
sin 5 x
=
− (5) + 9
2
sin 5 x
=
− 16
1
Hence the general solution is y = c1 cos 3x + c2 sin 3x − sin 5 x
16
Example 7
Solve the equation (D2 + 3D – 10)y = sin 2x
65
Solution
Let (D2 + 3D – 10)y = sin 2x
The characteristic equation is (m2 + 3D – 10) = 0 or (m – 2)(m + 5) = 0, Hence m1 = 2
and m2 = -5
3
14
D − sin 2 x
=
1 3
3 − 4 − 196
9
9 d 14
= sin 2 x + sin 2 x
3(− 36 − 196 ) dx 3
3 14
= 2 cos 2 x + sin 2 x
− 232 3
3 7
= cos 2 x − sin 2 x
− 116 − 116
66
is now
xn
= [ f ( D)] x n
−1
y=
f ( D)
[
= a2 + a1 D + a0 D 2 ]−1
xn
−1
−1 a1 D a0 D 2 n
= a2 1 + + x
a2 a2
−1
−1 a1 D a0 D 2 n
= a2 1 + + x
2 a a 2
Example 8
Solve (2D2 + 2D + 3)y = x2
Solution
Let (D2 + D + 3)y = x2
67
2D 2D 2
+
1 2D 2D 32
3
− ... x 2
= 1 − +
+
3 3 3 2!
2D 2
1 2D 2D 2
= 1 − − + 3 + ... x 2
3 3 3 2!
1 2D 2D 2 4D 2
= 1 − − + + ... x 2
3 3 3 18
1 2 dx 2 2 dx 2
= x2 − . −
3 3 dx 27 dx
1 2 2
= x 2 − .2 x − (2)
3 3 27
1 4 4
= x2 − x − .
3 9 27
the general solution is
− x 4
1
5 5 1 2 4
y = e 2 c1 cos + c2 sin + x − x −
2 2 3 9 27
Proof
Suppose y = e ax u
du
Dy = ae ax u + = e ax
dx
= e (au + Du )
ax
= e ax ( D + a )u
D 2 y = ae ax ( D + a)u + e ax D( D + a )u
68
= e ax ( D + a) 2 u
( D)e ax u = e ax ( D + a) 2 u
Let v = f (D + a )u then u =
v
F (D + a )
v
Hence f ( D)e ax . = e ax v
f (D + a )
1 ax 1 1
Then e v= f ( D)e ax . v
f (D ) f (D ) f (D + a )
e ax
=
F (D + a )
Example 9
Solve (D – 4)y = e3xx2
Solution
1 ax 1
We use the formula e u = e ax u for finding a particular integral. The
f (D ) f (D + a )
complementary function is y = c1e 2 x + c2 e −2 x (you work out)
x2
=e 2
3x
D + 6D + 5
3x 1 x2
=e
6D D 2
51 + +
5 5
−1
e3 x 6 D D 2 2
= 1 + + x
5 5 5
69
6 D 31 2 2
e3 x
= 1 − 5 + 25 D x
5
e3 x 2 6 31
= x − .2 x + .2
5 5 25
x 2 12 x 62
= e3 x − +
5 25 125
x 2 12 x 62
The general solution is y = c1e 2 x + c2 e − 2 x + e 3 x − +
5 25 125
1 1
or xv = f ( D).x. v − f ′( D) v
f ( D) f ( D)
xu 1 1 1
or = x. u− f ′( D). u
f ( D) f ( D) f ( D) f ( D)
1 f ′( D)
=x u− u
f ( D) [ f ( D)]2
70
Theorem 5
The particular integral of ( ao D 2 + a1 D + a2 ) y = xu or f (D) = xu (where u is a
xu 1 f ′( D)
function of x) is y = = x. u− u
f ( D) f ( D) [ f ( D)]2
Example 10
Solve (D2 – 1)y = xe3x.
Solution
Let (D2 – 1)y = x.e3x (1)
e3 x e3 x
= x. − 2D
8 64
=x
e3 x 2
−
8 64
(
3e 3 x )
xe3 x 3 3 x
−x
Hence the general solution is y1 = c1e + c2 e +
x
− e
8 32
Exercise 7
Solve the following equations:
1. (D2 + D + 1)y = e2x
2. (D2 – 1)y = ex
3. (D4 – 1)y = sin 2x
4. (D2 + 4D + 4) = 2sin 2x ( you may use: 2sin 2x = e2x – e-2x)
5. (D2 + 4)y = cos 2x + cos 4x
71
6. (D2 – 1)y = x2
d2y dy
7. 2
− 2 + 3 y = cos x + x 2
dx dx
2
d y
8. 2
+ y = e − x + cos x + x 3
dx
9. (D2 – 2D + 1)y = x2e3x
d2y
10. + 2 y = x 2 e 3 x + e x cos 2 x
dx 2
d2y
11. 2
− y = x 2 cos x
dx
d2y dy
12. 2
− 2 + y = x sin x
dx dx
Summary
You have learnt the following from this lesson.
Further Reading
1. Differential Equations
By Frank Ayres J.R Ph.D
Schaum’s outline series
McGraw – Hill Book Company
New Yolk. Toronto – Sydney
2. Differential equations
By Dr. D. Sengottaiyan Ph.D
Oxford publications
Harrow – London-Nairobi.
72
LESSON 8
Second Order Equations with Variable Coefficients
8.1 Introduction
in the previous lessons you have learnt various methods of solving second order
differential equations with constant coefficients. In this lesson you will learn different
methods of solving the second order equations with variable coefficients.
a1 a f ( x)
(where = P, 2 = Q, and = R are functions of x only) is called a second order
a0 a0 a0
linear differential equation with variable coefficients.
Theorem
d2y dy
Let 2
+ P + Qy = R (1)
dx dx
Where P, Q, R are functions of x be in standard form (coefficients of y′′ is unity).
2
dz
Choosing Q = (2)
dx
The equation is transformed into linear equation with constant coefficients of the form
d2y dy
2
+ P1 + R1
dx dx
73
d 2z dz
+P
where P1 = dx
2
dx , Q = Q and R = R (3)
2 1 2 1 2
dz dz dz
dx dx dx
Proof
d2y dy
Let 2
+ P + Qy = R (1)
dx dx
74
or z = ∫ ( )
k f ( x) dx is the Transformation.
The method of solving a second order equation with variable coefficients is illustrated in
the following examples.
Example 1
d 2 y dy
Solve the equation x 2 − + 4 x 3 y = x 5
dx dx
Solution
Let xy′′ − y′ + 4 x 3 y = x 5 .
d 2 y 1 dy
The standard form of (1) is − + 4x2 y = x4
dx 2 x dx
1
Here P = - , Q = 4x2 and R = x4.
x
2
dz dz
Let = Q or = 4x2
dx dx
Then dz = 2x dx and the transformation is z = x2 (we need a relation between s and x and
we don’t need constant).
d2y dy
Now using this transformation the equation becomes, 2
+ P1 + Q1 y = R1
dz dz
2
d z dz 2 + − 1 .2 x
+P
Where P1 = dx 2
dx = x
=0
2
dz 4x2
dx
4x2
Q
Q1 = 2
= 2 =1
dz 4x
dx
R x4 x2 z
R1 = 2
= 2
= or
dz 4x 4 4
dx
d2y dy d2y z
Then the equation to 2
+ P1 + Q1 y = R is connected to 2
+0+ y = or
dz dz dz 4
( ) z
D2 +1 y = .
4
75
The characteristic equation is m2 + 1 = 0 whose roots are m1 = I, m2 = - i. The
complementary function is y = A cos z + B sin z
The particular integral is
z
y=
(
4 D2 +1)
1 z
y= 2
D +1 4
1
(
= 1+ D2 z
4
) −1
= (1 − .......)z ]
1
4
z
=
4
Hence the general solution is
z
y = c1 cos z + c2 sin z +
4
using z = x2 we have,
x2
y = c1 cos x2 + c2 sin x2 + is general solution.
4
Theorem
Let the second order equation be
d2y dy
2
+ P + Qy = R (1)
dx dx
can be reduced to the form
d 2v
+ sv = T (2)
dx 2
1 1 dp
where S = Q − P 2 − (3)
4 2 dx
R
and T = .
u
Proof
Let the complete solution of (1) be y = uv where u and v are functions of x.
Differentiating y = uv twice we have
dy dv du
=u +v (6)
dx dx dx
d 2 y d 2u du dv d 2v
= v + 2 + u (7)
dx 2 dx 2 dx dx dx 2
76
d2y du
Substituting 2
and in (1) we have
dx dx
d 2v du dv d 2u du
u 2 + Pu + 2 + v 2 + P + Qu = R
dx dx dx dx dx
d 2v 2 du dv 1 d 2 u du R
or + P + + 2 + P + Qu v =
u dx dx u dx
2
dx dx u
dv
to remove first derivative from (8) we take,
dx
2 du
P+ =0
u dx
du 1
or = − Pdx (9)
u 2
1
or ln u = − ∫ Pdx
2
1
− ∫ Pdx
or u = e 2
Example 2
d 2 y 2 dy 2
Solve − + 4 + 2 y = 0
dx 2
x dx x
2 2
Here P = − , Q = 4 + 2 , R = 0
x x
1 1 2
The substitution is now − ∫ Pdx = − ∫ − dx
2 2 x
1
= ∫ dx
x
= ln x
77
1
− ∫ 2Pdx
u=e = e ln x = x
p 2 1 dp
S =Q− −
4 2 dx
2 1 4 1 d −2
= 4+ 2 − 2 −
x 4 x 2 dx x
2 1 1
= 4+ 2 − 2 − 2
x x x
=4
R
T= =0
u
d 2v d 2v
+ SV = T gives + 4v = 0
dx 2 dx 2
Example
d2y dy
− 4 x + (4 x 2 − 3) y = e x
2
Solve 2
dx dx
Here P = -4x, Q = 4x2 – 3, R = e x
2
1 −1 x2
Then − ∫ Pdx = ∫ − 4 x dx = 2 = x2
2 2 2
1
− ∫ Pdx
u=e = ex
2
2
P 2 1 dP
S =Q− −
4 2 dx
16 x 2 1 d
= 4x2 − 3 − − (− 4 x )
4 2 dx
= −1
2
R ex
R = = x2 = 1
u e
2
d v
+ Tv = S becomes
dx 2
78
d 2v
−v =1
dx 2
The auxiliary equation is
m2 – 1 = 0, m = 1, -1
The complementary function is
v = c1e x + c2 e − x
1 1e 0 x 1
P.I: y = = = = −1
D −1 D −1 0 −1
2 2
v = CF + PI = c1e x + c2 e − x − 1
The complete solution is y = uv
y = e x (c1e x + c2 e − x − 1)
2
Exercise
d 2 y 2 dy 2
1) Solve − + 25 + 2 y = 0
dx 2
x dx x
2
d y 2 dy
2
+ − 16 y = 0
2) Solve dx x dx
3) Solve y′′ + 4 xy′ + 4 x y = 0
2
1
− x2
4) Solve y′′ + 2 xy′ + ( x + 5) y = xe
2 2
2
dx dx
7) Solve y′′ − 2 tan xy′ + 5 y = 0
d2y dy
− 4 x + (4 x 2 − 3) y = e x
2
8) Solve 2
dx dx
2
y′′ − y′ + 9 y = 0
9) Solve x
2
10) Solve y′′ − y′ − 25 y = 0
x
Summary
You have learnt the following from this lesson
79
1. The general form of the second order linear equation with variable coefficients is
d2y dy
given by 2
+ P + Qy = R
dx dx
Where P, Q, R are functions of x.
2. The equation y′′ + Py′ + Qy = R can be transformed into an equation of constant
2
dz
coefficients by choosing Q = and solved.
dx
d 2v
3. The equation y′′ + Py′ + Qy = R can be transformed into an equation + Sv = I in
dx 2
which the first derivative is not present, using the transformation: y = uv where
1
− ∫ Pdx
2
u= e
Further Reading
1. Differential Equations
By Frank Ayres
Schaum’s outline series
McGraw – Hill Book Company
New York, Toronto, Sydney.
80