0% found this document useful (0 votes)
108 views105 pages

DifferentialEquations2420-book2013 Mod PDF

This document is a textbook on differential equations. It contains sections on various types of first and second order differential equations, including separable, linear, homogeneous, and exact equations. It also covers series solutions, Laplace transforms, systems of differential equations, and applications to physics problems like springs and circuits.

Uploaded by

Kristine D
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
108 views105 pages

DifferentialEquations2420-book2013 Mod PDF

This document is a textbook on differential equations. It contains sections on various types of first and second order differential equations, including separable, linear, homogeneous, and exact equations. It also covers series solutions, Laplace transforms, systems of differential equations, and applications to physics problems like springs and circuits.

Uploaded by

Kristine D
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 105

1

Differential Equations

By: Patrick Bourque

Designed for students of MATH 2420 at The University of Texas at Dallas.


2
Contents

1 First Order Equations. 5


1.1 Separable Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.2 First Order Linear Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.3 Bernoulli Equation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
1.4 Homogenous Equation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
1.5 Shift to Homogenous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1.6 Equations of the form: y’=G(ax+by+c) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
1.7 Exact Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
1.8 Integrating Factors for non-exact Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
1.9 Orthogonal Trajectories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

2 Second Order Equations. 31


2.1 Wronskian, Fundamental Sets and Able’s Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
2.2 Reduction of Order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
2.3 Equations of the form y”=f(x,y’) and y”=f(y,y’) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
2.4 Homogenous Linear Equations with Constant Coefficients. . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
2.5 The Method of Undetermined Coefficients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
2.6 Variation of Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
2.7 Cauchy Euler Equation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
2.8 Everyone Loves a Slinky: Springs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
2.9 Circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61

3 Series Solution 63
3.1 Series Solutions Around Ordinary Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
3.2 Method of Frobenius: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
3.3 The Gamma Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
3.4 Bessel’s Equation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74

4 Laplace Transform 79
4.1 Calculating Laplace and Inverse Laplace Transforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
4.2 Solving Initial Value Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
4.3 Unit Step Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
4.4 Convolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
4.5 Delta Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92

3
4 CONTENTS

5 First Order Systems of Differential Equations 95


5.1 Linear Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
5.2 Locally Linear Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
5.3 Linear Systems and the Laplace Transform . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Chapter 1

First Order Equations.

1.1 Separable Equations


A Differential Equation is Separable if it can be written as:

f (x)dx = g(y)dy

The Solution is found by integrating both sides.

An Example: Solve:

ex ydx = (e2x + 1)dy y(0) = 1

Solution:

ex
Z Z
dy
2x
dx =
e +1 y
Using the substitution u = ex , du = ex dx on the integral on the left
Z Z
du dy
2
=
u +1 y

arctan(u) + C = ln |y| arctan(ex ) + C = ln |y|

Applying our initial conditions

π −π
arctan(1) + C = ln(1) +C =0 C=
4 4

π
arctan(ex ) − = ln |y|
4
Solving for y gives the solution to the differential equation:

5
6 CHAPTER 1. FIRST ORDER EQUATIONS.

