Intro to Differential Equations
Intro to Differential Equations
Introduction
In this module, we will discuss several introductory topics that are essential to the study
of differential equation. Several definitions and other necessary skills in solving differential
equations are discussed in this module. Student will learn different forms and structure of
a differential equation. Also, they will learn to create a differential equation based on a
problem as well as finding solutions of initial-value problem differential equation.
Topic Outcomes
5. Show the solution of an initial-value problem by imposing the initial condition to get
the value of an arbitrary constant.
6. Show all the intervals in which the solution of a given DE is unique through partial
derivative correctly.
Definitions and Terms
Many of the principles, or laws, underlying the behavior of the natural world are
statements or relations involving rates at which things happen. When expressed in
mathematical terms the relations are equations and the rates are derivatives.
When an equation involves one or more derivatives with respect to a particular variable,
that variable is called an independent variable. A variable is called dependent if the derivative
of that variable occurs. In equation (5); i is the dependent variable, t the independent
variable and L, R, C, E, and ω are called parameters.
Differential Equation Defined
An equation containing the derivatives of one or more dependent variables, with respect
to one or more independent variables, is said to be a differential equation (DE).
Classifications of DE in terms of
• Type
• Order
• Linearity
Classifications by Type
Classifications by Order
The order of a differential equation (either ODE or PDE) is the order of the highest
derivative in the equation. For example, equation (1) is a first-order equation while equation
(2) is a second-order equation. First-order differential equations are written in the form
M (x, y)dx + N (x, y)dy = 0 for convenience.
In symbols, one can express an nth-order differential equation in one variable by the
general form
F x, y, y 0 , . . . , y (n) = 0
(12)
where F is areal-valued function of n + 2 variable: x, y, y 0 , . . . , y (n) .For both practical and
theoretical reasons it is assumed that it is possible to solve an ordinary differential equation
in the form (12) uniquely for the highest derivative of y (n) in the term of the remaining n + 1
variables. The differential equation:
dn y 0 (n)
= f x, y, y , . . . , y (13)
dxn
where f is a real-valued continuous function, is referred to as the normal form of equation
(12).
Classifications by Linearity
or
dn y d(n−1) y dy
an (x)
n
+ a n−1 (x) (n−1)
+ · · · + a1 (x) + a0 (x)y = g(x) (14)
dx dx dx
Two important cases of (14) are first-order differential equation (n=1) and second-order
differential equation (n=2):
dy
a1 (x) + a0 (x)y = g(x)
dx
and
d2 y dy
a1 (x) 2 + a1 (x) + a0 (x)y = g(x) (15)
dx dx
In the additive combination on the left-side of (14) it can be seen that the characteristic two
properties of a linear ordinary differential equations are as follows:
• the dependent variable y and all its derivatives y 0 , y 00 , . . . , y (n−1) are of the first degree
The equations
(y − x) dx + 4x dy = 0
y 00 + 2y 0 + y = 0
and
d3 y dy
3
+ x − 5y = ex
dx dx
are, in turn, first-order linear differential equations. Note that the first equation can be
rewritten as 4xy 0 + y = x, thus it is linear in the variable y.
A non-linear ordinary differential equation is simply one that is not linear. Non-linear
functions of the dependent variable, or its derivatives, such as sin y or ey , cannot appear in
a linear equation.
for all x in I.
Interval of Definition
1 4 dy 1
Therefore, y = x is a solution of = xy 2 on the interval (−∞, ∞).
16 dx
Example 2. Verifying a solution of an Equation
Solution:
Substitute the function to the equation, then compare the left-hand and the right-hand side.
Left-hand side:
Right-hand side:
0
Therefore, y = xex is a solution of y 00 − 2y 0 + y = 0 on the interval (−∞, ∞).
Note that in this example, the differential equation has a constant solution y = 0 on
the interval −∞ < x < ∞. A solution of a differential equation that is identically zero on
an interval I is said to be a trivial solution.
Elimination of Arbitrary Constants
There are several ways a differential equation may come up, some will be discussed in
modeling. There is one way of obtaining a differential equation by stating some families of
relations defined by a parameter/s called arbitrary constants. These represent any random
value; however it is not a variable although it could take in any value but once it is given a
value it would no longer be given any more values like in the case of a variable.
Methods of elimination may vary with the way in which a constant is placed in a
relation. Methods that is effective with one problem may be poor for other problems.
Example 1.
x3 − 3x2 y =c
dy
3x2 − 3x2 − 6xy =0
dx
dy
−3x2 = 6xy − 3x2
dx
dy
x = (2y − x)
dx
xdy = (2y − x)dx
−(2y − x)dx + xdy =0
(2y − x)dx − xdy =0
Example 2.
y sin x − xy 2 =c
dy dy
y cos x + sin x − 2xy − y2 =0
dx dx
dy dy
sin x − 2xy = y 2 − y cos x
dx dx
dy
(sin x − 2xy) = y(y − cos x)
dx
(sin x − 2xy)dy = y(y − cos x)dx
−y(y − cos x)dx + (sin x − 2xy)dy =0
y(y − cos x)dx − (sin x − 2xy)dy =0
Example 3.
dy
x2 + 2xy = c (1)
dx
Since c 6= 0, solving c from the main relation we have,
x2 y = 1 + cx
x2 y − 1 = cx
x2 y − 1
c=
x
then substitute this c to (1),
dy x2 y − 1
x2 + 2xy =
dx x
Simplifying,
dy
x3 + 2x2 y = x2 y − 1
dx
dy
x3 = x2 y − 2x2 y − 1
dx
dy
x3 = −x2 y − 1
dx
3
x dy = −(x2 y + 1)dx
(x y + 1)dx + x3 dy
2
=0
Example 4.
x = c1 cos ωt + c2 sin ω
Solution:
Since there are two arbitrary constants to be eliminated, obtain the first and the second
derivatives,
dx
= −c1 ω sin ωt + c2 ω cos ωt
dt
d2 x
2
= −c1 ω 2 cos ωt − c2 ω 2 sin ωt
dt
d2 x
= −ω 2 (c1 cos ωt + c2 sin ωt)
dt2
Notice that, c1 cos ωt+c2 sin ωt is simply equal to x from the given relation. Then the second
derivative can be expressed as
d2 x
= −ω 2 x
dt2
or
d2 x
+ ω2x = 0
dt2
Example 5.
y2
4a =
x
dy y2
2y =
dx x
2xydy = y 2 dx
2xydy − y 2 dx = 0
Example 6.
y = c1 + c2 e3x
Solution:
Obtain the first and the second derivatives of the given relation,
y = c1 + c2 e3x
dy
= 3c2 e3x
dx
d2 y
= 3(3c2 e3x )
dx2
d2 y dy
2
=3
dx dx
2
dy dy
2
−3 =0
dx dx
or
y 00 − 3y 0 = 0
Example 7.
y = x + c1 ex + c2 e−x
Solution:
Since there are two arbitrary constants to be eliminated, obtain the first and the second
derivatives,
y 0 = 1 + c1 ex − c2 e−x
y 00 = c1 ex + c2 e−x (1)
From the given relation,
y = x + c1 ex + c2 e−x
y − x = c1 ex + c2 e−x
Substituting to (1),
y 00 = c1 ex + c2 e−x
y 00 = y − x
or
y 00 − y + x = 0
Example 8.
y = x2 + c1 e2x + c2 e3x
Solution:
y 00 − 5y 0 + 6y = 6x2 − 10x + 2
Example 9.
y = Ae2x + Bxe2x
Solution:
2y − y 0 = −Be2x (4)
2y 0 − y 00 = −2Be2x (5)
y 00 − 4y 0 + 4y = 0
Families of Curves
General Form: Ax + By + C = 0
Point-Slope Form: y − y1 = m (x − x1 )
Slope-Intercept Form: y = mx + b
y2 − y1
Two-Point Form: y − y1 = (x − x1 )
x2 − x1
x y
Intercept Form: + =1
a b
Normal Form: x cos α + y sin α = ρ
Solution:
Some members of the family are drawn first.
As seen from the sketch, the lines have a common y-intercept b = 0 and have different slopes,
we can use the slope-intercept form.
y = mx + b
Since b = 0, we have
y = mx
which has one arbitrary constant m.
To eliminate m, we need to find the only the first derivative.
y = mx
Find the differential equation representing all lines with a slope 2/3.
Solution:
Some members of the family are drawn first.
As seen from the sketch, there is only one parameter that is changing and it is the y-intercept.
We can use the slope-intercept form,
2
y= +b
3
Differentiating,
2
y0 =
3
Example 3.
Find the differential equation representing all circles with center at the origin.
Solution:
The equation to use is
x2 + y 2 = r 2
wherein it only has one arbitrary constant r.
2x dx + 2y dy = 0
Rearranging,
x dx + y dy = 0
Example 4.
Find the differential equation representing all parabolas with vertex at the origin and focus
located on the y-axis.
Solution:
Some members of the family are drawn first.
It can be seen that the parabolas have the y-axis to be the principal axis, thus the family’s
equation is
(x − h)2 = 4a (y − k)
wherein, the vertex is the origin then h = 0 and k = 0. The equation to use now is
x2 = 4ay
To eliminate a, we need to do one differentiation.
x2 = 4ay (6)
Get the first derivative
4ay 0 = 2x
Solve for 4a
2x
4a =
y0
Substitute 4a in (1),
2x
x2 = ·y
y0
Simplifying,
x0 − 2y = 0
Example 5.
Find the differential equation representing all circles with center at the x-axis.
Solution:
Some members of the family are drawn.
From the figure, it can be seen that the center may have the coordinates (h, k) wherein h
could be any value and k = 0. The radii of the circles are also varying.
Hence the equation to use is
(x − h)2 + y 2 = r2 (1)
which has two arbitrary constants.
First differentiation,
2 (x − h) + 2yy 0 = 0
Simplify,
yy 0 + x = h
Second differentiation,
2
yy 00 + (y 0 ) + 1 = 0
Example 6.
Find the differential equation representing ellipses and hyperbolas with axes on the
coordinate axes.
Solution:
We can write the equation as
ax2 + by 2 = 1. (1)
x(y 0 )2 − yy 0 + xyy 00 = 0
Example 7.
Find the differential equation representing all circles with center on the line y = x and
passing through the origin.
Solution:
Some members of the families are drawn.
x2 + 2xy − y 2 dx + y 2 + 2xy − x2 dy = 0
Example 8.
Solution:
We can use the standard forms of the equation of a line with the least number of arbitrary
constant. So we will use the slope-intercept form.
y = mx + b
First derivative,
y0 = m
Second derivative,
y 00 = 0
No more arbitrary constant.
Example 9.
Find the differential equation of all sine waves with a period of 2π and a phase shift of 0◦ .
Solution:
Some members of the families are drawn.
y = A sin x
Solve:
dn y
= f x, y, y 0 , y 00 , . . . , y (n−1)
n
(1)
dx
Subject to:
has at least two solutions. As illustrated in Figure (4), the graphs of both passes throught
the point (0, 0).
1
Figure 4: Solutions of y 0 = xy 2 subject to the initial condition y(0) = 0.
Bibliography
[Boyce and Diprima, 2001] Boyce, W. and Diprima, R. (2001). Elementary Differential
Equations with Boundary Value Problems. John Wylie & Sons, Inc.
[Bronson and Costa, 2009] Bronson, R. and Costa, G. (2009). Schaum’s Outline of
Differential Equations. McGraw-Hill Education, 3rd edition.
[Lebl, 2019] Lebl, J. (2019). Notes on Diffy Qs: Differential Equations for Engineers.
Independently Published.
[Rainville et al., 2013] Rainville, D., Bedient, P., and Bedient, R. (2013). Elementary
Differential Equations: Pearson New International Edition. Pearson Education, Limited.
[Zill, 2012] Zill, D. (2012). A First Course in Differential Equations with Modeling
Applications. Cengage Learning.