Lecture 2
Lecture 2
Radioactive Decay
Leibniz Notation:
𝑑𝑦 𝑑2 𝑦 𝑑3 𝑦
, , ,…
𝑑𝑥 𝑑𝑥 2 𝑑𝑥 3
ODEs PDEs
If an equation contains only ordinary An equation involving partial
derivatives of one or more dependent derivatives of one or more dependent
variables with respect to a single variables of two or more independent
independent variable it is said to be an variables is called a partial
ordinary differential equation differential equation (PDE).
(ODE). For example,
For example, 𝜕𝑦 𝜕𝑧
𝑑𝑦 =−
=𝑥+𝑦 𝜕𝑥 𝜕𝑣
𝑑𝑥
Classification by Order & Degree
Classification by Linearity
𝑦 + 𝑦′ = 𝑥 𝑦 ′′ + 𝒔𝒊𝒏𝒚 = 0
𝑑3𝑦 𝑑𝑦 𝑑𝑦
𝑥 3
+ 𝑥 − 5𝑦 = 𝑒 𝑥 = 𝒚𝟐
𝑑𝑥 3 𝑑𝑥 𝑑𝑥
State the order and degree of the given ordinary differential equation. Determine
whether the equation is linear or nonlinear. Also tell which variable is dependent
and independent.
1. (1 − 𝑥 )𝑦 ′′ − 4𝑥𝑦 ′ + 5𝑦 = 𝑐𝑜𝑠𝑥
𝑑3 𝑦 𝑑𝑦 4
2. 𝑥 −( ) +𝑦 =0
𝑑𝑥 3 𝑑𝑥
3. 𝑡 5 𝑦 (4) − 𝑡 3 𝑦 ′′ + 6𝑦 = 0
4. (𝑠𝑖𝑛𝜃 )𝑦 ′′′ − (𝑐𝑜𝑠𝜃 )𝑦 ′ = 2
5. 𝑥̈ − 𝑥̇ + 𝑡 = 0
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.
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!
For example:
𝑦 ′′ + 𝑦 = 0 ; 𝑦(0) = 1 , 𝑦 ′ (0) = 1
interval 𝐼 containing 𝑥0 so that its graph not only passes through (𝑥0 , 𝑦0 )
but the slope of the curve at this point is the number 𝑦1 . A solution curve
is shown in blue in Figure 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)
Also,
𝑦 ′ = 𝑐1 𝑒 𝑥 − 𝑐2 𝑒 −𝑥 𝑎𝑛𝑑 𝑦 ′ (0) = 2
2 = 𝑐1 𝑒 0 − 𝑐2 𝑒 −0
2 = 𝑐1 − 𝑐2 (2)
Practice Problems
Q. Verify that the indicated function is a solution of the given ODEs:
12. 𝑦 ′′ + 𝑦 = 𝑡𝑎𝑛𝑥 ; 𝑦 = −(𝑐𝑜𝑠𝑥 ) ln(𝑠𝑒𝑐𝑥 + 𝑡𝑎𝑛𝑥 )
13. 𝑦 ′′ − 6𝑦 ′ + 13𝑦 = 0 ; 𝑦 = 𝑒 3𝑥 𝑐𝑜𝑠2𝑥
Q. Find values of 𝑚 so that 𝑦 = 𝑒 𝑚𝑥 is a solution of the given ODEs:
27. 𝑦 ′ + 2𝑦 = 0
30. 2𝑦 ′′ + 7𝑦 ′ − 4𝑦 = 0
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).