x
)− π
y = earctan(e 4

An Application:
A parachutist falling toward Earth is subject to two forces: the parachutist weight (w = 32m) and the drag of the
parachute. The drag of the parachute the drag is proportional to the velocity of the parachute and in this case is equal
to 8|v|. The parachutist weight is 128lb and initial velocity is zero. Find formulas for the parachutists velocity v(t) and
distance x(t).

Since x(t) increases as the parachutist falls, the downward direction is the positive direction. The force from the
parachutist’s weight acts in the positive direction while the drag from the parachute acts in the negative direction. Since
the parachutist falls down (the positive direction) velocity is always positive so |v| = v. The resultant force will be the
force of the weight of the parachutist minus the force of the drag of the parachute:

F = 128 − 8v

And the mass of the parachutist is:

128 = 32m m=4

By Newton’s second law:

dv dv
F = ma = 4 since a=
dt dt
This gives a differential equation:

dv
4 = 128 − 8v
dt
This equation is Separable:

dv
= dt
32 − 2v
Integrating

−1
ln(32 − 2v) = t + C or ln(32 − 2v) = −2t + C
2
Applying the initial condition v(0) = 0

C = ln(32)

Solving for v(t) gives:

v(t) = 16 − 16e−2t

The parachutist terminal velocity is given by:


1.1. SEPARABLE EQUATIONS 7

lim v(t) = lim 16 − 16e−2t = 16ft/sec


t→∞ t→∞

We can now find an equation: x(t) for how far the parachutist has fallen:
Z Z
x(t) = v(t)dt = (16 − 16e−2t )dt = 16t + 8e−2t + K

Since x(0) = 0 we see that K = −8. Thus,

x(t) = 16t + 8e−2t − 8

1.
Solve the differential equation

(x2 + 1)dy = (4x + xy 2 )dx y(0) = 2

2.
Solve the differential equation

2 p
(2xy + 2x)dx = e−x dy y( ln(5)) = 0

3.
Solve the differential equation

dy p
= 16x2 y − 4x2 y 2 y(2) = 1
dx
4.
Solve the differential equation

dy p
x = y + x2 − y 2 y(1) = 0
dx
5.
Solve the differential equation
√ √
x−2 y+1
√ dy = √ dx
y−1 x+2
6.
Use the Second Fundamental Theorem of Calculus to verify

Rx
y = Ce− a
g(u)du

is a solution to

y 0 + g(x)y = 0
8 CHAPTER 1. FIRST ORDER EQUATIONS.

Some times it is useful to convert a differential equation to polar coordinates before solving it. The conversions to
polar coordinates is:

x = r cos θ y = r sin θ

Calculating the total differential of both x and y we get:

dx = cos θdr − r sin θdθ dy = sin θdr + r cos θdθ

Making

dy sin θdr + r cos θdθ


=
dx cos θdr − r sin θdθ
Use this conversion to polar coordinates to solve the next two problems:
7.
Solve by converting to polar coordinates

dy
x+y =x
dx
8.
Solve by converting to polar coordinates

(2xy + 3y 2 )dx = (2xy + x2 )dy

9.
Salt water containing .25 pounds of salt per gallon is being pumped into a tank initially containing 100 gallons of
water and 10 pounds of salt at a rate of 4 gallons per minute. The mixture in the tank is kept well stirred and fluid flows
out of the tank at a rate of 4 gallons per minute. Find a formula that represents the amount of salt in the tank at any
time.
10.
Newton’s law of cooling states that an object with temperature T in a medium of constant temperature M will
experience a change in temperature proportional to the difference in the temperature of the object and the medium
(M − T ). This gives the differential equation:

dT
= k(M − T )
dt
A cup of 170◦ coffee is place in a 75◦ room. After 10 minutes the coffee is measured to have a temperature of 150◦ .
How long will it take for the coffee to cool to 120◦ ?
11.
For every point P(x, y) on a curve in the first quadrant, the rectangle containing the points O(0, 0) and P(x, y) as
vertices is divided by the curve into two regions: upper region A and lower region B. If the curve contains the point Q(1,
3), and region A always has twice the area of region B, find the equation of the curve.
1.2. FIRST ORDER LINEAR EQUATIONS 9

1.2 First Order Linear Equations


A Differential Equation is First Order Linear if it has the form:

dy
+ P (x)y = Q(x)
dx
dy
To solve this equation we recognize the left hand side: dx + P (x)y looks close to the derivative of the product of
some function times y. Idea: multiply both sides of the equation by some function I(x) to make the left hand side the
derivative of the product of I(x) times y. Multiplying both sides by I(x) gives:

dy
I(x) + I(x)P (x)y = I(x)Q(x)
dx
If the left hand side is the derivative of the product I(x) · y:
 
d dy
I(x) · y = I(x) · + I(x)0 · y
dx dx

Then:

dy dy
I(x) + I(x)P (x) · y = I(x) · + I 0 (x) · y
dx dx
So

I(x)P (x) · y = I 0 (x) · y

I 0 (x)
= P (x)
I(x)
Integrating gives:
Z
ln |I(x)| = P (x)dx

Solving for the Integrating Factor I(x) gives:

R
P (x)dx
I(x) = e

After multiplying both sides of the original differential equation by I(x) the left hand side is the derivative of the
product I(x) · y so the equation:

dy
I(x) + I(x)P (x)y = I(x)Q(x)
dx
Becomes:
 
d
I(x) · y = I(x)Q(x)
dx
Integrating gives:
  Z
I(x) · y = I(x)Q(x)dx

And the solution is given by:


10 CHAPTER 1. FIRST ORDER EQUATIONS.

Z 
1
y= I(x)Q(x)dx + C
I(x)
An Example: Solve:

dy
cos(x) + sin(x)y = sec2 (x)
dx
Writing the differential equation in standard form:

dy
+ tan(x)y = sec3 (x)
dx
Creating the integrating factor

R
tan(x)dx
I=e = eln(sec(x)) = sec(x)

Our Solution is:


Z 
1
y= sec(x) sec3 (x)dx + C
sec(x)
Z  Z 
y = cos(x) sec4 (x)dx + C = cos(x) sec2 (x)(1 + tan2 (x))dx + C

Z Z 
y = cos(x) sec2 (x)dx + tan2 (x) sec2 (x)dx + C

Using the substitution u = tan(x), du = sec2 (x)dx on the second integral


Z Z 
2 2
y = cos(x) sec (x)dx + u du + C

u3
 
y = cos(x) tan(x) + +C
3
 
1 3
y = cos(x) tan(x) + tan (x) + C
3

12.
Solve:

xy 0 − 3y = x4 y(1) = 1

13.
Solve:
 
π
y 0 + tan(x)y = tan(x) y =1
4
14.
Solve:
1.2. FIRST ORDER LINEAR EQUATIONS 11

p dy
1 − x2 +y =1 y(0) = 4
dx
15.
Solve:

cos2 (x)y 0 + y = 1 y(0) = −3

16.
Solve:

(ex + e−x )2
 
x −x dy
(e + e ) + y=1
dx (ex − e−x )
17.
Solve:

dy
(1 + x4 ) − 4x3 y = (x5 + x) arctan(x2 ) y(1) = π
dx
18.
Solve:

dy dy
y−x = y 2 ey
dx dx
19.
Find all values of k so that the solution y approaches 0 as x approaches ∞

k
y0 + y = x2
x
20.
Salt water containing .25 pounds of salt per gallon is being pumped into a tank initially containing 100 gallons of
water and 10 pounds of salt at a rate of 4 gallons per minute. The mixture in the tank is kept well stirred and fluid flows
out of the tank at a rate of 2 gallons per minute. Find a formula that represents the amount of salt in the tank at any
time.
21.
The following equation is not separable or linear. Use the substitution u = e2y to transform it into a linear equation.

dy
2xe2y = 3x4 + e2y
dx
22.
The following equation is not separable or linear. Use the substitution y = eu to transform it into a linear equation.

dy
x − 4x2 y + 2y ln(y) = 0
dx
23.
The following equation is not separable or linear. Use the substitution u = y 2 to transform it into a linear equation.

dy
2xy + 2y 2 = 3x − 6
dx
12 CHAPTER 1. FIRST ORDER EQUATIONS.

24.
The differential equation governing the velocity v of a falling object subject to air resistance is

dv
m = mg − kv k>0 v(0) = v0
dt
Solve this differential equation and determine the limiting velocity of the object.
25.
If A(t) represents the amount of money in an account then the change in the amount in the account is given by:

dA
= Deposits − Withdraws + Interest
dt
With a constant interest rate r the interest on the account is rA (remember A is the amount of money you will be
getting interest on). This makes the differentia equation:

dA
= Deposits − Withdraws + rA
dt
In first order linear form:

dA
− rA = Deposits − Withdraws
dt
Use this differential equation to solve the following:

A person opens an account yielding 3 percent interest is opened with an initial investment of 1000 dollars. On the
first year they deposit 100 dollars, the year month 110 dollars, the third year 120 dollars.... So each year they deposit 10
dollars more than the year before. How much will they have in the account in ten years?
26.
An equation of the form:

y 0 + P (x)y = 0

is called a first order linear homogenous (Q(x)=0) differential equation. It can be solve by separation of variables
while

y 0 + P (x)y = Q(x)

cannot. Show that if yh (x) is the solution to the homogenous equation

y 0 + P (x)y = 0

then
Z
Q(x)
y(x) = yh (x) dx
yh (x)
is the solution to the nonhomogenous equation

y 0 + P (x)y = Q(x)

Use this technique to solve:


1.3. BERNOULLI EQUATION 13

xy 0 + y = e4x

The Riccati Differential Equation is an equation of the form:

dy
= P (x)y 2 + Q(x)y + R(x)
dx
1
If u(x) is a solution to the equation then the substitution y = u + v will transform the equation into a first order
linear equation.
27.
Solve the Riccati Equation:

dy
= −8xy 2 + 4x(4x + 1)y − (8x3 + 4x2 − 1) u(x) = x is one solution
dx
28.
Solve the Riccati Equation:

dy y
= x3 (y − x)2 + u(x) = x is one solution
dx x

1.3 Bernoulli Equation


The Bernoulli Differential Equation is an equation of the form:

dy
+ P (x)y = Q(x)y n
dx
After the substitution z = y 1−n this equation will be First Order Linear. Differentiating gives:

dz dy
= (1 − n)y −n
dx dx
Multiplying both sides of the Bernoulli equation by (1 − n)y −n gives:

dy
(1 − n)y −n + (1 − n)P (x)y 1−n = (1 − n)Q(x)
dx
Under the substitution this equation becomes:

dz
+ (1 − n)P (x)z = (1 − n)Q(x)
dx
Which is a First Order Linear differential equation.
An Example: Solve:

dy 2
+ 2xy = e3x +2x y 4
dx
14 CHAPTER 1. FIRST ORDER EQUATIONS.

dz dy
Let z = y 1−4 = y −3 So = −3y −4
dx dx
Multiplying both sides of the differential equation by −3y −4 gives:

dy 2
−3y −4 + (−6x)y −3 = −3e3x +2x
dx
Under our substitution our differential equation becomes:

dz 2
+ (−6x)z = −3e3x +2x
dx
This is First Order Linear. Our Integrating Factor is:

2
R
I=e (−6x)dx
= e−3x

The solution is:


Z 
1 −3x2 3x2 +2x
z= e (−3e )dx + C
e−3x2
   
3x2 −3 2x
Z
3x2 2x
z=e − 3 e dx + C = e e +C
2
Back substituting gives:
2 2
1 −3 3x2 +2x 2 Ce3x − 3e3x +2x

3
= e + Ce3x =
y 2 2

2
y3 =
Ce3x2 − 3e3x2 +2x
So
r
3 2
y=
Ce3x2 − 3e3x2 +2x

29.
Solve:

dy xy 2
y + 2 =x
dx x + 1
30.
Solve:

dy y
x − = x arcsin(x)y 5
dx 2
31.
Solve:

dy
= y 4 cos(x) + y tan(x)
dx
1.4. HOMOGENOUS EQUATION 15

32.
Solve:

dy 1
+ y = (1 − cos(2x))y 3
dx sin(2x)
33.
Solve:

dy 2
x − y = ex y 5
dx
34.
Solve:

dy −y 2
x +y =
dx x

1.4 Homogenous Equation


A differential equation is Homogenous if it has the form:
 
dy y
=f
dx x
y
The substitution z = x or y = xz will transform the Homogenous equation into a Separable equation.

dy dz
=z+x
dx dx
Under this substitution the Homogenous equation becomes:

dz
z+x = f (z)
dx
This reduces to the Separable equation

dz dx
=
f (z) − z x
An Example: Solve

dy y 3 + 2x2 y
=
dx xy 2 + x3
Solution:
1
Multiplying the numerator and denominator on the right hand side by x3 gives:

y3 y
dy x3 + 2 x
= y 2
dx
x2 + 1

y dy dz
Let z = so y = xz =z+x
x dx dx
Under this substitution our differential equation becomes:
16 CHAPTER 1. FIRST ORDER EQUATIONS.

dz z 3 + 2z
z+x = 2
dx z +1

dz z
x = 2
dx z +1

z1 + 1 dx
dz =
z x
Z   Z
1 dx
z+ =
z x

z2
+ ln(z) = ln(x) + C
2

1 y2
 
y
+ ln = ln(x) + C
2 x2 x
Since we cannot solve for y this implicit solution is our final answer.

Notice the sum of the exponents in both terms in the numerator and both terms in the denominator is 3. Whenever
the sum of the exponents in each term in the problem is the same constant you should consider using the homogenous
substitution to solve the differential equation. The first practice problem should help reinforce this idea.
35.
Solve:

dy y 4 + x2 y 2 + x4
=
dx x3 y
36.
Solve:
 
y
y 2 ln x + x2
dy
=  
dx y
xy ln x

37.
Solve:
   
y dy y
x sin = y sin +x
x dx x
38.
Solve:
 
2 2 y
y tan x + x2
dy
=  
dx y
xy tan2 x

39.
Solve:
1.5. SHIFT TO HOMOGENOUS 17

dy 2y 2 + 2xy + 2x2
=
dx xy
40.
Solve:

(2(y − 1)(x + y − 1) + (y − 1)2 )dx + (4(y − 1)(x + y − 1) + (x + y − 1)2 )dy = 0

41.
y
Use the substitution z = x2 solve the following differential equation
 
dy 2y y
= + cos
dx x x2

1.5 Shift to Homogenous


A differential equation can shifted to produce a Homogenous differential equation if it is of the form:

dy a1 x + b1 y + c1
=
dx a2 x + b2 y + c2
If the constant terms c1 and c2 are both zero then the above equation is already Homogenous. This provides the
motivation of shifting x and y by a constant so that the resulting equation has constant terms c1 and c2 both equal to
zero. To shift this into a Homogenous differential equation use the substitutions:

x = x + d1 y = y + d2

With d1 and d2 chosen so that the two equations:

a1 x + b1 y + c1 = 0 a2 x + b2 y + c2 = 0

reduce to:

a1 x + b1 y = 0 a2 x + b2 y = 0

The idea is motivated by the fact that if the constants c1 and c2 are both zero then:

dy a1 x + b1 y + c1
=
dx a2 x + b2 y + c2
is Homogenous.
So choose d1 and d2 to be the solutions to:

a1 d1 + b1 d2 + c1 = 0 a2 d1 + b2 d2 + c2 = 0

An Example: Solve:

dy x − 2y − 2
=
dx 2x + y + 6
18 CHAPTER 1. FIRST ORDER EQUATIONS.

Solving system of equations:

x − 2y − 2 = 0 2x + y + 6 = 0

x = 2 + 2y 2(2 + 2y) + y = −6 5y = −10 y = −2 x = −2


dy dy
We will use the substitution x = x − 2 and y = y − 2 making dx = dx
Our differential equation becomes:

dy x − 2y
=
dx 2x + y
1
Multiplying the numerator and denominator on the right hand side by x gives:

dy 1 − 2 xy
=
dx 2 + xy

y dy dz
Letz = y = zx =z+x
x dx dx
Under this substitution our differential equation becomes:

dz 1 − 2z
z+x =
dx 2+z

dz −z 2 − 4z + 1
x =
dx z+2

z+2 dx
dz =
−z 2 − 4z + 1 x
Integrating gives:

−1
ln(−z 2 − 4z + 1) = ln(x) + C
2
  2   
y y
ln − −4 + 1 = −2 ln(x) + C
x x
Back substituting gives:
     
y+2 y+2
ln − −4 + 1 = −2 ln(x + 2) + C
x+2 x+2
Since we cannot solve for y as a function of x we must accept the above equation as our solution.
42.
Solve:

dy −8x + 3y + 2
=
dx −9x + 5y − 1
43.
Solve:
1.6. EQUATIONS OF THE FORM: Y’=G(AX+BY+C) 19

dy x + 3y + 4
=
dx 4y − 3x + 1
44.
Solve:

dy x+y+3
=
dx 2y − x + 3
45.
Solve:

dy x + 8y + 6
=
dx 2x + 5y + 1

1.6 Equations of the form: y’=G(ax+by+c)


If a differential equation is of the form:

dy
= G(ax + by + c)
dx
Then use the following substitution to transform the equation into a Separable Differential Equation:
 
dy 1 dz
z = ax + by + c = −a
dx b dx
Under this substitution our differential equation becomes
 
1 dz
− a = G(z)
b dx
which reduces to the Separable Differential Equation:

dz
= dx
a + bG(z)
An Example: Solve:
  
dy
= x+y 1 + ln(x + y) − 1
dx

dy dz
Let z =x+y = −1
dx dx
Under this substitution our differential equation becomes:

dz
− 1 = z(1 + ln(z))
dx
Z Z
dz
= dx
z(1 + ln(z))

ln(1 + ln(z)) = x + C
20 CHAPTER 1. FIRST ORDER EQUATIONS.

1 + ln(x + y) = Cex

ln(x + y) = Cex − 1

x
−1
x + y = eCe

And our final solution is:

x
−1
y = eCe −x

46.
Solve:

dy
= (x + y − 4)2
dx
47.
Solve:

dy
3 = (2x + 3y − 1) + 4(2x + 3y − 1)−3 − 2
dx
48.
Solve:

dy 1
2 = −1
dx (x + 2y + 1)e(x+2y+1)2
49.
Solve:

dy
= tan2 (x + y)
dx
50.
Solve:

dy
= csc2 (4x + y + 1) − 4
dx

1.7 Exact Equations


In multivariable we analyzed the functions of the form z = f (x, y) by studying their level sets. The level sets of this three
dimensional function can be graphed in two dimensional space by replacing z with different constants and analyzing the
resulting two dimensional graphs. The total differential of:

f (x, y) = C is fx dx + fy dy = 0

We also know that mixed partials are equal meaning:


1.7. EXACT EQUATIONS 21

fxy = fyx for all f (x, y) = C

We will now study the Exact Differential Equation. An Exact Differential Equation is an equation that was created
by calculating the total differential of some function of two variable set equal to a constant. In calculus we learned to go
from

f (x, y) = C to fx dx + fy dy = 0

In differential equations we will learn to go from

fx dx + fy dy = 0 to f (x, y) = C

The equation

M dx + N dy = 0 is Exact if M y = Nx

If an equation is exact then M is the partial derivative of some function f (x, y) = C with respect to x and N is the
partial derivative of the same function with respect to y. So to find f up to a constant we need to integrate M with
respect to x (obtaining a constant which will be a function g(y)) or we need to integrate N with respect to y (obtaining
a constant which will be a function g(x)). That is:
Z
f (x, y) = M dx + g(y)

We then solve for g(y) using the fact that fy = N . That is:
Z

fy = M dx + g 0 (y) = N
∂y
And the solve for g(y) and insert it into our formula for f (x, y) and write the final answer as a level set f (x, y) = C
An Example: Solve:

(8xy 3 + 2xy + 3x2 )dx + (12x2 y 2 + x2 + 4y 3 )dy = 0

Solution:

M = 8xy 3 + 2xy + 3x2 N = 12x2 y 2 + x2 + 4y 3

Test for exactness:

My = 24xy 2 + 2x Nx = 24xy 2 + 2x

Since My = Nx our differential equation is exact, making M = 8xy 3 + 2xy + 3x2 the partial derivative of the function
F we are solving for with respect to x. That is:

Fx = 8xy 3 + 2xy + 3x2

So
Z
F = (8xy 3 + 2xy + 3x2 )dx = 4x2 y 3 + x2 y + x3 + g(y)
22 CHAPTER 1. FIRST ORDER EQUATIONS.

Since this equation is exact Fy = N . This creates the equation:

Fy = 12x2 y 2 + x2 + g 0 (y) = 12x2 y 2 + x2 + 4y 3

So

g 0 (y) = 4y 3 g(y) = y 4

Our final solution is:

4x2 y 3 + x2 y + x3 + y 4 = C

51.
Solve:
   
6
6xy + 6y 4 − 24x2 dx + 3x2 + 24xy 3 + dy = 0
y
52.
Solve:
   
2x
sin(y) + y sin(x) + 2e dx + x cos(y) − cos(x) + sin(y) dy = 0

53.
Solve:
   
xex − ex + y dx + 1 + ln(y) + x dy = 0

54.
Find the function M (x, y) that makes the following differential equation exact.
 
xy 1
M (x, y)dx + xe + 2xy + dy = 0
x
55.
The following differential equation arises from the total differential of a function F with variables: x, y and z set equal
to a constant. Find this function F (x, y, z)

(2yz 2 + 6xz)dx + (2xz 2 + 30y 2 z)dy + (4xyz + 3x2 + 10y 3 )dz = 0

1.8 Integrating Factors for non-exact Equations


If a differential equation is not exact: My 6= Nx sometimes we can multiply both sides of the equation by an integrating
factor I to make it exact. We need a formula for this integrating factor. Starting with:

M dx + N dy = 0 and multiplying both sides by I gives IM dx + IN dy = 0


∂ ∂
For this to be exact ∂y (IM ) = ∂x (IN ). Calculating these partials gives:
1.8. INTEGRATING FACTORS FOR NON-EXACT EQUATIONS 23

Iy M + My I = Ix N + Nx I

This is a partial differential equation that we cannot solve. So we will solve a special case: the case where I is a
function of one variable. Case 1: I is a function of x making Iy = 0. Now our partial differential equation is a bit easier
to solve:

M y I = I x N + Nx I

Or

I(My − Nx ) = Ix N

Which becomes:

Ix M y − Nx
=
I N
Integrating both sides with respect to x gives:
Z  
M y − Nx
ln |I| = dx
N
Making our integrating factor:
 
R My −Nx
N dx
I(x) = e

Case 2: I is a function of y making Ix = 0. In this case the integrating factor is:


 
R Nx −My
M dy
I(y) = e

An Example: Solve:

(2y 7 + y 4 )dx + (6xy 6 − 3)dy = 0

M = 2y 7 + y 4 N = 6xy 6 − 3

Test for exactness:

My = 14y 6 + 4y 3 Nx = 6y 6

Since My 6= Nx our equation is not exact. We will look for an integrating factor. Since

Nx − My 6y 2 − 14y 6 − 4y 3 −4y 3 (2y 3 + 1) −4


= 7 4
= 4 3
=
M 2y + y y (2y + 1) y
is a function of only y our integrating factor is:

R Nx −My R −4
I=e M dy
=e y = y −4
24 CHAPTER 1. FIRST ORDER EQUATIONS.

Multiplying both sides of the differential equation by y −4 gives:

(2y 3 + 1)dx + (6xy 2 − 3y −4 )dy = 0

M = 2y 3 + 1 N = 6xy 2 − 3y −4

Now

My = 6y 2 = Nx

Since My = Nx our differential equation is exact, making M = 2y 3 + 1 the partial derivative of the function F we are
solving for with respect to x. That is:

Fx = 2y 3 + 1

So
Z
F = (2y 3 + 1)dx = 2xy 3 + x + g(y)

And Fy = N

Fy = 6xy 2 + g 0 (y) = 6xy 2 − 3y −4 g 0 (y) = −3y −4 g(y) = y −3

And our final solution is:

F (x, y) = 2xy 3 + x + y −3 = C

56.
Solve:
   
2 3 3 2
3y + 5x y + 4x dx + x + 3x y dy = 0

57.
Solve:
   
2 4 2
− 2x − 3y dx + 2xy + 3x y dy = 0

58.
Solve:
   
2e2x + ey dx + 3e2x + 4xey dy = 0

Sometimes we cannot find an integrating factor of just a single variable using the above formulas. In this case we
guess the form of the integrating factor and try to find constants that make it work.
59.
Solve by finding an integrating factor of the form I = xn y m :
   
4 −1 3 −2
3y + 18y dx + 5xy + 2x dy = 0
1.8. INTEGRATING FACTORS FOR NON-EXACT EQUATIONS 25

60.
Solve by finding an integrating factor of the form I = xn y m :
   
5 5 2 4 3 6 4 3
9x y + 4y + 2x y dx + 6x y + 2xy − 2x dy = 0

61.
Solve by finding an integrating factor of the form I = sinn (x) cosm (y):
   
4 cos(x) + 3 cot(x) dx + − 2 sin(x) tan(y) − 3 tan(y) dy = 0

62.
Solve:
1
Show that I = x2 +y 2 is an integrating factor for
   
y + xf (x2 + y 2 ) dx + yf (x2 + y 2 ) − x dy = 0

Use this result to solve


   
2 2 2 2 2 2
y + x(x + y ) dx + y(x + y ) − x dy = 0

63.
Show that

1
I=
Ax2 + Bxy + Cy 2
is an integrating factor for

xdy − ydx = 0

64.
In the study of first order linear differential equations:

dy
+ P (x)y = Q(x)
dx
we learned that multiplying by the integrating factor:

R
P (x)dx
I(x) = e

will transform the equation into a separable differential equation. Show that by multiplying both sides of
 
P (x)y − Q(x) dx + dy = 0

by the same integrating factor will transform the above equation into an exact equation.
26 CHAPTER 1. FIRST ORDER EQUATIONS.

1.9 Orthogonal Trajectories


A common geometric problem in many applications involves finding a family of curves: Orthogonal Trajectories, that
intersect a given family of curves orthogonally at each point. If you are given a family of curves in the form F (x, y) = K
then the slope of this family of curves is given by the derivitive:

dy Fx
=−
dx Fy
Since we are looking for an orthogonal family of curves, and in R2 orthogonal lines have negative reciprocal slopes,
we will be for a family of curves that satisfy the following differential equation:

Fy
y0 =
Fx
An Example:
Find the orthogonal trajectories for the circle:

x2 + y 2 = r 2

To find the orthogonal trajectories we take F (x, y) = x2 + y 2 we will need to solve the differential equation:

2y y
y0 = =
2x x
This equation is separable

dy dx
=
y x
So

ln(y) = ln(x) + C

The family of curves orthogonal to the circle is:

y = kx

Conversely, the family of curves orthogonal to the lines y = kx is given by the circle x2 + y 2 = r2 .

An Example: Find the orthogonal trajectories for the circle:

x2 + y 2 = Cx

Here we will take F (x, y) = x2 + y 2 − Cx and we are looking for a family of curves that satisfy the following:

2y
y0 =
2x − C
The problem with this differential equation is that it involves the constant C. To eliminate this constant we will solve
for C in the original equation of the circle and insert it into the differential equation.
1.9. ORTHOGONAL TRAJECTORIES 27

x2 + y 2
C=
x
Our differential equation becomes:

2xy
y0 =
x2 − y 2
Recognizing that the sum of the exponents in each term in both the numerator and denominator add to the same
value of 2 we see that this is a homogenous equation. Remember, to solve the homogenous equation you must first write
it as:
 
dy y
=f
dx x
and make the substitution

y
z=
x
1
Multiplying both the numerator and denominator by x2 we get the homogenous equation:

dy 2 xy
=
dx 1 − ( xy )2
Making the substitutions

y dy dz
z= =x +z
x dx dx
Our differential equation becomes:

dz 2z
x +z =
dx 1 − z2
This equation is now separable:

dz z3 + z
x =
dx 1 − z2

1 − z2
Z Z
dx
dz =
z(z 2 + 1) x
The integral on the left requires partial fraction decomposition. After applying partial fraction we get:
Z   Z
1 2z dx
− dz =
z 1 + z2 x
Integrating

ln(z) − ln(1 + z 2 ) = ln(x) + C

 
z
ln = ln(x) + C
1 + z2

z
= Cx
1 + z2
28 CHAPTER 1. FIRST ORDER EQUATIONS.

z = Cx + Cxz 2

Expressing this quadratic with the coefficient of z 2 being 1 gives

1
z2 − z+1=0
Cx
1
To solve for z in this equation we must compleat the square by adding 4C 2 x2 to both sides:

1 1 1
z2 − z+ 2 2
+1=
Cx 4C x 4C 2 x2
Factoring the first 3 terms on the left we get
 2
1 1
z− = −1
2Cx 4C 2 x2
r
1 1 − 4C 2 x2
z− =±
2Cx 4C 2 x2

1 1 − 4C 2 x2
z= ±
2Cx 2Cx
y
Solving for y remembering that z = x gives:

1 − 4C 2 x2
 

y=x
2Cx
The orthogonal family of curves we desire is:

1± 1 − 4C 2 x2
y=
2C

Sometimes we are concerned with finding a family of curves that make an angle of α 6= 90◦ with a given family of
curves. These curves are called Oblique Trajectories.
Given a family of curves: F (x, y) = K with its derivative (slope) given by:

dy
= f (x, y)
dx
Treating dy as the change in y and dx as the change in x and creating a triangle gives:

p
(dx)2 + (dy)2
dy

θ
dx

dy
From the triangle we see, tan(θ) = dx = f (x, y) so the tangent line has an angle of inclination of arctan(f (x, y)). So
the tangent line of an oblique trajectory that intersects this curve at an angle of α will have an angle of inclination of:
1.9. ORTHOGONAL TRAJECTORIES 29

arctan(f (x, y)) + α

Making the slope of the oblique trajectory


 
f (x, y) + tan(α)
tan arctan(f (x, y)) + α =
1 − f (x, y) tan(α)
Thus the differential equation of this family of oblique trajectories is given by:

f (x, y) + tan(α)
y0 =
1 − f (x, y) tan(α)

An Example:

Find the family of oblique trajectories that intersect the family of straight lines y = Cx at an angle of 45◦ .
Here we take F (x, y) = y − Cx and compute the slope of the tangent line:

dy Fx C
=− = =C
dx Fy 1
Solving for C we get

dy y
= = f (x, y)
dx x
Using this function for f (x, y) and α = 45◦ the differential equation of this family of oblique trajectories is
y
+ tan(45◦ ) x+y
y0 = x
=
1 − xy tan(45◦ ) x−y
1
Multiplying both numerator and denominator by x produces
y
dy 1+ x
= y
dx 1− x

This is a homogenous equation so we make the following substitution

y dy dz
z= =z+x
x dx dx
The differential equation becomes

dz 1+z
z+x =
dx 1−z
This equation is now separable

1−z dx
dz =
1 + z2 x
Integrating gives

1
arctan(z) − ln(1 + z 2 ) = ln(x) + C
2
30 CHAPTER 1. FIRST ORDER EQUATIONS.

Treating C as ln(K) and using some properties of logs we get

2 arctan(z) = ln(K 2 x2 (1 + z 2 )

Converting back to x and y we get the family of oblique trajectories


 
y
2 arctan = ln(K 2 (x2 + y 2 ))
x

65.
Find the orthogonal trajectories for the family of straight lines.

y = mx + 1

66.
Find the orthogonal trajectories for each given family of curves.

y = Cx3

67.
Find the orthogonal trajectories for each given family of curves.

x2 + y 2 = Cx3

68.
Find the orthogonal trajectories for each given family of curves.

x − y = Cx2

69.
Find the value of n so that the curves xn + y n = C are the orthogonal trajectories of

x
y=
1 + Kx
70.
Show that the following family of curves is self orthogonal.

y 2 = 4C(x + C)

71.
Find a family of oblique trajectories that intersect the family of circles x2 + y 2 = r2 at an angle of 45◦
72.
Find a family of oblique trajectories that intersect the family of circles y 2 = Cx2 at an angle of 60◦
73.
Let O be the origin and P be a point on the curve P (x). Let N be the point on the x-axis where the normal line to
P (x) intersects the x-axis. If OP = ON what is the equation of P (x)?
Chapter 2

Second Order Equations.

2.1 Wronskian, Fundamental Sets and Able’s Theorem


In this section we will mostly be dealing with the second order linear differential equation:

y 00 + P (x)y 0 + Q(x)y = 0

If we want to find all solutions to this equation it can be shown that we are looking for two solutions y1 and y2 to
the equations with the one restriction that y1 and y2 cannot be scalar multiples of each other. But in order to expand
our knowledge to third order and higher order equations we replace the restriction that the solutions cannot be scalar
multiples of each other with the restriction that the set of solutions must be linearly independent.

The Set of functions{(y1 , y2 , ..., yn }is Linearly Independent if the only solution to

C1 y1 + C2 y2 + ... + Cn yn = 0 is C1 = C2 = ... = Cn = 0

Although this is the formal definition of Linearly Independent sets we will not be using it. Instead we will be using
the Wronskian to determine if a set is linearly independent.

The Wronskian of two functions y1 and y2 is given by the determinate:



y y2
1
W (y1 , y2 ) = 0 = y1 y20 − y2 y10
y1 y20

It can be shown that if the Wronskian of two functions is nonzero on an interval then the two functions are linearly
independent on the interval. And if y1 and y2 are linearly dependent on an interval then their Wronskian is identically
zero on the interval.

If y1 and y2 are both solutions to y 00 + P (x)y 0 + Q(x)y = 0 and {y1 , y2 } is linearly independent then {y1 , y2 } is a
Fundamental Solution Set of the differential equation.

31
32 CHAPTER 2. SECOND ORDER EQUATIONS.

74.
Show that the set is a fundamental solution set of the differential equation

{y1 , y2 } = {e3x , xe3x } y 00 − 6y 0 + 9y = 0

75.
Show that the set is a fundamental solution set of the differential equation

{y1 , y2 } = {x2 , x3 } x2 y 00 − 4xy 0 + 6y = 0

76.
Show that the set is a fundamental solution set of the differential equation

{y1 , y2 , y3 } = {ex , e2x , e3x } y 000 − 6y 00 + 11y − 6 = 0

77.
Show that the two sets are both fundamental solution set of the differential equation. Which one would you rather
work with?
S1 = {y1 , y2 } = {ex , e2x } S2 = {y1 , y2 } = {4ex , e2x − 6ex } y 00 − 3y 0 + 2y = 0

78.
Show that if y1 and y2 both have a relative extrema at x = x0 then they cannot be a fundamental solution set to
y 00 + P (x)y 0 + Q(x)y = 0 on an interval containing x = x0
79.
Show that y1 = cos(2x) and y2 = cos2 (x) − sin2 (x) are Linearly Dependent
80.
Show

W (ay1 , by2 ) = abW (y1 , y2 )

81.
Show

d
W (y1 + a, y2 + a) = W (y1 , y2 ) + a (y2 − y1 )
dx
82.
Show
 
1 d y1
W (y1 , y2 ) = 2
y2 dx y2
83.
Show
   
y2 y1 d
y1 · W , y1 + y2 · W , y2 = (y1 · y2 )
y1 y2 dx
84.
If W (y1 , y2 ) = e4x and y1 = ex find y2 if y2 (0) = 2
85.
2.1. WRONSKIAN, FUNDAMENTAL SETS AND ABLE’S THEOREM 33

Show:

W (f, g + h) = W (f, g) + W (f, h)

86.
If W (f, g) = e5x Find W (f + g, f − g)
87.
If

W (y, y 2 ) = e3x y(0) = 1

Find y(x)
88.
If

W (f, g) = W (g, h)

Show
 
g(x) = C f (x) + h(x)

89.
Let y1 and y2 be solutions to

y 00 + P (x)y 0 + Q(x)y = 0

Show:

y1 y200 − y2 y100 y10 y200 − y20 y100


P (x) = − and Q(x) =
W (y1 , y2 ) W (y1 , y2 )
90.
The differential equation

y 00 + P (x)y 0 + Q(x)y = 0

can be converted into Normal Form:

u00 + f (x)u = 0

with the substitution

−1
R
P (x)dx
y(x) = u(x) · v(x) v(x) = e 2

Use this to convert Bessel’s equation of order v to normal form


 
2 00 0 2 2
x y + xy + x − v y=0
34 CHAPTER 2. SECOND ORDER EQUATIONS.

Another way of calculating the Wronskian of the two solutions:y1 and y2 of y 00 + P (x)y 0 + Q(x)y = 0 on (a, b) is to
use Abel’s Identity:
Rx
− P (t)dt
W (y1 , y2 ) = Ce x0
x0 ∈ (a, b) P and Q continuous on (a, b)

This can be easily derived by noticing that if {y1 , y2 } is a fundamental solution set to y 00 + P (x)y 0 + Q(x)y = 0 on
(a, b) then:

y100 + P y10 + Qy1 = 0 y200 + P y20 + Qy2 = 0

Multiplying the first equation by y2 and the second by y1 gives:

y2 y100 + P y2 y10 + Qy2 y1 = 0 y1 y200 + P y1 y20 + Qy1 y2 = 0

Subtracting the second equation from the first gives:

y2 y100 − y1 y200 + P (y10 y2 − y2 y10 ) = 0

Remembering

W (y1 , y2 ) = y10 y2 − y2 y10 and calculating W 0 (y1 , y2 ) = y2 y100 − y1 y200

The above equation becomes:

W 0 (y1 , y2 )
W 0 (y1 , y2 ) + P W (y1 , y2 ) = 0 or = −P
W (y1 , y2 )
Integrating and solving for W (y1 , y2 )
Z x
ln |W (y1 , y2 )| = − P (t)dt + C
x0

Rx
− P (t)dt
W (y1 , y2 ) = Ce x0

This result is known as Abel’s Identity

91.
Use Abel’s Identity to find the Wronskian up to a constant for

(1 + x2 )y 00 + 2xy 0 + y = 0 on (−∞, ∞)

92.
Use Abel’s Identity to find the Wronskian up to a constant for

xy 00 + (2x2 + 1)y 0 + xy = 0 on (0, ∞)

93.
Use Abel’s Identity to find the Wronskian up to a constant for
2.2. REDUCTION OF ORDER 35

 
00 16x 0 16 1
y − y + y=0 on ,∞
4x − 1 4x − 1 4
94.
Use Abel’s Identity to find the Wronskian up to a constant for

(P (x)y 0 )0 + Q(x)y = 0

95.
If the Wronskian of the solutions to

y 00 + P (x)y 0 + Q(x)y = 0

is a constant, what does it say about P (x)

2.2 Reduction of Order


Question: given a second order differential equation of the form:

y 00 + P (x)y 0 + Q(x)y = 0

and one solution to the differential equation can we find a second solution? If y1 is a solution to y 00 +P (x)y +Q(x)y = 0
then we know y100 + P (x)y10 + Q(x)y1 = 0. Let us try to find a second solution of the form y2 = vy1 . Differentiating gives:

y20 = vy10 + v 0 y1 y200 = vy100 + 2v 0 y10 + v 00 y1

Substituting these into the original differential equation gives:

vy100 + 2v 0 y10 + v 00 y1 + P (x)(vy10 + v 0 y1 ) + Q(x)vy1 = 0

Which reduces to:

v(y100 + P (x)y10 + Q(x)y1 ) + 2v 0 y10 + v 00 y1 + P (x)v 0 y1 = 0

v 00 y1 + 2v 0 y10 + P (x)v 0 y1 = 0

v 00 y1 + v 0 (2y10 + P (x)y1 ) = 0

v 00 2y 0
v 00 y1 = −v 0 (2y10 + P (x)y1 ) 0
= − 1 − P (x)
v y1
Integrating gives:
Z
0
ln |v | = −2 ln |y1 | − P (x)dx
36 CHAPTER 2. SECOND ORDER EQUATIONS.

Solving for v 0
R
0 ln |y1−2 |− P (x)dx
R e− P (x)dx
v =e =
y12
Integrating again give the formula for v
R
e− P (x)dx
Z
v= dx
y12
An Example: Find a second linearly independent solution:

xy 00 − (x + 1)y 0 + y = 0 y1 = ex

Writing the equation is standard form gives:


 
00 1 0 1
y + −1− y + y=0
x x
 
1
R
− −1− x dx
ex+ln(x)
Z Z
e
v= dx = dx
e2x e2x
Z
v= xe−x dx = −(x + 1)e−x

y2 = y1 v = ex (−(x + 1)e−x ) = −x − 1


96.
y1 = e2x is one solution to y 00 − 6y 0 + 8y = 0. Use reduction of order to find a second linearly independent solution.
97.
y1 = x−2 is one solution to x2 y 00 + 6xy 0 + 6y = 0. Use reduction of order to find a second linearly independent solution.
98.
y1 = ex is one solution to xy 00 − (x + 1)y 0 + y = 0. Use reduction of order to find a second linearly independent
solution.
99.
y1 = ex is one solution to xy 00 + (1 − 2x)y 0 + (x − 1)y = 0. Use reduction of order to find a second linearly independent
solution.
100.
y1 = ex is one solution to (2x − 1)y 00 − (4x2 + 1)y 0 + (4x2 − 2x + 2)y = 0. Use reduction of order to find a second
linearly independent solution.
101.
y1 = x is one solution to y 00 − 2xy 0 + 2y = 0. Use reduction of order to find a second linearly independent solution.
102.
y1 = x sin(x) is one solution to x2 y 00 −2xy 0 +(2+x2 )y = 0. Use reduction of order to find a second linearly independent
solution.
103.
2.3. EQUATIONS OF THE FORM Y”=F(X,Y’) AND Y”=F(Y,Y’) 37

sin(x)
y1 = √
x
is one solution to the Bessel equation of order 21 :
 
1
x2 y 00 + xy 0 + x2 − y=0
4

Use reduction of order to find a second linearly independent solution.


104.
First, use Abel’s Identity to find the Whronskian up to a constant for
 
16x 0 16 1
y 00 − y + y=0 on ,∞
4x − 1 4x − 1 4
Second, notice y1 = x is a solution and apply reduction of order to find y2
105.
The reduction of order algorithm can be applied to third order equations although the formula we derived for v above
will not work. y1 = ex is a solution to:

xy 000 − xy 00 + y 0 − y = 0

Use y2 = vy1 to reduce this equation to a second order equation by letting w = y 0

2.3 Equations of the form y”=f(x,y’) and y”=f(y,y’)


For a second order equation of the form:

y 00 = f (x, y 0 )

the substitution v = y 0 will transform the equation into first order equation.
An Example:
Solve:

xy 00 − y 0 = 3x2

Using the substitution v = y 0 , making v 0 = y 00 our equation becomes:

−1
xv 0 − v = 3x2 in standard form v0 + v = 3x
x
This equation is now first order linear. Creating an integrating factor

−1
R
I(x) = e x = x−1

And now the solution in terms of v


Z 
v=x x3xdx + C
38 CHAPTER 2. SECOND ORDER EQUATIONS.

v = x(x3 + C)

Converting back to y

y 0 = x4 + Cx

Integrating

x5 Cx2
y= + +K
5 2

If the differential equation is of the form:

y 00 = f (y, y 0 )

the substitution v = y 0 will transform the equation into a first order equation.
An Example from differential geometry:

1
The curvature of a circle of radius r is defined to be r and the curvature of a straight line defined to be zero. For
2
other equations in R the curvature is given by the second order equation:

|y 00 |
K= 3
(1 + (y 0 )2 ) 2
1
By replacing K with r and solving the second order equation we should obtain the equation of a circle of radius r.
For simplicity we will assume y 00 > 0 so we do not have to deal with the pesky absolute values.

1 y 00
= 3
r (1 + (y 0 )2 ) 2

Substituting v = y 0 making v 0 = y 00 we get:

1 v0 dx dv
= 3 or = 3
r (1 + (v)2 ) 2 r (1 + (v)2 ) 2

This is now a separable and we now need to integrating both sides.

Z Z
dx dv
= 3
r (1 + (v)2 ) 2

The integral on the left is easy while the integral on the right will require a trig substitution.

Z
x dv
+C = 3 v = tan θ dv = sec2 θdθ
r (1 + (v)2 ) 2
2.3. EQUATIONS OF THE FORM Y”=F(X,Y’) AND Y”=F(Y,Y’) 39


1 + v2
v

θ
1

Under this substitution the integral becomes:

sec2 θdθ
Z
x
+C = 3
r (1 + tan2 θ) 2
Z
x
+C = cos θdθ
r

x
+ C = sin θ
r
Using the triangle to convert back to v:

x v
+C = √
r 1 + v2
Converting back to y gives another separable equation:

x+C y0
=p
r 1 + (y 0 )2
Solving for y 0

p
(x + C)( 1 + y 02 ) = ry 0

(x + C)2 (1 + (y 0 )2 ) = r2 (y 0 )2

(x + C)2 + (x + C)2 (y 0 )2 = r2 (y 0 )2

(x + C)2
(y 0 )2 =
r2 − (x + C)2
Z Z
0 (x + C) (x + C)
y =p or dy = p dx
r2 − (x + C)2 r2 − (x + C)2
−1
Substituting u = r2 − (x + C)2 , 2 du = (x + C)dx for the integral on the right.

−1
Z
−1
y+K = u 2 du
2

p
y + K = − r2 − (x + C)2

Squaring both sides and rearranging terms gives the equation of a circle of radius r:
40 CHAPTER 2. SECOND ORDER EQUATIONS.

(y + K)2 + (x + C)2 = r2

106.
Solve:

xy 00 − y 0 = 3x2

107.
Solve:

x2 y 00 = 2xy 0 + (y 0 )2

If the independent variable x is missing from the differential equation then you will have an equation of the form:

y 00 = f (y, y 0 )

and the substitution v = y 0 will transform the second order equation into a first order equation.

dy d2 y dv dv dy dv
v= = = · =v
dx dx2 dx dy dx dy
Using this substitution our equation becomes:

dv
v = f (y, v)
dy

An Example:
Solve

y 00 + k 2 y = 0

Using the substitution above the second order equation becomes:

dv
v + k2 y = 0
dy
This equation is now separable:

vdv = −k 2 ydy

Integrating and solving for v:

v2 −k 2 y 2
= +C
2 2
p dy p
v= C − k2 y2 or = ±k A2 − y 2
dx
This equation is now separable:
2.4. HOMOGENOUS LINEAR EQUATIONS WITH CONSTANT COEFFICIENTS. 41

Z Z
dy
p =±kdx
A2 − y 2
 
y
arcsin = ±kx + B
A

y = A sin(±kx + B)

108.
Solve:

yy 00 + (y 0 )2 = 0

109.
Solve:

yy 00 = y 2 y 0 + (y 0 )2

2.4 Homogenous Linear Equations with Constant Coefficients.

Let us consider the second order equation:

ay 00 + by 0 + cy = 0

and look for a solution of the form y = erx . Differentiating twice give:

y = erx y 0 = rerx y 00 = r2 erx

Substituting these into the differential equation gives:

ar2 erx + brerx + cerx = 0

Dividing by erx gives the auxiliary equation:

ar2 + br + c = 0

This quadratic equation can have 3 types of roots: real and distinct, complex or real and repeated.
If the two roots, r1 and r2 of the auxiliary equation are real and distinct: r1 6= r2 then the solution to the differential
equation is

y = C1 er1 x + C2 er2 x
42 CHAPTER 2. SECOND ORDER EQUATIONS.

If the two roots, r1 and r2 of the auxiliary equation are complex r1 = α + βı and r = α − βı then the solution to the
differential equation is

y = C1 e(α+βı)x + C2 e(α−βı)x or y = C1 eαx eβıx + C2 eαx e−βıx

After applying Euler’s equation: eıθ = cos(θ) + ı sin(θ) we get the solution to the differential equation to be:

y = C1 eαx cos(βx) + C2 eαx sin(βx)


−b
If the two roots, r1 and r2 of the auxiliary equation are real and repeated: r1 = r2 = 2a then one solution to the
differential equation is

y 1 = e r1 x

The second linearly independent solution comes by applying the reduction of order algorithm to the problem. If

−b b c
y1 = er1 x = e 2a x is a solution to y 00 + y 0 + y = 0
a a
then the reduction of order algorithm gives:

b −bx
R
e− a dx
Z Z
e a
v= −b = −bx =x
(e 2a x )2 e a

Making y2 = xy1 = xer1 x and the solution to the differential equation is

y = C1 er1 x + C2 xer2 x

110.
Solve

y 00 − y 0 − 2y = 0 y(0) = 2 y 0 (0) = 1

111.
Solve

y 00 − 12y 0 + 36y = 0 y(0) = 1 y 0 (0) = 1

112.
Solve

y 00 − 2y 0 + 10y = 0 y(0) = 2 y 0 (0) = 1

113.
Solve

y 000 − 7y 00 + 15y 0 − 9y = 0

114.
Solve
2.5. THE METHOD OF UNDETERMINED COEFFICIENTS 43

y 00 − 2ıy 0 + 3y = 0

115.
Consider the differential equation:

ay 00 + by 0 + cy = 0 a, b, c ∈ R+

Show all solutions y tend to zero as x tends to infinity. Show this is not true if b = 0
116.
Show that if y1 and y2 are solution to the second order linear equation

ay 00 + by 0 + cy = 0 a, b, c ∈ R

Then y = Cy1 + Ky2 is also a solutin.


117.
For the given differential equation:

y 00 + 2y 0 + Cy = 0 C∈R

A) For what values of C does the characteristic equation have two real distinct roots, real repeated roots and complex
roots.
B) For the case where you have two real distinct roots find the values of C that make the solution tend to zero as
x → ∞.

2.5 The Method of Undetermined Coefficients

In this section we will study a way to solve the Linear Differential equation:

y 00 + ay 0 + by = g(x)

for different equations g(x).


For example if you were given the differential equation

y 00 − 3y 0 + 5y = 3ex

It would be reasonable to think the solution would involve the exponential function ex simply because exponential
functions differentiate into more exponential functions.
If you were given the differential equation

y 00 + y 0 + y = cos(x) + sin(x)
44 CHAPTER 2. SECOND ORDER EQUATIONS.

It would be reasonable to think the solution would involve the functions sin(x) and cos(x) since sin(x) and cos(x)
differentiate into each other.
So in the method of undetermined coefficients we guess the form of the solution and try to make the constants work.
For

y 00 − 3y 0 + 5y = 3ex

we would guess the form of the solution to be y = Aex and solve for the value of A that makes it a solution.
For

y 00 + y 0 + y = cos(x) + sin(x)

we would guess the form of the solution to be y = A sin(x) + B cos(x) and solve for the values of A and B that makes
it a solution.
One problem that can arise using this method is the problem of finding homogenous solution twice. If you were given

y 00 − 4y 0 + 4y = e2x

it would be reasonable to think the solution would be of the form y = Ae2x but we know the homogenous solution to

y 00 − 4y 0 + 4y = 0

is y = C1 e2x + C2 xe2x . So looking for a particular solution of the form y = Ae2x will again find the homogenous
solution, not the particular solution we are interested in. The solution to this problem is to multiply the particular
solution by xs so that it is linearly independent of the fundamental solution set. The nonnegative integer s should be
chosen to be the smallest nonnegative integer so that no term in the particular solution appears in the fundamental
solution set. In this problem the fundamental solution set is:

{e2x , xe2x }

So we would choose s = 2 and look for a particular solution of the form y = Ax2 e2x
In general we choose the form of the particular solution based on the following table:

For y 00 + ay 0 + by = g(x)

g(x) yp
pn = an xn + ... + a1 x + a0 xs Pn = xs (An xn + ... + A1 x + A0 )
aeαx Axs eαx
a cos(βx) + b sin(βx) xs (A cos(βx) + B sin(βx))
αx
pn e xs (Pn eαx )
pn cos(βx) + pm sin(βx) xs (PN cos(βx) + QN sin(βx)) N = max(n, m)
aeαx cos(βx) + beαx sin(βx) xs (Aeαx cos(βx) + Beαx sin(βx))
pn eαx cos(βx) + qm eαx sin(βx) xs (PN eαx cos(βx) + QN eαx cos(βx)) N = max(n, m)
2.5. THE METHOD OF UNDETERMINED COEFFICIENTS 45

The integer s is chosen to be the smallest nonnegative integer so that no term in the particular appears in the homogenous
solution.

An Example: Solve:

y 00 − 4y 0 + 4y = 6e2x

First we need the homogenous solution, so we form the auxiliary equation:

r2 − 4r + 4 = 0 (r − 2)2 = 0 y1 = e2x y2 = xe2x

The homogenous solution is:

yh = C1 e2x + C2 xe2x

The Fundamental Solution Set is:

F.S.S. = {e2x , xe2x }

Due to the right hand side of the differential equation we will choose a particular solution of the form yp = xs (Ae2x )
with s chosen to be the smallest positive integer so that no term in yp is in the fundamental solution set. So we choose
s = 2 making yp = Ax2 e2x

yp0 = e2x (2Ax + 2Ax2 )

Differentiating and simplifying gives:

yp00 = e2x (4Ax2 + 8Ax + 2A)

Substituting these derivatives into the original differential equation gives:

e2x (4Ax2 + 8Ax + 2A) − 4e2x (2Ax + 2Ax2 ) + 4Ax2 e2x = 6e2x

This simplifies nicely to:

2Ae2x = 6e2x A=3

So our particular solution is:

yp = 3x2 e2x

The general solution to the differential equation is the sum of the homogenous solution and the particular solution:

y = C1 e2x + C2 xe2x + 3x2 e2x

118.
Solve

y 00 + 3y 0 + 2y = 18 sin(2x) + 26 cos(2x) y(0) = 2 y 0 (0) = 4


46 CHAPTER 2. SECOND ORDER EQUATIONS.

119.
Solve

y 00 − 8y 0 + 7y = −15xe2x − 32e2x y(0) = 2 y 0 (0) = 4

120.
Solve

y 00 − 3y 0 + 2y = ex sin(x) y(0) = 2 y 0 (0) = 4

121.
Solve:

y 00 − 4y 0 + 4y = 8e2x

122.
Solve

y 00 − 2y 0 + 1y = (x + 3)ex y(0) = 1 y 0 (0) = 2

123.
Solve

y 00 − 3y 0 + 2y = 6x3 − 19x2 + 8x − 11

124.
Find the form of the solution to

y 000 − y 00 − y 0 + 1 = x3 (ex + e−x )

2.6 Variation of Parameters

In the method of variation of parameters we will develop a solution to the second order linear differential equation:

y 00 + P (x)y 0 + Q(x)y = g(x)

As you can see the method of variation of parameters is a far more general method of solving differential equation than
the method of undetermined coefficients since variation of parameters allows for variable coefficients of y 0 and y whereas
the method of undetermined coefficients works only for linear equations with constant coefficients and the function g(x)
does not need to be listed in the table in the section on undetermined coefficients.
2.6. VARIATION OF PARAMETERS 47

Given the fundamental solution set {y1 , y2 } for the homogenous equation:

y 00 + P (x)y 0 + Q(x)y = 0

we will look for a particular solution to the nonhomogeneous equation of the form

y = v1 y1 + v2 y2

Differentiating yields:

y 0 = v1 y10 + v10 y1 + v2 y20 + v20 y2

To avoid second derivatives of the unknown functions v1 and v2 we impose the condition:

v10 y1 + v20 y2 = 0

Making

y 0 = v1 y10 + v2 y20

Differentiating again gives:

y 00 = v1 y100 + v10 y10 + v2 y200 + v20 y20

Substituting y, y 0 and y 00 into the original differential equation gives:

v1 y100 + v10 y10 + v2 y200 + v20 y20 + P (x)(v1 y10 + v2 y20 ) + Q(x)(v1 y1 + v2 y2 ) = g(x)

This equation can be rewritten as:

v1 (y100 + P (x)y10 + Q(x)y1 ) + v2 (y200 + P (x)y20 + Q(x)y2 ) + y10 v10 + y20 v20 = g(x)

Since y1 and y2 are solutions of the homogenous equation

y 00 + P (x)y 0 + Q(x)y = 0

the above equation reduces to:

y10 v10 + y20 v20 = g(x)

This equation along with the restriction we made on y 0 : v10 y1 + v20 y2 = 0 gives us a system of two equations with two
unknown variables: v10 and v20 that we will solve using Cramer’s Rule. Writing the system as a matrix equation gives:
" #" # " #
y1 y2 v10 0
=
y10 y20 v20 g(x)
Solving for the two unknown variables: v10 and v20 using Cramer’s Rule gives:

y2 g(x) y2 g(x) y1 g(x) y1 g(x)


v10 = − =− and v20 = =
y1 y20 − y2 y10 W (y1 , y2 ) y1 y20 − y2 y10 W (y1 , y2 )
48 CHAPTER 2. SECOND ORDER EQUATIONS.

Integrating gives:
Z Z Z Z
y2 g(x) y2 g(x) y1 g(x) y1 g(x)
v1 = − dx = − dx and v2 = dx = dx
y1 y20 − y2 y10 W (y1 , y2 ) y1 y20 − y2 y10 W (y1 , y2 )

An Example: Solve:

y 00 + y = sec(x)

First note that this equation cannot be solved by the method of undetermined coefficients due to the fact that the
right hand side: sec(x) is not in the table in the undetermined coefficients section.
First we need the homogenous solution, so we form the auxiliary equation:

r2 + 1 = 0 r = ±ı y1 = cos(x) y2 = sin(x)

The homogenous solution is:

yh = C1 cos(x) + C2 sin(x)

Our fundamental solution set is:

F.S.S = {cos(x), sin(x)}

The Wronskian of the fundamental solution set is:



cos(x) sin(x)
W (cos(x), sin(x)) = = cos2 (x) + sin2 (x) = 1

− sin(x) cos(x)
Z Z
v1 = − sin(x) sec(x)dx = − tan(x)dx = ln(cos(x))

Z
v2 = cos(x) sec(x)dx = x

yp = v1 y1 + v2 y2 = ln(cos(x)) cos(x) + x sin(x)

So the general solution is:

y = C1 cos(x) + C2 sin(x) + ln(cos(x)) cos(x) + x sin(x)

125.
Solve:

y 00 − 3y 0 + 2y = xe2x
2.6. VARIATION OF PARAMETERS 49

126.
Solve:

y 00 + y = tan(x)

127.
Solve:

y 00 − 4y 0 + 5y = xe2x

128.
Solve:

y 00 − 2y 0 + y = ex arcsin(x)

129.
Show that y1 = 5x − 1 is a solution to the differential equation. Use reduction of order to find the second homogenous
solution y2 and then use variation of parameters to find the particular and general solution of:

xy 00 + (5x − 1)y 0 − 5y = x2 e−5x

130.
Show that y1 = x + 1 is a solution to the differential equation. Use reduction of order to find the second homogenous
solution y2 and then use variation of parameters to find the particular and general solution of:

(x2 + 2x)y 00 − 2(x + 1)y 0 + 2y = (x + 2)2

131.
Show that y1 = sin(x2 ) is a solution to the differential equation. Use reduction of order to find the second homogenous
solution y2 and then use variation of parameters to find the particular and general solution of:

xy 00 − y 0 + 4x3 y = 2x3

132.
Show that y1 = sin(x) is a solution to the differential equation. Use reduction of order to find the second homogenous
solution y2 and then use variation of parameters to find the particular and general solution of:

sin2 (x)y 00 − 2 sin(x) cos(x)y 0 + (1 + cos2 (x))y = sin3 (x)

133.
Solve by first guessing a solution to the homogenous equation then using reduction of order to find the second
homogenous solution y2 and then use variation of parameters to find the particular and general solution of:

2x 0 2
y 00 − y + y = 1 + x2
1 + x2 1 + x2
134.
The Bessel Equation of order one half is:
50 CHAPTER 2. SECOND ORDER EQUATIONS.

 
2 00 10 2
x y + xy + x − y=0
4
cos(x) sin(x)
and has solutions y1 = √
x
and y2 = √ .
x
Use variation of parameters to solve
 
2 00 0 1 5
2
x y + xy + x − y = x2
4
135.
One solution to the equation:

y 00 + P (x)y 0 + Q(x)y = 0

is (1 + x)2 , and the Wronskian of the two solutions is constant. Find the general solution to:

y 00 + P (x)y 0 + Q(x)y = 1 + x

2.7 Cauchy Euler Equation


:
The second order Cauchy Euler Equation is:

d2 y dy
2
ax2
+ bx + cy = 0
dx dx
This equation can be transformed into a second order liner differential equation with constant coefficients with use of
the substitution:

x = et

Differentiating with respect to t gives:

dx dx
= et So =x
dt dt
dy
In the Cauchy Euler equation we see the term x dx which we need to substitute for, so I will multiply both sides of
dx dy
dt = x by dx :

dx dy dy dy dy
=x This simplifies to =x
dt dx dx dt dx
dy dy
Differentiating dt = x dx with respect to x gives:

d dy dy d2 y
= +x 2
dx dt dx dx
2
d y
In the Cauchy Euler equation we see the term x2 dx 2 which we need to substitute for, so I will multiply the left side
dx
of the above equation by dt and the right hand side by x (Remember they are equal):

d2 y d2 y 2
 
d dy dx dy dy 2d y
= +x 2 x This simplifies to = x + x
dx dt dt dx dx dt2 dx dx2
2.7. CAUCHY EULER EQUATION 51

2
dy dy d y
Replacing x dx with dt and solving for x2 dx 2 gives:

d2 y d2 y dy
= − x2
dx2 dt2 dt
So under this substitution the Cauchy Euler equation becomes:
 2 
d y dy dy
a − +b + cy = 0
dt2 dt dt
This simplifies to the second order linear equation with constant coefficients:

d2 y dy
2
a+ (b − a) + cy = 0
dt dt
Which we can solve by finding the roots of the characteristic polynomial:

ar2 + (b − a)r + c = 0

Again there are three cases: the roots are real and distinct, the roots are real and repeated or the roots are complex.
Case 1: we have two real and distinct roots r1 and r2 . Then the solutions to the differential equation are:

y1 = er1 t and y 2 = e r2 t

Since x = et , t = ln(x) Making the solution:

r1 r2
y1 = er1 ln(x) = eln(x )
and y2 = er2 ln(x) = eln(x )

So

y1 = xr1 and y2 = xr2

Case 2: The roots are real and repeated r1 = r2 . Then the solutions to the differential equation are:

y 1 = e r1 t and y2 = ter1

Since x = et , t = ln(x) Making the solution:

r1 r1
y1 = er1 ln(x) = eln(x )
and y2 = ln(x)er1 ln(x) = ln(x)eln(x )

So

y 1 = x r1 and y2 = ln(x)xr1

Case 3: The roots are complex r1 = α + βı and r2 = α − βı. Then the solutions to the differential equation are:

y1 = eαt cos(βt) and y2 = eαt sin(βt)

Since x = et , t = ln(x) Making the solution:

y1 = xα cos(β ln(x)) and y2 = xα sin(β ln(x))

An Example: Solve:
52 CHAPTER 2. SECOND ORDER EQUATIONS.

x2 y 00 − 5xy 0 + 13y = 0

Forming the characteristic polynomial

r2 + (−5 − 1)r + 13 = 0 r2 − 6r + 13 = 0 (r − 3)2 = −4 r = 3 ± 2ı

So we have complex roots so the solution is:

yh = C1 e3t cos(2t) + C2 e3t sin(2t)

Converting back to x gives:

yh = C1 x3 cos(2 ln(x)) + C2 x3 sin(2 ln(x))

136.
Solve:

d2 y dy
x2 + 7x + 8y = 0
dx2 dx
137.
Solve:

d2 y dy
x2 2
+ 9x + 12y = 0
dx dx
138.
Solve:

d2 y dy
x2 − 11x + 36y = 0
dx2 dx
139.
Solve:

d2 y dy
x2 2
− 4x + 6y = x3 ln(x)
dx dx
140.
Solve:

d2 y dy
x2 +x +y =x
dx2 dx
141.
Solve:

d2 y dy
x2 2
− 5x + 8y = e−x
dx dx
142.
Solve:

d2 y dy
x2 − 7x + 16y = x3
dx2 dx
2.8. EVERYONE LOVES A SLINKY: SPRINGS 53

143.
Solve:

d2 y dy
x2 +x + 4y = 8
dx2 dx
144.
Solve:

d2 y dy
x3 + x2 + xy = 1
dx2 dx
145.
Find a Cauchy Euler equation with the following solution

C1 x2 + C2
y=
x
146.
Find a Cauchy Euler equation with the following solution

y = C1 x2 cos(4 ln(x)) + C2 x2 sin(4 ln(x))

147.
Solve:

xy 00 + y 0 = 0

148.
Solve:

d2 y dy
2(x − 4)2 + 5(x − 4) − 2y = 0
dx2 dx
149.
Find the values of α that make the solution: y, to the given equation tend to zero as x → ∞

d2 y dy 1
x2 2
+ αx + y=0
dx dx 4

2.8 Everyone Loves a Slinky: Springs


The goal of this section is to develop a differential equation that governs the motion of a mass connected to an ideal
spring. We will first study the theoretical case of a spring with no damping: (internal resistance of the spring, air friction
ect.). We will also study springs with damping and then with a forcing function attached to the mass.
Newton’s Second law states that force equals mass times acceleration: F = ma. So if y(t) represents the position of
d2 y
a moving mass on a spring then its acceleration is a = dt2 .
Now consider a mass spring system with a mass m attached and stretched so that the mass is still. This unmoving
system is said to be in equilibrium. We measure the distance, y, to be the displacement of the mass from equilibrium.
54 CHAPTER 2. SECOND ORDER EQUATIONS.

When the mass is displaced from equilibrium , the spring is stretched or compressed and it exerts a force in the opposite
direction of the displacement. The force exerted by the spring is given by Hooke’s Law:

Fspring = −ky k>0

where k is a constant dependent on the stiffness of the spring and y is the displacement of the mass from equilibrium.
All mass spring systems experience some form of internal resistance known as damping which is proportional to the
dy
velocity of the mass. Since the mass has a velocity v = dt the damping force is given by:

dy
Fdamping = −b b>0
dy
where b is the damping coefficient.
All other forces on the system are external making the differential equation governing the mass spring system:

d2 y dy
m = −b − ky + Fexternal (t)
dx2 dy
Or

d2 y dy
m +b + ky = Fexternal (t)
dx2 dy
In the absence of damping and an external force: b = 0, Fexternal (t) = 0 the differential equation becomes:

d2 y
m
+ ky = 0
dx2
Which has an auxiliary mr2 + k = 0 which has purely imaginary roots r = ±ωı making the solution:
r
k
y = C1 cos(ωt) + C2 sin(ωt) ω=
m
This solution can be written in the form:

y = A sin(ωt + φ)

by first applying a trig identity to sin(ωt + φ).

y = A sin(ωt + φ) = A(sin(ωt) cos(φ) + cos(ωt) sin(φ))

These two solution are equal if

A sin(φ) = C1 and A cos(φ) = C2

We see the amplitude of the solution: A is given by:

C1
q
A= C12 + C22 and tan(φ) =
C2
q
k 2π
We see the solution is a sinusoid with angular frequency ω = m and Period T = ω .
All springs experience some form of damping. To explore the nature of this damping let us consider the equation:

my 00 + by 0 + ky = 0
2.8. EVERYONE LOVES A SLINKY: SPRINGS 55

The auxiliary equation is:

mr2 + br + k = 0

with roots:

b2 − 4mk
−b ± −b 1 p 2
r= = ± b − 4mk
2m 2m 2m
The nature of the solution depends on the discriminate b2 − 4mk.
If b2 − 4mk < 0 the roots will be complex and we say the spring system has Underdamped Motion.
Letting α be the real part and β the imaginary part of the roots we have:

−b 1 p
α= and β= 4mk − b2
2m 2m
The solution is:

y = eαt (C1 cos(βt) + C2 sin(βt))

We can express this solution in a alternate form as we did earlier:

C1
q
y = Aeαt sin(βt + φ) A= C12 + C22 and tan(φ) =
C2
So our solution is the product of a sinusoid: sin(βt+φ) and an exponential damping factor: Aeαt . As t → ∞ Aeαt → 0
−b
and our solution also tends to zero. Further as b → 0 α = α = 2m → 0 and the solution tends to the sinusoid:

y = A sin(βt + φ)

Going back to the discriminate: b2 − 4mk. If b2 − 4mk > 0 the roots will real and distinct and we say the spring
system has Overdamped Motion. The roots to the auxiliary equation are:

−b 1 p 2 −b 1 p 2
r1 = + b − 4mk r2 = − b − 4mk
2m 2m 2m 2m
And the solution is:

y = C1 er1 t + C2 er2 t

It is clear that r2 is negative; r1 is negative as well since b2 > b2 − 4mk making b > b2 − 4mk. Subtracting b from
−b 1

this inequality and dividing by 2m gives r1 = 2m + 2m b2 − 4mk < 0.
Since both r1 and r2 are negative the solution y will approach zero as t → ∞.
Going back to the discriminate: b2 − 4mk. If b2 − 4mk = 0 the roots will real and repeated and we say the spring
system has Critically Damped Motion. The roots to the auxiliary equation are:

−b
r1 = r2 =
2m
And the solution is:

−b
y = e 2m (C1 + C2 t)

As t → ∞ our solution will tend to zero.


56 CHAPTER 2. SECOND ORDER EQUATIONS.

An Example:
A 1kg mass hangs from a spring stretching it .392m from equilibrium. The mass is then pulled down .5m and released.
Find the equation of the motion of the mass if:
1) damping constant b = 0

