3 Copy 2
3 Copy 2
TChapter one
Ordinary Differential Equations II
Second order linear differential equations with variable coefficients Consider a second
order equation
y ' '+α (x ) y '+ β (x ) y=γ (x), (1)
where α , β and γ are functions of x .
If y=u (x) is a solution of the corresponding homogeneous equation (1), that is,
y ' ' +α (x ) y '+ β (x ) y=0,
Then
u ' '(x )+α (x)u '(x )+ β(x )u (x)=0. (2)
Now,
Let y (x )=u(x )v (x) is a solution of the differential equation (1), where v (x) is a function
of x , so y '=u ' v +uv ' and y ' '=u' ' v +2 u' v '+uv ' ' , and substitutes in equation(1), we have
u ' ' v +2 u ' v '+uv ' ' ,+ α (x )(u ' v +uv ')+ β (x)uv=γ (x)
⇒(u ' '+α (x )u '+ β (x )u)v +2 u ' v '+uv ' '+α (x )uv '=γ (x ).
ODE Page 1
Ordinary Differential Equations II 2024-2025
which is a first order linear differential equation in variable p and x . Then we have the
following theorem.
Theorem: If y=u (x) is a solution of a second order homogeneous differential equation
y ' ' +α (x ) y '+ β (x ) y=0, then, the substitution y (x )=u(x )v ( x) reduces the differential
equation y ' ' +α (x ) y '+ β (x ) y=γ (x), to a linear differential equation of first order.
I =e =e x
=e =e ln x + x =x 2 e x
−∫ P ( x ) dx
(∫ e∫ Q ( x ) dx +C ) ⇒ (∫ x 2 e x 5 dx +C )=x−2 e− x ( 5∫ x 2 e x dx+C )
3 3 3 3
P ( x ) dx −2 − x
p=e p=x e
( 53 e +C )
3
x3
¿ x−2 e−x
( )
3
5+3 C e− x
⇒ p=
3 x2
ODE Page 2
Ordinary Differential Equations II 2024-2025
3
5+ 3C e−x
Since, ¿ v ' , then v=∫ p dx=∫ dx . Thus, the general solution is
3 x2
How one can find the particular solution of a homogeneous differential equation with
variable coefficients Consider a second order differential equation of the form
y ' ' +α (x ) y '+ β (x ) y=0 (1)
To find a particular solution of equation (1), there are several cases:
Case 1: If y=x is a particular solution of the equation (1), then
y '=1 and y ' '=0.
2 3 3
Example: Solve (D − x D+ 2 ) y=2 x−1. (1)
x
3 3
y ' '− y '+ 2 y=2 x−1.
x x
−3 3
Solution: Here, α (x)+ xβ (x )= x + x 2 =0 ,
x
So, y=x is a particular solution of equation (1). Thus, the transformation y=xv reduces
the equation (1) to a linear first order differential equation.
2
dv 2 d v dv
Now, Dy=x +v and D y=x +2
dx dx
2
dx
ODE Page 3
Ordinary Differential Equations II 2024-2025
2
d v dv
⟹ x 2 − =2 x – 1
d x dx
2
d v 1 dv 2 x – 1
⟹ 2− =
d x x dx x
= p and =p' ,
2
dv d v
Let,
So ,
dx dx
2
dp 1 2 x −1
− p=
dx x x
p=e
−∫ P ( x ) dx
(∫ e∫ P ( x ) dx Q ( x ) dx +C )
⇒ p=x ∫ x(−1 2 x−1
x
dx+ C =x ∫ ) (
2 x −1
x
2
dx +C =x ∫ − 2 dx +C
) (
2 1
x x )
( )
−3
x
¿ x 2 ln x− +C
−3
⇒ p=(2 x ln x + +Cx )
−2
x
3
−2
x
Since, P=v ' , then v=∫ p dx=∫ 2 x ln x + +Cx dx .
3
Homework : Solve
2
2 d y 2 dy 2 4 3
x (x+ 2
)−x (2+ 4 x + x ) +(2+ 4 x + x ) y=−x −2 x .
dx dx
ODE Page 4
Ordinary Differential Equations II 2024-2025
Then, if a α ( x )+ a xβ ( x ) +b β ( x )=0,
So y=ax+ b is a particular solution of equation (1) and y=ax+ b+ ( ax +b ) v ( x ) is general
solution of y ' ' +α (x ) y '+ β (x ) y=γ (x) .
''
Example: Solve y − x + ( 3
x )
3 ' 3
2
y + 2 y=2 x.
x
3a 3a 3 3
Solution: Here, a α ( x )+ a xβ ( x ) +b β ( x )¿− − 2 + ax 2 +b 2
x x x x
3a 3
¿− 2
+b 2
x x
3
¿(b−a) 2
x
( x x ) dx
2
( 2 x+ 2 ) d v2 +4 dv − 3 3 (
+2
dv
2 x +2 ) =2 x
dx dx
dx (x ) dx
2
( 2 x+ 2 ) d v − 6 + 12 + 2 dv =2 x
2 2
x
ODE Page 5
Ordinary Differential Equations II 2024-2025
2
d v
−
( 6 12
+ +2
x x ) dv =
2
2x
dx 2
(2 x +2 ) dx ( 2 x +2 )
2
dv d v
Let, = p and =p' ,
dx dx
2
So dp
−
(
6 12
x x
2
+ +2
)
p=
2x ,
dx ( 2 x +2 ) ( 2 x+ 2 )
Then
P(x )=
−
( 6 12
x x
2
+ +2
) 2x
, Q ( x )= ( 2 x +2 )
(2 x +2 )
⟹ e ax ( a 2+ α ( x ) a+ β ( x ) ) =0
Since, e ax ≠ 0, then
a + α ( x ) a+ β ( x )=0.
2
So, if a 2+ α ( x ) a+ β ( x )=0,
then y=eax is a particular solution of equation (1).
ODE Page 6
Ordinary Differential Equations II 2024-2025
−2 x
(4 x +5) (4 x+6) e
Solution: Clearly, y ' '+ y' + y= . (1)
(1+ x) (1+ x ) (1+ x )
(4 x +5) (4 x +6)
So, α (x)= and β (x)= .
(1+ x ) (1+ x )
⇒ ( a2 +4 a+4 ) x+ a2 +5 a+6=0
2
⇒ ( a+2 ) =0∧( a+2 )( a+ 3 )=0
⇒ a+2=0 ⇒ a=−2.
⇒−ln ( 1− p )=ln ( 1+ x ) +C
−1
⇒ ( 1−p ) = A ( 1+ x )
ODE Page 7
Ordinary Differential Equations II 2024-2025
Where A=e C,
1
⇒ p=1− .
A (1+ x)
dv 1
[
Since, p=v = dx ⇒ v=∫ 1− A ( 1+ x ) dx
'
]
1
⇒ v=x− ln (1+ x ) + B .
A
Then, y=e
−2 x
(
+ e−2 x x−
1
A )
ln ( 1+ x ) + B is a general solution where A and B are arbitrary
constants.
⇒uv ' '+(2u ' +α (x)u)v '+(u ' '+ α (x )u '+ β(x )u)v =f ( x) (2)
If u is chosen so that, 2 u' + α ( x ) u=0
du
⇒2 + α ( x ) u=0
dx
du 1
⇒ + α ( x ) dx=0
u 2
−1
⇒ ln u= ∫ α ( x ) dx
2
−1
∫ α ( x ) dx
⇒ u=e 2 (3)
−1
' −1 ∫ α ( x ) dx
⇒u = α ( x )e 2
2
' −1
by eq. (3) we have u= α ( x) u (4)
2
'' −1 ' 1 '
⇒u = α ( x ) u− α ( x ) u
2 2
'' −1 1 2
by eq. (3) we have u = α ' (x)u+ α ( x)u
2 4
ODE Page 8
Ordinary Differential Equations II 2024-2025
−1 1 2 1 2
Substitute in u ' ' + α (x )u '+ β(x )u= 2 α ' (x)u+ 4 α ( x ) u− 2 α ( x ) + βu.
u ' ' +α (x)u '+ β ( x ) u f (x )
So, equation (2), becomes v ' ' +( ) v= (5)
u u
u' ' +α (x)u '+ β ( x ) u
If is a constant, then,
u
−1 ' 1 2
α ( x ) u− α ( x ) u+ β (x )u
2 4 −1 1
= α ' (x )− α (x)2 + β ( x)=C
u 2 4
¿ 2 = constant = C.
ODE Page 9
Ordinary Differential Equations II 2024-2025
−1 −1
So, u=e 2 ∫ α (x)dx =e 2
∫ (−4 x ) dx 2
=e x .
2
y '=2 x e x v+ e x v ' and y ' '=4 x 2 e x v+ 4 x e x v+ e x v ' ' +2 e x v . Substitute in equation (1), we
have 2
f ( x ) x ex
v' '+C v= = x =x
u
2
so, we have
v ' ' + 2 v=x
Therefore
v c =C1 cos √ 2 x +C 2 sin √ 2 x .
[ ( )]
D +2
2
2 D
2
1+
2
[( ) ( ) ]
2 2 2
1 D D 1 1
⇒ v p=
1− + +· ·· {x }= [ x+ 0 ] = x .
2 2 2 2 2
1
∴ v =v c +v p =C1 cos √ 2 x +C 2 sin √ 2 x + x .
2
x x2
x 2 2
1
Hence, y=e +uv =e +e (C 1 cos √ 2 x+C 2 sin √ 2 x+ 2 x ), is a general solution where C 1 and
Homework:
ODE Page 10
Ordinary Differential Equations II 2024-2025
1 2
ODE Page 11