Linear Differential Equations
Linear Differential Equations
c c
= =
c c
We see that (4) is exact if satisfies the DE
( ) ( ) ( ) (5)
d
x P x x
dx
=
( )
( ) exp ( ) (6) x P x dx =
}
Which is our desired IF
In (2), we multiply by (x) defined in (6) to obtain
( ) ( ) ( ) ( ) ( ) (7)
dy
x P x x y x Q x
dx
+ =
We know from (5)
( ) ( )
d
P x x
dx
=
and so (7) can be written in the form
( )
( ) ( ) ( ) (8)
( ) ( ) ( ) ( )
d
x y x Q x
dx
dy d
x x y x Q x
dx dx
=
+ =
Integrating (8) w.r.t. x gives
( ) ( ) ( ) x y x Q x dx C = +
}
and solving for y yields
( ) ( )( )
exp ( ) ( ) ( ) y P x dx x Q x dx C = +
} }
Working Rule to solve a LDE:
1. Write the equation in the standard form
( ) ( )
dy
P x y Q x
dx
+ =
2. Calculate the IF (x) by the formula
( )
( ) exp ( ) x P x dx =
}
3. Multiply the equation in standard form
by (x) and recalling that the LHS is just
( )
( ) ,
d
x y
dx
obtain
( )
( ) ( ) ( )
d
x y x Q x
dx
=
4. Integrate the last equation and solve
for y by dividing by (x).
Example 1. Solve
( ) 1 cos sin cos = + +
|
.
|
\
|
x x x y
dx
dy
x x
Dividing by x cos x, throughout, we get
x
x
y
x
x
dx
dy sec 1
tan =
|
.
|
\
|
+ +
1
tan
( )
( )
x dx
P x dx
x
x e e
| |
+
}
|
\ . }
= =
lnsec ln lnsec ln
( ) sec
x x x x
x e e e x x
+
= = =
( )
sec
sec sec
d x
dx x
y x x x x =
2
sec sec tan yx x xdx C x C = + = +
}
Multiply by
sec x x yields
Integrate both side we get
Problem (2g p. 62): Find the general
solution of the equation
. 0 ' cot = + + xy x xy x y
Ans.: . cos sin sin c x x x x xy + =
The usual notation implies that x is
independent variable & y the dependent
variable. Sometimes it is helpful to replace
x by y and y by x & work on the resulting
equation.
* When diff equation is of the form
dx
dy
( ) ( ) y Q x y P
dy
dx
= + .
( )
&
P y dy
IF e solution is x IF Q IF dy c
}
= = +
}
Q. 4 (b) Solve
2 y
dx
y x y e
dy
=> = +
y
e y x
y dy
dx
=
1
2
' '
y
y xy y y e =
y
e e IF
y
dy
y
1
ln
1
= =
}
=
1 1
y y
x ye dy e dy
y y
= =
} }
c e
y
x
y
+ = =>
cy e y x
y
+ = =>
A first order equation that can be written in
the form
is known as Bernoullis equation .
It is clearly linear when n=0 or 1.
For n > 1, it can be reduced to a linear
equation by change of variable
( ) ( ) (*)
n
dy
P x y Q x y
dx
+ =
.
1 n
y z
=
Divide equation (*) be y
n
yields
1
( ) ( ) (**)
n n
dy
y P x y Q x
dx
+ =
Taking z = y
1-n
, we find that
(1 )
n
dz dy
n y
dx dx
=
and so (**) becomes
1
( ) ( )
1
dz
P x z Q x
n dx
+ =
= +
Substituting z = y
-2
gives the solution
2 10
1
2 20
x
x
y Ce
= +
Reduction of Order:
A general second order DE has the
form
In this section we consider two special
types of second order equations that
can be solved by first order methods.
(1) . 0 ) " , ' , , ( = y y y x F
Type A: Dependent variable missing.
When y is not explicitly present, (1) can
be written as
Then (2) transforms into
If we can solve (3) for p, then (2) can
be solved for y.
) 2 ( . 0 ) " , ' , ( = y y x f
. " and ' Let dx dp y p y = =
) 3 ( . 0 ) , , ( = dx dp p x f
Problem (1 (g) p. 65): Solve
( ) 1 4x y y x =
'
+
' '
The variable y is missing
let &
dp
y p y
dx
' ''
= =
( )
1 , 4
dp
from x p x
dx
+ =
which is linear,
1
4 (2)
dp
p
dx x
+ =
1
log
e
dx
x
x
IF e e x
}
= = =
4 p x xdx c = +
}
c x c
x
px + = + =
2
2
2
2
4
2
dy c
p x
dx x
= = +
2
c
dy x dx
x
(
= +
(
} }
dx
x
c
x dy
}
(
+ =
}
2
2
2
2
ln
2
x
y c x c = + +
2
2
ln y x c x c = + +
Problem (1b p. 65): Solve the DE
. ) (
3
y y y x
'
+
'
=
' '
Ans.:
. ) (
2
1
2
2
x c c y =
Type B: Independent variable missing.
When x is not explicitly present, then
(1) can be written as
Then (4) becomes
If we can solve (5) for p, then (4) can
be solved for y.
) 4 ( . 0 ) " , ' , ( = y y y g
= = = =
dy
dp
p
dx
dy
dy
dp
dx
dp
y p y " then , ' Let
( , , ) 0. (5) g y p pdp dy =
Problem (1(e), P 65): Solve
( ) ( ) 1 1 2
2
y y y
'
+ =
' '
Here x is not explicitly present
p y let =
'
dy
dp
p y =
' '
&
(1) can be writen as,
2
1 2 p
dy
dp
p y + =
} }
=
+
y
dy
p
dp p
2
1
2
( )
( )
2
1
ln 1 ln p c y + =
( )
2
1
ln 1 ln ln p y c + = +
2
1
1 p c y + = 1
1
2
= y c p
1
1
2
=
|
.
|
\
|
y c
dx
dy
1
1
= y c
dx
dy
1
( 1)
dy
dx
c y
=
} }
1 1 2
2 ( 1) c y c x c = +
Problem (2b p. 65): Find the specified
particular solution of the DE
. 0 when 1 and
; ) ' ( "
2
1
2 2
= =
'
=
+
'
=
x y y
y y y yy
Ans.:
. 8 3 2
2
3
x
ye y =