2) damping constant b = 8

3) damping constant b = 10

4) damping constant b = 26

Solution: We already know mass m and damping constant b so all we need is the spring constant k. Using Hook’s
Law:

9.8 = k(.392) k = 25

The differential equation governing the system is:

y 00 + by 0 + 25y = 0 y(0) = −.392 y 0 (0) = 0

1) If there is no damping then b = 0 and our equation becomes:

y 00 + 25y = 0

The auxiliary equation and roots are:

r2 + 25 = 0 r = ±5ı

The solution is:

y = C1 cos(5t) + C2 sin(5t)

After the laborious task of applying the initial conditions we get:

y = −.392 cos(5t)
π
We see the Amplitude is A = .392 and φ = 2 The solution can be written in the form:
 
π
y = −.392 sin 5t +
2
2) The damping constant is b = 8. Our equation becomes:

y 00 + 8y 0 + 25y = 0

The auxiliary equation and roots are:

r2 + 8r + 25 = 0 r = −4 ± 3ı

The solution is:


2.8. EVERYONE LOVES A SLINKY: SPRINGS 57

y = C1 e−4t cos(3t) + C2 e−4t sin(3t)

After the laborious task of applying the initial conditions we get:

y = −.392e−4t cos(3t) − .52267e−4t sin(3t)

