Lecture 3
Lecture 3
Lecture 3
Verification of a solution:
Verify that the indicated function is a solution of the given differential
equation on the interval (−∞, ∞).
𝑑𝑦 1
a. = 𝑥𝑦1/2 ; 𝑦 = 𝑥4
𝑑𝑥 16
𝑑𝑦
Let = 𝑥𝑦1/2 be eq. 1.
𝑑𝑥
b. 𝑦 ′′ − 2𝑦 ′ + 𝑦 = 0 ; 𝑦 = 𝑥𝑒 𝑥
Solve!
1.2 Initial Value Problems (IVPs)
An initial value problem is an ODE together with an initial condition
which specifies the value of the dependent variable at a given point.
For example:
𝑦 ′′ + 𝑦 = 0 ; 𝑦(0) = 1 , 𝑦 ′ (0) = 1
Figure 1
If 𝑦′ = 𝑓(𝑥, 𝑦) is an ODE subject to the initial condition 𝑦(𝑥0 ) = 𝑦0 ,
Figure 2
𝑑2𝑦
If = 𝑓(𝑥, 𝑦, 𝑦′) is an ODE subject to the initial conditions
𝑑𝑥 2
Question:
𝒚 = 𝒄𝟏 𝒆𝒙 + 𝒄𝟐 𝒆−𝒙 is a two-parameter family of solutions of the
second-order DE 𝒚′′ − 𝒚 = 𝟎. Find a solution of the second-order IVP
consisting of this differential equation and the given initial conditions.
a. 𝒚(𝟎) = 𝟏 , 𝒚′ (𝟎) = 𝟐
b. 𝒚(𝟏) = 𝟎 , 𝒚′ (𝟏) = 𝟑
a) 𝒚(𝟎) = 𝟏 , 𝒚′ (𝟎) = 𝟐
𝑦 = 𝑐1 𝑒 𝑥 + 𝑐2 𝑒 −𝑥
Since 𝑦(0) = 1,
1 = 𝑐1 𝑒 0 + 𝑐2 𝑒 −0
1 = 𝑐1 + 𝑐2
𝑐1 = 1 − 𝑐2 − 𝑒𝑞. 1
Also,
𝑦 = 𝑐1 𝑒 − 𝑐2 𝑒 −𝑥 𝑎𝑛𝑑 𝑦 ′ (0) = 2
′ 𝑥
2 = 𝑐1 𝑒 0 − 𝑐2 𝑒 −0
2 = 𝑐1 − 𝑐2 − 𝑒𝑞. 2
Note:
Here, 𝑦 = 𝑐1 𝑒 𝑥 + 𝑐2 𝑒 −𝑥 is called the general solution and
3 1
𝑦 = 𝑒 𝑥 − 𝑒 −𝑥 is called the particular solution.
2 2
𝒃) 𝒚(𝟏) = 𝟎 , 𝒚′ (𝟏) = 𝟑
Solve!
Practice Problems
Q. Verify that the indicated function is a solution of the given ODEs:
12. 𝑦 ′′ + 𝑦 = 𝑡𝑎𝑛𝑥 ; 𝑦 = −(𝑐𝑜𝑠𝑥 ) ln(𝑠𝑒𝑐𝑥 + 𝑡𝑎𝑛𝑥 )
13. 𝑦 ′′ − 6𝑦 ′ + 13𝑦 = 0 ; 𝑦 = 𝑒 3𝑥 𝑐𝑜𝑠2𝑥
Exercise 1.2
Q7. 𝑥 = 𝑐1 𝑐𝑜𝑠𝑡 + 𝑐2 𝑠𝑖𝑛𝑡 is a two-parameter family of solutions of the
second-order DE 𝑥 ′′ + 𝑥 = 0. Find a solution of the second-order IVP
consisting of this differential equation and the given initial conditions.
a. 𝑥 (0) = −1 , 𝑥′(0) = 8
𝜋 𝜋
b. 𝑥( ) = 0 , 𝑦 ′ ( ) = 1
2 2
Work to do
Do questions 1, 3, 6, 9, 35-38
DIRECTION FIELDS
Let us imagine for the moment that we have in front of us a first-order DE
𝑑𝑦
= 𝑓(𝑥, 𝑦) (1)
𝑑𝑥
and let us further imagine that we can neither find nor invent a method for
solving it analytically. This is not as bad a predicament as one might think,
since the DE itself can sometimes “tell” us specifics about how its solutions
“behave” or we can say Solutions curves without a solution.
The function f in the normal form (1) is called the slope function or rate
function. The slope of the tangent line at (x, y(x)) on a solution curve is the
value of the first derivative dy/dx at this point, and we know from (1) that
this is the value of the slope function f (x, y(x)). The value f (x, y) that the
function f assigns to the point represents the slope of a line or line
segment. For example, consider the equation
𝑑𝑦
= 0.2𝑥𝑦 = 𝑓(𝑥, 𝑦)
𝑑𝑥
At the point (2, 3) the slope of a line is f (2, 3) = 1.2.
First figure shows a line segment with slope 1.2
passing though (2, 3). As shown in Figure, if a
solution curve also passes through the point (2, 3), it
does so tangent to this line segment; in other words,
the lineal element is a miniature tangent line at that
point.
*From the next lecture we will formally move to the first method of solving a
simple DE (for that you have to revise some basic integral formulae).