ODE Notes1
ODE Notes1
3 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
3.1 Solution steps of Separable Equations
To solve a separable equation, we perform the following steps:
1. We solve the equation g ( y ) = 0 to find the constant solutions of the equation.
2. For non-constant solutions we write the equation in the form.
dy
= h( x) dx
g ( y)
⌠ 1
Then integrate
dy = ∫ h( x) dx
⌡ g ( y)
to obtain a solution of the form
G ( y ) = H ( x) + C
3. We list the entire constant and the non-constant solutions to avoid repetition..
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:
dy y 2 − 1
Find the particular solution of = , y (1) = 2
dx x
Solution:
1 1
ln = C
2 3
The above implicit solution can be rewritten in an explicit form as:
3 + x2
y=
3 − x2
Example 2:
dy 1
Solve the differential equation = 1+ 2
dt y
Solution:
1
1. We find roots of the equation to find constant solutions; 1 + =0
y2
No constant solutions exist because the equation has no real roots.
2. For non-constant solutions, we separate the variables and integrate
⌠ dy
= ∫ dt
⌡ 1 + 1/ y
2
1 y2 1
Since = 2 = 1− 2
1 + 1/ y 2
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:
dy
Solve the initial value problem = 1 + t 2 + y 2 + t 2 y 2 , y( 0 ) = 1
dt
Solution:
1. Since 1 + t + y + t y = (1 + t )(1 + y )
2 2 2 2 2 2
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
= (1 + t 2 ) dt
1+ y 2
⌠ 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.
dy y
=
dx (1 + x )
1. The only constant solution is y = 0
2. For non-constant solution we separate the variables
dy dx
=
y 1+ x
Integrating both sides, we have
⌠ dy ⌠ dx
=
⌡ y ⌡ 1+ x
ln y = ln 1 + x + c1
ln|1+ x|+c1 ln|1+ x| c1
y=e =e .e
or y = |1+ x | e
c1
== ± e
c1
(1 + x )
c
y = C (1 + x ) , C = ± e 1
( )
Solve xy 4 dx + y 2 + 2 e −3 x dy = 0 .
dy y4
Solution: The differential equation can be written as = − xe 3x 2
dx y + 2
y4
1. Since ⇒ y = 0 . Therefore, the only constant solution is y = 0.
y2 + 2
2. We separate the variables
y2 + 2
xe 3 x dx + 4
(
dy = 0 or xe 3 x dx + y − 2 + 2 y − 4 dy = 0 )
y
Integrating, with use integration by parts by parts on the first term, yields
1 3x 1 3x 2
xe − e − y −1 − y −3 = c1
3 9 3
9 6
e 3 x (3 x − 1) = + + c where 9c1 = c
y y3
9 6
e 3 x (3 x − 1) =+ +c
3. All the solutions are: y y3
y = 0
dy dy
= ( y − 1) , y (0) = 1 = ( y − 1) , y (0) = 1.01
2 2
(a) (b)
dx dx
and compare the solutions.
Solutions:
1. Since ( y − 1) 2 = 0 ⇒ y = 1 . Therefore, the only constant solution is y = 0 .
2. We separate the variables
dy
= dx or ( y-1) dy = dx
−2
( y − 1) 2
∫ ( 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
1
− = −∞ ⇒ y − 1 = 0
y −1
Example 7:
Solve the initial value problems
dy dy
= ( y − 1) + 0.01, = ( y − 1) − 0.01, y (0) = 1.
2
y (0) = 1
2
(a) (b)
dx dx
Solution:
dy
= ( y − 1) + 0.01, y (0) = 1
2
dx
dy
= dx
( )
0.01 + ( y − 1)
2 2
⌠ d ( y − 1)
= ∫ dx
⌡ ( )
0.01 + ( y − 1)
2 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
tan −1 (0 ) = 0.01(0 + c ) ⇒ 0 = c
Thus the solution of the problem is
dx
We separate the variables to find the non-constant solutions
dy
= dx
( )
2
( y − 1) −
2
0.01
⌠
d ( y − 1)
= ∫ dx
( )
2
( y − 1)
2
⌡ − 0.01
1 y − 1 − 0.01
ln = x+c
2 0.01 y − 1 + 0.01
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
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:
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
6. y (4 − x 2 )2 dy = (4 + y 2 )2 dx
1 1
7. (x + x ) dy
dx
= y+ y
Solve the given differential equation subject to the indicated initial condition.
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
Example 1
Determine whether the following functions are homogeneous
xy
f ( x, y ) = 2
x + y2
(
g ( x, y ) = ln − 3x 2 y /( x 3 + 4 xy 2 ) )
Solution:
The functions f ( x, y ) is homogeneous because
t 2 xy xy
f (tx, ty ) = 2 2 = = f ( x, y )
t (x + y 2 ) x 2 + y 2
Similarly, for the function g ( x, y ) we see that
− 3t 3 x 2 y − 3x 2 y
g (tx, ty ) = ln 3 3 2
= ln 3 = g ( x, y )
2
t ( x + 4 xy ) x + 4 xy
Therefore, the second function is also homogeneous.
Hence the differential equations
dy
dx = f ( x, y )
dy
= g ( x, y )
dx
Summary:
1. Identify the equation as homogeneous by checking f (tx, ty ) = t f ( x, y ) ;
n
y
2. Write out the substitution v = ;
x
3. Through easy differentiation, find the new equation satisfied by the new function v ;
dv
x + v = f (1, v)
dx
4. Solve the new equation (which is always separable) to find v ;
5. Go back to the old function y through the substitution y = vx ;
6. If we have an IVP, we need to use the initial condition to find the constant of
integration.
Caution:
q Since we have to solve a separable equation, we must be careful about the
constant solutions.
q If the substitution y = vx does not reduce the equation to separable form then the
equation is not homogeneous or something is wrong along the way.
dy − 2 x + 5 y
Example 2 Solve the differential equation =
dx 2x + y
Solution:
− 2x + 5 y
Step 1. It is easy to check that the function f ( x, y ) = is a homogeneous
2x + y
function.
y
Step 2. To solve the differential equation we substitute v =
x
− 2 x + 5 xv − 2 + 5v
Step 3. Differentiating w.r.t x , we obtain xv′ + v = =
2 x + xv 2+v
dv 1 − 2 + 5v
which gives = − v
dx x 2 + v
This is a separable. At this stage please refer to the Caution!
Step 4. Solving by separation of variables all solutions are implicitly given by
− 4 ln(| v − 2 |) + 3 ln | v − 1 |= ln(| x |) + C
Step 5. Going back to the function y through the substitution y = vx , we get
− 4 ln | y − 2 x | +3 ln | y − x | = C
y − 2x y−x
−4ln + 3ln = ln x + c
x x
−4 3
y − 2x y−x
ln + ln = ln x + ln c1 , c = ln c1
x x
( y − 2 x ) −4 ( y − x )3
ln + ln = ln c1 x
x −4 x3
( y − 2 x ) −4 ( y − x ) 3
ln . = ln c1 x
x −4 x3
( y − 2 x ) −4 ( y − x ) 3
. = c1 x
x −4 x3
x( y − 2 x) −4 ( y − x)3 = c1 x
( y − 2 x) −4 ( y − x )3 = c1
4.2.1 Case 1
a1 b1
=
a2 b2
4.2.2 Case 2
a1 b1
≠
a2 b2
In this case we substitute x = X + h, y =Y + k
Where h and k are constants to be determined. Then the equation becomes
dY a X + b1Y + a1 h + b1 k + c1
= 1
dX a 2 X + b2Y + a 2 h + b2 k + c 2
a1 h + b1k + c1 = 0
a2 h + b2 k + c2 = 0
This reduces the equation to
dY a X + b1Y
= 1
dX a 2 X + b2Y
Example 3
dy 2x + 3y − 1
Solve the differential equation =−
dx 2x + 3y + 2
Solution:
a1 b dy 1 dz
Since = 1 = 1 , we substitute z = 2 x + 3 y , so that = − 2
a2 b2 dx 3 dx
1 dz z −1 dz − z + 7
Thus the equation becomes − 2 = − i.e. =
3 dx z+2 dx z+2
z+2
This is a variable separable form, and can be written as dz = dx
− z + 7
or (2 x + 3 y − 7 )−9 = ce 3( x + y ) , c = eA
dy ( x + 2 y − 4)
Example 4 Solve the differential equation =
dx 2 x + y − 5
Solution: By substitution x = X + h, y = Y + k , the given differential equation
dY ( X + 2Y ) + (h + 2k − 4 )
reduces to =
dX (2 X + Y ) + (2h + k − 5)
3 1
− ln (1 − V ) + ln (1 + V ) = ln X + ln A
2 2
+ ln (1 + V )
−3 1
ln(1 − V ) 2 2
= ln XA
(1 + V )
−3 1
ln(1 − V ) 2 2
= ln XA
(1 + V )
−3 1
(1 − V ) 2 2
= XA
taking power "− 2" on both sides
(1 − V ) 3 (1 + V ) = X −2 A−2
−1
Y
put V =
X
−1
Y 3 Y
(1 − ) 1 + = X −2 A−2
X X
3 −1
X −Y X + Y −2 −2
=X A
X X
(X −Y) 3
X −3+1 = X −2 A−2
X +Y
say , c = A−2
( X − Y )3
=c
X +Y
put X = x − 2, Y = y − 1
( x + y − 1)3 / x + y − 3 = c
Y
Now substituting V = , X = x − 2 , Y = y − 1 and simplifying, we obtain
X
(x − y − 1)3 / (x + y − 3) = C .This is solution of the given differential equation, an
implicit one.
4.3 Exercise
Solve the following Differential Equations
1. ( x 4 + y 4 )dx − 2 x 3 ydy = 0
dy y x 2
2. = + +1
dx x y 2
−y
3. x 2 e x
+ y 2 dx = xydy
x
4. ydx + y cos − x dy = 0
y
( )
5. x 3 + y 2 x 2 + y 2 dx − xy x 2 + y 2 dy = 0
(
7. x + y 2 − xy )dydx = y, 1
y = 1
2
8. (x + ye y / x )dx − xe y / x dy = 0, y (1) = 0
dy y y
9. − = cosh , y (1) = 0
dx x x
Step 3. Integrate either the 1st equation w. r. to x or 2nd w. r. to y. If we choose the 1st
∂F ∂
=
∂y ∂y
(∫ M ( x, y)dx )+ θ ′( y) = N ( x, y)
∂
∂y ∫
θ ′( y ) = N ( x, y ) − M ( x, y )dx
Step 5. Integrate to find θ ( y ) and write down the function F (x, y);
F ( x, y ) = C
Step 7. If you are given an IVP, plug in the initial condition to find the constant C.
∂M ∂N
∴ = . Hence the equation is exact. The LHS of the equation must be an exact
∂y ∂x
∂f ∂f
differential i.e. a function f ( x, y ) such that = 3x 2 y + 2 = M and = x3 + y = N
∂x ∂y
∂f
using 2nd, we obtain = x 3 + h ′( y ) = x 3 + y = N
∂y
y2
Comparing h ′( y ) = y is independent of x or integrating, we have h( y ) =
2
y2
Thus f ( x, y ) = x y + 2 x +
3
.Hence the general solution of the given equation is given
2
y2
by f ( x, y ) = c i.e. x 3 y + 2 x + = c .Note that we could start with the 2nd equation
2
∂f
= x 3 + y = N to reach on the above solution of the given equation!
∂y
(2 y sin x cos x + y 2
) ( )
sin x dx + sin 2 x − 2 y cos x dy = 0. , y (0) = 3.
∂M ∂N
= 2 sin x cos x + 2 y sin x, = 2 sin x cos x + 2 y sin x,
∂y ∂x
∂M ∂N
This implies = Thus given equation is exact.Hence there exists a function
∂y ∂x
∂f ∂f
f ( x, y ) such that = 2 y sin x cos x + y 2 sin x = M and = sin 2 x − 2 y cos x = N
∂x ∂y
∂f
Differentiating this equation w. r. t. y substituting in =N
∂y
i.e. y sin 2 x − y 2 cos x = C , where C = c1 − c 2 . Now applying the initial condition that
( ) (
Example 3: Solve the DE e 2 y − y cos xy dx + 2 xe 2 y − x cos x y + 2 y dy = 0 )
Solution:The equation is neither separable nor homogenous.
M (x, y ) = e 2 y − y cos xy ∂M ∂N
As and = 2e 2 y + xy sin xy − cos xy =
N ( x, y ) = 2 xe 2 y − x cos xy + 2 y ∂y ∂x
Hence the given equation is exact and a function f ( x, y ) exist for which
∂f ∂f ∂f
M ( x, y ) = and N ( x, y ) = which means that = e 2 y − y cos xy and
∂x ∂y ∂x
∂f
= 2 xe 2 y − x cos xy + 2 y .Let us start with the second equation i.e.
∂y
∂f
= 2 xe 2 y − x cos xy + 2 y .Integrating both sides w.r.to y , we obtain
∂y
f ( x, y ) = 2 x ∫ e
2y
dy − x ∫ cos xydy + 2 ∫ ydy . Note that while integrating w.r.to y , x
is treated as constant. Therefore f ( x, y ) = xe − sin xy + y + h(x ) ,
2y 2
∂f
h is an arbitrary function of x . From this equation we obtain and equate it to M
∂x
∂f
= e 2 y − y cos xy + h′( x ) = e 2 y − y cos xy .So that h ′( x ) = 0 ⇒ h( x ) = C
∂x
∂f ∂f
The equation is exact and a function f (x, y ) such that = 2 xy and = x2 −1
∂x ∂y
∂f
Here g ( y ) is an arbitrary function y . We find and equate it to N ( x, y )
∂y
∂f
= x 2 + g ′( y ) = x 2 − 1 ⇒ g ′( y ) = −1 ⇒ g ( y ) = − y
∂y
∂f ∂f
= cos x . sin x − x y 2 and = y (1 − x 2 ) .Now integrating 2nd of these equations
∂x ∂y
∂f
= − xy 2 + h′( x ) = cos x sin x − xy 2 ⇒ h ′(x ) = cos x sin x
∂x
1
Integrating w.r.to x , we obtain h(x ) = − ∫ (cos x )(− sin x )dx = − cos 2 x
2
Thus a one parameter family solutions of the given differential equation is
y2
2
( 1
) ( )
1 − x 2 − cos 2 x = c1 ⇒ y 1 − x − cos x = c ,where 2c1 has been
2
2 2 2
replaced by C . The initial condition y = 2 when x = 0 demand, that 4(1) − cos 2 (0) = c so
that c = 3 . Thus the solution of the initial value problem is ( )
y 2 1 − x 2 − cos 2 x = 3
5.2 Exercise
Determine whether the given equations is exact. If so, please solve.
y
2. 1 + ln x + dx = (1 − ln x )dy
x
1 dy y
4. 2 y − + cos 3 x + 2 − 4 x 3 + 3 y sin 3x = 0
x dx x
1 1 y x
5. + 2 − 2 dx + ye y + 2
2
dy = 0
x x x +y x + y 2
7. (e x
) ( )
+ y dx + 2 + x + ye y dy = 0, y (0) = 1
3 y 2 − x 2 dy x
8. 5
+ 4 = 0, y (1) = 1
y dx 2 y
1 dy
9. + cos x − 2 xy = y ( y + sin x), y(0) = 1
1+ y
2
dx
10. Find the value of k, so that the given differential equation is exact.
( 2 xy3 − y sin xy + ky 4 ) dx − ( 20 x3 + x sin xy ) dy = 0
( ) ( )
11. 6 xy 3 + cos y dx − kx 2 y 2 − x sin y dy = 0
(x 2
)
+ y 2 − x dx − ydy = 0, and then solve the equation.
∂M ∂N ∂M ∂N
Solution: Since M = x 2 + y 2 − x, N =− y ⇒ = 2 y, =0 ⇒ ≠
∂y ∂x ∂y ∂x
and the equation is not exact. However, if the equation is multiplied by 1 /( x 2 + y 2 ) then
x y
the equation becomes 1 − 2 dx − 2
2
dy = 0
x +y x + y2
x y ∂M 2 xy ∂N
Now M = 1 − and N =− ⇒ = =
2
x +y 2 2
x +y 2 ∂y (x2 + y2 )
2 ∂x
So that this new equation is exact. The equation can be solved. However, it is simpler to
observe that the given equation can also written
dx −
xdx + ydy
=0 or
1
[ ]
dx − d ln( x 2 + y 2 ) = 0 or d x −
(
ln x 2 + y 2
=0
)
x2 + y2 2 2
6.1 Case 1
When an integrating factor u (x), a function of x only. This happens if the expression
∂M ∂N
−
∂y ∂x
is a function of x only. Then the integrating factor u ( x, y ) is given by
N
∂M ∂N
⌠ −
∂ y ∂ x
u = exp dx
N
⌡
6.2 Case 2
When an integrating factor u ( y ) , a function of y only. This happens if the expression
∂N ∂M
−
∂x ∂y
is a function of y only. Then IF u ( x, y ) is given b
M
∂N ∂M
⌠ −
∂x ∂y
u = exp dy
M
⌡
6.3 Case 3
1
If the given equation is homogeneous and xM + yN ≠ 0 Then u =
xM + yN
6.4 Case 4
If the given equation is of the form yf ( xy )dx + xg ( xy )dy = 0
and xM − yN ≠ 0 Then u =
1
xM − yN
Once the IF is found, we multiply the old equation by u to get a new one, which is exact.
Solve the exact equation and write the solution.
Advice: If possible, we should check whether or not the new equation is exact?
Summary:
Step 1. Write the given equation in the form
M ( x, y )dx + N ( x, y )dy = 0
provided the equation is not already in this form and determine M and N .
Step 2. Check for exactness of the equation by finding whether or not
∂M ∂N
=
∂y ∂x
Step 3. (a) If the equation is not exact, then evaluate
∂M ∂N
−
∂y ∂x
N
If this expression is a function of x only, then
∂M ∂N
⌠ −
∂y ∂x
u ( x) = exp dx
N
⌡
Otherwise, evaluate
∂N ∂M
−
∂x ∂y
M
If this expression is a function of y only, then
∂N ∂M
⌠ −
∂x ∂y
u ( y ) = exp dy
M
⌡
In the absence of these 2 possibilities, better use some other technique. However, we
could also try cases 3 and 4 in step 4 and 5
Step 4. Test whether the equation is homogeneous and
xM + yN ≠ 0
1
If yes then u=
xM + yN
yf ( xy )dx + xg ( xy )dy = 0
and whether xM − yN ≠ 0
1
If yes then u=
xM − yN
Step 6. Multiply old equation by u. if possible, check whether or not the new equation is
exact?
Step 7. Solve the new equation using steps described in the previous section.
dy 3xy + y 2
=− 2
Example 1 Solve the differential equation
dx x + xy
Solution:
1. The given differential equation can be written in form
(3 xy + y 2 )dx + ( x 2 + xy ) dy = 0
Therefore
M ( x, y ) = 3xy + y 2
N ( x, y ) = x 2 + xy
∂M ∂N
2. Now = 3x + 2 y , = 2x + y .
∂y ∂x
∂M ∂N
∴ ≠
∂y ∂x
3. To find an IF we evaluate
∂M ∂N
−
∂y ∂x 1
=
N x
which is a function of x only.
4.Therefore, an IF u (x) exists and is given by
⌠ 1 dx
u ( x) = e ⌡x
= e ln( x ) = x
5. Multiplying the given equation with the IF, we obtain
(3 x 2 y + xy 2 )dx + ( x 3 + x 2 y )dy = 0
which is exact. (Please check!)
x2 2
F ( x, y ) = x y +
3
y + θ ( y)
2
4. We differentiate F w. r. t. ‘y’ and use the second equation of the system in step 2 to
obtain
∂F
= x 3 + x 2 y + θ ′( y ) = x 3 + x 2 y
∂y
⇒ θ ′ = 0 , No dependence on x.
5. Integrating the last equation to obtain θ =C . Therefore, the function F ( x, y ) is
x2 2
F ( x, y ) = x 3 y +
y
2
We don't have to keep the constant C, see next step.
3 x2 y 2
x y+ =C
2
is exact. This means that we may not have uniqueness of the integrating factor.
( )
Example 2. Solve x 2 − 2 x + 2 y 2 dx + 2 xydy = 0
M = x 2 − 2x + 2 y 2 ∂M ∂N ∂M ∂N
Solution: ⇒ = 4 y, = 2y ⇒ ∴ ≠
N = 2 xy ∂y ∂x ∂y ∂x
M y − Nx 4y − 2y 1
The equation is not exact .Here = =
N 2 xy x
1
Therefore, I.F. is given by u = exp ∫ dx ⇒ u = x
x
(x 3
)
− 2 x 2 + 2 xy 2 dx + 2 x 2 ydy = 0 .This equation is exact. The required Solution is
x 4 2x3
− + x 2 y 2 = c0 ⇒ 3 x 4 − 8 x 3 + 12 x 2 y 2 = c
4 3
x
Example 3 Solve dx + − sin y dy = 0
y
Solution: Here
x
M = 1, N= − sin y
y
∂M ∂N 1
= 0, =
∂y ∂x y
∂M ∂N
∴ ≠
∂y ∂x
Now
1
−0
Nx − M y y 1
= =
M 1 y
dy
Therefore, the IF is u ( y ) = exp ∫ =y
y
ydx + ( x − y sin y ) dy = 0
or d ( xy ) − y sin ydy = 0
Integrating, we have
xy + y cos y − sin y = c
Example 4
Solve (x 2
) ( )
y − 2 xy 2 dx − x 3 − 3 x 2 y dy = 0
Mdx + Ndy = 0
we see that
M = x 2 y − 2 xy 2 and N = − ( x3 − 3 x 2 y )
Since both M and N are homogeneous. Therefore, the given equation is homogeneous.
Now
xM + yN = x 3 y − 2 x 2 y 2 − x 3 y + 3 x 2 y 2 = x 2 y 2 ≠ 0
Hence, the factor u is given by
1 1
u= Qu =
x2 y2 xM + yN
Multiplying the given equation with the integrating factor u , we obtain.
1 2 x 3
− dx − 2 − dy = 0
y x y y
Now
1 2 −x 3
M = − and N= +
y x y2 y
and therefore
∂M 1 ∂N
=− 2 =
∂y y ∂x
Therefore, the new equation is exact and solution of this new equation is given by
x
− 2 ln | x | +3 ln | y |= C
y
Example 5
Solve ( ) ( )
y xy + 2 x 2 y 2 dx + x xy − x 2 y 2 dy = 0
Solution:
The given equation is of the form
yf ( xy )dx + xg ( xy )dy = 0
Now comparing with
Mdx + Ndy = 0
We see that
(
M = y xy + 2 x 2 y 2 ) and (
N = x xy − x 2 y 2 )
Further
xM − yN = x 2 y 2 + 2 x 3 y 3 − x 2 y 2 + x 3 y 3
= 3x 3 y 3 ≠ 0
Therefore, the integrating factor u is
1 1
u= , Qu =
3x3 y 3 xM − yN
Now multiplying the given equation by the integrating factor, we obtain
1 1 2 1 1 1
2 + dx + 2 − dy = 0
3 x y x 3 xy y
1
− + 2 ln | x | − ln | y |= C
xy
where 3C0 =C
6.5 Exercise
Solve by finding an I.F
1. xdy − ydx = ( x 2 + y 2 ) dx
y − sin x
2. dy + dx = 0
x
3. (y + 2 y )dx + (xy + 2 y − 4 x )dy = 0
4 3 4
4. (x + y )dx + 2 xydy = 0
2 2
5. (4 x + 3 y )dx + 2 xydy = 0
2
dy
7. = e2x + y − 1
dx
8. (3xy + y )dx + (x + xy )dy = 0
2 2
9. ydx + (2 xy − e )dy = 0
−2 y
Summary:
1. Identify that the equation is 1st order linear equation. Rewrite it in the form
dy
+ p ( x) y = q ( x)
dx
if the equation is not already in this form.
2. Find the integrating factor
u ( x) = e ∫
p ( x ) dx
y=
∫ u ( x)q( x)dx + C
u ( x)
4. If you are given an IVP, use the initial condition to find the constant C.
5. Plug in the calculated value to write the particular solution of the problem.
Example 1:
Solve the initial value problem
y ′ + tan( x) y = cos 2 ( x), y (0) = 2
Solution:
1.The equation is already in the standard form
dy
+ p ( x) y = q ( x)
dx
with
p ( x) = tan x
q(x) = cos x
2
2. Since
∫ tan x dx = − ln cos x = ln sec x
u ( x) = e ∫ tan x dx = sec x
3. Further, because
sin x + C
y= = (sin x + C ) cos x
sec x
4. We use the initial condition y (0) = 2 to find the value of the constant C
y ( 0) = C = 2
y = (sin x + 2 ) cos x
dy 2t 2
Example 2: Solve the IVP − y = , y (0) = 0.4
dt 1 + t 2 1+ t 2
Solution:
1.The given equation is a 1st order linear and is already in the requisite form
dy
+ p( x) y = q( x)
dx
2t
p(t ) = − 1 + t 2
with 2
q(t ) =
1+ t2
⌠ 2t
− 1 + t 2 dt = − ln | 1 + t |
2
2. Since
⌡
Therefore, the integrating factor is given by
⌠ 2t
− dt
u (t ) = e ⌡ 1+ t 2
= (1 + t 2 ) −1
3. Hence, the general solution is given by
∫ u (t )q(t )dt + C , ⌠ 2
y=
u (t ) ∫ u(t )q(t )dt = ⌡ (1 + t 2 2
)
dt
⌠ 2 ⌠ 1+ t 2 − t 2 ⌠ 1 t2
Now dt = 2 (1 + t 2 ) 2 dt = 2 1 + t 2 (1 + t 2 ) 2 dt
−
⌡ (1 + t )
2 2
⌡ ⌡
The first integral is clearly tan −1 t . For the 2nd we will use integration by parts
with t as first function and 2t
(1 + t 2 ) 2
as 2nd function.
⌠ 2t 2 1 ⌠ 1 t
(1 + t 2 ) 2 dt = t − + dt = − + tan −1 (t )
1+ t ⌡ 1+ t 1+ t
2 2 2
⌡
⌠ 2 −1 t −1 −1 t
dt = 2 tan (t ) + − tan (t ) = tan (t ) +
⌡ (1 + t ) 1+ t 2 1+ t2
2 2
-1 t
The general solution is: y = (1 + t ) tan (t ) + + C
2
1+ t 2
4. The condition y (0) = 0.4 gives C = 0.4
5. Therefore, solution to the initial value problem can be written as:
y = t + (1 + t 2 ) tan −1 (t ) + 0.4(1 + t 2 )
Example 3:
Therefore
tan t + C 1 C
y= = + = sec t + C csc t
sin t cos t sin t
Example 4 Solve ( x + 2 y ) dy
3
dx
=y
dy y
Solution: We have =
dx x + 2 y 3
⌠ 1 1 1
IF = exp − dy = exp ln =
⌡ y y y
1 d x
Multiplying with the IF = , we get 1 dx − 12 x = 2 y ⇒ = 2y
y y dy y dy y
Integrating, we have
x
y
= y2 + c ⇒ (
x = y y2 + c ) is the required solution.
dy
Example 5 Solve ( x − 1) + 4(x − 1)2 y = x + 1
3
dx
dy
Multiplying the given equation by the IF,we get (x − 1) + 4(x − 1)3 y = x 2 − 1
4
dx
[ ]
3
x
y (x − 1)4 = x 2 − 1 . Integrating both sides, we obtain y ( x − 1) =
d
−x+c
4
⇒
dx 3
which is the required solution.
7.2 Exercise
Solve the following differential equations
dy 2 x + 1 −2 x
1. + y = e
dx x
dy
2. + 3 y = 3 x 2 e −3 x
dx
dy
3. x + (1 + x cot x ) y = x
dx
4. (x + 1) dy − ny = e x (x + 1)n +1
dx
5. (1 + x ) dy
2
+ 4 xy =
1
dx (1 + x ) 2 2
dr
6. + r sec θ = cos θ
dθ
dy 1 − e −2 x
7. +y= x
dx e + e −x
(
8. dx = 3e y − 2 x dy )
9.
dy
dx
(
= 2 y + x e 3x − e 2 x , ) y (0 ) = 2
dy
10. x(2 + x ) + 2(1 + x ) y = 1 + 3 x 2 , y (− 1) = 1
dx
8 Bernoulli Equations
A differential equation that can be written in the form
dy
+ p ( x ) y = q ( x) y n
dx
is called Bernoulli equation.
8.1 Method of solution
For n = 0,1 the equation reduces to 1st order linear DE and can be solved accordingly.
v = y 1− n
Differentiating w.r.t. ‘x’, we obtain
v ′ = (1 − n) y − n y ′
Therefore the equation becomes
dv
+ (1 − n) p( x)v = (1 − n)q( x)
dx
This is a linear equation satisfied by v . Once it is solved, you will obtain the function
1
(1− n )
y=v
If n > 1 , then we add the solution y = 0 to the solutions found the above technique.
Summary
1.Identify the equation
dy
+ p ( x ) y = q ( x) y n
dx
as Bernoulli equation.
Find n. If n ≠ 0,1 divide by y n and substitute;
v = y 1− n
dv
+ (1 − n) p ( x )v = (1 − n)q ( x )
dx
1
(1− n )
4. Go back to the old function y through the substitution y=v .
7. If you have an IVP, use the initial condition to find the particular solution.
dy
Example 1: Solve the equation = y + y3
dx
Solution:
1. The given differential can be written as
dy
− y = y3
dx
which is a Bernoulli equation with
p( x) = −1, q ( x) = 1 , n=3.
Dividing with y 3 we get
dy
y −3 − y −2 = 1
dx
Therefore we substitute
v = y 1−3 = y −2
dy 1 dv
y −3 =−
dx 2 dx
So that the equation reduces to
dv
+ 2v = −2
dx
3. This is a linear equation. To solve this we find the integrating factor u (x)
u ( x) = e ∫
2 dx
= e2 x
The solution of the linear equation is given by
v=
u ( x) e2x
Since ∫ e 2 x (−2)dx = −e 2 x
Therefore, the solution for v is given by
− e2 x + C
v= 2x
= Ce −2 x − 1
e
4. To go back to y we substitute v = y − 2 . Therefore the general solution of the given
DE is
( )
1
−
y = ± Ce −2 x − 1 2
5. Since n > 1 , we include the y = 0 in the solutions. Hence, all solutions are
−1
y = 0, y = ± (Ce −2 x − 1) 2
Example 2:
dy 1
Solve + y = xy 2
dx x
1
Solution: In the given equation we identify P( x ) = , q (x ) = x and n = 2 .
x
Thus the substitution w = y gives
−1
dw 1
− w = − x.
dx x
The integrating factor for this linear equation is
−⌠
dx
− ln x
−1
= x −1
ln x
e ⌡x =e =e
Hence
d −1
dx
[
x w = −1. ]
Integrating this latter form, we get
x −1w = − x + c or w = − x 2 + cx.
−1 1
Since w = y , we obtain y = or
w
1
y=
− x 2 + cx
For n > 0 the trivial solution y = 0 is a solution of the given equation. In this example,
y = 0 is a singular solution of the given equation.
Example 3
Solve: dy xy
1 (1)
+ = xy 2
dx 1 − x 2
1
Solution: Dividing (1) by y2 , the given equation becomes
−1 1
dy x
y 2
+ y2 = x (2)
dx 1 − x 2
1 1
1 − dy dv
Put y2 = v or. y 2 =
2 dx dx
Then (2) reduces to
dv x x
+ =
dx 2 1 − x 2
v
( 2 ) (3)
This is linear in v .
−1
⌠ x −1 ( )
2
( )
I.F = exp = − = − 2 4
⌡ 2(1 − x )
2
dx exp 4 ln 1 x 1 x
−1
Multiplying (3) by 1 − ( x )
2 4
, we get
−1
(1 − ) x 2 4 dv
+
x
v=
x
(
dx 2 1 − x 2 )5/ 4
(
2 1 − x2 )
1/ 4
−1 −1
d −1
or
dx
(
1− x
2
)4 v = − 2 x 1 − x
2
( )
4
4
Integrating, we have
( )
3
−1
( ) −1 1− 2 4
x
v1− x 2 4
= +c
4 3/ 4
or (
v = c 1− x )
2 1/ 4
−
1 − x2
3
1
or y2 (
= c 1 − x2 )
1/ 4
−
1 − x2
3
is the required solution.
8.2 Exercise
Solve the following differential equations
dy
1. x + y = y 2 ln x
dx
dy
2. + y = xy 3
dx
dy
3. − y = ex y2
dx
4.
dy
dx
(
= y xy 3 − 1 )
dy
5. x − (1 + x ) y = xy 2
dx
dy
6. x2 + y 2 = xy
dx
dy 1
7. x2 − 2 xy = 3 y 4 , y (1) =
dx 2
dy
8. y1 / 2 + y 3 / 2 = 1, y (0 ) = 4
dx
9. (
xy 1 + xy 2 ) dy
dx
= 1, y (1) = 0
dy y x
10. 2 = − 2, y (1) = 1
dx x y
8.3 Substitutions
q Sometimes a differential equation can be transformed by means of a substitution
into a form that could then be solved by one of the standard methods i.e. Methods
used to solve separable, homogeneous, exact, linear, and Bernoulli’s differential
equation.
q An equation may look different from any of those that we have studied in the
previous lectures, but through a sensible change of variables perhaps an
apparently difficult problem may be readily solved.
q Although no firm rules can be given on the basis of which these substitution could
be selected, a working axiom might be: Try something! It sometimes pays to be
clever.
Example 1
u
u = 2 xy or y=
2x
xdu − udx
Since dy =
2x 2
x 1
ln =c+
2y 2 xy
x
= c1e1 / 2 xy ,
2y
du 2 6
or + u = 3−
dx x x
This equation has the form of 1st order linear differential equation
dy
+ P( x ) y = Q ( x )
dx
2 6
with P( x) = and Q( x) = 3 −
x x
Therefore, the integrating factor of the equation is given by
⌠ 2 dx
2
I.F = e ⌡x
= e ln x = x 2
Multiplying with the IF gives
d 2
dx
[ ]
x u = 3x 2 − 6 x
x 2u = x 3 − 3x 2 + c or x 2 y 2 = x 3 − 3 x 2 + c.
Example 3
Solve
dy x3 y / x
x −y= e
dx y
Solution:
If we let y
u=
x
Then the given differential equation can be simplified to
ue − u du = dx
Integrating both sides, we have
− u du = dx
∫ ue ∫
− ue − u − e − u = x + c
or
We then re-substitute
y
u=
x
y + x = x(c1 − x ) e y / x
Example 4
Solve
2
d2y dy
= 2 x
dx 2
dx
Solution:
If we let
u = y′
Then
du / dx = y ′′
Then, the equation reduces to
du
= 2 xu 2
dx
Which is separable form. Separating the variables, we obtain
du
2
= 2 xdx
u
Integrating both sides yields
− 2 du = 2 xdx
∫u ∫
or − u −1 = x 2 + c12
The constant is written as c12 for convenience.
Since u −1 = 1 / y ′
dy 1
Therefore =− 2
dx x + c12
dx
or dy = −
x 2 + c12
⌠ dx
∫ dy = −⌡ x 2 + c 2
1
1 x
y + c2 = − tan −1
c1 c1
8.4 Exercise
Solve the differential equations by using an appropriate substitution.
1.
ydx + (1 + ye x )dy = 0
2.
(2 + e −x / y
)dx + 2(1 − x / y ) dy = 0
3. dy
2 x csc 2 y = 2 x − ln (tan y )
dx
4. dy
+ 1 = sin x e −( x + y )
dx
5. dy
y + 2 x ln x = xe y
dx
6. dy
x2 + 2 xy = x 4 y 2 + 1
dx
7. dy
xe y − 2e y = x 2
dx
9 Solved Problems
x2 + y 2
Example 1: y' =
xy
dy x2 + y 2
Solution: =
dx xy
dy dw
put y = wx then = w+ x
dx dx
dw x 2 + w2 x 2 1 + w2
w+ x = =
dx xxw w
dw 1
w+ x = +w
dx w
dx
wdw =
x
Integrating
w2
= ln x + ln c
2
y2
2
= ln | xc |
2x
y 2 = 2 x 2 ln | xc |
dy (2 xy - y )
Example 2: =
dx x
dy (2 xy - y )
Solution: =
dx x
put y = wx
dw (2 xwx - xw)
w+ x =
dx x
dw
w+ x = 2 w -w
dx
dw
x = 2 w - 2w
dx
dw dx
=
2( w - w) x
dw dx
∫ 2( w - w)
=∫
x
dw dx
∫ 2 w (1- w ) = ∫ x
put w =t
1 dx
We get ∫ dt = ∫
1- t x
-ln |1- t |= ln | x | + ln | c |
-ln |1- t |= ln | xc |
(1- t ) -1 = xc
(1- w ) -1 = xc
(1- y/x ) -1 =xc
Example 3: (2 y 2 x − 3) dx + (2 yx 2 + 4) dy = 0
Solution:(2 y 2 x - 3) dx + (2 yx 2 + 4)dy = 0
Here M = (2 y 2 x - 3) and N = (2 yx 2 + 4)
∂M ∂N
= 4 xy =
∂y ∂x
∂f ∂f
= (2 y 2 x - 3) and = (2 yx 2 + 4)
∂x ∂y
Integrate w.r.t. ' x '
f ( x, y ) = x 2 y 2 - 3 x + h( y )
Differentiate w.r.t. ' y '
¶ f
= 2 x 2 y + h '( y ) = 2 x 2 y + 4 = N
¶ y
h '( y ) = 4
Integrate w.r.t. 'y'
h(y)=4y+c
x 2 y 2 -3x+4y=C1
2
dy 2 xye( x / y )
Example 4: = 2 2 2
dx y + y 2e( x / y ) + 2 x 2 e( x / y )
2 2
dx y 2 + y 2e( x / y ) + 2 x 2e ( x / y )
Solution: = 2
dy 2 xye ( x / y )
put x / y = w
After subsitution
2
dw 1 + e w
y = 2
dy 2 we w
2
dy 2we w
= 2 dw
y 1 + ew
Integrating
2
ln | y |= ln |1 + e w | + ln c
2
ln | y |= ln | c(1 + e w ) |
2
y = c (1 + e ( x / y ) )
dy
Example 14 : 2 y + x2 + y 2 + x = 0
dx
dy
Solution : 2 y + x2 + y 2 + x = 0
dx
put x 2 + y 2 = u
du
- 2x + u + x = 0
dx
du
+u = x
dx
I .F = Exp ( ∫ dx) = e x
du
e x
+ ue x = xe x
dx
d x
(e u ) = xe x
dx
Integrating
e xu = xe x - e x + c
Example 16 : x 4 y 2 y '+ x3 y 3 = 2 x 3 - 3
Solution : x 4 y 2 y '+ x3 y 3 = 2 x 3 - 3
put x 3 y 3 = u
dy du
3x 2 y 3 + 3x3 y 2 =
dx dx
dy du
3x3 y 2 = - 3x2 y 3
dx dx
dy x du
x4 y 2 = - x3 y3
dx 3 dx
x du
= 2 x3 - 3
3 dx
du
= 6x2 - 9 / x
dx
Integrate
u = 2 x 3 - 9 ln x + c
x 3 y 3 = 2 x 3 - 9 ln x + c
dny d n −1 y dy
a n ( x) + a n −1 ( x) + L + a1 ( x) + a 0 ( x ) y = g ( x)
n n −1 dx
dx dx
or a n ( x) y ( n) + a n −1 ( x) y ( n −1) + L + a1 ( x) y ′ + a 0 ( x) y = g ( x)
dny d n −1 y dy
an + a n −1 + L + a1 + a0 y = g ( x)
n n −1 dx
dx dx
dny d n −1 y dy
an + a n −1 + L + a1 + a0 y = 0
n n −1 dx
dx dx
which is known as the associated homogeneous differential equation.
13.2 Initial -Value Problem
For a linear nth-order differential equation, the problem:
dny d n −1 y dy
Solve: a n ( x) + a n −1 ( x) + L + a1 ( x) + a0 ( x ) y = g ( x)
dx n dx n −1 dx
n −1 n −1
The specified values y ( x0 ) = y 0 , y ( x0 ) = y 0 ,K, y ( x0 ) = y 0
/ /
are called initial-
conditions.
For n = 2 the initial-value problem reduces to
d2y dy
Solve: a2 ( x) + a1 ( x) + a0 ( x ) y = g ( x)
dx 2 dx
Subject to: y ( x 0 ) = y 0 , …, y / ( x0 ) = y 0/
13.2.1 Solution of IVP
A function satisfying the differential equation on I whose graph passes through ( x 0 , y 0 )
such that the slope of the curve at the point is the number y 0/ is called solution of the
initial value problem.
13.3 Theorem ( Existence and Uniqueness of Solutions)
Let a n ( x), a n −1 ( x),..., a1 ( x), a0 ( x) and g (x) be continuous on an interval I and let
a n ( x) ≠ 0, x ∈ I . If x = x0 ∈ I , then a solution y (x) of the initial-value problem exist
on I and is unique.
Example 1
y // − 4 y = 12 x, y (0) = 4, y / (0) = 1
d2y
Since = 12e 2 x + 4e −2 x
dx 2
d2y
and 2
− 4 y = 12e 2 x + 4e − 2 x − 12e 2 x − 4e −2 x + 12 x = 12 x
dx
Further y (0) = 3 + 1 − 0 = 4 and y ′ ( 0) = 6 − 2 − 3 = 1
Hence y = 3e 2 x + e −2 x − 3 x
is a solution of the initial value problem. We observe that
q The equation is linear differential equation.
q The coefficients being constant are continuous.
q The function g ( x) = 12 x being polynomial is continuous.
q The leading coefficient a 2 ( x) = 1 ≠ 0 for all values of x. Hence the function
y = 3e 2 x + e −2 x − 3 x is the unique solution.
Example 2
Consider the initial-value problem
3 y /// + 5 y // − y / + 7 y = 0,
Since
q The equation is homogeneous linear differential equation.
q The coefficients of the equation are constants.
q Being constant the coefficient are continuous.
q The leading coefficient a3 = 3 ≠ 0 .
Hence y = 0 is the only solution of the initial value problem.
Note: If a n = 0 ?
dny d n−1 y dy
a n ( x) + a n−1 ( x) + L + a1 ( x) + a 0 ( x ) y = g ( x)
n n −1 dx
dx dx
for some x ∈ I then
Solution of initial-value problem may not be unique.
q
Solution of initial-value problem may not even exist.
q
Example 4
Consider the function
y = cx 2 + x + 3
and the initial-value problem
x 2 y // − 2 xy / + 2 y = 6
y (0) = 3, y / (0) = 1
Then y ′ = 2cx + 1 and y ′′ = 2c
Therefore x 2 y // − 2 xy / + 2 y = x 2 (2c) − 2 x(2cx + 1) + 2(cx 2 + x + 3)
A solution of the boundary value problem is a function satisfying the differential equation
on some interval I , containing a and b , whose graph passes through two points (a, y 0 )
and (b, y1 ) .
Example 5
Consider the function
y = 3x 2 − 6 x + 3
We can prove that this function is a solution of the boundary-value problem
x 2 y // − 2 xy / + 2 y = 6,
y (1) = 0, y ( 2) = 3
dy d2y
Since = 6 x − 6, =6
dx dx 2
2 d2y dy
Therefore x 2
− 2x + 2 y = 6 x 2 − 12 x 2 + 12 x + 6 x 2 − 12 x + 6 = 6
dx dx
Also y (1) = 3 − 6 + 3 = 0, y (2) = 12 − 12 + 3 = 3
Therefore, the function ' y ' satisfies both the differential equation and the boundary
conditions. Hence y is a solution of the boundary value problem.
.
y / ( a) = y 0/ , y (b) = y1 ,
y (a) = y 0 , y / (b) = y /1 ,
y / ( a) = y 0/ , y / (b) = y1/
α1 y ( a ) + β1 y / ( a ) = γ 1
α 2 y (b) + β 2 y / (b) = γ 2
where α 1 , α 2 , β1 , β 2 ∈ {0,1}
Note that
A boundary value problem may have
q Several solutions.
q A unique solution, or
q No solution at all.
Example 1
Consider the function
y = c1 cos 4 x + c 2 sin 4 x
and the boundary value problem
y // + 16 y = 0, y (0) = 0, y (π / 2) = 0
Then
y / = −4c1 sin 4 x + 4c 2 cos 4 x
y // = −16(c1 cos 4 x + c 2 sin 4 x)
y // = −16 y
y // + 16 y = 0
y // + 16 y = 0
We now apply the boundary conditions
y (0) = 0 ⇒ 0 = c1 + 0
and y (π / 8) = 0 ⇒ 0 = 0 + c2
So that c1 = 0 = c 2
Hence
y=0
However y (π / 2) = 1 ⇒ c 2 sin 2π = 1
or 1 = c 2 .0 ⇒ 1 = 0
This is a clear contradiction. Therefore, the boundary value problem has no solution.
13.5 Linear Dependence
A set of functions
c2
Let us assume that c1 ≠ 0 , then f1 ( x) = − f 2 ( x ) .Hence f1 ( x) is the constant multiple
c1
of f 2 ( x) .Conversely, if we suppose f1 ( x) = c 2 f 2 ( x)
Then (−1) f1 ( x) + c2 f 2 ( x) = 0 , x∈I
So that the functions are linearly dependent because c1 = −1 .
Hence, we conclude that:
q Any two functions f1 ( x) and f 2 ( x) are linearly dependent on an interval I if and
only if one is the constant multiple of the other.
q Any two functions are linearly independent when neither is a constant multiple of
the other on an interval I.
q In general a set of n functions { f1 ( x), f 2 ( x), K , f n ( x)} is linearly dependent if at
least one of them can be expressed as a linear combination of the remaining.
Example 1
The functions
f1 ( x) = sin 2 x, x ∈ (−∞, ∞)
f 2 ( x) = sin x cos x, x ∈ (−∞ , ∞)
1
If we choose c1 = and c 2 = −1 then
2
1
c1 sin 2 x + c 2 sin x cos x = (2 sin x cos x ) − sin x cos x = 0
2
Hence, the two functions f1 ( x) and f 2 ( x ) are linearly dependent.
Example 2
Consider the functions
c1 f1 ( x) + c2 f 2 ( x) + c3 f 3 ( x) + c4 f 4 ( x)
= c1 cos 2 x + c2 sin 2 x + c3 sec 2 x + c4 tan 2 x
= cos 2 x + sin 2 x + −1 − tan 2 x + tan 2 x
= 1 −1 + 0 = 0
Therefore, the given functions are linearly dependent.
Note that
c1 (1 + x) + c 2 x + c3 x 2 =0
or c1 + (c1 + c 2 ) x + c3 x 2 =0
c1 + c 2 = 0
Therefore c1 = c 2 = c3 = 0
13.7 Wronskian
Suppose that the function f 1 ( x), f 2 ( x), K , f n ( x) possesses at least n − 1 derivatives then
the determinant
f1 f 2 KKK fn
f1/ f 2/ KKK f n/
M M M
f1n−1 f 2n −1 KKK f nn −1
for at least one point in I , then functions f 1 ( x), f 2 ( x), K , f n ( x) are linearly independent
on the interval I .
Note that this is only a sufficient condition for linear independence of a set of functions.
In other words:
If f 1 ( x), f 2 ( x), K , f n ( x) possesses at least n − 1 derivatives on an interval and are
linearly dependent on I , then W ( f1 ( x), f 2 ( x), K , f n ( x)) = 0, x∈I
However, the converse is not true. i.e. a Vanishing Wronskian does not guarantee linear
dependence of functions.
Example 1
The functions
f1 ( x ) = sin 2 x
f 2 ( x ) = 1 − cos 2 x
are linearly dependent because
1
sin 2 x = (1 − cos 2 x )
2
We observe that for all x ∈ (−∞, ∞)
sin 2 x 1 − cos 2 x
W ( f1 ( x ), f 2 ( x )) =
2 sin x cos x 2 sin 2 x
( )
W e m1 x , e m2 x =
e m1 x e m2 x
m1e m1 x m 2 e m2 x
= (m2 − m1 )e (m1 + m2 )x
≠0
Thus f1 and f 2 are linearly independent of any interval on x-axis.
Example 3
If α and β are real numbers, β ≠ 0 , then the functions
(
= βe 2αx cos 2 βx + sin 2 βx = βe 2αx ≠ 0.)
Example 4
The functions
f 1 (x ) = e x , f 2 ( x ) = xe x , and f 3 ( x ) = x 2 e x
are linearly independent on any interval of the x-axis because for all x ∈ R , we have
ex xe x x 2e x
(
W e x , xe x , x 2 e x ) = ex xe x + e x x 2 e x + 2 xe x
ex xe x + 2e x x 2 e x + 4 xe x + 2e x
= 2e 3 x ≠ 0
13.9 Exercise
1. Given that
y = c1e x + c 2 e − x
is a two-parameter family of solutions of the differential equation
y ′′ − y = 0
conditions
y (1) = 3, y ′(1) = −1.
Determine whether the functions in problems 4-7 are linearly independent or
dependent on (− ∞, ∞ ) .
4. f 1 ( x ) = x, f 2 (x ) = x 2 , f 3 (x ) = 4 x − 3 x 2
5. f1 (x ) = 0, f 2 (x ) = x, f 3 ( x ) = e x
6. f 1 ( x ) = cos 2 x, f 2 ( x ) = 1, f 3 (x ) = cos 2 x
7. f1 ( x ) = e x , f 2 (x ) = e − x , f 3 ( x ) = sinh x
Show by computing the Wronskian that the given functions are linearly independent
on the indicated interval.
8. tan x, cot x; (- ∞, ∞ )
9. e x , e -x , e 4x ; (− ∞, ∞ )
10. x, x ln x, x 2 ln x; (0, ∞ )
d3y d2y dy
3
− 6 2
+ 11 − 6 y = 0
dx dx dx
on (− ∞, ∞ ) . Thus y1 , y 2 and y3 are all solutions of the differential equation
Now suppose that
y = c1e x + c 2 e 2 x + c3 e 3 x .
Then
dy
= c1e x + 2c 2 e 2 x + 3c3 e 3 x .
dx
d2y
2
= c1e x + 4c 2 e 2 x + 9c3 e 3 x .
dx
d3y
3
= c1e x + 8c 2 e 2 x + 27c3 e 3 x .
dx
Therefore
d3y d2y dy
−6 + 11 − 6y
3
dx 2 dx
( ) ( )
dx
= c1 e x − 6e + 11e x − 6e x + c 2 8e 2 x − 24e 2 x + 22e 2 x − 6e 2 x
x
(
+ c3 27e 3 x − 54e 3 x + 33e 3 x − 6e 3 x )
= c1 (12 − 12 )e x + c 2 (30 − 30 )e 2 x + c3 (60 − 60 )e 3 x
=0
Thus
y = c1e x + c 2 e 2 x + c3 e 3 x .
is also a solution of the differential equation.
Example 2 The function y = x 2 is a solution of the homogeneous linear equation
x 2 y ′′ − 3 xy ′ + 4 y = 0 on (0, ∞ ) .
Now consider y = cx 2 ⇒ y ′ = 2cx and y ′′ = 2c
d2y dy
a2 2
+ a1 + a0 y = 0
dx dx
Then either W ( y1 , y 2 ) = 0, x∈I
or W ( y1 , y 2 ) ≠ 0, x∈I
To verify this we write the equation as
d 2 y Pdy
+ + Qy = 0
dx 2 dx
y1 y2
Now W ( y1 , y 2 ) = = y1 y 2′ − y1′ y 2
y1′ y 2′
Differentiating w.r.to x , we have
dW
= y1 y 2′′ − y1′′y 2
dx
Since y1 and y 2 are solutions of the differential equation
d 2 y Pdy
+ + Qy = 0
dx 2 dx
Therefore
y1′′ + Py1′ + Qy1 = 0
y 2′′ + Py 2′ + Qy 2 = 0
Multiplying 1st equation by y 2 and 2nd by y1 the have
y1′′y 2 + Py1′ y 2 + Qy1 y 2 = 0
y1 y 2′′ + Py1 y 2′ + Qy1 y 2 = 0
Subtracting the two equations we have:
( y1 y2′′ − y2 y1′′) + P( y1 y2′ − y1′ y2 ) = 0
dW
or + PW = 0
dx
This is a linear 1st order differential equation in W , whose solution is
− Pdx
W = ce ∫
Therefore
q If c ≠ 0 then W ( y1 , y 2 ) ≠ 0, x∈I
q If c = 0 then W ( y1 , y 2 ) = 0, x∈I
dny d n−1 y dy
an + a n−1 + L + a1 + a0 y = 0
n n −1 dx
dx dx
Then
Either W ( y1 , y 2 , K , y n ) = 0, x∈I
or W ( y1 , y 2 , K , y n ) ≠ 0, x∈I
y1 , y 2 , K, y n
are n solutions, on an interval I , of the homogeneous linear nth-order differential
equation
dny d n−1 y dy
a n (x ) n
+ a n −1 ( x ) n −1
+ L + a1 ( x ) + a 0 (x ) y = 0
dx dx dx
Then the set of solutions is linearly independent on I if and only if
W ( y1, y 2 , K, y n ) ≠ 0
In other words
The solutions
y1 , y 2 , K , y n
are linearly dependent if and only if
W ( y1, y 2 , K , y n ) = 0, x∈I
e3x e − 3x
Since W e 3 x , e − 3 x = = −6 ≠ 0, x∈I
3e 3x − 3e − 3 x
Hence y = 4 sinh 3 x − 5e −3 x
is a particular solution of differential equation.
y ′′ − 9 y = 0
y = c1e 3 x + c 2 e − 3x
Choosing c1 = 2, c 2 = −7
We obtain y = 2e 3 x − 7e − 3 x
y = 2e 3 x − 2e − 3 x − 5e − 3 x
e 3 x − e − 3x
y = 4 − 5e − 3 x
2
y = 4 sinh 3 x − 5e − 3x
Hence, the particular solution has been obtained from the general solution.
Example 3
d3y d2y dy
Consider the differential equation 3
− 6 2
+ 11 − 6 y = 0
dx dx dx
dy1 d 2 y1 d 3 y1
Then = ex = =
dx dx 2 dx 3
d 3 y1 d 2 y1 dy1
Therefore −6 + 11 − 6 y1 = e x − 6e x + 11e x − 6e x
3 2 dx
dx dx
d 3 y1 d 2 y1 dy
or −6 + 11 1 − 6 y1 = 12e x − 12e x = 0
dx 3 dx 2 dx
Thus the function y1 is a solution of the differential equation. Similarly, we can verify
that the other two functions i.e. y 2 and y 3 also satisfy the differential equation.
Now for all x ∈ R
ex e2x e3x
W e x , e 2 x , e 3 x = e x 2e 2 x 3e 3 x = 2e 6 x ≠ 0 x∈I
ex 4e 2 x 9e 3 x
d ny d n −1y dy
a ( x) +a
n −1
( x) + L + a1 ( x ) + a0 (x ) y = g (x )
dx n − 1
n
dx n dx
and is free of parameters is called the particular solution of the differential equation
Example 1 Suppose that y p = 3 ⇒ y ′p′ = 0
y ′p′ + 9 y p = 0 + 9(3)
So that
= 27
Therefore y p = 3 is a particular solution of the differential equation y ′p′ + 9 y p = 27
x 2 y ′′ + 2 xy ′ − 8 y = 4 x 3 + 6 x
dny d n−1 y dy
an (x ) n
+ a n −1 ( x ) n −1
+ L + a1 ( x ) + a0 ( x ) y = g ( x )
dx dx dx
∴d
3
yp d 2 yp dy p 11 11
3
−6 2
+ 11 − 6yp = 0 − 0 − + + 3 x = 3x
dx dx dx 2 2
11 1
Hence y =− − x is a particular solution of the non-homogeneous equation
p 12 2
d3y d2y dy
−6 + 11 − 6 y = 3x
dx 3 dx 2 dx
dy c
= c1e x + 2c2 e 2 x + 3c3 e 3 x
dx
d 2 yc
= c1e x + 4c 2 e 2 x + 9c3 e 3 x
2
dx
d 3 yc
= c1e x + 8c2 e 2 x + 27c3e 3 x
3
dx
Since,
d 3 yc d 2 yc dy c
−6 + 11 − 6 yc
dx 3 dx 2 dx
(
= c1e x + 8c2 e 2 x + 27c3e3 x − 6 c1e x + 4c2e 2 x + 9c3e3 x )
( ) (
+ 11 c1e x + 2c2 e 2 x + 3c3e3 x − 6 c1e x + c2 e 2 x + c3e3 x )
= 12c1e x − 12c1e x + 30c2e 2 x − 30c2e 2 x + 60c3e3 x − 60c3e3 x
=0
Thus y c is general solution of associated homogeneous differential equation
d3y d2y dy
3
− 6 2 + 11 − 6 y = 0
dx dx dx
Hence general solution of the non-homogeneous equation is
11 1
y = y + y = c1e x + c 2 e 2 x + c3 e 3 x − − x
c p 12 2
14.9 Superposition Principle for Non-homogeneous Equations
Suppose that y p , y p , K , y p denote the particular solutions of the k differential
1 2 k
equation a n (x ) y (n ) + a n −1 ( x ) y ( n −1) + L + a1 ( x ) y ′ + a 0 ( x ) y = g (x ),
i
i = 1,2,K k , on an interval I . Then y p = y p ( x ) + y p ( x ) + L + y p ( x)
1 2 k
is a particular solution of
n n − 1
a (x )y
+a ( x )y
+ L + a1 ( x ) y ′ + a 0 (x ) y = g ( x ) + g 2 ( x ) + L + g ( x )
n n −1 1 k
Example
Consider the differential equation
y p1 = −4 x 2 , y p2 = e 2 x , y p3 = xe x
Therefore y = −4 x 2
p
1
y = e 2 x and y = xe x
p p
2 3
are particular solutions of the equations:
y ′′ − 3 y ′ + 4 y = 2e 2 x
and y′′-3 y′ + 4 y = 2 xe x − e x
respectively.
Hence y =y +y +y = −4 x 2 + e 2 x + xe x
p p p p
1 2 3
y′′ − 3 y′ + 4 y = −16 x 2 + 24 x − 8 + 2e 2 x + 2 xe x − e x
14.10 Exercise
Verify that the given functions form a fundamental set of solutions of the differential
equation on the indicated interval. Form the general solution.
11. y ′′ − y ′ − 12 y = 0; e −3 x , e 4 x , (− ∞, ∞ )
15. x 2 y ′′ − 6 xy ′ + 12 y = 0; x 3 , x 4 (0, ∞ )
16. y ′′ − 4 y = 0; cosh 2 x, sinh 2 x, (− ∞, ∞ )
Verify that the given two-parameter family of functions is the general solution of the non-
homogeneous differential equation on the indicated interval.
dny d n −1 y dy
a n ( x) + a n −1 ( x) + L + a1 ( x) + a 0 ( x ) y = g ( x)
n n −1 dx
dx dx
16.1 Method of Solution
d2y dy
Taking n = 2 , the nth-order differential equation becomes a 2 2
+ a1 + a0 y = 0
dx dx
d2y dy
This equation can be written as a 2
+ b + cy = 0
dx dx
Since e
mx
≠ 0, x ∈ (− ∞, ∞ ) , therefore am 2 + bm + c = 0
This algebraic equation is known as the Auxiliary equation (AE).The solution of the
auxiliary equation determines the solutions of the differential equation.
16.1.1 Case 1 (Distinct Real Roots)
If the auxiliary equation has distinct real roots m1 and m 2 then we have the following two
m x m x
solutions of the differential equation. y1 = e 1 and y 2 = e 2
These solutions are linearly independent because
y y2
/ = (m2 − m1 )e
( m1 + m 2 ) x
W ( y1 , y 2 ) = 1/
y1 y2
Hence
q y1 and y 2 form a fundamental set of solutions of the differential equation.
q The general solution of the differential equation on (− ∞, ∞ ) is
y = c1e m1 x + c2 e m 2 x
16.1.2 Case 2 (Repeated Roots)
If the auxiliary equation has real and equal roots i.e. m = m1 , m2 with m1 = m2
− b ± b 2 − 4ac
We know from the quadratic formula m =
2a
b e 2mx
we have 2m = − .Therefore y 2 = e mx
a e 2 mx ∫
dx = xe mx
y = e (α + iβ ) x + e (α − iβ ) x
c1 = 1,c 2 = −1 ,then we have 1 .We know by the Euler’s Formula
y 2 = e (α + iβ ) x − e (α − iβ ) x
that e iθ = cos θ + i sin θ , θ ∈R .
( )
The Wronskian: W e αx cos βx , e αx sin βx = βe 2αx ≠ 0 x
Therefore, eαx cos( β x), eαx sin( β x) form a fundamental set of solutions of the
differential equation on (− ∞, ∞ ) .Hence general solution of the differential equation is
Solution: We put y = e mx ⇒ y ′ = me mx , y ′′ = m 2 e mx
(m − 5)2 = 0 ⇒ m = 5, 5 .Thus the auxiliary equation has repeated real roots i.e
m1 = 5 = m2 . Hence general solution of the differential equation is
Put y = e mx ⇒ y ′ = me mx , y ′′ = m 2 e mx
Put y = e mx ⇒ y ′ = me mx and y ′′ = m 2 e mx .
(
Substituting in the given differential equation, we have: m 2 + k 2 e mx = 0 )
Since e mx ≠ 0 x , the auxiliary equation is m 2 + k 2 = 0 ⇒ m = ± ki ,
Therefore, the auxiliary equation has complex roots m1 = 0 + ki , m2 = 0 − ki
Hence general solution of the differential equation is y = c1 cos kx + c 2 sin kx
d2y
Next consider the differential equation 2
−k2y = 0
dx
(
Substituting values y and y ′′, we have. m 2 − k 2 e mx = 0 )
Since e mx ≠ 0, the auxiliary equation is m 2 − k 2 = 0 ⇒ m = ± k
Thus the auxiliary equation has distinct real roots m1 = + k , m2 = − k
kx − kx
Hence the general solution is y = c1e +c 2 e .
dny d n −1 y dy
an + an −1 + K + a1 + a0 y = 0
n n −1 dx
dx dx
Then, the auxiliary equation is an nth degree polynomial equation
a n m n + a n −1m n −1 + K + a1m + a 0 = 0
16.2.1 Case 1 (Real distinct roots)
If the roots m1 , m2 , K , mn of the auxiliary equation are all real and distinct, then the
general solution of the equation is y = c1e m1 x + c 2 e m 2 x + K + c n e m n x
e m1 x , xe m1 x , K, x n −1e m1 x
are n linearly independent solutions of the differential equation. Hence general solution
of the differential equation is
y = c1e m1 x + c2 xe m1 x + K + cn x n −1e m1 x
16.2.3 Case 3 (Complex roots)
Suppose that coefficients of the auxiliary equation are real.
q We fix n at 6, all roots of the auxiliary are complex, namely
α1 ± iβ1 , α 2 ± i β 2 , α 3 ± iβ 3
§ Then the general solution of the differential equation
y = eα1 x (c1 cos β1 x + c2 sin β1 x) + eα 2 x (c3 cos β 2 x + c4 sin β 2 x)
+ eα3 x (c5 cos β3 x + c6 sin β 3 x )
q If n = 6 , two roots of the auxiliary equation are real and equal and the remaining
4 are complex, namely α 1 ± iβ 1 , α 2 ± iβ 2
Then the general solution is
y = eα1x (c1 cos β 1 x + c 2 sin β1 x) + eα 2 x (c3 cos β 2 x + c 4 sin β 2 x) + c5 e m1x + c 6 xe m1x
q If m1 = α + iβ is a complex root of multiplicity k of the auxiliary equation. Then
its conjugate m2 = α − iβ is also a root of multiplicity k . Thus from Case 2 , the
differential equation has 2k solutions
e (α + iβ )x , xe (α + iβ )x , x 2 e (α + iβ )x , K , x k −1e (α + iβ )x
e (α − iβ )x , xe (α − iβ )x , x 2 e (α − iβ )x , K , x k −1e (α − iβ )x
q By using the Euler’s formula, we conclude that the general solution of the
differential equation is a linear combination of the linearly independent solutions
eαx cos βx, xeαx cos βx, x 2 eαx cos βx, K, x k −1eαx cos βx
eαx sin βx, xeαx sin βx, x 2 eαx sin βx, K , x k −1eαx sin βx
q Thus if k = 3 then
( ) (
y = eαx [ c1 + c 2 x + c3 x 2 cos βx + d1 + d 2 x + d 3 x 2 sin βx] )
16.3 Solving the Auxiliary Equation
Recall that the auxiliary equation of nth degree differential equation is nth degree
polynomial equation
q Solving the auxiliary equation could be difficult
Pn (m) = 0, n > 2
⇒ y / = me mx , y // = m 2 e mx and y /// = m 3e mx
Substituting this in the given differential equation, we have
(m 3 + 3m 2 − 4)e mx = 0
Since e mx ≠ 0 ⇒ m 3 + 3m 2 − 4 = 0
(
m 3 + 3m 2 − 4 . By synthetic division, we can writ m 3 + 3m 2 − 4 = (m − 1) m 2 + 4m + 4 )
So, m 3 + 3m 2 − 4 = (m − 1)( m + 2) 2 =0 ⇒ (m − 1)( m + 2) 2 = 0 ⇒ m = 1,−2,−2
(
Thus we can write the auxiliary equation as: (m − 1 3) 3m 2 + 6m + 12 = 0 )
1
m− =0 or 3m 2 + 6m + 12 = 0 ⇒ m = 1 3 or m = −1 ± i 3
3
(
Hence solution of the given DE is: y = c1e (1 / 3) x + e − x c2 cos 3 x + c3 sin 3 x )
d4y d 2y
Example 3 Solve the differential equation +2 +y=0
dx 4 dx 2
d4y d 2y
Solution: Given the differential equation +2 + y = 0.
dx 4 dx 2
Put y = e mx ⇒ y ′ = me mx , y ′′ = m 2 e mx
(
Substituting in the differential equation, we obtain m 4 + 2m 2 + 1 e mx = 0 )
Since e mx ≠ 0 , the auxiliary equation is m 4 + 2m 2 + 1 = 0 ⇒ (m 2 + 1) 2 = 0
⇒ m = ±i, ± i ⇒ m1 = m3 = i and m2 = m4 = − i
Thus i is a root of the auxiliary equation of multiplicity 2 and so is − i .
Now α = 0 and β = 1 .Hence the general solution of the differential equation is
Exercise
Find the general solution of the given differential equations.
1. y // − 8 y = 0
2. y // − 3 y / + 2 y = 0
3. y // + 4 y / − y = 0
4. 2 y // − 3 y / + 4 y = 0
5. 4 y /// + 4 y // + y / = 0
6. y /// + 5 y // = 0
7. y /// + 3 y // − 4 y / − 12 y = 0
Solve the given differential equations subject to the indicated initial conditions.
8. y /// + 2 y // − 5 y / − 6 y = 0, y (0) = y / (0) = 0, y // (0) = 1
d4y
9. 4
= 0 , y (0) = 2, y / (0) = 3, y // (0) = 4, y /// (0) = 5
dx
d4y
10. − y = 0 , y (0) = y / (0) = y // (0) = 0, y /// (0) = 1
4
dx
2 5x + 7 Ax + B
3 3x 2 − 2 Ax 2 + Bx + c
4 x3 − x + 1 Ax 3 + Bx 2 + Cx + D
7 e5x Ae 5 x
8 (9 x − 2)e 5 x ( Ax + B )e 5 x
9 x 2e5x ( Ax 2 + Bx + C )e 5 x
In other words, the form of y p is a linear combination of all the linearly independent
functions generated by repeated differentiation of the input function g (x) .
Example 1 Solve y // + 4 y / − 2 y = 2 x 2 − 3 x + 6
Solution:
Complementary function: To find y , we first solve the associated homogeneous
c
equation y + 4 y − 2 y = 0
// /
We put y = e mx , y ′ = me mx , y ′′ = m 2 e mx
Then the associated homogeneous equation gives
(m 2 + 4m − 2)e mx = 0
− (2 + 6 ) x (−2 + 6 ) x
Hence the complementary function is y = c1e + c2 e
c
Next we find a particular solution of the non-homogeneous differential equation.
⇒ y p = 2 Ax + B and y p = 2 A
/ //
⇒ y p + 4 y p − 2 y p = 2 A + 8 Ax + 4 B − 2 Ax 2 − 2 Bx − 2C
// /
5
y p = −x 2 − x − 9 .Hence, the general solution of the given non-homogeneous
2
differential equation is given by y = y + y p
c
x − 9 + c1e − (2 + 6 ) x + c2 e (−2 + 6 ) x
5
⇒ y = −x2 −
2
Example 2 Solve the differential equation y // − y / + y = 2 sin 3 x
Solution: Complementary function: To find y , we solve the associated homogeneous
c
differential equation y − y + y = 0 .Put y = e
// / mx ⇒ y′ = me mx , y′′ = m 2e mx
.Substitute in the given differential equation to obtain the auxiliary equation
1± i 3
m2 − m + 1 = 0 ⇒ m =
2
Hence, the auxiliary equation has complex roots. Hence the complementary function is
(1 / 2) x 3 3
y =e c1 cos x + c 2 sin x
c 2 2
Particular Integral Since successive differentiation of g ( x) = sin 3 x produce
sin 3 x and cos 3x .Therefore, we include both of these terms in the assumed particular
solution, see table
y = A cos 3 x + B sin 3 x. ⇒ y ′ = −3 A sin 3 x + 3B cos 3 x. y ′′ = −9 A cos 3 x − 9 B sin 3 x.
p p p
(1 / 2) x 3 3 6 16
+ cos 3 x − sin 3x
y=e c cos x + c sin x
2 73
1 2
2 73
Example 3 Solve y // − 2 y / − 3 y = 4 x − 5 + 6 xe 2 x
Solution: Complementary function
Put y = e mx ⇒ y′ = me mx , y′′ = m 2e mx
Substitute in the given differential equation to obtain the auxiliary equation
m 2 − 2m − 3 = 0
⇒ m = −1, 3
⇒ (m + 1)( m − 3) = 0
Therefore, the auxiliary equation has real distinct root m1 = −1, m = 3
2
Since g ( x) = (4 x − 5) + 6 xe 2 x = g1 ( x) + g 2 ( x)
Corresponding to g 1 ( x) : y = Ax + B
p
1
y p = y p + y p ⇒ y p = Ax + B + (Cx + D ) e 2 x ⇒ y ′p = A + 2(Cx + D) e 2 x + Ce 2 x
1 2
y p // − 2 y p / − 3 y p = −3 Ax − 2 A − 3B − 3Cxe 2 x + (2C − 3D )e 2 x = 4 x − 5 + 6 xe 2 x .
− 3 Ax − 2 A − 3B − 3Cxe 2 x + (2C − 3D )e 2 x = 4 x − 5 + 6 xe 2 x + 0e 2 x