Dr. Rehan Ali Shah Differential Equation (BSI-231) For Industrial Engineering (Jalozai)
Dr. Rehan Ali Shah Differential Equation (BSI-231) For Industrial Engineering (Jalozai)
Dr. Rehan Ali Shah Differential Equation (BSI-231) For Industrial Engineering (Jalozai)
Cauchy-Euler Equations
Nonlinear Equations
CH3_2
3.6 Cauchy-Eulaer Equation
Form of Cauchy-Euler Equation
n n 1
nd y n 1 d y dy
an x n
an1x n1
a1x a0 y g ( x)
dx dx dx
Method of Solution
We try y = xm, since
k
kd y mk
ak x a x k
m ( m 1)( m 2 ) ( m k 1) x
dx k k
CH3_3
An Auxiliary Equation
(2) y c1 x m1 c2 x m2
CH2_4
Example 1
2
2 d y dy
Solve x 2
2x 4 y 0
dx dx
Solution:
We have a = 1, b = -2 , c = -4
m2 – 3m – 4 = 0, m = -1, 4,
y = c1x-1 + c2x4
CH3_5
Case 2: Repeated Real Roots
m1
Using (5) of Sec 3.2, we have y2 x ln x
Then
m1 m1
y c1x c2 x(3)ln x
CH3_6
Example 2
2
2 d y dy
Solve 4 x 2
8x y 0
dx dx
Solution:
We have a = 4, b = 8, c = 1
4m2 + 4m + 1 = 0, m = -½ , -½
y c1x 1/2 c2 x 1/2 ln x
CH3_7
Case 3: Conjugate Complex Roots
Higher-Order: multiplicity
x m1 , x m1 , x m1 (ln x) 2 , , x m1 (ln x) k 1
Case 3: Conjugate Complex Roots
m1 = + i, m2 = – i,
y = C1x( + i) + C2x( - i)
Since
xi = (eln x)i = ei ln x = cos( ln x) + i sin( ln x)
x-i = cos ( ln x) – i sin ( ln x)
Then
y = c1x cos( ln x) + c2x sin( ln x)
= x [c1 cos( ln x) + c2 sin( ln x)] (4)
CH3_8
Example 3
1
Solve 4 x y 17 y 0, y (1) 1, y ' (1)
2
2
Solution:
We have a = 4, b = 0 , c = 17
4m2 − 4m + 17 = 0, m = ½ + 2i
1/ 2
y x [c1 cos(2 ln x) c2 sin(2 ln x)]
Apply y(1) = -1, y’(1) = 0, then c1 = -1, c2 = 0,
1/2
y x cos(2 ln x)
See Fig 3.15.
CH3_9
Fig 3.15
CH3_10
Example 4
3 2
3 d y 2 d y dy
Solve x 3
5x 2
7x 8y 0
dx dx dx
Solution:
Let y = xm,
2
dy d y
mx , 2 m(m 1) x m2 ,
m1
dx dx
d3y m3
m ( m 1 )( m 2) x
dx3
Then we have xm(m + 2)(m2 + 4) = 0
m = -2, m = 2i, m = -2i
y = c1x-2 + c2 cos(2 ln x) + c3 sin(2 ln x)
CH3_11
Solution of non-homogeneous DE
Solution of non-homogeneous DE
The Method of Undetermined Coefficients
// /
ay by cy
p p p
Caution!
In addition to the form of the input function g (x ) , the educated guess for
must take into consideration the functions that make up the complementa
ry function
y
c
.
No function in the assumed y p must be a solution of the associated homogen
eous differential equation. This means that the assumed y
should
p not con
tain terms that duplicate terms in . y
c
Rule of Case 1:
CH3_19
If g x equals a sum?
Suppose that
The input function g x consists of a sum of terms of the kind listed
in the above table i.e.
g x g1 x g 2 x g m x .
The trial forms corresponding to be
g1 x , g 2 x , , g m x
.
y p1 , y p 2 , , y p m
Then, the particular solution of the given non-homogeneous
differential equation is
y p y p1 y p 2 y p m
In other words, the form of is a linear combination of all the
yp
Linearly independent functions generated by repeated differentiation
of the input function .
g (x )
Example 1
Solve the non homogenous equation by using Undetermined Coe
fficient Method.
y 4 y 8 x 2
Solution:
For complementary solution consider homogenous equation
Auxiliary equation yis 4 y 0
m2 4 0
m 2 4
m 2i
yc e0 x (C1 cos 2 x C2 sin 2 x)
For particular solution we assume
y p Ax 2 Bx C
y p 2 Ax B
y p 2 A
Substituting into the given differential equation
y p 4 y p 8x 2
2 A 4( Ax 2 Bx C ) 8 x 2
2 A 4 Ax 2 4 Bx 4C 8 x 2
Equating the coefficients of and constant we have
2
x ,x
x 2 : 4A 8
x : 4B 0
Constant:
4C 0we get the values of undetermined coefficients
2 Aequations
Solving these
A 2, B 0, C 1
Thus
yp 2x2 1
Hence the general solution is
y yc y p
y C1 cos 2 x C2 sin 2 x 2 x 2 1
Example 2
Solve the non homogenous equation by using Undetermined
Coefficient Method.
y y sin x
Solution:
Duplication between y p and y c ?
yp
is
y p y p y p y pn
1 2
If a y pi contain terms that duplicate terms in y c , then y pi that must
be multiplied with x n , n being the least positive integer that elimina
tes the duplication.
Example 3
Find a particular solution of the following non-homogeneous differential
Equation
y // 5 y / 4 y 8e x
Solution:
To find y , we solve the associated homogeneous differential equation
c
y //
5 y /
4 y so
We put y e mx in the given equation, 0 that the auxiliary equation is
m2 5m4 0 m1, 4
x
Since g ( x) 8e
Therefore y p Ae x
Substituting in the given non-homogeneous differential equation, we
obtain
Ae x 5 Ae x 4 Ae x 8e x
or
0 8e x
Clearly we have made a wrong assumption for y p , as we did not
remove the duplication.
Since Ae is present in yc .Therefore, it is a solution of the associated
x
y p Axe x
We notice that there is no duplication between and this new
yc
Assumption for .
yp
Now
y p / Axe x Ae x , y p // Axe x 2 Ae x
Substituting in the given differential equation, we obtain
3 Ae x 8e x A 8 3 .
So that a particular solution of the given equation is given by
y p (8 3)e x
Hence, the general solution of the given equation is
y c c1e x c 2 e 4 x (8 / 3) x e x
Example 4
Find a particular solution of
y // 2 y / y e x
Solution:
Consider the associated homogeneous equation
Put y // 2 y / y 0
y e mx
Then the auxiliary equation is
m 2 2m 1 (m 1) 2 0
m 1, 1
y p Ae x
This assumption fails because of duplication between and y .
yc p
We multiply with .
x
Therefore, we now assume
y p Axe x
However, the duplication is still there. Therefore, we again multiply with
x and assume
y p Ax 2 e x
y // y 4 x 10 sin x,
Solution y( ) 0, y / ( ) 2
Associated homogeneous DE
y // y 0
Put
y e mx
Then the auxiliary equation is
m2 1 0 m i
The roots of the auxiliary equation are complex. Therefore, the
complementary function is
y c c1 cos x c 2 sin x
Since
g ( x) 4 x 10 sin x g1 ( x) g 2 ( x)
Therefore, we assume that
y p1 Ax B , y p2 C cosx D sin x
So that
y p Ax B C cos x D sin x
Clearly, there is duplication of the functions cos x and sin x .
To remove this duplication we multiply y p 2 with x . Therefore,
we assume that
y p Ax B C x cos x Dx sin x.
So that
A 4, B 0, C 5, D 0
Thus
y p 4 x 5 x cos x
Hence the general solution of the differential equation is
Therefore
y / ( ) 2 9 sin c 2 cos 4 5 sin 5 cos 2
c 2 7.
Hence the solution of the initial value problem is
Example 6
Solve the differential equation
y // 6 y / 9 y 6 x 2 2 12e 3 x
Solution:
The associated homogeneous differential equation is
y // 6 y / 9 y 0
Put
y e mx
m 2 6m 9 0 m 3, 3
Thus the complementary function is
y c c1e 3 x c 2 xe 3 x
Since
g ( x) ( x 2 2) 12e 3 x g1 ( x) g 2 ( x)
We assume that
Corresponding to:
g1 ( x) x 2 2 y p1 Ax 2 Bx C
Corresponding to: g 2 ( x) 12e 3x y p 2 De 3 x
y p Ax 2 Bx C Dx 2 e 3 x
Then
y p 2 Ax B 2 Dxe3 x 3Dx 2 e 3 x
And
y p 2 A 2 De 3 x 6 Dxe 3 x 6 Dxe3 x 9 Dx 2 e 3 x
Substituting into the given differential equation and collecting like
term, we obtain
y p // 6 y p / y p 9 Ax 2 (12 A 9 B ) x 2 A 6 B 9C 2 De 3 x 6 x 2 2 12e 3 x
A 2 3, B 8 9 , C 2 3 and D -6
Thus,
2 8 2
.
y p x 2 x 6 x 2 e3x
Hence, the general solution
3 9 3
3x 2 2 8 2
y yc yp c1e c2 xe x x 6x2e3x .
3x
3 9 3
Higher –Order Equation
The method of undetermined coefficients can also be used for higher
order equations of the form
dny d n 1 y dy
an a n 1 ............ a1 a0 y g ( x)
dx n dx n 1 dx
y /// y // 0
Put
y e mx , y me mx , y m 2 e mx
y c c1 c 2 x c3 e x
Since
g ( x) e x cos x
Therefore, we assume that
y p Ae x cos x Be x sin x
Clearly, there is no duplication of terms between and .
yc yp
Example 8
CH3_44
Example 8 (2)
Then
2 A 2 , 8 A 2 B 3 , 2 A 4 B 2C 6
A 1, B 5/2, C 9
2 5
yp x x 9
2
CH3_45
Example 9
CH3_46
Example 10
Solve 6 xe2 x
y"2 y '3 y 4 x 5 (3)
Solution:
x 3x
We can find yc c1e c2e
Let y p Ax B Cxe2 x Ee2 x
After substitution,
2x 2x
3 Ax 2 A 3B 3Cxe (2C 3E )e
2x
4 x 5 6 xe
Then
A 4/3, B 23/9, C 2, E 4/3
4 23 2x 4 2x
y p x 2 xe e
3 9 3
x 3x 4 23 4 2x
y c1e c2e x 2 x e
3 9 3 CH3_47
Example 11
CH3_48
Example 12
CH3_49
Example 13
Solution: 2
For 3x2: y p1 Ax Bx C
For 7xe :
6x y p3 (Gx H )e6 x
No term in y p y p1 yduplicates
p2 y p3 a term in yc
CH3_50
Example 14
y p1 y p2
CH3_52
Example 16
CH3_53
Example 17
CH3_54
3.7 Nonlinear Equations
2
Example 1 Solve y " 2 x ( y ' )
Solution:
This nonlinear equation misses y term. Let u(x) = y’,
then du/dx = y”,
duor 2 du
2xu 2
2 x dx
dx u
1 (This
2 2
form is just for convenience)
u x c1
dy 1
Since u = 1/y’,
-1
2 2
dx x c1
dx 1 1 x
So, y 2 2 tan c2
x c1 c1 c1
CH3_55
Example 2
Assume
y x y y 2 , y(1)
(0) 1 , y(0) 1
exists. If we further assume y(x) possesses a Taylor se
ries centered at 0:
y ( x) (2)
y(0) y(0) 2 y(0) 3 y ( 4) (0) 4 y (5) (0) 5
y ( 0) x x x x x
1! 2! 3! 4! 5!
Remember that y(0) = -1, y’(0) = 1. From the original
DE, y”(0) = 0 + y(0) – y(0)2 = −2.
Then d
y( x) ( x y(3)
y 2 ) 1 y 2 yy
dx
CH3_57
Example 3 (2)
d
y ( x) (1 y 2 yy(4)
( 4)
) y 2 yy 2( y)2
dx
d
y ( x) ( y 2 yy 2( y(5)
( 5)
)2 ) y 2 yy 6 yy
dx
and so on. So we can use the same method to obtain
y(3)(0) = 4, y(4)(0) = −8, ……
Then
2 2 3 1 4 1 5
y ( x) 1 x x x x x
3 3 5
CH3_58