Separable Equations: y G X H DX Dy
Separable Equations: y G X H DX Dy
Separable Equations
The differential equation of the form
dy
= f ( x, y )
dx
is called separable if it can be written in the form
dy
= h( x ) g ( y )
dx
To solve a separable equation, we perform the following steps:
4. If you are given an IVP, use the initial condition to find the particular solution.
Note that:
(a) No need to use two constants of integration because C1 − C 2 = C .
(b) The constants of integration may be relabeled in a convenient way.
(c) Since a particular solution may coincide with a constant solution, step 3 is
important.
Example 1:
Find the particular solution of
dy y 2 − 1
= , y (1) = 2
dx x
Solution:
1. By solving the equation
y2 −1 = 0
Page 1 of 10
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
Example 2:
Solve the differential equation
dy 1
= 1+ 2
dt y
Solution:
Page 2 of 10
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
1 y2 1
Since 2
= 2
= 1− 2
1 + 1/ y y +1 y +1
⌠ dy
Thus = y − tan −1 ( y )
⌡ 1 + 1/ y
2
−1
So that y − tan ( y ) = t + C
It is not easy to find the solution in an explicit form i.e. y as a function of t.
3. Since ∃ no constant solutions, all solutions are given by the implicit equation
found
in step 2.
Example 3:
Solve the initial value problem
dy
= 1 + t 2 + y 2 + t 2 y 2 , y( 0 ) = 1
dt
Solution:
2 2 2 2 2 2
1. Since 1 + t + y + t y = (1 + t )(1 + y )
The equation is separable & has no constant solutions because ∃ no real roots of
1+ y2 = 0.
2. For non-constant solutions we separate the variables and integrate.
dy
2
= (1 + t 2 ) dt
1+ y
⌠ dy
= ∫ (1 + t 2 )dt
⌡ 1+ y
2
−1 t3
tan ( y ) = t + + C
3
Which can be written as
t3
y = tan t + + C
3
3. Since ∃ no constant solutions, all solutions are given by the implicit or explicit
equation.
Page 3 of 10
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
−1 t3 π
tan ( y ) = t + +
3 4
t3 π
or in the explicit form y = tan t + +
3 4
Example 4:
Solve
(1 + x )dy − ydx = 0
Solution:
Page 4 of 10
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
Example 5
Solve
( )
xy 4 dx + y 2 + 2 e −3 x dy = 0 .
Solution:
9 6
e 3 x (3 x − 1) = + +c
y y3
y = 0
Example 6:
Page 5 of 10
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
Solutions:
1. Since ( y − 1) 2 = 0 ⇒ y = 1 . Therefore, the only constant solution is y = 0 .
2. We separate the variables
dy −2
2
= dx or ( y-1) dy = dx
( y − 1)
Integrating both sides we have
∫ ( y − 1) dy = ∫ dx
−2
( y − 1)− 2 + 1 = x + c
− 2 +1
1
or − = x+c
y −1
3. All the solutions of the equation are
1
− = x+c
y −1
y = 1
4. We plug in the conditions to find particular solutions of both the problems
Example 7:
Solve the initial value problems
dy 2 dy 2
(a) = ( y − 1) + 0.01, y ( 0) = 1 (b) = ( y − 1) − 0.01, y ( 0 ) = 1.
dx dx
Page 6 of 10
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
Solution:
dy 2
= ( y − 1) + 0.01, y ( 0) = 1
dx
dy
= dx
( )2
0.01 + ( y − 1)
2
⌠ d ( y − 1)
= ∫ dx
⌡ ( )2
0.01 + ( y − 1)
2
1 y −1
So that tan −1 = x+c
0.01 0.01
y −1
tan −1 = 0.01( x + c )
0.01
y −1
0.01
[
= tan 0.01( x + c ) ]
or [
y = 1 + 0.01 tan 0.01( x + c ) ]
Applying y (0 ) = 1 ⇒ y = 1 when x = 0 , we have
Page 7 of 10
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
dy
2
= dx
( y − 1) −
2
( 0.01 )
⌠
d ( y − 1)
2
= ∫ dx
⌡ ( y − 1) −
2
( 0.01 )
1 y − 1 − 0.01
ln = x+c
2 0.01 y − 1 + 0.01
Applying the condition y (0) = 1 ⇒ y = 1 when x = 0
1 − 0.01
ln =c⇒c=0
2 0.01 0.01
y − 1 − 0.01
ln = 2 0.01 x
y − 1 + 0.01
y − 1 − 0.01 e2 0.01 x
=
y − 1 + 0.01 1
Simplification:
a c a+b c+d
By using the property = ⇒ =
b d a −b c−d
y − 1 − 0.01 + y − 1 + 0.01 e 2 0.01x + 1
=
y − 1 − 0.01 − y + 1 − 0.01 e 2 0.01x − 1
2y − 2 e2 0.01 + 1
=
−2 0.01 e2 0.01 − 1
y −1 e 2 0.01 + 1
=
− 0.01 e 2 0.01 − 1
e 2 0.01 + 1
y − 1 = − 0.01
e 2 0.01 − 1
e 2 0 . 01
+ 1
y = 1 − 0 . 01
e 2 0 . 01 − 1
Comparison:
Page 8 of 10
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
Exercise:
2
dy 2 y + 3
1. =
dx 4 x + 5
(
3. e y sin 2 xdx + cos x e 2 y − y dy = 0 )
dy xy + 3x − y − 3
4. =
dx xy − 2 x + 4 y − 8
dy xy + 2 y − x − 2
5. =
dx xy − 3 y + x − 3
1 1
6. (
y 4 − x2 ) 2 (
dy = 4 + y 2 ) 2 dx
7. (x + x ) dy
dx
= y+ y
Solve the given differential equation subject to the indicated initial condition.
Page 9 of 10
© Copyright Virtual University of Pakistan
Differential Equations (MTH401)
8. (e −y
+ 1)sin xdx = (1 + cos x )dy , y (0 ) = 0
1
10. ( )
ydy = 4 x y 2 + 1 2 dx , y (0) = 1
Page 10 of 10
© Copyright Virtual University of Pakistan