We see the Amplitude is A = .653336 and φ = .643498. Since the initial displacement is down (against the force of
the spring) we will use A = −.653336. The solution can be written in the form:

y = −.65336e−4t sin(3t + .643498)

3) The damping constant is b = 10. Our equation becomes:

y 00 + 10y 0 + 25y = 0

The auxiliary equation and roots are:

r2 + 10r + 25 = 0 r = −5 is repeated root

The solution is:

y = C1 e−5t + C2 te−5t

After the laborious task of applying the initial conditions we get:

y = −.392e−5t − 1.96te−5t

4) The damping constant is b = 26. Our equation becomes:

y 00 + 26y 0 + 25y = 0

The auxiliary equation and roots are:

r2 + 26r + 25 = 0 r = −1, −25

The solution is:

y = C1 e−t + C2 e−26t

After the laborious task of applying the initial conditions we get:

y = .40768e−t − .01568e−26t

150.
A 3kg mass is attached to a spring with stiffness k = 48N/m. The mass is displaced 1/2m to the left of equilibrium
point and given a velocity of 2m/s to the right. The damping constant is 0. Find the equation of motion of the mass
along with the amplitude, period, and frequency.
151.
58 CHAPTER 2. SECOND ORDER EQUATIONS.

A 1/8kg mass is attached to a spring with stiffness k = 16N/m. The mass is displaced 3/4m to the left of equilibrium
point and given a velocity of 2m/s to the left. The damping constant is 2Ns/m. Find the equation of motion of the mass.

