Diff Eq 1 Review
Diff Eq 1 Review
At various points in the material we will be covering, we will need to recall and use material
normally covered in an elementary course on ordinary differential equations. In these notes, we
will very briefly review the main topics that will be needed later. For more complete discussions
of these topics, see your current text on differential equations (by Boyce and DiPrima), or your
old introductory text on ordinary differential equations, or see your instructor’s treatment of these
topics.1
1. The order is the order of the highest order derivative of the unknown function explicitly
appearing in the equation.
2. A solution is any function (or formula for a function) that satisfies the equation.
3. A general solution is a formula that describes all solutions to the equation. Typically, the
general solution to a k th order ode contains k arbitrary/undetermined constants.
1/3/2013 1
Review of Elementary ODEs 2
Separable Equations∗
A first-order ode is separable if it can be written as
dy
= g(x)h(y) .
dx
Such a de can be solved by the following procedure:
1. Get it into the above form (i.e., the derivative equaling the product of a function of x
(the g(x) above), with a function of y (the above h(y) ).
2. Divide through by h(y) (but also consider the possibility that h(y) = 0 ).
3. Integrate both sides with respect to x (don’t forget an arbitrary constant).
4. Solve the last equation for y(x) .
H⇒ arctan(y) = x 2 + c
y = tan x 2 + c
H⇒ .
Linear Equations†
A first-order ode is said to be linear if it can be written in the form
dy
+ p(x)y = q(x)
dx
where p(x) and q(x) are known functions of x . Such a differential equation can be solved by
the following procedure:
∗ see, also, chapter 4 of the online text
† see, also, chapter 5 of the online text
version: 1/3/2013
Review of Elementary ODEs 3
dy
H⇒ x4 + 4x 3 y = 21x 6 .
dx
But, by the product rule,
d 4 dy
x y(x) = x 4 + 4x 3 y
,
dx dx
and so we can rewrite our last differential equation as
d 4
x y(x) = 21x 6
.
dx
This can be easily integrated and solved:
Z Z
d 4
21x 6 d x
x y(x) d x =
dx
H⇒ x 4 y(x) = 3x 7 + c
3x 7 + c
H⇒ y(x) =
x4
H⇒ y(x) = 3x 3 + cx −4 .
version: 1/3/2013
Review of Elementary ODEs 4
1. The formula for the integrating factor µ(x) is actually derived from the requirement that
d dy dµ dy
[µ(x) y(x)] = µ + y = µ + µpy ,
dx dx dx dx
which is the “observation” made in step 3b of the procedure. This means that µ must
satisfy the simple differential equation
dµ
= µp .
dx
2. Many texts state a formula for y(x) in terms of p(x) and q(x) . The better texts also
state that memorizing and using this formula is stupid.
Other Methods
Other methods for solving first-order ordinary differential equations include the integration of
exact equations, and the use of either clever substitutions or more general integrating factors to
reduce “difficult” equations to either separable, linear or exact equations. See a good de text if
you are interested.
a0 y (N ) + a1 y (N −1) + · · · + a N −2 y ′′ + a N −1 y ′ + a N y = f
where f and the ak ’s are known functions of x (with a0 (x) not being the zero function). The
equation is said to be homogeneous if and only if f is the zero function (i.e., is always 0 ).
Recall that, if the equation is homogeneous, then we have “linearity”, that is, whenever y1
and y2 are two solutions to a homogeneous linear differential equation, and a and b are any two
constants, then y = ay1 + by2 is another solution to the differential equation. In other words,
the set of solutions to a homogeneous linear differential equations is a vector space of functions.
(Isn’t it nice to see vector spaces again?)
Recall further, that
{y1 , y2 , . . . , y N }
‡ see, also, chapter 12, sections 1 – 3, and chapter 14 of the online text
version: 1/3/2013
Review of Elementary ODEs 5
y1 y2 y3 ··· yn
y1 ′ y2 ′ y3 ′ ··· yn ′
W = y1 ′′ y2 ′′ y3 ′′ ··· yn ′′ .
.. .. .. .. ..
. . . . .
y1 (n−1) y2 (n−1) y3 (n−1) · · · yn (n−1)
to some given N th -order homogeneous linear differential equation is linearly independent if and
only if
W (x0 ) 6= 0
for any point in the interval over which these yk ’s are solutions.
This is a highly recommended test when N > 2 , but, frankly, it is silly to use it when
N = 2 . Then, we just have a pair of solutions
and any such pair is linearly independent if and only if neither function is a constant multiple of
each other, and THAT is usually obvious upon inspection of the two functions.
version: 1/3/2013
Review of Elementary ODEs 6
ay ′′ + by ′ + cy = 0
where a , b , and c are (real) constants. To solve such an equation, assume a solution of the
form
y(x) = er x
(where r is a constant to be determined), and then plug this formula for y into the differential
equation. You will then get the corresponding characteristic equation for the de,
ar 2 + br + c = 0 .
where c1 and c2 are arbitrary constants. (Note: The c2 xer+ x part of the solution can be
derived via the method of “reduction of order”.)
3. If r+ or r− is complex valued, then they are complex conjugates of each other,
r+ = α + iβ and r− = α − iβ
for some real constants α and β . The general solution to the differential equation can
then be written as
y(x) = c1 e(α + iβ)x + c2 e(α − iβ)x
where c1 and c2 are arbitrary constants. However, because
where C1 and C2 are arbitrary constants. In practice, the later formula for y is usually
preferred because it involves just real-valued functions.
§ see, also, chapter 16 of the online text
version: 1/3/2013
Review of Elementary ODEs 7
d2 r x d rx
+ 13 er x = 0
2
e − e
dx dx
H⇒ r 2 er x − 4r er x + 13er x = 0
H⇒ r 2 − 4r + 13 = 0 .
Thus, p √
−(−4) ± (−4)2 − 4 · 13 4 ± −36
r = = = 2 ± 3i .
2 2
So the general solution to the differential equation can be written as
¶
Second-Order Euler Equations
A second-order Euler equation2 is a differential equation that can be written as
ax 2 y ′′ + bx y ′ + cy = 0
where a , b , and c are (real) constants. To solve such an equation, assume a solution of the
form
y(x) = x r
(where r is a constant to be determined), and then plug this formula for y into the differential
equation, and solve for r .
With luck, you will get two distinct real values for r , r1 and r2 , in which case, the general
solution to the differential equation is
y(x) = c1 x r1 + c2 x r2
version: 1/3/2013
Review of Elementary ODEs 8
Plugging in y = x r , we get
d2 r d r
x2 x − 9 xr = 0
2
x + x
dx dx
x 2 r (r − 1)x r −2 + x r x r −1 − 9 x r = 0
H⇒
H⇒ r 2 x r − r x r + r x r − 9x r = 0
H⇒ r2 − 9 = 0
H⇒ r = ±3 .
y(x) = c1 x 3 + c2 x −3 .
Other Methods
For solving more involved homogeneous second-order odes, there is still the method of Frobenius
(which we will later discuss in some detail). You may also want to look up the method of
reduction of order in your old differential equation text or chapter 13 of the online text (or see
the last problem in the next homework list).
For solving nonhomogeneous second-order odes, you may want to recall the methods of
“undetermined coefficients” (aka the “method of guess”) and “variation of parameters”, described
in chapters 21 and 23 of the online text.
version: 1/3/2013
Review of Elementary ODEs 9
Additional Exercises
1.1. In this set, all the differential equations are first-order and separable.
a. Find the general solution for each of the following:
dy dy
i. = x y − 4x ii. = 3y 2 − y 2 sin(x)
dx dx
dy dy y
iii. = x y − 3x − 2y + 6 iv. =
dx dx x
b. Solve each of the following initial-value problems.
dy
i. − 2y = −10 with y(0) = 8
dx
dy
ii. y = sin(x) with y(0) = −4
dx
dy
iii. x = y2 − y with y(1) = 2
dx
1.2. In this set, all the differential equations are linear first-order equations.
a. Find the general solution for each of the following:
dy dy
i. + 2y = 6 ii. + 2y = 20e3x
dx dx
dy dy
iii. = 4y + 16x iv. − 2x y = x
dx dx
b. Solve each of the following initial-value problems:
dy
i. + 5y = e−3x with y(0) = 0
dx
dy
ii. x + 3y = 20x 2 with y(1) = 10
dx
dy
π
iii. x = y + x 2 cos(x) with y =0
dx 2
1.3. Find the general solution to each of the following second-order linear equations with
constant coefficients. Express your solution in terms of real-valued functions only.
a. y ′′ − 9y = 0 b. y ′′ + 9y = 0
c. y ′′ + 6y ′ + 9y = 0 d. y ′′ + 6y ′ − 9y = 0
e. y ′′ − 6y ′ + 9y = 0 f. y ′′ + 6y ′ + 10y = 0
g. y ′′ − 4y ′ + 40y = 0 h. 2y ′′ − 5y ′ + 2y = 0
version: 1/3/2013
Review of Elementary ODEs 10
1.5. Find the general solution to each of the following Euler equations on (0, ∞) :
a. x 2 y ′′ − 5x y ′ + 8y = 0 b. x 2 y ′′ − 2y = 0
c. x 2 y ′′ − 2x y ′ = 0 d. 2x 2 y ′′ − x y ′ + y = 0
b. x y ′ + 2y = 8
1 2
c. y ′ + y = 2e x
x
d. y ′′ + a 2 y = 0 where a is a positive constant
f. y ′′ + 4y ′ − 5y = 0
g. y ′′ − 6y ′ + 9y = 0
h. x 2 y ′′ − 6x y ′ + 10y = 0
y(x) = x r v(x)
where r is the exponent just found and v(x) is a function to be determined. Plug this
into the differential equation, simplify, and you should get a relatively easy differential
equation to solve for v(x) (it may help to let u(x) = v ′ (x) at one point). Solve for
v (don’t forget any arbitrary constants) and plug the resulting formula into the above
formula for y . There, you’ve just done “reduction of order”.
version: 1/3/2013
Review of Elementary ODEs 11
version: 1/3/2013