DE Week 2 Lecture
DE Week 2 Lecture
------------------------------------------------------------------------------------------
Existence of Solution
Any function 𝒚, defined on an interval 𝐼 and possessing at least 𝑛 derivatives
that are continuous on 𝑰, which when substituted into an 𝑛𝑡ℎ-order ordinary
differential equation reduces the equation to an identity, is said to be a
solution of the equation on the interval.
Solution: One way of verifying that the given function is a solution is to see,
after substituting, whether each side of the equation is the same for every x in
the interval.
Consider the given ordinary differential equation
𝒅𝒚 𝟏
= 𝒙 𝒚𝟐 _______________________(𝟏)
𝒅𝒙
Consider L.H.S.
𝒅𝒚 𝒅 𝒙𝟒 𝟏 𝒅 𝟒 𝟏 𝟑
𝟏 𝟑 𝒙𝟑
= ( )= (𝒙 ) = (𝟒𝒙 ) = (𝒙 ) = _________(𝟐)
𝒅𝒙 𝒅𝒙 𝟏𝟔 𝟏𝟔 𝒅𝒙 𝟏𝟔 𝟒 𝟒
Consider R.H.S.
𝟏 𝟏
𝟒 𝟐 𝟐 𝟐
𝟏 𝒙 (𝒙 ) 𝟐𝒙𝟐 𝒙𝟑
𝒙 𝒚𝟐 = 𝒙( ) = 𝒙( ) = 𝒙( ) = _________(𝟑)
𝟏𝟔 (𝟒)𝟐 𝟒 𝟒
we see that each side of the equation is the same for every real number 𝒙.
𝟏
𝒙𝟐 𝒙𝟒
Note that 𝒚 = 𝟐 is, by definition, the nonnegative square root of .
𝟒 𝟏𝟔
----------------------------------------------------------------------------------------------
Prepared by:
Dr. M. Rayees Ahmad, Assistant Professor (Mathematics), UCP, Lahore.
Differential Equations (DE) Lecture Notes
------------------------------------------------------------------------------------------
b) 𝒚′′ − 𝟐𝒚′ + 𝒚 = 𝟎; 𝒚 = 𝒙 𝒆𝒙
Solution:
Since given that
𝑦 = 𝑥𝑒 𝑥
This implies that
𝑦 ′ = 𝑥𝑒 𝑥 + 𝑒 𝑥
and
𝑦 ′′ = 𝑥𝑒 𝑥 + 2 𝑒 𝑥
Now consider the given ODE
𝑦 ′′ − 2𝑦 ′ + 𝑦 = 0
Consider 𝐿. 𝐻. 𝑆.
𝑦 ′′ − 2𝑦 ′ + 𝑦 = (𝑥𝑒 𝑥 + 2 𝑒 𝑥 ) − 2(𝑥𝑒 𝑥 + 𝑒 𝑥 ) + 𝑥𝑒 𝑥
= 𝑥𝑒 𝑥 + 2 𝑒 𝑥 − 2𝑥𝑒 𝑥 − 2 𝑒 𝑥 + 𝑥𝑒 𝑥
= 𝑥𝑒 𝑥 + 𝑥𝑒 𝑥 − 2𝑥𝑒 𝑥 + 2 𝑒 𝑥 − 2 𝑒 𝑥
= 2𝑥𝑒 𝑥 − 2𝑥𝑒 𝑥 + 2 𝑒 𝑥 − 2 𝑒 𝑥
= 0 = 𝑅. 𝐻. 𝑆
Note that, each differential equation possesses the constant solution
𝒚 = 𝟎, − ∞ < 𝒙 < ∞.
A solution of a differential equation that is identically zero on an interval 𝑰 is
said to be a trivial solution.
----------------------------------------------------------------------------------------------
Prepared by:
Dr. M. Rayees Ahmad, Assistant Professor (Mathematics), UCP, Lahore.
Differential Equations (DE) Lecture Notes
------------------------------------------------------------------------------------------
General Solution:
If solution containing as many arbitrary constants as the order of DE is called
general solution (GS).
Particular Solution:
A solution obtained from general solution (GS) by giving particular values
to the constants, is called a particular solution.
Note:
• The graph of particular solution is called integral curve of DE.
For example,
𝒅𝒚 𝟐
( ) +𝟏=𝟎
𝒅𝒙
INITIAL VALUE PROBLEMS (IVPs)
We are often interested in problems in which we seek a solution 𝒚(𝒙) of a
differential equation so that 𝒚(𝒙) satisfies prescribed side conditions, that is,
conditions imposed on the unknown 𝒚(𝒙) or its derivatives. On some interval
𝑰 containing 𝒙𝟎 the problem
𝒅𝒏 𝒚
𝑺𝒐𝒍𝒗𝒆: = 𝒇(𝒙, 𝒚, 𝒚′ 𝒚′′ , … , 𝒚(𝒏−𝟏) )
𝒅𝒙𝒏
𝑺𝒖𝒃𝒋𝒆𝒄𝒕 𝒕𝒐: 𝒚(𝒙𝟎 ) = 𝒚𝟎 , 𝒚′ (𝒙𝟎 ) = 𝒚𝟏 , . . . ., 𝒚(𝒏−𝟏) (𝒙𝟎 ) = 𝒚𝒏−𝟏
----------------------------------------------------------------------------------------------
Prepared by:
Dr. M. Rayees Ahmad, Assistant Professor (Mathematics), UCP, Lahore.
Differential Equations (DE) Lecture Notes
------------------------------------------------------------------------------------------
Note:
• Initial conditions are such conditions which relate to one value of the
independent variable.
Example:
Example:
----------------------------------------------------------------------------------------------
Prepared by:
Dr. M. Rayees Ahmad, Assistant Professor (Mathematics), UCP, Lahore.
Differential Equations (DE) Lecture Notes
------------------------------------------------------------------------------------------
Figure 1
𝒅𝟐 𝒚
If = 𝒇(𝒙, 𝒚, 𝒚′ ) is an ODE subject to the initial conditions 𝒚(𝒙𝟎 ) = 𝒚𝟎 and
𝒅𝒙𝟐
𝒚′ (𝒙𝟎 ) = 𝒚𝟏 , we want to find a solution 𝒚(𝒙) of the differential equation 𝒚′′ =
𝒇(𝒙, 𝒚, 𝒚′ )on an interval 𝑰 containing 𝒙𝟎 so that its graph not only passes through
(𝒙𝟎 , 𝒚𝟎 ) but the slope of the curve at this point is the number 𝒚𝟏 .
Figure 2
----------------------------------------------------------------------------------------------
Prepared by:
Dr. M. Rayees Ahmad, Assistant Professor (Mathematics), UCP, Lahore.
Differential Equations (DE) Lecture Notes
------------------------------------------------------------------------------------------
Example 1:
If
𝒚 = 𝒄𝟏 𝒆𝒙 + 𝒄𝟐 𝒆−𝒙
is a general solution of the second-order DE
𝒚′′ − 𝒚 = 𝟎
Then find the particular solution of the second-order IVP of this
differential equation having the given initial conditions.
a) 𝒚(𝟎) = 𝟏, 𝒚′ (𝟎) = 𝟐
b) 𝒚(𝟏) = 𝟎, 𝒚′ (𝟏) = 𝟑
Solution:
Given that
𝒚 = 𝒄𝟏 𝒆𝒙 + 𝒄𝟐 𝒆−𝒙 ____________(𝟏)
Since the first given initial condition is 𝒚(𝟎) = 𝟏, that is, at 𝒙 = 𝟎, the
value of 𝒚 = 𝟎. So putting values in equation (1), we have
𝟏 = 𝒄𝟏 𝒆𝟎 + 𝒄𝟐 𝒆−𝟎
𝟏
𝟏 = 𝒄 𝟏 𝒆𝟎 + 𝒄 𝟐 .
𝒆𝟎
Since 𝒆𝟎 = 𝟏, so
𝟏 = 𝒄𝟏 + 𝒄𝟐
𝒄𝟏 + 𝒄𝟐 = 𝟏 ___________(𝟐)
----------------------------------------------------------------------------------------------
Prepared by:
Dr. M. Rayees Ahmad, Assistant Professor (Mathematics), UCP, Lahore.
Differential Equations (DE) Lecture Notes
------------------------------------------------------------------------------------------
Similarly, the given initial condition is 𝒚′ (𝟎) = 𝟐, that is, at 𝒙 = 𝟎, the
value of 𝒚′ = 𝟐. So, putting values in equation (3), we get
𝟐 = 𝒄𝟏 𝒆𝟎 − 𝒄𝟐 𝒆−𝟎
𝟏
𝟐 = 𝒄 𝟏 𝒆𝟎 − 𝒄 𝟐 .
𝒆𝟎
Since 𝒆𝟎 = 𝟏, so
𝟐 = 𝒄𝟏 − 𝒄𝟐
𝒄𝟏 − 𝒄𝟐 = 𝟐 ___________(𝟒)
Here we have two equations (2) and (4)
𝒄𝟏 + 𝒄𝟐 = 𝟏 ___________(𝟐)
𝒄𝟏 − 𝒄𝟐 = 𝟐 ___________(𝟒)
By adding equation (2) and (4), 𝒄𝟐 will be cancelled and we get the value
of 𝒄𝟏 as
𝟑
𝒄𝟏 =
𝟐
----------------------------------------------------------------------------------------------
Prepared by:
Dr. M. Rayees Ahmad, Assistant Professor (Mathematics), UCP, Lahore.
Differential Equations (DE) Lecture Notes
------------------------------------------------------------------------------------------
Note: Students will solve part (b) by yourself keeping in view the
solution of part (a).
Solution:
𝒙′′ − 𝒙 = 𝟎
Then find the particular solution of the second-order IVP of
this differential equation having the given initial conditions.
a) 𝒙(𝟎) = −𝟏, 𝒙′ (𝟎) = 𝟖
𝝅 𝝅
b) 𝒙 (𝟐 ) = 𝟎, 𝒙′ (𝟐 ) = 𝟏
----------------------------------------------------------------------------------------------
Prepared by:
Dr. M. Rayees Ahmad, Assistant Professor (Mathematics), UCP, Lahore.