Now let us consider the mass spring system with a forcing function applied to the system. The differential equation
governing this system is:

my 00 + by 0 + ky = F0 cos(ωt) F0 > 0 ω>0

Let us first explore the underdamped case (0 < b2 < 4mk). From previous discussion we know the homogenous
solution is:
√
4mk − b2

b
− 2m t
yh = Ae sin t+φ
2m
With

C1
q
A= C12 + C22 tan(φ) =
C2
To find the particular solution we apply the method of undetermined coefficients. We choose the form of the particular
solution to be:

yp = A1 cos(ωt) + A2 sin(ωt)

Making:

yp0 = −A1 ω sin(ωt) + A2 ω cos(ωt) yp00 = −A1 ω 2 cos(ωt) − A2 ω 2 sin(ωt)

Substituting this into the differential equation and simplifying gives:


   
(k − mω 2 )A1 + A2 bω cos(ωt) + (k − mω 2 )A2 + A1 bω sin(ωt) = F0 cos(ωt)

Equating corresponding coefficients gives:

(k − mω 2 )A1 + A2 bω = F0 (k − mω 2 )A2 + A1 bω = 0

Solving this system of equations gives:

F0 (k − mω 2 ) F0 bω
A1 = A2 =
(k − mω 2 )2 + b2 ω 2 (k − mω 2 )2 + b2 ω 2
Making the solution :
 
F0 2
yp = (k − mω ) cos(ωt) + bω sin(ωt)
(k − mω 2 )2 + b2 ω 2
Let

A1
tan(θ) =
A2
k−mω 2
Drawing a triangle for tan(θ) = yp = bω
2.8. EVERYONE LOVES A SLINKY: SPRINGS 59

p
(k − mω 2 )2 + b2 ω 2
k − mω 2

θ

From the triangle we see:

k − mω 2 bω
sin(θ) = p cos(θ) = p
(k − mω 2 )2 + b2 ω 2 (k − mω 2 )2 + b2 ω 2
Making:

p p
k − mω 2 = (k − mω 2 )2 + b2 ω 2 sin(θ) bω = (k − mω 2 )2 + b2 ω 2 cos(θ)

