Appendix - ODE Review
Appendix - ODE Review
_
1
y
2
+1
dy
dx
dx =
_
2x dx
arctan(y) = x
2
+ c
y = tan
_
x
2
+c
_
.
Linear Equations
An N
th
order differential equation is said to be linear if it can be written in the form
a
0
y
(N)
+ a
1
y
(N1)
+ + a
N2
y
+ a
N1
y
+ a
N
y = f
where f and the a
k
s are known functions of x (with a
0
(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 y
1
and y
2
are two solutions to a homogeneous linear differential equation, and a and b are any two
constants, then y = ay
1
+ by
2
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.
(Isnt it nice to see vector spaces again?)
Recall further, that
1. The general solution to an N
th
order linear homogeneous ordinary differential equation
is given by
y(x) = c
1
y
1
(x) + c
2
y
2
(x) + + c
N
y
N
(x)
where the c
k
s are arbitrary constants and
{y
1
, y
2
, . . . , y
N
}
y
1
y
2
y
3
y
n
y
1
y
2
y
3
y
n
y
1
y
2
y
3
y
n
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
y
1
(n1)
y
2
(n1)
y
3
(n1)
y
n
(n1)
.
The test is that the set of N solutions
{y
1
(x), y
2
(x), . . . , y
N
(x)}
to some given N
th
-order homogeneous linear differential equation is linearly independent if and
only if
W(x
0
) = 0
for any point in the interval over which these y
k
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
{y
1
(x), y
2
(x)}
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/25/2012
Review of Elementary ODEs Appendix & Page: A6
Second-Order Linear Homogeneous Equations with
Constant Coefcients
+ by
+ cy = 0
where a , b , and c are (real) constants. To solve such an equation, assume a solution of the
form
y(x) = e
r 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 .
Solve the characteristic equation. Youll get two values for r ,
r = r
=
b
b
2
4ac
2a
(with the possibility that r
+
= r
). Then:
1. If r
+
and r
are two distinct real values, then the general solution to the differential
equation is
y(x) = c
1
e
r
+
x
+ c
2
e
r
x
where c
1
and c
2
are arbitrary constants.
2. If r
+
= r
, then r
+
is real and the general solution to the differential equation is
y(x) = c
1
e
r
+
x
+ c
2
xe
r
+
x
where c
1
and c
2
are arbitrary constants. (Note: The c
2
xe
r
+
x
part of the solution can be
derived via the method of reduction of order.)
3. If r
+
or r
= i
for some real constants and . The general solution to the differential equation can
then be written as
y(x) = c
1
e
( + i)x
+ c
2
e
( i)x
where c
1
and c
2
are arbitrary constants. However, because
e
( i)x
= e
x
[cos(x) i sin(x)] ,
the general solution to the differential equation can also be written as
y(x) = C
1
e
x
cos(x) + C
2
e
x
sin(x)
where C
1
and C
2
are arbitrary constants. In practice, the later formula for y is usually
preferred because it involves just real-valued functions.
4y
+ 13y = 0 .
Plugging in y = e
r x
, we get
d
2
dx
2
_
e
r x
_
d
dx
_
e
r x
_
+ 13
_
e
r x
_
= 0
r
2
e
r x
4re
r x
+ 13e
r x
= 0
r
2
4r + 13 = 0 .
Thus,
r =
(4)
_
(4)
2
4 13
2
=
4
36
2
= 2 3i .
So the general solution to the differential equation can be written as
y(x) = c
1
e
(2+3i )x
+ c
2
e
(23i )x
or as
y(x) = C
1
e
2x
cos(3x) + C
2
e
2x
sin(3x) ,
with the later formula usually being preferred.
Second-Order Euler Equations
+ bxy
+ 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 , r
1
and r
2
, in which case, the general
solution to the differential equation is
y(x) = c
1
x
r
1
+ c
2
x
r
2
where c
1
and c
2
are arbitrary constants.
With less luck, you only complex values for r , or only one value for r . See see your old
de text or chapter 19 of www.math.uah.edu/howell/DEtext to see what to do in these
cases.
+ xy
9y = 0 .
Plugging in y = x
r
, we get
x
2
d
2
dx
2
_
x
r
_
+ x
d
dx
_
x
r
_
9
_
x
r
_
= 0
x
2
_
r(r 1)x
r2
_
+ x
_
r x
r1
_
9
_
x
r
_
= 0
r
2
x
r
r x
r
+ r x
r
9x
r
= 0
r
2
9 = 0
r = 3 .
So the general solution to the differential equation is
y(x) = c
1
x
3
+ c
2
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 inyour olddifferential equationtext or chapter 13of www.math.uah.edu/howell/DEtext
(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 coefcients (aka the method of guess) and variation of parameters.
version: 1/25/2012
Review of Elementary ODEs Appendix & Page: A9
Additional Exercises
A.1. In this set, all the differential equations are rst-order and separable.
a. Find the general solution for each of the following:
i.
dy
dx
= xy 4x ii.
dy
dx
= 3y
2
y
2
sin(x)
iii.
dy
dx
= xy 3x 2y + 6 iv.
dy
dx
=
y
x
b. Solve each of the following initial-value problems.
i.
dy
dx
2y = 10 with y(0) = 8
ii. y
dy
dx
= sin(x) with y(0) = 4
iii. x
dy
dx
= y
2
y with y(1) = 2
A.2. In this set, all the differential equations are linear rst-order equations.
a. Find the general solution for each of the following:
i.
dy
dx
+ 2y = 6 ii.
dy
dx
+2y = 20e
3x
iii.
dy
dx
= 4y + 16x iv.
dy
dx
2xy = x
b. Solve each of the following initial-value problems:
i.
dy
dx
+ 5y = e
3x
with y(0) = 0
ii. x
dy
dx
+ 3y = 20x
2
with y(1) = 10
iii. x
dy
dx
= y + x
2
cos(x) with y
_
2
_
= 0
A.3. Find the general solution to each of the following second-order linear equations with
constant coefcients. 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
A.4. Solve the following initial-value problems:
a. y
7y
(0) = 16
b. y
10y
(0) = 0
c. y
(0) = 15
version: 1/25/2012
Review of Elementary ODEs Appendix & Page: A10
A.5. Find the general solution to each of the following Euler equations on (0, ) :
a. x
2
y
5xy
+ 8y = 0 b. x
2
y
2y = 0
c. x
2
y
2xy
= 0 d. 2x
2
y
xy
+ y = 0
A.6. Solve the following initial-value problems involving Euler equations:
a. x
2
y
6xy
(1) = 7
b. 4x
2
y
+ 4xy
(4) = 2
A.7. Find the general solution to each of the following:
a. y
+ 2y = 3
b. xy
+ 2y = 8
c. y
+
1
x
y = 2e
x
2
d. y
+ a
2
y = 0 where a is a positive constant
e. 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
6xy
+ 10y = 0
i. x
2
y
9xy
1
2
2b i.
1
2
_
e
3x
e
5x
_
2b ii. 4x
2
+6x
3
2b iii. x[sin(x) 1]
3a. y(x) = c
1
e
3x
+ c
2
e
3x
3b. y(x) = c
1
cos(3x) + c
2
sin(3x)
3c. y(x) = c
1
e
3x
+ c
2
xe
3x
3d. y(x) = c
1
e
(3+3
2)x
+ c
2
e
(33
2)x
3e. y(x) = c
1
e
3x
+ c
2
xe
3x
3f. y(x) = c
1
e
3x
cos(x) + c
2
e
3x
sin(x)
3g. y(x) = c
1
e
2x
cos(6x) + c
2
e
2x
sin(6x)
3h. y(x) = c
1
e
2x
+ c
2
e
x/2
4a. 3e
2x
+ 2e
5x
4b. e
5x
5xe
5x
4c. 4 cos(5x) 3 sin(5x)
5a. y = c
1
x
2
+c
2
x
4
5b. y = c
1
x
2
+c
2
x
1
5c. y = c
1
+c
2
x
3
5d. y = c
1
x +c
2
x
6a. y = 3x
5
4x
2
6b. y = 4x
1/2
16x
1/2
7a. 3 +ce
2x
7b. 4 +cx
2
7c.
_
e
x
2
+c
_
/x
7d. c
1
cos(ax) +c
2
sin(ax)
7e. c
1
e
ax
+c
2
e
ax
7f. c
1
e
x
+c
2
e
5x
7g. c
1
e
3x
+c
2
xe
3x
7h. c
1
x
2
+c
2
x
5
7i. c
1
x
5
+c
2
x
5
ln |x|
version: 1/25/2012