Now our solution is:


 
F0 p
2 )2 + b2 ω 2 sin(θ) cos(ωt) +
p
2 )2 + b2 ω 2 cos(θ) sin(ωt)
yp = (k − mω (k − mω
(k − mω 2 )2 + b2 ω 2

F0
yp = p (sin(θ) cos(ωt) + cos(θ) sin(ωt))
(k − mω 2 )2 + b2 ω 2
After a trig identity we get:

F0
yp = p sin(ωt + θ)
(k − mω 2 )2 + b2 ω 2
So the general solution is:
√
4mk − b2

b
− 2m t F0
y = yh + yp = Ae sin t+φ + p sin(ωt + θ)
2m (k − mω 2 )2 + b2 ω 2
The first term in the solution yh tends to zero as t tends to infinity. So we refer to this term as the transient solution.
As t gets large and yh approaches zero the solution approaches the particular solution yp . Hence we call this term the
steady state solution.
The factor:

1
p
(k − mω 2 )2 + b2 ω 2
in the particular solution represents the ratio of the magnitude of the forcing function F0 to the magnitude of the
sinusoidal response to the input force so we call it: the frequency gain and has units length/force.
An Example:
An 8-kg mass is attached to a spring hanging from the ceiling causing the spring to stretch 1.96m upon coming to
rest at equilibrium. At t = 0 the forcing function F (t) = cos(2t) is applied to the system. The damping constant for the
system is 3 N-sec/m. Find the steady state solution and the frequency gain.
Solution:
At t = 0 the system is equilibrium so it has an initial position y(0) = 0 and initial velocity y 0 (0) = 0
First we need the spring constant k. Since the 8-kg mass stretched the spring 1.96m Hooks Law gives:
60 CHAPTER 2. SECOND ORDER EQUATIONS.

8(9.8) = k(1.96) k = 40

The differential equation governing the system is:

8y 00 + 2y 0 + 40y = cos(2t)

We could use the method of undetermined coefficients to find the steady state solution but we have already derived
equations for it:

F0 k − mω 2
yp = p sin(ωt + θ) tan(θ) =
(k − mω 2 )2 + b2 ω 2 bω
Plugging in the values for m, b, k, F0 , θ and ω gives:

1
tan(θ) = θ = .463648
2
And the steady state solution is:

1
yp = √ sin(2t + .463648)
80
The frequency gain is:

1 1
p =
(k − mω 2 )2 + b2 ω 2 80
152.
An 8-kg mass is attached to a spring hanging from the ceiling causing the spring to stretch 7.84m upon coming to
rest at equilibrium. At t = 0 the forcing function F (t) = 2 cos(2t) is applied to the system. The damping constant for
the system is 1 N-sec/m. Find the steady state solution and the frequency gain.
153.
An 2-kg mass is attached to a spring hanging from the ceiling causing the spring to stretch .2m upon coming to rest
at equilibrium. At t = 0 the mass is displaced .005m below equilibrium and released. At t = 0 the forcing function
F (t) = .3 cos(t) is applied to the system. The damping constant for the system is 5 N-sec/m. Find the steady state
solution and the frequency gain.
For a given mass spring system with known mass: m, damping constant: b and spring constant k with a forcing
function F0 cos(ωt) we know the frequency gain will be a be a function of the variable ω:

1
M (ω) = p
(k − mω 2 )2 + b2 ω 2
Often times we want to know the value of ω that maximizes the frequency gain. Differentiating gives:

−1 −3
M 0 (ω) = ((k − mω 2 )2 + b2 ω 2 ) 2 (2(k − mω 2 )(−2mω) + 2b2 ω)
2
Simplifying:

−2m2 ω 2 − b2 + 2km
 
0
M (ω) = ω 3
(k − mω 2 )2 + b2 ω 2 ) 2
So M has critical numbers:
2.9. CIRCUITS 61

ω = 0 in this case the forcing function is constant

The critical number we care about is:


r
k b2
ω= −
m 2m2
And the maximum frequency gain occurs when:
r
k b2
ω= −
m 2m2
The maximum Amplitude of the steady state response is:

1
F0 M (ω) = F0 p
(k − mω 2 )2 + b2 ω 2
154.
Let the following differential equation govern the motion of a mass on a spring.

1 00
y + by 0 + 10y = 3 cos(2t)
2
Find the value of b that maximizes the amplitude of the steady state response.

2.9 Circuits
We now turn our study to the circuit consisting of a resister whose letter representation is R and is measured in Ohms, a
capacitor whose letter representation is C and the inductor whose letter representation is L connected to a voltage source
whose letter representation is E.

This circuit will be governed by Kirchhoff’s loop rules. Here they are:

1. The sum of the currents flowing into any junction point are zero.

2 The sum of the voltage around any closed loop is zero.


From physics we can find the voltage drop by the resistor, capacitor and the inductor. Here they are
1. The voltage drop across a resistor is given by
62 CHAPTER 2. SECOND ORDER EQUATIONS.

ER = IR where I is the current passing through the resistor

2. The voltage drop across a capacitor is

1
Q
EC = where Q is the charge on the capacitor
C
3 The voltage drop across an inductor is

dI
EL = L
dt
If a voltage source is connected to the circuit an adds voltage at a level of E(t) then Kirchhoff’s voltage law gives:

EL + ER + EC = E(t)

Or

dI 1
+ RI + Q = E(t)
L
dt C
Since the change in charge is the current we have

dQ
=I
dt
Making

dI d2 Q
= 2
dt dt
Now our differential equation becomes

d2 Q dQ 1
2
+RL + Q = E(t)
dt dt C
Sometimes we want to determine the current I(t) in the circuit so we differentiate the above equation to get:

d2 I dI 1
L +R + I = E 0 (t)
dt2 dt C
155.
A RLC circuit has a voltage source given by E(t) = 40 cos(2t)V a resistor of 2 ohms, a inductor of .25 henrys and a
1
capacitor of 13 farads. If the initial current is zero and the initial charge on the capacitor is 3.5 coulombs, determine the
charge on the capacitor as a function of t.
156.
A RLC circuit has a voltage source given by E(t) = 40V a resistor of 10 ohms, a inductor of .2 henrys and a capacitor
1
of 13 farads. If the initial current is zero and the initial current is 0, determine the current as a function of t.
Chapter 3

Series Solution

In calculus we learned that all continuously differentiable function can be represented by a Taylor series. The Taylor
series for a function centered at x = c is:

f 00 (c)(x − c)2 f 000 (c)(x − c)3 f (4) (c)(x − c)4


f (x) = f (c) + f 0 (c)(x − c) + + + + ...
2! 3! 4!
If the series is centered at zero then we call it a Mclauren series.
Some common power series are:


x2 x3 x4 X xn
ex = 1 + x + + + + ... =
2! 3! 4! n=0
n!

x3 x5 x7 X (−1)n x2n+1
sin(x) = x − + − + ... =
3! 5! 7! n=0
(2n + 1)!

x2 x4 x6 X (−1)n x2n
cos(x) = 1 − + − + ... =
2! 4! 6! n=0
(2n)!

1 X
= 1 + x + x2 + x3 + ... = xn
1−x n=0

3.1 Series Solutions Around Ordinary Points


In this chapter we will not be looking for some equation f (x) that is the solution to a differential equation, instead we
will be looking for its Power Series (normally a Taylor Series). For the case of the Taylor Series we will look for a solution
to the differential equation of the form:

X
y= an xn
n=0

with the sequence an to be determined by substituting y, y 0 and y 00 into the differential equation and developing a
recurrence relation for an and solving the recurrence relation for a formula for an .
An Example:

63
64 CHAPTER 3. SERIES SOLUTION

Find at least the first seven terms in the power series that is a solution to the differential equation

y 00 + 3xy 0 + 2y = 0

We will look for a solution of the form:


X ∞
X ∞
X
y= an xn making y0 = nan xn−1 y 00 = n(n − 1)an xn−2
n=0 n=1 n=2
0 00
Substituting y, y and y into the differential equation produces:


X ∞
X ∞
X
n(n − 1)an xn−2 + 3 n(n − 1)an xn + 2 an xn = 0
n=2 n=1 n=0

I will now shift the first series in the above expression so that it too has an xn factor:


X ∞
X ∞
X
(n + 2)(n + 1)an+2 xn + 3 nan xn + 2 an xn = 0
n=0 n=1 n=0

Now I will add the zero term in the first and third series so that all indexes will be n = 1


X ∞
X ∞
X
2a2 + 2a0 + (n + 2)(n + 1)an+2 xn + 3 nan xn + 2 an xn = 0
n=1 n=1 n=1
n
Now that all three series have an x factor and all 3 indexes are the same: n = 1, we can combine the three series
into one series:

∞ 
X 
2a2 + 2a0 + (n + 2)(n + 1)an+2 + (3n + 2)an xn = 0
n=1

Setting the constant term on the left: 2a2 + 2a0 equal to the constant term on the right: 0 and setting the coefficient
on xn on the left: (n + 2)(n + 1)an+2 + (3n + 2)an equal to the coefficient of xn on the right: 0 gives:

2a2 + 2a0 = 0 (n + 2)(n + 1)an+2 + (3n + 2)an = 0

−(3n + 2)an
a2 = −a0 and our recurrence relation is: an+2 =
(n + 2)(n + 1)
Substituting n = 1, 2, ...5 in to the recurrence relation gives:

−5 2 11 −14
a3 = a1 a4 = a0 a5 = a1 a6 = a0
6 3 24 45
The solution is

5 2 11 14
y = a0 + a1 x − a0 x2 − a1 x3 + a0 x4 + a1 x5 − a0 x6
6 3 24 45
Separating this solution into two linearly independent solutions:
   
2 2 4 14 6 5 3 11 5
y = a0 1 − x + x − x + a1 x − x + x
3 45 6 24
Since a pattern in the terms cannot be found we shall leave the solution as a sixth degree polynomial.
3.1. SERIES SOLUTIONS AROUND ORDINARY POINTS 65

Sometimes a pattern can be found and the solution can be written much more concisely. Consider the following
example:

Example: Solve using power series about x = 0:

(x + 1)y 00 − 2xy − 4y = 0

First lets note that y = e2x is a solution. We will try to find this solution using power series. The series expansion for
e2x that we are trying to obtain is:


X 2n xn 4 2 4
e2x = = 1 + 2x + 2x2 + x3 + x4 + x5 ...
n=0
n! 3 3 15

We will look for a solution of the form:


X ∞
X ∞
X
y= an xn making y0 = nan xn−1 y 00 = n(n − 1)an xn−2
n=0 n=1 n=2
0 00
Substituting y, y and y into the differential equation produces:


X ∞
X ∞
X ∞
X
n(n − 1)an xn−1 + n(n − 1)an xn−2 − 2 nan xn − 4 an xn = 0
n=2 n=2 n=1 n=0
n
Shifting the first and second series so that they each have an x factor.


X ∞
X ∞
X ∞
X
(n + 1)(n)an+1 xn + (n + 2)(n + 1)an+2 xn − 2 nan xn − 4 an xn = 0
n=1 n=0 n=1 n=0

Adding the n = 0 term in he second and fourth series so that all series start with an index of n = 1 and condensing
into one series give:

∞ 
X 
2a2 − 4a0 + (n + 1)(n)an+1 + (n + 2)(n + 1)an+2 − 2nan − 4an xn = 0
n=1

2a2 − 4a0 = 0 (n + 1)(n)an+1 + (n + 2)(n + 1)an+2 − 2nan − 4an = 0

2(n + 2)an − n(n + 1)an+1


a2 = 2a0 an+2 =
(n + 2)(n + 1)
So our recurrence relation simplifies to

2 n
an+2 = an − an+1
n+1 n+2

1 2 2 1 5 1
a3 = a1 − a2 = a1 − a0 a4 = a2 − a3 = a0 − a1
3 3 3 2 3 2

4 14 4
a5 = a1 − a0 a6 = a0 − a1
3 9 5
As of now our solution is:
66 CHAPTER 3. SERIES SOLUTION

       
2 2 3 5 1 4 4 5 14 12
y = a0 + a1 x + 2a0 x + a1 − a0 x + a0 − a1 x + a1 − a0 x + a0 − a1 x6
3 3 2 3 9 15
Or
   
2 5 4 14 1 4
y = a0 1 + 2x2 − x3 + x4 − x5 + x6 + a1 x + x3 − x4 + x5 − x6
3 3 3 9 2 5
This solution does not look like the series expansion for e2x that we are expecting. Noticing the first and third terms
in the first linearly independent solution: 1 + 2x2 match the first and third terms in the series but we seem to be missing
the second term: 2x. I will rewrite the linear term in the second linearly independent solution so that it has a 2x term
in it. I will do this by letting

a1 = 2a0 + K

Making

1 4 2 1 2 1
a3 = a1 − a2 = a0 + K a4 = a2 − a3 = a0 − K
3 3 3 2 3 2

4 4 4
a5 = a1 − a0 = a0 + K
3 15 5
Now our solution is
     
2 4 3 2 1 4 4 4
y = a0 + (2a0 + K)x + 2a0 x + a0 + K x + a0 − K x + a 0 + K x5
3 3 2 15 5
Separating this into two linearly independent solutions gives
   
4 2 4 1 4
y = a0 1 + 2x + 2x2 + x3 + x4 + x5 + K x + x3 − x4 + x5
3 3 15 2 5
Now the first linearly independent solution has the expansion for e2x so our solution simplifies to
 
2x 1 4
y = a0 e + K x + x − x4 + x5
3
2 5
Now that we have one solution we normally would apply the reduction of order algorithm to find the second solution
but the integral it produces is not pleasant so we must accept the series expansion as our second linearly independent
solution.

157. Find the first six terms of the solution to the differential equation:

y 00 + (3x − 1)y 0 − y = 0

158. Find the first six terms of the solution to the differential equation:

(x2 + 1)y 00 + y = 0
3.2. METHOD OF FROBENIUS: 67

159. Find the first six terms of the solution to the differential equation:

(x2 + 2)y 00 + xy 0 − y = 0

160.
Find the first 5 terms in y1 in the series expansion about x = 0 for a solution to:

y 00 − 2xy 0 − 2y = 0

161.
Find the first 5 terms in y1 in the series expansion about x = 0 for a solution to:

y 00 + xy 0 + (−4 − 2x)y = 0

3.2 Method of Frobenius:


We will now try to find a power series solution to the differential equation:

y 00 + P (x)y 0 + Q(x)y = 0

centered at a point where either P (x) or Q(x) is not analytic. First a definition:
x = x0 is a Singular Point of the above differential equation if either P (x) or Q(x) is not analytic at x = x0 . x = x0
is a Regular Singular Point if the following limits exist:

p0 = lim (x − x0 )P (x) q0 = lim (x − x0 )2 Q(x)


x→x0 x→x0

To find a series solution about a regular singular point we use the Method of Frobenius. In the Method of Frobenius
we look for a series solution of the form:


X ∞
X ∞
X
y= an xn+r making y0 = (n + r)an xn+r−1 y 00 = (n + r)(n + r − 1)an xn+r−2
n=0 n=0 n=0

The values of r that we will use are the roots of the Indicial Equation:

r(r − 1) + p0 r + q0 = 0

There will be three cases we will have to consider based on the roots: r1 and r2 to the indical equation. Note: we
always take r1 to be the larger of the two roots. The first case we will consider is the case when the roots differ by a non
integer. That is:

r1 − r2 6∈ Z

An Example:
Find the first 6 terms in the series expansion for the solution to the following differential equation centered at x = 0.

2x(x − 1)y 00 + 3(x − 1)y 0 − y = 0


68 CHAPTER 3. SERIES SOLUTION

In standard form this equation is:

3 0 −1
y 00 + y + y=0
2x 2x(x − 1)

3 3 −1
p0 = lim x = q0 = lim x2 =0
x→0 2x 2 x→0 2x(x − 1)
The indical equation is:
 
3 1
r(r − 1) + r = 0 or r r+ =0
2 2
−1
The roots are r1 = 0 and r2 = 2 .
Inserting:


X ∞
X ∞
X
y= an xn+r making y0 = (n + r)an xn+r−1 y 00 = (n + r)(n + r − 1)an xn+r−2
n=0 n=0 n=0

into the original differential equation gives:


X ∞
X ∞
X ∞
X ∞
X
2 (n+r)(n+r−1)an xn+r −2 (n+r)(n+r−1)an xn+r−1 +3 (n+r)an xn+r −3 (n+r)an xn+r−1 − an xn+r = 0
n=0 n=0 n=0 n=0 n=0

Shifting the first, third and fifth summation so that all series will have an xn+r−1 factor:


X ∞
X
2 (n + r − 1)(n + r − 2)an−1 xn+r−1 − 2 (n + r)(n + r − 1)an xn+r−1 +
n=1 n=0


X ∞
X ∞
X
3 (n + r − 1)an−1 xn+r−1 − 3 (n + r)an xn+r−1 − an−1 xn+r−1 = 0
n=1 n=0 n=1

Adding the n = 0 terms in the second and forth series and condensing into a single series gives:

∞ 
X 
r−1
(−2r(r−1)a0 −3ra0 )x + 2(n+r−1)(n+r−2)an−1 −2(n+r)(n+r−1)an +3(n+r−1)an−1 −3(n+r)an −an−1 xn+r−1 = 0
n=1

Setting the coefficients of the polynomial on the left hand side equal to zero: the coefficients of the polynomial on the
−1
right hand side. We see that the coefficient of xr−1 is zero at both r1 = 0 and r2 = 2 so a0 is a free is not necessarily
n+r−1
zero. We also get our recurrence relation from setting the coefficient of x to zero.

2(n + r − 1)(n + r − 2)an−1 − 2(n + r)(n + r − 1)an + 3(n + r − 1)an−1 − 3(n + r)an − an−1 = 0

Solving for an

1 − 3(n + r − 1) − 2(n + r − 1)(n + r − 2)


an = an−1
−2(n + r)(n + r − 1) − 3(n + r)
We will find two linearly independent solutions by substituting our two values of r into the recurrence relation. For
r1 = 0
3.2. METHOD OF FROBENIUS: 69

1 − 3(n − 1) − 2(n − 1)(n − 2)


an = an−1
−2n(n − 1) − 3n
Which simplifies to:
 
2n − 3
an = an−1
2n + 1
To obtain the first 6 terms in the solution we will find the first 3 terms in y1 using the above recurrence relation
−1
created by using r1 = 0 and the first 3 terms in y2 using the using a recurrence relation created by using r2 = 2 . The
first 3 terms in this recurrence relation will have coefficients a0 , a1 and a2 . They are:

−1 1 1 −1 −1
a1 = a0 a2 = a1 = a0 = a0
3 5 5 3 15
Using r1 = 0 the first 3 terms in y1 are:

y1 = a0 + a1 x + a2 x2

x x2
 
y1 = a0 1 − −
3 15
Since this is a second order differential equation we would expect the form of the solution to be:

y = C1 y1 + C2 y2

In our answer C1 is the constant a0 .


−1
To find y2 we insert r2 = 2 into the recurrence relation:

1 − 3(n − 32 ) − 2(n − 32 )(n − 25 )


an =
−2(n − 12 )(n − 23 ) − 3(n − 12 )
After a bit of simplifying we arrive at our recurrence relation:
 
2n − 1
an = an−1
n
The first three terms in this recurrence relation will have coefficients a0 , a1 and a2 . They are:

3 3
a1 = a0 a2 = a1 = a0
2 2

−1 1 3
y2 = a0 x 2 + a1 x 2 + a2 x 2

−1 1 3 3
y2 = a0 x 2 + a0 x 2 + a0 x 2
2
 
−1 1 3 3
y2 = a0 x 2 + x + x2
2
2
An Example:
Solve the following differential equation by method of Forbenious.
70 CHAPTER 3. SERIES SOLUTION

4xy 00 + 2y 0 + y = 0

In standard form our equation is:

1 0 1
y 00 + y + y=0
2x 4x

1 1
p0 = lim x =
x→0 2x 2

1
q0 = lim x2 =0
x→0 4x
Our indical equation becomes:

1
r(r − 1) + r = 0
2
1
Which has roots r1 = 2 and r2 = 0
Assume a solution to the differential equation of the form:


X
y= an xn+r
n=0

Therefore:


X ∞
X
0 n+r−1 00
y = (n + r)an x y = (n + r)(n + r − 1)an xn+r−2
n=0 n=0

Inserting the series for y, y’ and y” into our differential equation yields the following:


X ∞
X ∞
X
4(n + r)(n + r − 1)an xn+r−1 + 2(n + r)an xn+r−1 + an xn+r = 0
n=0 n=0 n=0

Shifting the last series on the LHS of the above equation yields:


X ∞
X ∞
X
4(n + r)(n + r − 1)an xn+r−1 + 2(n + r)an xn+r−1 + an−1 xn+r−1 = 0
n=0 n=0 n=1

Adding the n = 0 terms in the first two series and then combining the rest into one series yields:


X
(4r(r − 1)a0 + 2ra0 )xr−1 + [4(n + r)(n + r − 1)an + 2(n + r)an + an−1 ]xn+r−1 = 0
n=1

This gives the recurrence relation:

4(n + r)(n + r − 1)an + 2(n + r)an + an−1 = 0

Which simplifies to:

−an−1
an =
(2n + 2r)(2n + 2r − 1)
3.2. METHOD OF FROBENIUS: 71

1
For r1 = 2 our recurrence relation becomes:

−an−1
an =
(2n + 1)(2n)
Substituting values of n into our recurrence relation yields:

−a0 −a1 a0
a1 = a2 = =
3·2 5·4 5·4·3·2

−a2 −a0
a3 = =
7·6 7·6·5·4·3·2
The solution to this recurrence relation is:
(−1)n · a0
an =
(2n + 1)!
Making the solution:


X (−1)n n+1/2 √
y1 = x = sin( x)
n=0
(2n + 1)!
For r2 = 0 our recurrence relation becomes:

−an−1
an =
(2n)(2n − 1)
Substituting values of n into our recurrence relation yields:

−a0 −a1 a0
a1 = a2 = =
2·1 4·3 4·3·2

−a2 −a0
a3 = =
6·5 6·5·4·3·2
The solution to this recurrence relation is:
(−1)n · a0
an =
(2n)!
Making the solution:


X (−1)n n √
y2 = x = cos( x)
n=0
(2n)!
162.
Find the first 5 terms in y1 in the series expansion about x = 0 for a solution to:

(x2 − 2x)y 00 + (2 − x2 )y 0 + (2x − 2)y = 0

163.
Find the first 5 terms in y1 in the series expansion about x = 0 for a solution to:

xy 00 + y 0 + xy = 0

164.
72 CHAPTER 3. SERIES SOLUTION

Find the first 5 terms in y1 in the series expansion about x = 0 for a solution to:

xy 00 + y 0 − 4y = 0

165.
Find the first 5 terms in y1 in the series expansion about x = 0 for a solution to:

xy 00 + 2y 0 + xy = 0

3.3 The Gamma Function


As you have seen many of our series solutions involve factorials. The problem factorials is that they are only defined for non
negative integers. The gamma function extend the idea of factorials to all positive real numbers. The Gamma Function
is given by the improper integral:
Z ∞
Γ(x) = e−t tx−1 dt x>0
0

The first important property that we will prove of the gamma function shows its similarities to the factorial function:
Thm:
Γ(x + 1) = xΓ(x)

Proof:
Z ∞
Γ(x + 1) = e−t tx dt
0

Using integration by parts

u = tx dv = e−t dt du = xtx−1 dt v = −e−t

b Z b
Γ(x + 1) = lim −tx e−t + x tx−1 e−t dt

b→∞ 0 0

The first term is zero at both zero and infinity so we hvae


Z ∞
Γ(x + 1) = x e−t tx−1 dt = xΓ(x)
0

This theorem demonstrates the relationship with the factorial function. The next result is a direct corollary to the
above theorem and is the most well known property of the gamma function.
If n is a positive integer

Γ(n) = (n − 1)!

Example:
3.3. THE GAMMA FUNCTION 73

Calculate Γ( 21 )
  Z ∞ Z ∞ −t
1 −t −1 e
Γ = e t dt =
2 √ dt
2 0 0 t
Substituting

√ dt
u= t 2du = √ when t = 0 u = 0 as t → ∞ u → ∞
t
  Z ∞
1 2
Γ =2 e−u du
2 0
2
Although we cannot find an antiderivative for e−u we can evaluate this integral with a clever trick
  Z ∞ Z ∞
1 −u2 2
Γ =2 e du = 2 e−v dv
2 0 0
So
  2  Z ∞   Z ∞  Z ∞Z ∞
1 −u2 −v 2 2 2
Γ = 2 e du · 2 e dv = 4 e−u −v dudv
2 0 0 0 0

Converting to polar coordinates


  2 Z π2 Z ∞
1 2
Γ =4 e−r rdrdθ
2 0 0

  2 Z π2 b Z π2
1 2
Γ = −2 lim e−r dθ = 2 dθ = π
2 0 b→∞ 0 0

So


 
1
Γ = π
2

166.
Find
 
3
Γ
2
167.
Show

lim Γ(x) = ∞
x→0+
168.
Use the principle of mathematical induction to prove:
  √
1 (2n)! π
Γ n+ = n = 0, 1, 2, ...
2 4n n!
169.
74 CHAPTER 3. SERIES SOLUTION

Show that the definition of the Gamma function is equivalent to Euler’s original definition:
Z 1   x−1
1
Γ(x) = ln dt
0 t

3.4 Bessel’s Equation


We will now consider a differential equation of great importance in applied mathematics. The Bessel Equation of order
v is:

x2 y 00 + xy 0 + (x2 − v 2 )y = 0

or in standard form:

v2
 
1 0
00
y + y + 1− 2 y =0
x x
We see that x = 0 is a singular point of the Bessel Equation. Since both

v2
 
1
P0 = lim x =1 And Q0 = lim x2 1 − 2 = −v 2
x→0 x x→0 x
exist x = 0 is a regular singular point and our indical equation is

r(r − 1) + r − v 2 = 0 Or r2 − v2 = 0

Which has roots

r = ±v

If the difference between the roots: 2n is not an integer then the method of Frobenius gives two linearly independent
solutions:


X (−1)n x2n+v
Jv =
n=0
22n+v n!Γ(1 + v + n)
and


X (−1)n x2n−v
J−v =
n=0
22n−v n!Γ(1 − v + n)

An Example:
1
Solve the Bessel equation of order 2
 
1
x2 y 00 + xy 0 + x2 − =0
4
In standard form we have
 
1 0
00 1
y + y + 1− 2 y =0
x 4x
3.4. BESSEL’S EQUATION 75

We see that x = 0 is a singular point. To show it is a regular singular point we compute:


 
1 2 1 −1
P0 = lim x = 1 Q0 = lim x 1− 2 =
x→0 x x→0 4x 4
Since both limits exist we see that x = 0 is a regular singular point and we can use the method of Frobenius to find a
series solution about x = 0. The indical equation and roots are:

1 1
r(r − 1) + r − =0 r=±
4 2

X ∞
X ∞
X
y= an xn+r y0 = (n + r)an xn+r−1 y= (n + r)(n + r − 1)an xn+r−2
n=0 n=0 n=0
0 00
Inserting the series for y, y and y into the original differential equation gives:

∞ ∞ ∞ ∞
X X X X 1
(n + r)(n + r − 1)an xn+r + (n + r)an xn+r + an xn+r+2 − an xn+r = 0
n=0 n=0 n=0 n=0
4
Shifting the third series so that it too has an exponent of n + r

∞ ∞ ∞ ∞
X X X X 1
(n + r)(n + r − 1)an xn+r + (n + r)an xn+r + an−2 xn+r − an xn+r = 0
n=0 n=0 n=2 n=0
4
Adding the first and second terms in the first, second and fourth series will produce four series all with an index
starting at n = 2 that can be simplified into a single series.

    ∞   
1 r 1 1+r
X 1
r(r − 1) + r − a0 x + (1 + r)r + (1 + r) − a1 x + (n + r)(n + r − 1) + (n + r) − an + an−2 xn+r = 0
4 4 n=2
4

The coefficient of a0 xr is identical to the indical equation and is zero at both values of r making a0 not zero whereas
the coefficient of a1 x1+r is not zero at both values of r making a1 = 0. Our recurrence relation is:
 
1
(n + r)(n + r − 1) + (n + r) − an + an−2 = 0
4

−an−2
an = 1
(n + r)2 − 4
1
For the larger root r = 2 our recurrence relation simplifies to:

−an−2
an =
n(n + 1)
Producing a sequence of terms in an

−a0 −a0 −a1


=
a2 = a3 = =0
2·3 3! 4·3
Since a5 depends on a3 it too must be zero. In fact an = 0 for all odd values of n

−a2 a0 a0 −a4 −a0


a4 = = = a6 = =
5·4 5·4·3·2 5! 7·6 7!
Recognizing the pattern we see
76 CHAPTER 3. SERIES SOLUTION

(−1)n a0
a2n =
(2n + 1)!
And the first solution is

∞ ∞ ∞
X (−1)n a0 2n+ 1 X (−1)n a0 x2n+1 1 X (−1)n a0 2n+1
y1 = x 2 = √ =√ x
n=0
(2n + 1)! n=0
(2n + 1)! x x n=0 (2n + 1)!
Recognizing the series gives:

cos(x)
y1 = J −1 (x) = a0 √
2 x
Since r1 − r2 is an integer the second linearly independent solution would be quite to derive using series, but we were
cos(x)
able to find a closed form expression for y1 = √
x
so we can use the method of reduction of order form chapter 2 to
find the second linearly independent solution.
 
1 0 1
y 00 + y + 1− 2 y =0
x 4x
1
R
e− x dx
Z Z
v= cos2 (x)
dx = sec2 (x)dx = tan(x)
x
Our second linearly independent solution is

cos(x)
y2 = y1 v = √ tan(x)
x

sin(x)
y2 = J 21 (x) = √
x
And the homogenous solution is:

cos(x) sin(x)
y = C1 √ + C2 √
x x

A few important properties of the solutions to the Bessel equation are:


   
d d
xv Jv (x) = xv Jv−1 (x) x−v Jv (x) = −x−v Jv+1 (x)
dx dx

2v
Jv+1 (x) = Jv (x) − Jv−1 (x) Jv+1 (x) = Jv−1 (x) − 2Jv0 (x)
x

170.
1
The Bessel functions of order n + 2 for integer n are related to the spherical Bessel functions. Use one of the above
properties of the Bessel function and the results of the example to calculate J 32 and J 25
171.
Show the orthogonality of the Bessel functions by showing
Z 1
xJ −1 J 12 dx = 0
2
0
3.4. BESSEL’S EQUATION 77

172.

Show that the substitution z = xy transforms the Bessel equation to normal form:

1 − 4v 2
 
z 00 + 1 + z=0
4x2
173.
The parametric Bessel equation is:

x2 y 00 + xy 0 + (λ2 x2 − v 2 )y = 0 x>0

Show

y = C1 Jv (λx) + C2 J−v (λx) v∈


/Z

is the solution
174.
Use the results from the previous problem and to find the solution to
 
1
x2 y 00 + xy 0 + 25x2 − y=0 x>0
4
175.
Use ideas from the previous two problems and the fact ı2 x2 = −x2 to solve
 
1
x2 y 00 + xy 0 − x2 + y=0 x>0
4
176.
−1
Use the change of variable y = x 2 v(x) to solve

x2 y 00 + 2xy 0 + λ2 x2 y = 0
78 CHAPTER 3. SERIES SOLUTION
Chapter 4

Laplace Transform

4.1 Calculating Laplace and Inverse Laplace Transforms

The Laplace Transform of a function f (x) will be a function of s given by the improper integral:

Z ∞
L(f ) = f (x)e−sx dx
0

provided the integral converges. Functions that outgrow ekx , for constant k, do not have a Laplace Transform since
n
the integral diverges. So f (x) = ex will not have a Laplace Transform for n > 1. Let us now try to find the Laplace
Transform of f (x) = eax .

Z ∞ Z ∞
ax ax −sx
L(e ) = e e dx = e(a−s)x dx
0 0

b
e(a−s)x e(a−s)b 1 1
= lim = lim − =
b→∞ a − s 0 b→∞ a − s a−s s−a

For s > a.

Here is a basic table of laplace transforms:

79
80 CHAPTER 4. LAPLACE TRANSFORM

f (x) F(s) = L(f (x))


eax s−a
1

a
sin(ax) s2 +a2
s
cos(ax) s2 +a2
n
x n∈N n!
sn+1
ax n
e x n∈N n!
(s−a)n+1
eax − ebx a−b
(s−a)(s−b)
eax sin(bx) b
(s−a)2 +b2
eax cos(bx) s−a
(s−a)2 +b2
2as
x sin(ax) (s2 +a2 )2
s −a2
2
x cos(ax) (s2 +a2 )2
a
sinh(ax) s2 −a2
s
cosh(ax) s2 −a2
r Γ(r+1)
x r ∈√ R r > −1 s√r+1
π
x 3
2s
√2
√1 √
π
x s

1
xn− 2 n ∈ N 1·3·5...(2n−1) π
1
2n sn+ 2
4a3
sin(ax) cosh(ax) − cos(ax) sinh(ax) s4 +4aa
2a2 s
sin(ax) sinh(ax) s4 +4a4
2a3
sinh(ax) − sin(ax) s4 −a4
2a2 s
cosh(ax) − cos(ax) s4 −a4
2a3
sin(ax) − ax cos(ax) (s2 +a2 )2
2as2
sin(ax) + ax cos(ax) (s2 +a2 )2
eax g(x) G(s − a)  = L(g(x))
G(s) 
xn g(x) n dn
(−1) dsn L(g(x))

Notice there is not a Laplace Transform for any function that outgrows f (x) = eax . This is because the improper
integral from the definition will diverge.
One key property of the Laplace Transform is that it is a Linear Transformation; meaning:

L(af (x) + bg(x)) = aL(f (x)) + bL(g(x))

An Example: Find the Laplace Transform of:

f (x) = 4x sin(3x) + x2 e6x

Using the table we see that the Laplace Transform of 4x sin(3x) is 4 (s22·3s 2 6x
+32 )2 and the Laplace Transform of x e is
2
(s−6)3 . So:

24s 2
L(f (x)) = +
(s2 + 9)2 (s − 6)3
4.1. CALCULATING LAPLACE AND INVERSE LAPLACE TRANSFORMS 81

An Example: Find the inverse Laplace Transform of:

s3 − 8s2 + 23s − 7
F (s) =
(s2 − 4s + 20)(s − 3)2
Looking at the table of Laplace Transforms we notice that there is not an inverse Laplace Transform for a function
with a repeated linear factor multiplied by a quadratic factor so we must use partial fraction decomposition to separate
this function into a sum of functions that do have an inverse Laplace Transform. By partial fractions

s−3 1
F (s) = +
s2 − 4s + 20 (s − 3)2
Looking at the table we notice all terms with a quadratic denominator are written in the completed square form.
So we will complete the square on the quadratic denominator and do nothing to the second term since we can find the
inverse Laplace Transform it as it is:

s−3 1
F (s) = +
(s − 2) + 16 (s − 3)2
2

To find the inverse Laplace of a term with a denominator: (s − 2)2 + 42 we need to have either an s − 2 or a 4 in the
numerator so I will rewrite the s − 3 term as s − 2 − 1 and separate the fraction into two fractions:

s−2 1 1
F (s) = − +
(s − 2)2 + 42 (s − 2)2 + 42 (s − 3)2
4
I will now multiply the second term by 4 to make it fit the table:
 
s−2 1 4 1
F (s) = 2 2
− 2 2
+
(s − 2) + 4 4 (s − 2) + 4 (s − 3)2
Using the table to find the inverse Laplace Transform gives:

1
f (x) = e2x cos(4x) − e2x sin(4x) + xe3x
4
177. Find the Laplace Transform of:

f (x) = x3 − 3x cos(4x)

178. Find the Laplace Transform of:

f (x) = x2 sinh(3x) + e2x sin(3x)

179. Find the Laplace Transform of:

f (x) = x4 e5x − sin(2x) sinh(2x)

180. Find the Laplace Transform of:

3 5
f (x) = x 2 − x 2

181. Find the Inverse Laplace Transform of:

3s 12
F (s) = + 2
s2 + 4 s − 10s + 34
82 CHAPTER 4. LAPLACE TRANSFORM

182. Find the Inverse Laplace Transform of:

500 + 40s
F (s) =
(s2 + 25)2
183. Find the Inverse Laplace Transform of:

9s2 − 30s + 49
F (s) =
(s − 3)2 (s2 + 1)
184. Find the Inverse Laplace Transform of:

3s3 − 6s2 + 39s + 54


F (s) =
(s2 − 4s + 13)(s2 + 9)
185.
Find the Inverse Laplace Transform of:


X 1
F (s) = n
n=1
s

You should be able to recognize the power series.


186.
Use the series expansion for ln(1 + x) to find

L(ln(1 + x))

187.
2
Show L(ex ) does not exist.
188.  
1
Show L x2 does not exist.
189.
Use

ex + e−x ex − e−x
cosh(x) = sinh(x) =
2 2
to derive formulas for

L cosh(ax + b) L sinh(ax + b)

and

L cosh2 (x) L sinh2 (x)

Then find the inverse Laplace transform of

L cosh2 (x) − L sinh2 (x)

What can you conclude about the value of

cosh2 (x) − sinh2 (x)


4.2. SOLVING INITIAL VALUE PROBLEMS 83

190.
Calculate:

L(x2 · y 0 )

191.
Use the following property:
  Z ∞
f (x)
L = F (x)dx
x s

to find
 
sinh(x)
L
x
192.
Use a power series expansion to show:

1 √
e− s
 
cos(2 t)
L−1 √ = √
s πt
193.
Recall the Gamma function from the last chapter is given by
Z ∞
Γ(x) = tx−1 e−t dt
0

Show that

Γ(r + 1)
L(xr ) = r > −1
sr+1

4.2 Solving Initial Value Problems


What is the use of Laplace Transforms in differential equations? The answer comes from the next derivation of the
Laplace Transform of y 0 (x):
Z ∞
L(y 0 (x)) = y 0 (x)e−sx dx using integration by parts
0

u = e−sx dv = y 0 (x)dx du = −se−sx dx v = y(x)

Z ∞ b Z b
0 0 −sx −sx
−sy(x)e−sx dx

L(y (x)) = y (x)e dx = lim e y(x) −
0 b→∞ 0 0

= lim e−sb y(b) − y(0) + sL(y(x))


b→∞
84 CHAPTER 4. LAPLACE TRANSFORM

= sL(y(x)) − y(0)

In a similar way we can find the Laplace Transform of y 00 , y 000 ...

L(y 0 (x)) = sL(y(x)) − y(0)

L(y 00 (x)) = s2 L(y(x)) − sy(0) − y 0 (0)

L(y 000 (x)) = s3 L(y(x)) − s2 y(0) − sy 0 (0) − y 00 (0)

From the above equations it should be clear that you must have initial conditions evaluated at x = 0 to use Laplace
Transforms to solve a differential equation.
The procedure to solve a differential equation using Laplace Transforms is: First, using the above tables take the
Laplace Transform of both sides of the differential equation; Second, Solve for L(y(x)) as a function of s; Third, using
the above tables calculate the inverse Laplace of both sides of the equation.
An Example: Solve:

y 00 − 2y 0 − y = e2x − ex y(0) = 1 y 0 (0) = 3

Taking the Laplace transform of both sides gives:


 
1 1
s2 L(y) − s − 3 − 2 sL(y) − 1 − L(y) = −
s−2 s−1
Solving for L(y):

1 1
L(y)(s2 − 2s − 1) = − +s+1
s−2 s−1
√ √
Solving for L(y) and factoring s2 − 2s − 1 = (s − (1 + 2))(s − (1 − 2))

1 1 s+1
L(y) = √ √ − √ √ + √ √
(s − 2)(s − (1 + 2))(s − (1 − 2)) (s − 1)(s − (1 + 2))(s − (1 − 2)) (s − (1 + 2))(s − (1 − 2))

Expanding with partial fractions gives:


√ √
3( 2 + 1) 1 3( 2 − 1) 1 1 1 1
L(y) = √ − √ + −
4 s − ( 2 + 1) 4 s − (1 − 2) 2 s − 1 s − 2
Calculating the inverse Laplace Transform
√ √
3( 2 + 1) (√2+1)x 3( 2 − 1) (1−√2)x 1 x
y= e − e + e − e2x
4 4 2

The Laplace Transform can also be used to solve linear differential equations without constant coefficients. To do so
we would like to have nice formula for:

L(f (x)y) L(f (x)y 0 ) L(f (x)y 00 )


4.2. SOLVING INITIAL VALUE PROBLEMS 85

Unfortunately, these formulas either do not exist or are well beyond the scope of this book, so instead we will find
formulas for the specific case f (x) = x. Lets now calculate L(xy)
We know

d
L(xf (x)) = − L(f (x))
ds
So

d
L(xy) = − L(y)
ds
And
 
d d d
L(xy 0 ) = − L(y 0 ) = − sL(y) − y(0) = −L(y) − s L(y)
ds ds ds
And
 
00 d 00 d 0 d
L(xy ) = − L(y ) = − s L(y) − sy(0) − y (0) = −2sL(y) − s2 L(y) + y(0)
2
ds ds ds

Using the notation L0 (y) = d


ds L(y) our formulas become:

L(xy) = −L0 (y) L(xy 0 ) = −L(y) − sL0 (y) L(xy 00 ) = −2sL(y) − s2 L0 (y) + y(0)

A Example:

Solve:

xy 00 + 2(x − 1)y 0 − 2y = 0 y(0) = 0

Taking the Laplace Transform of each side gives:

−2sL(y) − s2 L0 (y) + y(0) − 2L(y) − 2sL0 (y) − sL(y) + y(0) − 2L(y) = 0

−2sL(y) − s2 L0 (y) − 2L(y) − 2sL(y) − sL0 (y) − 2L(y) = 0

Which simplifies to:

(s2 + 2s)L0 (y) + (4s + 4)L(y) = 0

This equation is now separable

L0 (y) 4s + 4
=−
L(y) s(s + 2)
Applying partial fraction to the right hand side gives

L0 (y) 2 2
=− −
L(y) s s+2
86 CHAPTER 4. LAPLACE TRANSFORM

Integrating gives
 
ln L(y) = −2 ln(s) − 2 ln(s + 2) + C

Treating C as ln(K) and using some log rules we get:

ln(s2 (s + 2)2 L(y)) = ln(K)

So

K
L(y) =
s2 (s + 2)2
Applying partial fraction to the right hand side gives
 
−1 1 1 1 1 1 1 1
L(y) = K · + · + · + ·
4 s 4 s2 4 s + 2 4 (s + 2)2
1
Absorbing the 4 into the constant and calculating the inverse Laplace Transform gives:
 
y=K − 1 + x + e−2x + xe−2x

194. Solve:

y 0 + y = ex y(0) = 1

195. Solve:

y 0 + 2y = sin(2x) y(0) = 1

196. Solve:

y 00 + 6y 0 + 5y = 12ex y(0) = −1 y 0 (0) = 7

197.
Solve using Laplace Transforms

y 00 + 4y = sin(2t) y(0) = 10 y 0 (0) = 0

198. Solve:

y 00 − 7y 0 + 10y = 9 cos(x) + 7 sin(x) y(0) = 5 y 0 (0) = −4

199. Solve:

y 00 + 4y = 4x2 − 4x + 10 y(0) = 0 y 0 (0) = 3

200. Solve:
4.3. UNIT STEP FUNCTION 87

y 000 + y 00 + 3y 0 − 5y = 16e−x y(0) = 0 y 0 (0) = 2 y 00 (0) = −4

201. Solve:

xy 00 − y 0 = x2 y(0) = 0

202. Solve:

xy 00 + 2xy 0 + 2y = 0 y(0) = 0

203. Solve:

xy 00 + (x + 2)y 0 + y = −1 y(0) = 0

4.3 Unit Step Function


So far we have learned how to use Laplace Transforms to solve differential equations involving continuous functions. We
will now learn how to solve differential equations involving piecewise functions. First a definition.
The Unit Step Function is defined as:
(
0 x<c
uc (x) =
1 x>c
It can be shown that:

L(uc (x)f (x)) = e−cs L(f (x + c)) L−1 (e−cs F (s)) = uc (x)f (x − c)

An Example: Solve:

y 00 + y = g(x) y(0) = 0 y 0 (0) = 1

(
x x<2
g(x) =
4 2<x
Start by writing the equation using the unit step function:

y 00 + y = x + (4 − x)u2 (x)

Take the Laplace Transform of both sides:

1
s2 L(y) − 1 + L(y) = + e−2s L(4 − (x + 2))
s2
 
2 1 −2s 2 1
L(y)(s + 1) = 2 + e − +1
s s s2
88 CHAPTER 4. LAPLACE TRANSFORM

 
1 1 −2s 2 1
L(y) = 2 2 + +e −
s (s + 1) (s2 + 1) s(s2 + 1) s2 (s2 + 1)
Applying partial fraction to the first term and on the terms multiplied by e−2s gives:
 
1 1 1 −2s −2s 1 2 1
L(y) = 2 − 2 + +e + + −
s s + 1 (s2 + 1) s2 + 1 s2 + 1 s s2
 
1 −2s −2s 1 2 1
L(y) = 2 + e + + −
s s2 + 1 s2 + 1 s s2
Calculating the inverse Laplace Transform:
 

y = x + u2 (x) − 2 cos(x) + sin(x) + 2 − x
x−2
 
y = x + u2 (x) − 2 cos(x − 2) + sin(x − 2) + 2 − (x − 2)

 
y = x + u2 (x) − 2 cos(x − 2) + sin(x − 2) − x

204. Express the piecewise function using the unit step function and then find its Laplace Transform:
(
x x<4
f (x) = 3x
e x>4
205. Express the piecewise function using the unit step function and then find its Laplace Transform:

 sin(2x)
 x<3
f (x) = 4x
xe 3<x<6

cosh(2x) 6<x

206. Find the Inverse Laplace Transform of:

e−5s
F (s) =
(s + 4)
207. Find the Inverse Laplace Transform of:

e−3s (s − 5)
F (s) =
(s + 1)(s + 2)
208.
Solve:

y 00 + 5y 0 + 6y = g(x) y(0) = −1 y 0 (0) = 0


 0
 x<1
g(x) = x 1<x<5

1 5<x

4.4. CONVOLUTION 89

209.
Solve:

y 00 + 3y 0 + 2y = g(x) y(0) = 2 y 0 (0) = −1

(
x2 x<3
g(x) =
1 3<x
210.
Solve:

y 00 + y = g(x) y(0) = 0 y 0 (0) = 1

(
π
cos(2x) x< 2
g(x) = π
sin(2x) 2 <x

4.4 Convolution
If you are asked to find the inverse Laplace Transform of F (s)G(s) and you know the inverse Laplace Transform of both
F (s) and G(s) what is the relationship between the Laplace Transform of F (x)G(s) and Laplace Transform of F (s) and
G(s)? The answer is a new operation called Convolution.
The Convolution of f (x) and g(x) is denoted f ∗ g and is given by the integral:
Z x
f ∗g = f (x − v)g(v)dv
0

For example the Convolution of x2 and x3 is:


Z x Z x
x2 ∗ x3 = (x − v)2 v 3 dv = (x2 − 2xv + v 2 )v 3 dv =
0 0

x x
x2 v 4 2xv 5 v6 x6 2x6 x6 x6
Z
(x2 v 3 − 2xv 4 + v 5 )dv = − + = − + =
0 4 5 6 0 4 5 6 60
Some basic properties of Convolution are:

f ∗g =g∗f f ∗ (g + h) = f ∗ g + f ∗ h

(f ∗ g) ∗ h = f ∗ (g ∗ h) f ∗0=0

What makes Convolution useful in differential equations are the following properties involving the Laplace Transform:

L(f ∗ g) = L(f ) · L(g) (L)−1 (F (s)G(s)) = ((L)−1 (F (s))) ∗ ((L)−1 (G(s)))

To show the first property:

L(f ∗ g) = L(f ) · L(g)

holds we let
90 CHAPTER 4. LAPLACE TRANSFORM

Z ∞ Z ∞
F (s) = L(f ) = f (x)e−sx dx G(s) = L(f ) = g(y)e−sy dy
0 0

Z ∞ Z t  Z ∞ Z ∞ 
L(f ∗ g) = e−st f (t − v)g(v)dv dt = e−st ut−v (t)f (t − v)g(v)dv dt
0 0 0 0

Remember ut−v (t) will be zero if v > t


Reversing the order if integration gives
Z ∞ Z ∞ 
−st
L(f ∗ g) = g(v) e ut−v (t)f (t − v)dt dv
0 0

The integral in parentheses is equal to e−sv F (s) so we have:


Z ∞ Z ∞
L(f ∗ g) = g(v)e−sv F (s)dv = F (s) g(v)e−sv dv
0 0

So

L(f ∗ g) = F (s) · G(s)

An Example: Solve:
Z x
0
y −2 ex−v y(v)dv = x y(0) = 2
0

Rewriting the integral as convolution

y 0 − 2ex ∗ y = x y(0) = 2

Taking the Laplace Transform of each side gives:


 
1 1
sL(y) − 2 − 2 L(y) = 2
s−1 s
Solving for L(y)

s−1
(s − 1)sL(y) − 2L(y) = + 2(s − 1)
s2

s−1
L(y)(s2 − s − 2) = + 2(s − 1)
s2

s−1 2(s − 1)
L(y) = +
s2 (s2 − s − 2) s2 − s − 2

s−1 2(s − 1)
L(y) = +
s2 (s − 2)(s + 1) (s − 2)(s + 1)
After partial fractions we have:

2 3 1 31 1 1
L(y) = + − +
s + 1 4 s − 2 4 s 2 s2
4.4. CONVOLUTION 91

Taking the inverse Laplace Transform

3 3 1
y = 2e−x + e2x − + x
4 4 2

211.
Find:

x ∗ ex

212.
If y(0) = 0 show:

2 ∗ (y(x) · y 0 (x)) = y 2 (x)

213.
Find the Laplace Transform of:
Z x
f (x) = (x − v)2 e5v dv
0
214.
Find the Laplace Transform of:
Z x
f (x) = cos(x − v) · sin(4v)dv
0
215.
Find the inverse Laplace Transform of the following function by using Convolution:

1
F (s) =
s2 (s2 + 1)
216.
Find the inverse Laplace Transform of the following function by using Convolution:

s
F (s) =
(s2 + 1)2
217.
Solve:
Z x
y0 + (x − v)y(v)dv = t y(0) = 0
0
218.
Solve:
Z x
y0 + y − sin(x − v)y(v)dv = − sin(x) y(0) = 1
0
219.
Solve:
92 CHAPTER 4. LAPLACE TRANSFORM

Z x
y 0 = 1 − sin(x) y(v)dv y(0) = 0
0

220.
Solve using convolution. Leave your answer in terms of an integral involving g(x).

y 00 + y = g(x) y(0) = 1 y 0 (0) = 1

221.
If f and g have the following properties

f (x) ∗ f (x) = xf (x) f (0) = 4

Find f (x)
222.
If

x2
f (x) ∗ f 0 (x) = f (0) = f 0 (0) = 1
2
Find f (x)

4.5 Delta Function


The Dirac Delta Function δ(x) is defined as
(
0 x 6= 0
δ(x) =
∞ x=0
And has the property:
Z ∞
f (x)δ(x)dx = f (0)
−∞

L(δ(x − c)) = e−cs

The delta function shows up in science when considering the impulse of a force over a short interval. If a force F (t)
on the time interval t0 to t1 then the impulse due to the force is:
Z t1
Impulse = F (t)dt
t0

By Newton’s second law


Z t1 Z t1
dv
F (t)dt = m dt = mv(t1 ) − mv(t0 )
t0 t0 dt
where m is the mass and v is the velocity. Since an objects momentum is the product of mass and velocity we see
that the impulse is equal to the change in momentum.
An Example: Solve:
4.5. DELTA FUNCTION 93

y 00 + y = δ(x − π) y(0) = 0 y 0 (0) = 0

Taking the Laplace Transform of both sides gives:

s2 L(y) + L(y) = e−πs

L(y)(s2 + 1) = e−πs

1
L(y) = e−πs
s2 + 1
Finding the inverse Laplace Transform:


y = uπ (t) sin(t)
t−π

y = uπ (t) sin(t − π)

223.
Find:
Z 3
2
ex δ(t − 1)dt
0
224.
Find the value of k so that
Z 1 
2 1 3
sin (π(t − k))δ t − dt =
0 2 4
225. Solve
y 0 + y = δ(t − 1) y(0) = 2

226. Solve
y 00 + 2y 0 + 2y = δ(t − π) y(0) = 1 y 0 (0) = 1

227. Solve
y 00 + 2y 0 − 3y = δ(t − 1) − δ(t − 2) y(0) = 2 y 0 (0) = −2

228. Solve    
π 3π
y 00 + y = δ t − −δ t− y(0) = 0 y 0 (0) = 0
2 2
94 CHAPTER 4. LAPLACE TRANSFORM
Chapter 5

First Order Systems of Differential


Equations

In this chapter we will study systems of differential equation of the form:

dx dy
= F (t, x, y) = G(t, x, y)
dt dt
Where the dependent variables x and y are linked together by the independent variable t.

5.1 Linear Systems


The theory of first order linear systems is very similar to the theory of second order equation that we studied in chapter
2. Consider the following system of equations:

dx dy
= 4x − y; = 2x + y
dt dt
This system can be transformed into a second order equation by solving for y in the first equation and substituting it
into the second:
 
dx d dx dx
y = 4x − 4x − = 2x + 4x −
dt dt dt dt
This produces the second order equation:

dx d2 x dx
4 − 2 = 2x + 4x −
dt dt dt
Which simplifies to

d2 x dx
2
−5 + 6x = 0
dt dt
This has the characteristic equation:

95
96 CHAPTER 5. FIRST ORDER SYSTEMS OF DIFFERENTIAL EQUATIONS

r2 − 5r + 6 = 0 (r − 3)(r − 2) = 0

Giving the solution:

x1 = e2t x2 = e3t
dx
Substituting these equations into y = 4x − dt gives two solution for y

y1 = 2e2t y2 = e3t

Making the general solution:

x = C1 e3t + C2 e2t y = C1 e3t + 2C2 e2t

In chapter 2 we learned that if the Wronskian of the two solutions to a second order equation is nonzero on an interval
then the two solutions are linearly independent and form a Fundamental Solution Set. For systems of equations the
Wronskian is:

x x2
1
W (t) = = x1 y2 − x2 y1
y1 y2
It can be shown that if the homogenous system:

dx dy
= a1 (t)x(t) + b1 y(t) = a2 (t)x(t) + b2 y(t)
dt dt
has solutions:

x = x1 (t) y = y1 (t) and x = x2 (t) y = y2 (t)

and the Wronskian is non zero on the interval [a, b] then:

x = x1 (t) y = y1 (t) and x = x2 (t) y = y2 (t)

is the general solution to the system of differential equations on the interval [a, b]. We see that the Wronskian for the
last problem we solved is:

e3t e2t
W (t) = 3t = e5t 6= 0

e 2e2t
So the general solution is indeed:

x = C1 e3t + C2 e2t y = C1 e3t + 2C2 e2t

You can also solve the same system of differential equations using matrices. Let us first write the system of equations
as a matrix equation of the form:
" #
x
Ax = x’ where x=
y
5.1. LINEAR SYSTEMS 97

dx dy
= 4x − y; = 2x + y
dt dt
The system in matrix form is:
" #" # " #
4 −1 x x0
=
2 1 y y0
As we earlier showed the system of equations can be reduced to a second order equation with constant coefficients
whose solutions were of the form: ert . It is reasonable to assume the above matrix equation will have a solution of the
form:
" #
x
x(t) = = ert u
y
Where r is a constant and u is a constant nonzero vector. Substituting x(t) = ert u into Ax = x’ gives:

rert u = Aert u

Dividing by the nonzero factor ert and rearranging the terms gives:
 
A − rI u = 0

The values of r and u that satisfy the above equation are the eigenvalues and eigenvectors of the matrix A. To find
the eigenvalues r of a matrix we take the determinant of both sides to the above equation:
 

A − rI u = |0| = 0

Since u is nonzero the solutions: r, to the above equation come from the solutions to:


A − rI = 0

This equation is a polynomial with the variable r. This equation is called the Characteristic Equation whose roots
are the eigenvalues of the matrix A. Back to the problem we were solving. Our characteristic equation is:

4−r −1
= (4 − r)(1 − r) + 2 = 0


2 1−r
Factoring the characteristic equation and solving gives:

(r − 2)(r − 3) = 0 r1 = 2 r2 = 3

NOTE: this is the same characteristic equation we got in our first solution to this problem.
Now that we have the eigenvalues for A we need the eigenvectors u. To find the eigenvector for each eigenvalue we
must solve the following equation for u.
 
A − rI u = 0

For r1 = 2 we have:
98 CHAPTER 5. FIRST ORDER SYSTEMS OF DIFFERENTIAL EQUATIONS

" #" #
2 −1 x
=0
2 −1 y
We see the solution to this matrix equation is y = 2x. Taking x to be 1 we get our eigenvector:
" #
1
u1 =
2
For r2 = 3 we have:
" #" #
1 −1 x
=0
2 −2 y
We see the solution to this matrix equation is y = x. Taking x to be 1 we get our eigenvector:
" #
1
u2 =
1
Making the solution to the differential equation:
" # " # " #
x 2t 1 3t 1
= C1 e + C2 e
y 2 1
Making:

x = C1 e3t + C2 e2t y = C1 e3t + 2C2 e2t

The same solution we obtained earlier.


The matrix containing the two eigenvectors as its two columns is called the Fundamental Matrix. The fundamental
matrix for our problem is:
" #
1 1
X(t) =
2 1

Some times the matrix has complex eigenvalues: r = α ± βı and eigenvectors a ± bı the solution becomes:
   
x(t) = C1 eαt cos(βt)a − eαt sin(βt)b + C2 eαt cos(βt)a + eαt sin(βt)b

Example:
Solve the system of differential equations:

x0 = −x − 2y y 0 = 8x − y

Writing the system as a matrix equation gives:


" #" # " #
−1 −2 x x0
=
8 −1 y y0
Find the characteristic equation:
5.1. LINEAR SYSTEMS 99


−1 − r −2
= (−1 − r)2 + 16 = 0


8 −1 − r
Which has roots:

r = −1 ± 4ı

Using r = −1 + 4ı the eigenvector is:


" #" #
−4ı −2 x
=0
8 −4ı y
This has the solution:

y = −2xı taking x = 1 the eigenvector is

" # " # " #


1 1 0
u1 = = +ı
−2ı 0 −2
We could find the eigenvector corresponding to r = −1 − 4ı in the same we found the first eigenvector but we do not
need to. It is true that if u1 = a + ıb is a eigenvector for eigenvalue r1 = α + βı then u2 = a − ıb is a eigenvector for
r1 = α − βı. This means the eigenvector for r = −1 − 4ı is
" # " # " #
1 1 0
u2 = = +ı
2ı 0 2
Making the solution:

 " # " #  " # " #


−t 1 −t 0 −t 1 −t 0
x(t) = C1 e cos(4t) −e sin(4t) + C2 e cos(4t) +e sin(4t)
0 2 0 2
229.
Solve:

x0 = x + 3y y 0 = 12x + y

230.
Solve:

x0 = x + 2y + 2z y 0 = 2x + 3y z 0 = 2x + 3y

231.
Solve:

x0 = 2x − 4y y 0 = 2x − 2y

232.
Solve:
100 CHAPTER 5. FIRST ORDER SYSTEMS OF DIFFERENTIAL EQUATIONS

x0 = −2x − 5y y 0 = x + 2y

233.
Convert the following differential equation governing the motion of a mass attached to a spring into a system of
equations

my 00 + by 0 + ky = 0

234.
Solve:
" #" # " #
2 −3 x x0
=
1 −2 y y0
235.
Solve:
" #" # " #
−1 2 x x0
=
−1 −3 y y0

5.2 Locally Linear Equations


We will now discuss nonlinear systems around their critical or equilibrium points. The general system of equations we
will be studying are systems of the form:

x0 = F (x, y) y 0 = G(x, y)

The Critical or Equilibrium Points of this system are the values (x0 , y0 ) such that

x0 = F (x0 , y0 ) = 0 and y 0 = G(x0 , y0 ) = 0

If both x0 > 0 and y0 > 0 then the critical point is defined to be a Positive Equilibrium Point and will be discussed
when we consider the competing species problem.
The system is said to be Locally Linear around a critical or equilibrium point if both F and G have continuous first
and second order partial derivatives at the critical point (x0 , y0 ).
For the general system:

x0 = F (x, y) y 0 = G(x, y)

with equilibrium point (x0 , y0 ) we can form the locally linear system in matrix form:
" #" # " #
Fx (x0 , y0 ) Fy (x0 , y0 ) x x0
=
Gx (x0 , y0 ) Gy (x0 , y0 ) y y0
With the matrix:
" #
Fx (x0 , y0 ) Fy (x0 , y0 )
J=
Gx (x0 , y0 ) Gy (x0 , y0 )
5.2. LOCALLY LINEAR EQUATIONS 101

called the Jacobian Matrix

An Example
Find the positive equilibrium solution to the system and discuss the stability near this point.

   
dx dy
= x 4 − 2y =y −2+x
dt dt

We see that the positive equilibrium solutions come from the equations :

4 − 2y = 0 −2+x=0

Giving the positive equilibrium solution (2, 2). The Jacobian Matrix for this problem is:

" #
4 − 2y −2x
J=
y x − 2y

The Jacobian Matrix at the equilibrium point (2, 2) is:

" #
0 −4
J=
2 −2

Producing the locally linear system:

" #" # " #


0 −4 x x0
=
2 −2 y y0

Now we need the eigenvalues and eigenvector of our Jacobian Matrix evaluated at the equilibrium points. The
characteristic equation is:


0−r −4
J = = −r(−2 − r) + 8 = 0 r2 + 2r + 8 = 0

2 −2 − r

Which has roots:


r1,2 = −1 ± 7ı

I have no desire to find the eigenvectors so here is a rabbit with a pancake on its head.
102 CHAPTER 5. FIRST ORDER SYSTEMS OF DIFFERENTIAL EQUATIONS

236.
Find the positive equilibrium solution to the system and discuss the stability near this point.
   
dx dy y
=x 1−x−y = 2 − y − 3x
dt dt 4
237.
Find the positive equilibrium solution to the system and discuss the stability near this point.
   
dx dy
=x 1−x−y = y 3 − x − 2y
dt dt
238.
Find the positive equilibrium solution to the competing species system of equations and discuss the stability near this
point.
   
dx x 4y dy x 1
=x 2− − =y −
dt 3 x+4 dt x+4 2
239.
Find the equilibrium solution to the system and sketch phase plane diagram.

dx dy
= −y(y − 2) = (x − 2)(y − 2)
dy dt
240.
Solve the system of equations by converting it into a first order differential equation
5.3. LINEAR SYSTEMS AND THE LAPLACE TRANSFORM 103

dx x3 dy
= xy − = 3x2 − y 2
dy y dt
241.
Solve the system of equations by converting it into a first order differential equation

dx dy
=x = 2y − x3 y 2
dt dt

5.3 Linear Systems and the Laplace Transform


We can also use Laplace Transforms to solve linear systems with initial conditions. The procedure will be quite similar to
the procedure used to solve initial value problems in chapter 4. Given a system of equations we will start by taking the
Laplace Transform of each side of the equation, solving for the Laplace Transform of both x(t) and y(t) and then using
a table to find the inverse.

An Example: Solve:

dx dy
= 2y + 4t x(0) = 4 = 4x − 2y − 4t − 2 y(0) = −5
dt dt
Taking the Laplace Transform of both sides of the differential equation involving x0 gives:

L(x0 ) = L(y) + L(4t)

Using a table we get:

4
sL(x) − x(0) = 2L(y) +
s2

4
sL(x) − 4 = 2L(y) +
s2
Taking the Laplace Transform of both sides of the differential equation involving y 0 gives:

L(y 0 ) = 4L(x) − 2L(y) − L(4t) − L(2)

4 2
sL(y) − y(0) = 4L(x) − 2L(y) − −
s2 s

4 2
sL(y) + 5 = 4L(x) − 2L(y) −
2

s s
We now have two equations with two desired variables: L(x) and L(y) that we will need to solve for. In our first
equation I will solve for L(x) and insert it into the second.

4
sL(x) − 4 = 2L(y) +
s2

2 4 4
L(x) = L(y) + 3 +
s s s
Inserting L(x) into the second of our two equations gives:
104 CHAPTER 5. FIRST ORDER SYSTEMS OF DIFFERENTIAL EQUATIONS

4 2
sL(y) + 5 = 4L(x) − 2L(y) − 2

s s
 
2 4 4 4 2
sL(y) + 5 = 4 L(y) + 3 + − 2L(y) − 2 −
s s s s s
Multiplying both sides by s3 and simplifying the result gives:

L(y)(s4 + 2s3 − 8s2 ) = 16 − 4s + 14s2 − 5s3

16 − 4s + 14s2 − 5s3
L(y) =
(s4 + 2s3 − 8s2 )
Applying partial fractions to the right hand side gives:

−6 1 2
L(y) = + −
(x + 4) (s − 2) s2
Using a table to find the inverse Laplace gives:

y = −6e−4t + e2t − 2t

Now that we have y we can substitute its equation into the original equation for x0 :

dx
= 2y + 4t
dt
becomes:

dx
= 2(−6e−4t + e2t − 2t) + 4t
dt

dx
= −12e−4t + 2e2t
dt
Integrating gives:

x = 3e−4t + e2t + C

Applying the initial condition shows C = 0 and our solutions are:

x = 3e−4t + e2t y = −6e−4t + e2t − 2t

242.
Solve:

x0 = y + sin(t) x(0) = 2 y 0 = x + 2 cos(t) y(0) = 0

243.
Solve:

x0 = 4x − 6y + 9e−3t x(0) = −9 y 0 = x + y − 5e−3t y(0) = 4


5.3. LINEAR SYSTEMS AND THE LAPLACE TRANSFORM 105

244.
Solve:

x0 + x − y 0 = 2tet x(0) = 0 x0 (0) = 1 x00 − x0 − 2y = −et y(0) = 1

You might also like