First Order ODEs: Definitions & Solutions
First Order ODEs: Definitions & Solutions
Learning Objectives
By the end of this chapter, students should be able to
1. define an Ordinary Differential Equation (ODE);
2. determine the order of an ODE;
3. distinguish between general and particular solutions of an ODE;
4. distinguish between separable and linear ODEs;
5. solve first order ODEs using the variable separation method or the
integrating factor method;
6. solve engineering problems modelled by first order ODEs.
We begin this chapter by introducing the ODEs and their orders in Section 1.1,
followed by discussing two methods in solving first order ODEs: the variable
separation method in Section 1.2, and the integrating factor method in Section
1.3. In Section 1.4, we look at some engineering problems modelled by first
order ODES. Finally, we close the chapter with exercises in Section 1.5, where
student gets to solve first order ODEs using the two methods discussed, as well
as a taste of more advanced techniques.
1
First Order Ordinary Differential Equations 2
1.1 Introduction
The order of an ODE is the order of the highest derivative in the equation.
Example 1.1.2
𝑑𝑑𝑑𝑑
(a) = 3𝑥𝑥 2 First order
𝑑𝑑𝑑𝑑
(b) 𝑥𝑥𝑦𝑦 ′ + 𝑦𝑦 = 2𝑥𝑥 First order
Example 1.1.4
ODE/IVP Solution Type
𝑑𝑑𝑑𝑑
(a) = 3𝑥𝑥 2 𝑦𝑦 = 𝑥𝑥 3 + 𝐶𝐶 General solution
𝑑𝑑𝑑𝑑
(b) 𝑦𝑦′′ = 𝑦𝑦 𝑦𝑦 = 𝐶𝐶1 𝑒𝑒 𝑥𝑥 + 𝐶𝐶2 𝑒𝑒 −𝑥𝑥 General solution
𝑥𝑥𝑥𝑥′ + 𝑦𝑦 = 2𝑥𝑥 1
(c) � 𝑦𝑦 = 𝑥𝑥 − Particular solution
𝑦𝑦(1) = 0 𝑥𝑥
𝑦𝑦′′ = 2𝑦𝑦′
(d) �𝑦𝑦(0) = 0 𝑦𝑦 = 1 − 𝑒𝑒 2𝑥𝑥 Particular solution
𝑦𝑦 ′ (0) = −1
From Example 1.1.4(a) and (b), we observe that the general solution of a first
order ODE contains one arbitrary constant, while that of a second order ODE
contains two arbitrary constant.
From Example 1.1.4(c) and (d), we observe that a first order IVP includes one
initial value, while a second order IVP includes two initial values.
The next few examples show how general solutions to ODEs can be found by
𝑑𝑑𝑑𝑑
noting that = 𝑓𝑓(𝑥𝑥) implies 𝑦𝑦 = � 𝑓𝑓(𝑥𝑥) 𝑑𝑑𝑑𝑑 .
𝑑𝑑𝑑𝑑
First Order Ordinary Differential Equations 4
Example 1.1.5
Solve 𝑦𝑦′ = sin 2𝑥𝑥.
Solution
1
𝑦𝑦 ′ = sin 2𝑥𝑥 ⇒ 𝑦𝑦 = � sin 2𝑥𝑥 𝑑𝑑𝑑𝑑 ⇒ 𝑦𝑦 = − cos 2𝑥𝑥 + 𝐶𝐶.
2
Example 1.1.6
𝑑𝑑𝑑𝑑
Solve 𝑥𝑥 − 1 = 2𝑥𝑥 2 .
𝑑𝑑𝑑𝑑
Solution
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 1
𝑥𝑥 − 1 = 2𝑥𝑥 2 ⇒ 𝑥𝑥 = 2𝑥𝑥 2 + 1 ⇒ = 2𝑥𝑥 +
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 𝑥𝑥
1
⇒ 𝑦𝑦 = � �2𝑥𝑥 + � 𝑑𝑑𝑑𝑑
𝑥𝑥
⇒ 𝑦𝑦 = 𝑥𝑥 2 + ln|𝑥𝑥| + 𝐶𝐶.
Example 1.1.7
𝑑𝑑𝑑𝑑
Solve the IVP: 𝑥𝑥 − 1 = 2𝑥𝑥 2 , where 𝑦𝑦(1) = 0.
𝑑𝑑𝑑𝑑
Solution
𝑑𝑑𝑑𝑑
From the previous example, the general solution of 𝑥𝑥 − 1 = 2𝑥𝑥 2 is
𝑑𝑑𝑑𝑑
𝑦𝑦 = 𝑥𝑥 2 + ln|𝑥𝑥| + 𝐶𝐶.
𝑦𝑦(1) = 0 ⇒ 0 = 12 + ln|1| + 𝐶𝐶 ⇒ 𝐶𝐶 = −1
The particular solution is 𝑦𝑦 = 𝑥𝑥 2 + ln|𝑥𝑥| − 1.
First Order Ordinary Differential Equations 5
Example 1.2.2
Identify which of the following ODEs are separable:
𝑑𝑑𝑑𝑑
(a) = 𝑥𝑥𝑥𝑥
𝑑𝑑𝑑𝑑
(b) 𝑦𝑦 ′ = 𝑥𝑥 2 𝑒𝑒 −𝑦𝑦
𝑑𝑑𝑑𝑑
(c) + 2𝑦𝑦 = 2𝑥𝑥
𝑑𝑑𝑑𝑑
Solution
(a) Separable.
(b) Separable.
(c) Non-separable.
Example 1.2.3
𝑑𝑑𝑑𝑑
Solve = 𝑥𝑥𝑥𝑥 .
𝑑𝑑𝑑𝑑
Solution
𝑑𝑑𝑑𝑑 1
Step 1. = 𝑥𝑥𝑥𝑥 ⇒ 𝑑𝑑𝑑𝑑 = 𝑥𝑥 𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑 𝑦𝑦
1 1
Step 2. � 𝑑𝑑𝑑𝑑 = � 𝑥𝑥 𝑑𝑑𝑑𝑑 ⇒ ln |𝑦𝑦| = 𝑥𝑥 2 + 𝐶𝐶.
𝑦𝑦 2
Example 1.2.4
Solve 𝑦𝑦 ′ = 𝑦𝑦 .
Solution
𝑑𝑑𝑑𝑑 1
Step 1. = 𝑦𝑦 ⇒ 𝑑𝑑𝑑𝑑 = 𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑 𝑦𝑦
1
Step 2. � 𝑑𝑑𝑑𝑑 = � 𝑑𝑑𝑑𝑑 ⇒ ln |𝑦𝑦| = 𝑥𝑥 + 𝐶𝐶 or 𝑦𝑦 = 𝐶𝐶1 𝑒𝑒 𝑥𝑥 .
𝑦𝑦
Example 1.2.5
𝑑𝑑𝑑𝑑
Solve = 𝑒𝑒 2𝑥𝑥 sec 𝑦𝑦 .
𝑑𝑑𝑑𝑑
Solution
𝑑𝑑𝑑𝑑 1
Step 1. = 𝑒𝑒 2𝑥𝑥 sec 𝑦𝑦 ⇒ 𝑑𝑑𝑑𝑑 = 𝑒𝑒 2𝑥𝑥 𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑 sec 𝑦𝑦
1 2𝑥𝑥 1
Step 2. � cos 𝑦𝑦 𝑑𝑑𝑑𝑑 = � 𝑒𝑒 2𝑥𝑥 𝑑𝑑𝑑𝑑 ⇒ sin 𝑦𝑦 = 𝑒𝑒 + 𝐶𝐶. �note: sec 𝑦𝑦 = �
2 cos 𝑦𝑦
First Order Ordinary Differential Equations 7
Example 1.2.6
𝑑𝑑𝑑𝑑
Solve = 𝑥𝑥 2 𝑒𝑒 −𝑦𝑦 .
𝑑𝑑𝑑𝑑
Solution
𝑑𝑑𝑑𝑑
Step 1. = 𝑥𝑥 2 𝑒𝑒 −𝑦𝑦 ⇒ 𝑒𝑒𝑦𝑦 𝑑𝑑𝑑𝑑 = 𝑥𝑥2 𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑
1 3
Step 2. � 𝑒𝑒 𝑦𝑦 𝑑𝑑𝑑𝑑 = � 𝑥𝑥 2 𝑑𝑑𝑑𝑑 ⇒ 𝑒𝑒 𝑦𝑦 = 𝑥𝑥 + 𝐶𝐶.
3
Example 1.2.7
𝑥𝑥 2
Solve the IVP: 𝑦𝑦 ′ = , where 𝑦𝑦(0) = 1.
𝑒𝑒 𝑦𝑦
Solution
𝑥𝑥 2
From the previous example, the general solution of 𝑦𝑦 ′ = is
𝑒𝑒 𝑦𝑦
1
𝑒𝑒 𝑦𝑦 = 3 𝑥𝑥 3 + 𝐶𝐶.
𝑦𝑦(0) = 1 ⇒ 𝑒𝑒 1 = 0 + 𝐶𝐶 ⇒ 𝐶𝐶 = 𝑒𝑒
1
The particular solution is 𝑒𝑒 𝑦𝑦 = 3 𝑥𝑥 3 + 𝑒𝑒.
Example 1.3.2
𝑑𝑑𝑑𝑑
Solve + 2𝑦𝑦 = 𝑒𝑒 −𝑥𝑥 .
𝑑𝑑𝑑𝑑
Solution
Step 1. 𝑃𝑃(𝑥𝑥) = 2 and 𝑄𝑄(𝑥𝑥) = 𝑒𝑒 −𝑥𝑥
Step 2. 𝐼𝐼(𝑥𝑥) = 𝑒𝑒 ∫ 2𝑑𝑑𝑑𝑑 = 𝑒𝑒 2𝑥𝑥
⇒ 𝑒𝑒 2𝑥𝑥 𝑦𝑦 = 𝑒𝑒 𝑥𝑥 + 𝐶𝐶
First Order Ordinary Differential Equations 9
We may use the laws of exponents and radicals to simplify the integrating
factor. In the following examples, we note that 𝑒𝑒 ln 𝐴𝐴 = 𝐴𝐴.
Example 1.3.3
𝑑𝑑𝑑𝑑 2𝑦𝑦
Solve + = 1 , where 𝑥𝑥 > 0.
𝑑𝑑𝑑𝑑 𝑥𝑥
Solution
2
Step 1. 𝑃𝑃(𝑥𝑥) = and 𝑄𝑄(𝑥𝑥) = 1
𝑥𝑥
2
Step 2. 𝐼𝐼(𝑥𝑥) = 𝑒𝑒 ∫𝑥𝑥𝑑𝑑𝑑𝑑 = 𝑒𝑒 2 ln 𝑥𝑥 = 𝑒𝑒 ln 𝑥𝑥 2 = 𝑥𝑥 2
1
⇒ 𝑥𝑥 2 𝑦𝑦 = 3 𝑥𝑥 3 + 𝐶𝐶
Example 1.3.4
𝑑𝑑𝑑𝑑 1 1
Solve + �1 + � 𝑦𝑦 = , where 𝑥𝑥 > 0.
𝑑𝑑𝑑𝑑 𝑥𝑥 𝑥𝑥
Solution
1 1
Step 1. 𝑃𝑃(𝑥𝑥) = 1 + and 𝑄𝑄(𝑥𝑥) =
𝑥𝑥 𝑥𝑥
1
Step 2. 𝐼𝐼(𝑥𝑥) = 𝑒𝑒 ∫�1+𝑥𝑥�𝑑𝑑𝑑𝑑 = 𝑒𝑒 𝑥𝑥+ln 𝑥𝑥 = 𝑒𝑒 𝑥𝑥 𝑒𝑒 ln 𝑥𝑥 = 𝑥𝑥𝑒𝑒 𝑥𝑥
1
Step 3. The general solution is 𝑥𝑥𝑒𝑒 𝑥𝑥 𝑦𝑦 = �(𝑥𝑥𝑒𝑒 𝑥𝑥 ) � � 𝑑𝑑𝑑𝑑 = � 𝑒𝑒 𝑥𝑥 𝑑𝑑𝑑𝑑
𝑥𝑥
⇒ 𝑥𝑥𝑒𝑒 𝑥𝑥 𝑦𝑦 = 𝑒𝑒 𝑥𝑥 + 𝐶𝐶
First Order Ordinary Differential Equations 10
1.4 Applications
In this section, we discuss engineering problems modelled by first order DEs.
The modelling processes are briefly described for examples in the life sciences,
mechanics, and electronics.
The growth/decay model above is a separable ODE. To solve for the particular
solution, we consider the initial quantity 𝑄𝑄(0).
Example 1.4.1
In an experiment of testing a new drug against a certain type of bacteria, a
scientist modelled the decay of the bacteria population 𝑃𝑃 by the differential
equation
𝑑𝑑𝑑𝑑
= −0.2457𝑃𝑃
𝑑𝑑𝑑𝑑
Suppose the initial population of the bacteria in a culture is approximately 2 (in
million units). Express the bacteria population 𝑃𝑃 in terms of time 𝑡𝑡 (in days).
First Order Ordinary Differential Equations 11
Solution
𝑑𝑑𝑑𝑑 1
= −0.2457𝑃𝑃 ⇒ 𝑑𝑑𝑑𝑑 = −0.2457 𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑 𝑃𝑃
1
⇒ � 𝑑𝑑𝑑𝑑 = −0.2457 � 𝑑𝑑𝑑𝑑
𝑃𝑃
⇒ ln 𝑃𝑃 + 𝐶𝐶 = −0.2457 𝑡𝑡
𝑃𝑃(0) = 2 ⇒ ln 2 + 𝐶𝐶 = 0 ⇒ 𝐶𝐶 = − ln 2
Thus, ln 𝑃𝑃 − ln 2 = −0.2457 𝑡𝑡 or 𝑃𝑃 = 2 𝑒𝑒 −0.2457𝑡𝑡 .
Applications in Mechanics
Example 1.4.2
A ball of unit mass moves horizontally in a straight line with initial velocity 1
m/s. The motion of the ball satisfies the differential equation
1 𝑑𝑑𝑑𝑑
− 𝑣𝑣 3 = .
2 𝑑𝑑𝑑𝑑
Express 𝑣𝑣 in terms of 𝑡𝑡.
Solution
1 𝑑𝑑𝑑𝑑 −2
− 𝑣𝑣 3 = ⇒ 𝑑𝑑𝑑𝑑 = 3 𝑑𝑑𝑑𝑑
2 𝑑𝑑𝑑𝑑 𝑣𝑣
⇒ � 𝑑𝑑𝑑𝑑 = −2 � 𝑣𝑣 −3 𝑑𝑑𝑑𝑑
⇒ 𝑡𝑡 = 𝑣𝑣 −2 + 𝐶𝐶
1
And thus, 𝑡𝑡 = 𝑣𝑣 −2 − 1 or 𝑣𝑣 = � .
𝑡𝑡 + 1
v (m/s)
t (second)
2 4 6 8
Figure 1.1. Graph of 𝑣𝑣 in terms of 𝑡𝑡 in Example 1.4.2
First Order Ordinary Differential Equations 13
Example 1.4.3
A particle of unit mass is projected vertically upwards with initial velocity 1
m/s, and subjected to earth’s gravity. The motion of the particle satisfies the
differential equation
𝑑𝑑𝑑𝑑 1
𝑣𝑣 = −𝑔𝑔 − 𝑔𝑔𝑣𝑣 2 ,
𝑑𝑑𝑑𝑑 3
where 𝑥𝑥 denotes the vertical (upward) displacement of the particle, and 𝑔𝑔 ≈
9.8 m/s2 is the constant of gravitational acceleration.
Solution
𝑑𝑑𝑑𝑑 1 2 𝑑𝑑𝑑𝑑 𝑣𝑣 2
(a) 𝑣𝑣 = −𝑔𝑔 − 𝑔𝑔𝑣𝑣 ⇒ 𝑣𝑣 = −𝑔𝑔 �1 + �
𝑑𝑑𝑑𝑑 3 𝑑𝑑𝑑𝑑 3
𝑣𝑣
⇒ 𝑑𝑑𝑑𝑑 = 𝑑𝑑𝑑𝑑
𝑣𝑣 2
−𝑔𝑔 �1 + �
3
1 3𝑣𝑣
⇒ � 𝑑𝑑𝑑𝑑 = � 𝑑𝑑𝑑𝑑
−𝑔𝑔 3 + 𝑣𝑣 2
3
⇒− ln(3 + 𝑣𝑣 2 ) + 𝐶𝐶 = 𝑥𝑥
2𝑔𝑔
3 3
At 𝑥𝑥 = 0, the velocity is 𝑣𝑣 = 1. So, − 2𝑔𝑔 ln(3 + 12 ) + 𝐶𝐶 = 0 ⇒ 𝐶𝐶 = 2𝑔𝑔 ln 4.
3 3 3 4
Thus, − 2𝑔𝑔 ln(3 + 𝑣𝑣 2 ) + 2 ln 4 = 𝑥𝑥 ⇒ 𝑥𝑥 = 2𝑔𝑔 ln �3+𝑣𝑣2�.
Applications in Electronics
where 𝑉𝑉𝑅𝑅 , 𝑉𝑉𝐿𝐿 , and 𝑉𝑉𝐶𝐶 denotes the voltage across resistor, inductor, and
capacitor, respectively, and they satisfy the following properties:
𝑑𝑑𝑑𝑑 𝑞𝑞
𝑉𝑉𝑅𝑅 = 𝑖𝑖𝑖𝑖, 𝑉𝑉𝐿𝐿 = 𝐿𝐿 𝑑𝑑𝑑𝑑, 𝑉𝑉𝐶𝐶 = 𝐶𝐶.
Here, 𝑖𝑖 denotes the current (in amperes), 𝑅𝑅 the resistance (in ohms), 𝐿𝐿 the
inductance (in henrys), 𝑞𝑞 the charge (in coulombs), and 𝐶𝐶 the capacitance (in
farads), and 𝑡𝑡 the time (in seconds).
In a closed series circuit, the same current passes through each electrical
component in the circuit. Moreover, the current is defined as the derivative of
the charge with respect to time:
𝑑𝑑𝑑𝑑
𝑖𝑖 = .
𝑑𝑑𝑑𝑑
Example 1.4.4
A series circuit consists of an inductor of inductance 1 H, a resistor of
resistance 1 kΩ and a 9V battery. The circuit is closed at time 𝑡𝑡 = 0 and
satisfies the differential equation
𝑑𝑑𝑑𝑑
+ 1000𝑖𝑖 = 9.
𝑑𝑑𝑑𝑑
Express the current 𝑖𝑖 in terms of time 𝑡𝑡.
Solution
𝑑𝑑𝑑𝑑
+ 1000𝑖𝑖 = 9 is a standard 1st order linear ODE
𝑑𝑑𝑑𝑑
𝑃𝑃(𝑡𝑡) = 1000 and 𝑄𝑄(𝑡𝑡) = 9
𝐼𝐼(𝑡𝑡) = 𝑒𝑒 ∫ 1000 𝑑𝑑𝑑𝑑 = 𝑒𝑒 1000𝑡𝑡
9
𝑒𝑒 1000𝑡𝑡 𝑖𝑖 = � 𝑒𝑒 1000𝑡𝑡 (9)𝑑𝑑𝑑𝑑 = 𝑒𝑒 1000𝑡𝑡 + 𝐶𝐶
1000
⇒ 𝑖𝑖 = 0.009 + 𝐶𝐶𝑒𝑒 −1000𝑡𝑡
10 q (milli coulomb)
8
6
4
2
t (milli second)
2 4 6 8 10
Figure 1.2. Graph of 𝑞𝑞 in terms of 𝑡𝑡 in Example 1.4.4
First Order Ordinary Differential Equations 16
Example 1.4.5
A series circuit consists of a capacitor of capacitance 0.01 F, a resistor of
resistance 0.1 kΩ and a voltage source 𝑉𝑉source = 200 𝑒𝑒 −𝑡𝑡 sin 𝑡𝑡. The capacitor is
charged with an initial charge 𝑞𝑞(0) = 1 C and satisfies the differential equation
𝑑𝑑𝑑𝑑
+ 𝑞𝑞 = 2 𝑒𝑒 −𝑡𝑡 sin 𝑡𝑡.
𝑑𝑑𝑑𝑑
Express the charge 𝑞𝑞 in terms of time 𝑡𝑡.
Solution
𝑃𝑃(𝑡𝑡) = 1 and 𝑄𝑄(𝑡𝑡) = 2 𝑒𝑒 −𝑡𝑡 sin 𝑡𝑡
𝐼𝐼(𝑡𝑡) = 𝑒𝑒 ∫ 1 𝑑𝑑𝑑𝑑 = 𝑒𝑒 𝑡𝑡
q
1
0.5
t
1 2 3 4 5 6 7
Figure 1.3. Graph of 𝑞𝑞 in terms of 𝑡𝑡 in Example 1.4.5
First Order Ordinary Differential Equations 17
Example 1.4.6
A capacitor of capacitance 10 mF is fully charged with initial voltage 𝑉𝑉𝐶𝐶 (0) =
10 V. It is then discharged through a resistor of resistance 0.1 kΩ and satisfies
𝑑𝑑𝑉𝑉𝐶𝐶
+ 𝑉𝑉𝐶𝐶 = 0.
𝑑𝑑𝑑𝑑
Express the voltage across the capacitor 𝑉𝑉𝐶𝐶 in terms of time 𝑡𝑡.
Solution
𝑑𝑑𝑉𝑉𝐶𝐶 𝑑𝑑𝑉𝑉𝐶𝐶
+ 𝑉𝑉𝐶𝐶 = 0 ⇒ = −𝑉𝑉𝐶𝐶
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
1
⇒ 𝑑𝑑𝑉𝑉𝐶𝐶 = −𝑑𝑑𝑑𝑑
𝑉𝑉𝐶𝐶
1
⇒� 𝑑𝑑𝑉𝑉 = − � 𝑑𝑑𝑑𝑑
𝑉𝑉𝐶𝐶 𝐶𝐶
⇒ ln 𝑉𝑉𝐶𝐶 + 𝑘𝑘 = −𝑡𝑡
𝑉𝑉𝐶𝐶 (0) = 10 ⇒ ln 10 + 𝑘𝑘 = 0 ⇒ 𝑘𝑘 = − ln 10
Thus, ln 𝑉𝑉𝐶𝐶 − ln 10 = −𝑡𝑡 ⇒ ln(0.1 𝑉𝑉𝐶𝐶 ) = −𝑡𝑡 or 𝑉𝑉𝐶𝐶 = 10𝑒𝑒 −𝑡𝑡 .
10 Vc
8
6
4
2
t
2 4 6 8 10 12
Figure 1.4. Graph of 𝑉𝑉𝐶𝐶 in terms of 𝑡𝑡 in Example 1.4.6
First Order Ordinary Differential Equations 18
1.5 Exercises
1. Solve the following first order separable ODEs (see Section 1.2).
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
(a) = cos 𝑥𝑥 (f) (𝑥𝑥 2 + 1) = 𝑥𝑥 sec 𝑦𝑦
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑 𝑒𝑒 𝑥𝑥 𝑑𝑑𝑑𝑑
(b) = (g) 𝑥𝑥 = √𝑥𝑥 + 𝑥𝑥 sin 𝑥𝑥
𝑑𝑑𝑑𝑑 3𝑦𝑦 2 𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
(c) 𝑥𝑥 = 2𝑦𝑦 (h) = 𝑒𝑒 2𝑡𝑡
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
(d) cos2 𝑥𝑥 −1=0 (i) = √𝑥𝑥𝑥𝑥
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 𝑒𝑒 2𝑡𝑡−𝑥𝑥
(e) 𝑥𝑥 2 + 𝑦𝑦 2 =1 (j) =
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 𝑥𝑥
2. Solve the following first order linear ODEs (see Section 1.3).
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
(a) + 𝑦𝑦 = −𝑒𝑒 −𝑥𝑥 (f) 𝑥𝑥 + (1 + 𝑥𝑥)𝑦𝑦 = 𝑒𝑒 −𝑥𝑥 , where 𝑥𝑥 > 0
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑 2 𝑑𝑑𝑑𝑑
(b) + 𝑦𝑦 = −𝑥𝑥 (g) sin 𝑥𝑥 + 𝑦𝑦 cos 𝑥𝑥 = sin 2𝑥𝑥 , where 0 < 𝑥𝑥 < 𝜋𝜋
𝑑𝑑𝑑𝑑 𝑥𝑥 𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
(c) + 𝑦𝑦 = 𝑒𝑒 −𝑥𝑥 sin 2𝑥𝑥 (h) (𝑥𝑥 + 1) + 𝑦𝑦 = 𝑥𝑥 + 2, where 𝑥𝑥 > −1
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 3
(d) − 2𝑦𝑦 = 𝑒𝑒 2𝑥𝑥 cos 2𝑥𝑥 (i) (1 − 𝑥𝑥 2 ) + 4𝑦𝑦 =
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 1 + 𝑥𝑥
𝑑𝑑𝑑𝑑 cos 𝑥𝑥 𝑑𝑑𝑑𝑑
(e) 𝑥𝑥 + 2𝑦𝑦 = (j) (1 + 𝑥𝑥 2 ) + 2𝑥𝑥𝑥𝑥 = cos 4𝑥𝑥
𝑑𝑑𝑑𝑑 𝑥𝑥 𝑑𝑑𝑑𝑑
First Order Ordinary Differential Equations 19
3. Solve the following Initial Value Problems (IVP) (see Example 1.2.7).
𝑑𝑑𝑑𝑑 1
=
(a) �𝑑𝑑𝑑𝑑 1 + 𝑥𝑥 2
𝑦𝑦(0) = 1
𝑑𝑑𝑑𝑑
= sec 2 𝑥𝑥
(b) �𝑑𝑑𝑑𝑑
𝑦𝑦(0) = −1
𝑦𝑦′ = 4𝑥𝑥𝑥𝑥
(c) �
𝑦𝑦(0) = 2
𝑑𝑑𝑑𝑑 𝑦𝑦
+ = 𝑒𝑒 𝑥𝑥 , where 𝑥𝑥 > 0
(b) � 𝑑𝑑𝑑𝑑 𝑥𝑥
𝑦𝑦(1) = 0
− END OF CHAPTER 1 −
Chapter 2
Second Order Linear ODE
Learning Objectives
By the end of this chapter, students should be able to
1. distinguish between homogeneous and non-homogeneous second order linear
ODEs;
2. solve homogeneous second order linear ODEs;
3. solve non-homogeneous second order linear ODEs using inverse D-operators;
4. solve engineering problems modelled by second order linear ODEs.
T his chapter shows how we solve second order linear ODEs with constant
coefficients. The method of using inverse D-operator is a simplified version of
the Undetermined Coefficients (UC) method.
We start with a discussion of solving homogeneous second order linear ODEs in Section
2.1. Next, we introduce the inverse D-operator to solve non-homogeneous ODEs in
Section 2.2. Applications of second order linear ODEs in engineering are demonstrated
in Section 2.3 before we end with exercises in Section 2.4.
23
Second Order Linear ODE 24
𝑑𝑑2 𝑦𝑦 𝑑𝑑𝑑𝑑
𝑎𝑎 2 + 𝑏𝑏 + 𝑐𝑐 𝑦𝑦 = 𝑄𝑄
𝑑𝑑𝑥𝑥 𝑑𝑑𝑑𝑑
A second order linear ODE above is homogeneous if 𝑄𝑄 = 0, and non-homogeneous
otherwise.
Remark. Definition 2.1.1 can be extended to higher order linear ODE with constant
coefficients. In some texts, the characteristic equation is also called the auxiliary
equation.
The solutions of a characteristic equation are called characteristic roots. Recall that
there are three types of solution for quadratic equations. The type of characteristic
roots will determine the general solution of the homogeneous linear ODE.
Second Order Linear ODE 25
Complex roots 𝑝𝑝 ± 𝑞𝑞𝑞𝑞 𝑦𝑦 = 𝑒𝑒 𝑝𝑝𝑝𝑝 (𝐶𝐶1 sin 𝑞𝑞𝑞𝑞 + 𝐶𝐶2 cos 𝑞𝑞𝑞𝑞)
Example 2.1.2
Solve 𝑦𝑦 ′′ − 4𝑦𝑦 = 0.
Solution
Step 1. Characteristic Equation: 𝑚𝑚2 − 4 = 0 ⇒ 𝑚𝑚 = 2 or 𝑚𝑚 = −2.
Step 2. The general solution is 𝑦𝑦 = 𝐶𝐶1 𝑒𝑒 2𝑥𝑥 + 𝐶𝐶2 𝑒𝑒 −2𝑥𝑥 .
Example 2.1.3
Solve 𝑦𝑦′′ + 4𝑦𝑦′ + 4𝑦𝑦 = 0.
Solution
Step 1. Characteristic Equation: 𝑚𝑚2 + 4𝑚𝑚 + 4 = 0 ⇒ 𝑚𝑚 = −2.
Step 2. The general solution is 𝑦𝑦 = (𝐶𝐶1 𝑥𝑥 + 𝐶𝐶2 )𝑒𝑒 −2𝑥𝑥 .
Second Order Linear ODE 26
Example 2.1.4
𝑑𝑑2 𝑦𝑦
Solve + 4𝑦𝑦 = 0 .
𝑑𝑑𝑥𝑥 2
Solution
Step 1. Characteristic Equation: 𝑚𝑚2 + 4 = 0 ⇒ 𝑚𝑚 = ±2𝑗𝑗.
Step 2. The general solution is 𝑦𝑦 = 𝑒𝑒 0𝑥𝑥 (𝐶𝐶1 sin 2𝑥𝑥 + 𝐶𝐶2 cos 2𝑥𝑥)
or 𝑦𝑦 = 𝐶𝐶1 sin 2𝑥𝑥 + 𝐶𝐶2 cos 2𝑥𝑥.
Example 2.1.5
Solve the IVP:
𝑑𝑑2 𝑦𝑦
⎧ 2 + 4𝑦𝑦 = 0
⎪𝑑𝑑𝑥𝑥
⎨𝑦𝑦(0) = 1
⎪
⎩𝑦𝑦 ′ (0) = 1
Solution
𝑑𝑑2 𝑦𝑦
From previous example, the general solution of + 4𝑦𝑦 = 0 is
𝑑𝑑𝑥𝑥 2
𝑦𝑦 = 𝐶𝐶1 sin 2𝑥𝑥 + 𝐶𝐶2 cos 2𝑥𝑥.
To find 𝑦𝑦𝑐𝑐 , we solve the corresponding homogeneous ODE as discussed in the previous
section. To find 𝑦𝑦𝑝𝑝 , we use inverse D-operators. An operator is a rule that assigns an
input function to an output function. A D-operator takes differentiable functions as its
inputs, and assigns the derivative of the input as the outputs, e.g. 𝐷𝐷(sin 𝑥𝑥) = cos 𝑥𝑥.
We use the abbreviated form 𝐷𝐷2 𝑦𝑦 to denote the second derivative of 𝑦𝑦. For instance,
𝐷𝐷2 (sin 𝑥𝑥) = 𝐷𝐷�𝐷𝐷(sin 𝑥𝑥)� = 𝐷𝐷(cos 𝑥𝑥) = − sin 𝑥𝑥.
Second Order Linear ODE 28
1
The expression above is an example of an inverse D-operator, which
𝑎𝑎𝐷𝐷2
+ 𝑏𝑏𝑏𝑏 + 𝑐𝑐
1
takes the function 𝑄𝑄 as its input. For convenience, we use the notation to
𝐹𝐹(𝐷𝐷)
denote an inverse D-operator.
We can determine the particular integral 𝑦𝑦𝑝𝑝 if we know how the inverse D-operator
acts on various types of input function 𝑄𝑄:
1. 𝑄𝑄 = 𝑘𝑘, a constant function
2. 𝑄𝑄 = 𝑒𝑒 𝑘𝑘𝑘𝑘 , an exponential function
3. 𝑄𝑄 = 𝑒𝑒 𝑘𝑘𝑘𝑘 𝑉𝑉(𝑥𝑥), a product of 𝑒𝑒 𝑘𝑘𝑘𝑘 and constant/sine/cosine
4. 𝑄𝑄 = sin 𝑘𝑘𝑘𝑘 or 𝑄𝑄 = cos 𝑘𝑘𝑘𝑘 sine or cosine function
In the formula above, 𝐹𝐹(0) is the value obtained by replacing 𝐷𝐷 in 𝐹𝐹(𝐷𝐷) with 0,
provided that 𝐹𝐹(0) ≠ 0. If 𝐹𝐹(0) = 0, we modify the method (see Example 2.2.3).
Example 2.2.2
𝑑𝑑2 𝑦𝑦
Solve − 4𝑦𝑦 = 8 .
𝑑𝑑𝑥𝑥 2
Solution
𝑑𝑑 2 𝑦𝑦
Find 𝑦𝑦𝑐𝑐 : Consider − 4𝑦𝑦 = 0 . From Example 2.1.2, we have
𝑑𝑑𝑥𝑥 2
𝑦𝑦𝑐𝑐 = 𝐶𝐶1 𝑒𝑒 2𝑥𝑥 + 𝐶𝐶2 𝑒𝑒 −2𝑥𝑥
𝑑𝑑 2 𝑦𝑦
Find 𝑦𝑦𝑝𝑝 : Consider − 4𝑦𝑦 = 8 .
𝑑𝑑𝑥𝑥 2
1
(𝐷𝐷2 − 4)𝑦𝑦 = 8 ⇒ 𝑦𝑦𝑝𝑝 = (8)
𝐷𝐷2
−4
1 8
⇒ 𝑦𝑦𝑝𝑝 = 2 (8) = = −2
0 −4 −4
Thus, the general solution is
𝑦𝑦 = 𝑦𝑦𝑐𝑐 + 𝑦𝑦𝑝𝑝 = 𝐶𝐶1 𝑒𝑒 2𝑥𝑥 + 𝐶𝐶2 𝑒𝑒 −2𝑥𝑥 − 2.
Second Order Linear ODE 30
1
By the definition of the D-operator, it is obvious that �𝑓𝑓(𝑥𝑥)� is the anti-derivative
𝐷𝐷
(indefinite integral) of 𝑓𝑓(𝑥𝑥), that is
1
�𝑓𝑓(𝑥𝑥)� = � 𝑓𝑓(𝑥𝑥) 𝑑𝑑𝑑𝑑.
𝐷𝐷
Example 2.2.3
𝑑𝑑2 𝑦𝑦 𝑑𝑑𝑑𝑑
Solve 2
−4 =8 .
𝑑𝑑𝑥𝑥 𝑑𝑑𝑑𝑑
Solution
𝑑𝑑2 𝑦𝑦 𝑑𝑑𝑑𝑑
Find 𝑦𝑦𝑐𝑐 : Consider − 4 =0 .
𝑑𝑑𝑥𝑥 2 𝑑𝑑𝑑𝑑
Characteristic equation: 𝑚𝑚2 − 4𝑚𝑚 = 0 ⇒ 𝑚𝑚 = 0 or 𝑚𝑚 = 4.
𝑦𝑦𝑐𝑐 = 𝐶𝐶1 𝑒𝑒 0 + 𝐶𝐶2 𝑒𝑒 4𝑥𝑥 or 𝑦𝑦𝑐𝑐 = 𝐶𝐶1 + 𝐶𝐶2 𝑒𝑒 4𝑥𝑥
𝑑𝑑2 𝑦𝑦 𝑑𝑑𝑑𝑑
Find 𝑦𝑦𝑝𝑝 : Consider − 4 =8 .
𝑑𝑑𝑥𝑥 2 𝑑𝑑𝑑𝑑
1
(𝐷𝐷2 − 4𝐷𝐷)𝑦𝑦 = 8 ⇒ 𝑦𝑦𝑝𝑝 = (8)
𝐷𝐷2 − 4𝐷𝐷
1 1 1 8
⇒ 𝑦𝑦𝑝𝑝 = � (8)� = � � = � −2 𝑑𝑑𝑑𝑑 = −2𝑥𝑥
𝐷𝐷 𝐷𝐷 − 4 𝐷𝐷 0 − 4
Thus, the general solution is
𝑦𝑦 = 𝑦𝑦𝑐𝑐 + 𝑦𝑦𝑝𝑝 = 𝐶𝐶1 + 𝐶𝐶2 𝑒𝑒 4𝑥𝑥 − 2𝑥𝑥.
Second Order Linear ODE 31
In the formula above, 𝐹𝐹(𝑘𝑘) is the value obtained by replacing 𝐷𝐷 in 𝐹𝐹(𝐷𝐷) with 𝑘𝑘,
provided that 𝐹𝐹(𝑘𝑘) ≠ 0. If 𝐹𝐹(𝑘𝑘) = 0, we use a different formula (see Example 2.2.5).
Example 2.2.4
𝑑𝑑 2 𝑦𝑦
Solve − 4𝑦𝑦 = 𝑒𝑒 4𝑥𝑥 .
𝑑𝑑𝑥𝑥 2
Solution
𝑑𝑑 2 𝑦𝑦
Find 𝑦𝑦𝑐𝑐 : Consider − 4𝑦𝑦 = 0 . From Example 2.1.2, we have
𝑑𝑑𝑥𝑥 2
𝑦𝑦𝑐𝑐 = 𝐶𝐶1 𝑒𝑒 2𝑥𝑥 + 𝐶𝐶2 𝑒𝑒 −2𝑥𝑥 .
𝑑𝑑 2 𝑦𝑦
Find 𝑦𝑦𝑝𝑝 : Consider − 4𝑦𝑦 = 𝑒𝑒 4𝑥𝑥 .
𝑑𝑑𝑥𝑥 2
1
(𝐷𝐷2 − 4)𝑦𝑦 = 𝑒𝑒 4𝑥𝑥 ⇒ 𝑦𝑦𝑝𝑝 = (𝑒𝑒 4𝑥𝑥 )
𝐷𝐷2
−4
1 1 4𝑥𝑥
⇒ 𝑦𝑦𝑝𝑝 = 2 (𝑒𝑒 4𝑥𝑥 ) = 𝑒𝑒
4 −4 12
Thus, the general solution is
1 4𝑥𝑥
𝑦𝑦 = 𝑦𝑦𝑐𝑐 + 𝑦𝑦𝑝𝑝 = 𝐶𝐶1 𝑒𝑒 2𝑥𝑥 + 𝐶𝐶2 𝑒𝑒 −2𝑥𝑥 + 𝑒𝑒 .
12
Second Order Linear ODE 32
In the formula above, 𝐹𝐹(𝐷𝐷 + 𝑘𝑘) is obtained by replacing 𝐷𝐷 in 𝐹𝐹(𝐷𝐷) with 𝐷𝐷 + 𝑘𝑘. This
new inverse D-operator then acts on the input 𝑉𝑉(𝑥𝑥), which may be a constant, sine, or
cosine function.
Example 2.2.5
𝑑𝑑 2 𝑦𝑦
Solve − 4𝑦𝑦 = 𝑒𝑒 2𝑥𝑥 .
𝑑𝑑𝑥𝑥 2
Solution
𝑑𝑑 2 𝑦𝑦
Find 𝑦𝑦𝑐𝑐 : Consider − 4𝑦𝑦 = 0 . From Example 2.1.2, we have
𝑑𝑑𝑥𝑥 2
𝑦𝑦𝑐𝑐 = 𝐶𝐶1 𝑒𝑒 2𝑥𝑥 + 𝐶𝐶2 𝑒𝑒 −2𝑥𝑥 .
𝑑𝑑 2 𝑦𝑦
Find 𝑦𝑦𝑝𝑝 : Consider 2
− 4𝑦𝑦 = 𝑒𝑒 2𝑥𝑥 .
𝑑𝑑𝑥𝑥
1
(𝐷𝐷2 − 4)𝑦𝑦 = 𝑒𝑒 2𝑥𝑥 ⇒ 𝑦𝑦𝑝𝑝 = (𝑒𝑒 2𝑥𝑥 )
𝐷𝐷2 −4
1 1
⇒ 𝑦𝑦𝑝𝑝 = 𝑒𝑒 2𝑥𝑥 (1) = 𝑒𝑒 2𝑥𝑥
(1)
(𝐷𝐷 + 2)2 − 4 𝐷𝐷2 + 4𝐷𝐷
1 1 1 1
⇒ 𝑦𝑦𝑝𝑝 = 𝑒𝑒 2𝑥𝑥 � (1)� = 𝑒𝑒 2𝑥𝑥 � 𝑑𝑑𝑑𝑑 = 𝑥𝑥 𝑒𝑒 2𝑥𝑥
𝐷𝐷 𝐷𝐷 + 4 4 4
1 1
(cos 𝑘𝑘𝑘𝑘) = (cos 𝑘𝑘𝑘𝑘)
𝐹𝐹(𝐷𝐷 )
2 𝐹𝐹(−𝑘𝑘 2 )
In the formula above, obtaining 𝐹𝐹(−𝑘𝑘 2 ) from 𝐹𝐹(𝐷𝐷2 ) means replacing only 𝐷𝐷2 by −𝑘𝑘 2 ,
provided that 𝐹𝐹(−𝑘𝑘 2 ) ≠ 0. If 𝐹𝐹(−𝑘𝑘 2 ) = 0, we use different formula (see Example
2.2.7).
Example 2.2.6
𝑑𝑑 2 𝑦𝑦
Solve + 4𝑦𝑦 = sin 𝑥𝑥 .
𝑑𝑑𝑥𝑥 2
Solution
𝑑𝑑 2 𝑦𝑦
Find 𝑦𝑦𝑐𝑐 : Consider + 4𝑦𝑦 = 0 . From Example 2.1.4, we have
𝑑𝑑𝑥𝑥 2
𝑦𝑦𝑐𝑐 = 𝐶𝐶1 sin 2𝑥𝑥 + 𝐶𝐶2 cos 2𝑥𝑥.
𝑑𝑑 2 𝑦𝑦
Find 𝑦𝑦𝑝𝑝 : Consider + 4𝑦𝑦 = sin 𝑥𝑥 .
𝑑𝑑𝑥𝑥 2
1
(𝐷𝐷2 + 4)𝑦𝑦 = sin 𝑥𝑥 ⇒ 𝑦𝑦𝑝𝑝 = (sin 𝑥𝑥)
𝐷𝐷2 + 4
1 1
⇒ 𝑦𝑦𝑝𝑝 = (sin 𝑥𝑥) = sin 𝑥𝑥
−12 + 4 3
Thus, the general solution is
1
𝑦𝑦 = 𝑦𝑦𝑐𝑐 + 𝑦𝑦𝑝𝑝 = 𝐶𝐶1 sin 2𝑥𝑥 + 𝐶𝐶2 cos 2𝑥𝑥 + sin 𝑥𝑥.
3
Second Order Linear ODE 34
Take note of the following special forms for the inverse D-operators of sine and cosine
functions.
1 𝑥𝑥 sin 𝑘𝑘𝑘𝑘
(cos 𝑘𝑘𝑘𝑘) =
𝐷𝐷2 + 𝑘𝑘 2 2𝑘𝑘
Example 2.2.7
𝑑𝑑 2 𝑦𝑦
Solve + 4𝑦𝑦 = sin 2𝑥𝑥 .
𝑑𝑑𝑥𝑥 2
Solution
𝑑𝑑 2 𝑦𝑦
Find 𝑦𝑦𝑐𝑐 : Consider + 4𝑦𝑦 = 0 . From Example 2.1.4, we have
𝑑𝑑𝑥𝑥 2
𝑦𝑦𝑐𝑐 = 𝐶𝐶1 sin 2𝑥𝑥 + 𝐶𝐶2 cos 2𝑥𝑥.
𝑑𝑑 2 𝑦𝑦
Find 𝑦𝑦𝑝𝑝 : Consider + 4𝑦𝑦 = sin 2𝑥𝑥 .
𝑑𝑑𝑥𝑥 2
1
(𝐷𝐷2 + 4)𝑦𝑦 = sin 2𝑥𝑥 ⇒ 𝑦𝑦𝑝𝑝 = (sin 2𝑥𝑥)
𝐷𝐷2 + 4
−𝑥𝑥 cos 2𝑥𝑥
⇒ 𝑦𝑦𝑝𝑝 =
4
Thus, the general solution is
𝑥𝑥 cos 2𝑥𝑥
𝑦𝑦 = 𝑦𝑦𝑐𝑐 + 𝑦𝑦𝑝𝑝 = 𝐶𝐶1 sin 2𝑥𝑥 + 𝐶𝐶2 cos 2𝑥𝑥 − .
4
Second Order Linear ODE 35
In the example below, the inverse D-operator contains both 𝐷𝐷2 and 𝐷𝐷 terms.
Example 2.2.8
𝑑𝑑 2 𝑦𝑦 𝑑𝑑𝑑𝑑
Solve + 4 + 4𝑦𝑦 = sin 2𝑥𝑥 .
𝑑𝑑𝑥𝑥 2 𝑑𝑑𝑑𝑑
Solution
𝑑𝑑 2 𝑦𝑦 𝑑𝑑𝑑𝑑
Find 𝑦𝑦𝑐𝑐 : Consider 2
+4 + 4𝑦𝑦 = 0 . From Example 2.1.3, we have
𝑑𝑑𝑥𝑥 𝑑𝑑𝑑𝑑
𝑦𝑦𝑐𝑐 = (𝐶𝐶1 𝑥𝑥 + 𝐶𝐶2 ) 𝑒𝑒 −2𝑥𝑥 .
𝑑𝑑 2 𝑦𝑦 𝑑𝑑𝑑𝑑
Find 𝑦𝑦𝑝𝑝 : Consider + 4 + 4𝑦𝑦 = sin 2𝑥𝑥 .
𝑑𝑑𝑥𝑥 2 𝑑𝑑𝑑𝑑
1
(𝐷𝐷2 + 4𝐷𝐷 + 4)𝑦𝑦 = sin 2𝑥𝑥 ⇒ 𝑦𝑦𝑝𝑝 = (sin 2𝑥𝑥)
𝐷𝐷2+ 4𝐷𝐷 + 4
1
⇒ 𝑦𝑦𝑝𝑝 = (sin 2𝑥𝑥)
−22 + 4𝐷𝐷 + 4
1
⇒ 𝑦𝑦𝑝𝑝 = (sin 2𝑥𝑥)
4𝐷𝐷
1 cos 2𝑥𝑥
⇒ 𝑦𝑦𝑝𝑝 = � sin 2𝑥𝑥 𝑑𝑑𝑑𝑑 = −
4 8
Thus, the general solution is
cos 2𝑥𝑥
𝑦𝑦 = 𝑦𝑦𝑐𝑐 + 𝑦𝑦𝑝𝑝 = (𝐶𝐶1 𝑥𝑥 + 𝐶𝐶2 ) 𝑒𝑒 −2𝑥𝑥 − .
8
When dealing with sine or cosine functions, we consider only 𝐷𝐷2 terms in the
expression of the inverse D-operator. If the expression does not contain any 𝐷𝐷2 terms,
a simple modification using the conjugate pair is necessary.
Second Order Linear ODE 36
1 1 1
Observe that � (sin 𝑘𝑘𝑘𝑘)� = 2 (sin 𝑘𝑘𝑘𝑘) implies
𝐷𝐷 − 𝑛𝑛 𝐷𝐷 + 𝑛𝑛 𝐷𝐷 − 𝑛𝑛2
1 1
(sin 𝑘𝑘𝑘𝑘) = (𝐷𝐷 − 𝑛𝑛) � 2 (sin 𝑘𝑘𝑘𝑘)�.
𝐷𝐷 + 𝑛𝑛 𝐷𝐷 − 𝑛𝑛2
The roles of (𝐷𝐷 + 𝑛𝑛) and (𝐷𝐷 − 𝑛𝑛) are interchangeable.
Example 2.2.9
Solve 𝑦𝑦 ′′ + 4𝑦𝑦 ′ + 4𝑦𝑦 = sin 𝑥𝑥.
Solution
Find 𝑦𝑦𝑐𝑐 : Consider 𝑦𝑦 ′′ + 4𝑦𝑦 ′ + 4𝑦𝑦 = 0. From Example 2.1.3, we have
𝑦𝑦𝑐𝑐 = (𝐶𝐶1 𝑥𝑥 + 𝐶𝐶2 ) 𝑒𝑒 −2𝑥𝑥 .
Example 2.2.10
Solve 𝑦𝑦 ′′ + 4𝑦𝑦 ′ + 4𝑦𝑦 = 𝑒𝑒 −2𝑥𝑥 sin 𝑥𝑥.
Solution
Find 𝑦𝑦𝑐𝑐 : Consider 𝑦𝑦 ′′ + 4𝑦𝑦 ′ + 4𝑦𝑦 = 0. From Example 2.1.3, we have
𝑦𝑦𝑐𝑐 = (𝐶𝐶1 𝑥𝑥 + 𝐶𝐶2 ) 𝑒𝑒 −2𝑥𝑥 .
1
⇒ 𝑦𝑦𝑝𝑝 = 𝑒𝑒 −2𝑥𝑥 (sin 𝑥𝑥)
(𝐷𝐷2 − 4𝐷𝐷 + 4) + (4𝐷𝐷 − 8) + 4
1
⇒ 𝑦𝑦𝑝𝑝 = 𝑒𝑒 −2𝑥𝑥 (sin 𝑥𝑥)
𝐷𝐷2
1
⇒ 𝑦𝑦𝑝𝑝 = 𝑒𝑒 −2𝑥𝑥 � sin 𝑥𝑥� = −𝑒𝑒 −2𝑥𝑥 sin 𝑥𝑥
−1
2.3 Applications
In this section, we explore engineering problems modelled by second order linear
differential equations. Examples in electronics and mechanics are presented together
with brief descriptions on the modelling process.
Applications in Electronics
Example 2.3.1
A series circuit consists of a 1 H inductor, a 1 kΩ resistor, and a 6.25µF capacitor. The
capacitor was initially charged at 1.5 mC. The circuit is then closed at time 𝑡𝑡 = 0,
allowing the capacitor to discharge, and satisfies the differential equation
𝑑𝑑 2 𝑞𝑞 𝑑𝑑𝑑𝑑
2
+ 1000 + 160000𝑞𝑞 = 0.
𝑑𝑑𝑡𝑡 𝑑𝑑𝑑𝑑
Express the charge 𝑞𝑞 in terms of time 𝑡𝑡.
Second Order Linear ODE 39
Solution
Characteristic equation: 𝑚𝑚2 + 1000𝑚𝑚 + 160000 = 0 ⇒ 𝑚𝑚 = −800 or 𝑚𝑚 = −200.
So, 𝑞𝑞 = 𝐶𝐶1 𝑒𝑒 −800𝑡𝑡 + 𝐶𝐶2 𝑒𝑒 −200𝑡𝑡 .
Solving the linear system for 𝐶𝐶1 and 𝐶𝐶2 , we have 𝐶𝐶1 = −0.0005 and 𝐶𝐶2 = 0.002.
Thus, 𝑞𝑞 = −0.0005𝑒𝑒 −800𝑡𝑡 + 0.002𝑒𝑒 −200𝑡𝑡 .
q (mC)
1.5
0.5
t (msec)
2 4 6 8 10 12 14 16 18 20
Applications in Mechanics
An interesting topic in classical mechanics is the harmonic motion, e.g. an object moves
back and forth due to the potential energy of a spring.
In studying harmonic motion, the Hooke’s Law, 𝐹𝐹𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠 = −𝑘𝑘𝑘𝑘, is considered. Here, 𝑥𝑥
denotes the displacement of the object from its initial position, and 𝑘𝑘 is a spring
constant that determines the stiffness of the spring.
In the next two examples, we see problems in harmonic motion modelled by second
𝑑𝑑2 𝑥𝑥
order differential equations involving . We solve for the particular solution by
𝑑𝑑𝑡𝑡 2
considering initial displacement 𝑥𝑥(0) and initial velocity 𝑣𝑣(0) = 𝑥𝑥 ′ (0).
Example 2.3.2
A spring with spring constant of 1 N/m is lying horizontally on a smooth surface with
one end fixed to a wall as shown in Figure 2.2(b) above. An object of unit mass is
attached to the other end of the spring without stretching it. Let 𝑥𝑥 be the displacement
of the object from its equilibrium position. The object projected horizontally away from
the wall with initial velocity 1 m/s satisfies the differential equation
𝑑𝑑2 𝑥𝑥
+ 𝑥𝑥 = 0.
𝑑𝑑𝑡𝑡 2
Express the displacement 𝑥𝑥 as a function of time 𝑡𝑡.
Second Order Linear ODE 41
Solution
Characteristic equation: 𝑚𝑚2 + 1 = 0 ⇒ 𝑚𝑚 = 𝑗𝑗 or 𝑚𝑚 = −𝑗𝑗.
So, 𝑥𝑥 = 𝐶𝐶1 sin 𝑡𝑡 + 𝐶𝐶2 cos 𝑡𝑡.
The solution in Example 2.3.2 indicates that the object is moving back and forth,
pushing and pulling the spring alternately forever. This is an ideal situation with no
resistance involved in the harmonic motion. In a real situation, this is not possible.
Example 2.3.3
A system consists of a spring of stiffness 0.625 N/m and a 25 gram ball suspended by
the spring as shown in Figure 2.2(a) in the previous page. The other end of the spring is
fixed onto a ceiling. The ball is pulled downwards 50 cm from its equilibrium position,
and released. Let 𝑣𝑣 be the velocity of the ball, and 𝑥𝑥 its displacement from its
equilibrium position. The system experiences a resistance 0.25𝑣𝑣, and satisfies the
differential equation
𝑑𝑑2 𝑥𝑥 𝑑𝑑𝑑𝑑
+ 10 + 25𝑥𝑥 = 0.
𝑑𝑑𝑡𝑡 2 𝑑𝑑𝑑𝑑
Express the displacement 𝑥𝑥 as a function of time 𝑡𝑡.
Second Order Linear ODE 42
Solution
Characteristic equation: 𝑚𝑚2 + 10𝑚𝑚 + 25 = 0 ⇒ 𝑚𝑚 = −5.
So, 𝑥𝑥 = (𝐶𝐶1 + 𝐶𝐶2 𝑡𝑡)𝑒𝑒 −5𝑡𝑡 .
x
0.1
t
1 2
-0.1
-0.2
-0.3
-0.4
-0.5
-0.6
2.4 Exercises
1. Solve the following homogeneous second order linear ODEs, see Section 2.1.
(a) 𝑦𝑦 ′′ + 4𝑦𝑦 ′ − 5𝑦𝑦 = 0
(b) 𝑦𝑦 ′′ + 6𝑦𝑦 ′ + 9𝑦𝑦 = 0
(c) 𝑦𝑦 ′′ − 16𝑦𝑦 = 0
𝑑𝑑 2 𝑦𝑦 𝑑𝑑𝑑𝑑
(d) +2 + 2𝑦𝑦 = 0
𝑑𝑑𝑥𝑥 2 𝑑𝑑𝑑𝑑
𝑑𝑑 2 𝑦𝑦 𝑑𝑑𝑑𝑑
(e) 6 − 11 + 3𝑦𝑦 = 0
𝑑𝑑𝑥𝑥 2 𝑑𝑑𝑑𝑑
2. Solve the following homogeneous second order linear ODEs, see Section 2.1.
𝑑𝑑 2 𝑥𝑥 𝑑𝑑𝑑𝑑
(a) + =0
𝑑𝑑𝑡𝑡 2 𝑑𝑑𝑑𝑑
𝑑𝑑 2 𝑥𝑥 𝑑𝑑𝑑𝑑
(b) −6 + 10𝑥𝑥 = 0
𝑑𝑑𝑡𝑡 2 𝑑𝑑𝑑𝑑
𝑑𝑑 2 𝑞𝑞
(c) + 4𝑞𝑞 = 0
𝑑𝑑𝑡𝑡 2
𝑑𝑑 2 𝑞𝑞 𝑑𝑑𝑑𝑑
(d) +2 − 𝑞𝑞 = 0
𝑑𝑑𝑡𝑡 2 𝑑𝑑𝑑𝑑
𝑑𝑑 2 𝑧𝑧 𝑑𝑑𝑑𝑑
(e) 4 2 − 12 + 9𝑧𝑧 = 0
𝑑𝑑𝑥𝑥 𝑑𝑑𝑑𝑑
Second Order Linear ODE 44
3. Solve the following Initial Value Problems (IVP), see Example 2.1.5.
𝑦𝑦 ′′ + 4𝑦𝑦 ′ − 5𝑦𝑦 = 0
(a) �𝑦𝑦(0) = 1
𝑦𝑦 ′ (0) = 1
2
⎧𝑑𝑑 𝑥𝑥 + 𝑑𝑑𝑑𝑑 = 0
⎪ 𝑑𝑑𝑡𝑡 2 𝑑𝑑𝑑𝑑
(b)
⎨𝑥𝑥(0) = 0
⎪ ′
⎩𝑥𝑥 (0) = 1
2
⎧𝑑𝑑 𝑞𝑞 + 4𝑞𝑞 = 0
⎪ 𝑑𝑑𝑡𝑡 2
(c)
⎨𝑞𝑞(0) = 1
⎪ ′
⎩𝑞𝑞 (0) = 0
1
4. (a) Find (15).
𝐷𝐷2 + 4𝐷𝐷 − 5
(b) Solve 𝑦𝑦 ′′ + 4𝑦𝑦′ − 5𝑦𝑦 = 15.
1
5. (a) Find (21).
𝐷𝐷2 + 6𝐷𝐷 + 9
(b) Solve 𝑦𝑦′′ + 6𝑦𝑦′ + 9𝑦𝑦 = 21.
Second Order Linear ODE 45
1
6. (a) Find (2).
𝐷𝐷2 + 𝐷𝐷
𝑑𝑑 2 𝑥𝑥 𝑑𝑑𝑑𝑑
(b) Solve + = 2.
𝑑𝑑𝑡𝑡 2 𝑑𝑑𝑑𝑑
1
7. (a) Find (𝑒𝑒 𝑥𝑥 ).
𝐷𝐷2 + 6𝐷𝐷 + 9
(b) Solve 𝑦𝑦′′ + 6𝑦𝑦′ + 9𝑦𝑦 = 8𝑒𝑒 𝑥𝑥 .
1
8. (a) Find (𝑒𝑒 2𝑥𝑥 ).
𝐷𝐷2 − 1
(b) Solve 𝑦𝑦 ′′ − 𝑦𝑦 = 𝑒𝑒 2𝑥𝑥 .
1
9. (a) Find (𝑒𝑒 5𝑡𝑡 ).
𝐷𝐷2 + 𝐷𝐷
𝑑𝑑 2 𝑥𝑥 𝑑𝑑𝑑𝑑
(b) Solve + = 20𝑒𝑒 5𝑡𝑡 .
𝑑𝑑𝑡𝑡 2 𝑑𝑑𝑑𝑑
1
10. (a) Find (𝑒𝑒 −3𝑥𝑥 ).
𝐷𝐷2 + 6𝐷𝐷 + 9
(b) Solve 𝑦𝑦′′ + 6𝑦𝑦′ + 9𝑦𝑦 = 𝑒𝑒 −3𝑥𝑥 .
Second Order Linear ODE 46
1
11. (a) Find (𝑒𝑒 −𝑡𝑡 ).
𝐷𝐷2 + 𝐷𝐷
𝑑𝑑 2 𝑥𝑥 𝑑𝑑𝑑𝑑
(b) Solve + = 𝑒𝑒 −𝑡𝑡 .
𝑑𝑑𝑡𝑡 2 𝑑𝑑𝑑𝑑
1
12. (a) Find (4 cos 𝑥𝑥).
𝐷𝐷2 −1
(b) Solve 𝑦𝑦 ′′ − 𝑦𝑦 = 4 cos 𝑥𝑥.
1
13. (a) Find (4 cos 𝑥𝑥).
𝐷𝐷2 + 1
(b) Solve 𝑦𝑦 ′′ + 𝑦𝑦 = 4 cos 𝑥𝑥.
1
14. (a) Find (cos 3𝑡𝑡).
𝐷𝐷2 +9
𝑑𝑑 2 𝑞𝑞
(b) Solve + 9𝑞𝑞 = cos 3𝑡𝑡
𝑑𝑑𝑡𝑡 2
1
15. (a) Find (sin 3𝑥𝑥).
𝐷𝐷2 + 6𝐷𝐷 + 9
(b) Solve 𝑦𝑦′′ + 6𝑦𝑦′ + 9𝑦𝑦 = sin 3𝑥𝑥.
Second Order Linear ODE 47
1
16. (a) Find (sin 𝑥𝑥).
𝐷𝐷2 + 2𝐷𝐷 + 2
(b) Solve 𝑦𝑦′′ + 2𝑦𝑦′ + 2𝑦𝑦 = sin 𝑥𝑥.
1
17. (a) Find (cos 3𝑡𝑡).
𝐷𝐷2 + 𝐷𝐷
𝑑𝑑 2 𝑥𝑥 𝑑𝑑𝑑𝑑
(b) Solve + = cos 3𝑡𝑡.
𝑑𝑑𝑡𝑡 2 𝑑𝑑𝑑𝑑
1
18. (a) Find (𝑒𝑒 −3𝑥𝑥 sin 𝑥𝑥).
𝐷𝐷2 + 6𝐷𝐷 + 9
(b) Solve 𝑦𝑦′′ + 6𝑦𝑦′ + 9𝑦𝑦 = 𝑒𝑒 −3𝑥𝑥 sin 𝑥𝑥.
1
19. (a) Find (𝑒𝑒 −𝑥𝑥 cos 𝑥𝑥).
𝐷𝐷2 + 2𝐷𝐷 + 2
(b) Solve 𝑦𝑦′′ + 2𝑦𝑦′ + 2𝑦𝑦 = 𝑒𝑒 −𝑥𝑥 cos 𝑥𝑥.
22. A 2 kg metal ball is suspended by a spring of stiffness 10 N/m. The ball is pulled
down 0.1 m below its equilibrium position and released. Let 𝑥𝑥 be the
displacement of the object from its equilibrium position. The harmonic motion of
the ball is subjected to air resistance, and satisfies the differential equation
𝑑𝑑2 𝑥𝑥 𝑑𝑑𝑑𝑑
+2 + 5𝑥𝑥 = 0.
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
Express the displacement 𝑥𝑥 as a function of 𝑡𝑡.
− END OF CHAPTER 2 −
Chapter 3
Laplace Transform
Learning Objectives
By the end of this chapter, students should be able to
1. evaluate Laplace and inverse Laplace transforms of elementary functions;
2. evaluate Laplace and inverse Laplace transforms of a product involving 𝑒𝑒 𝑎𝑎𝑎𝑎 ;
3. evaluate Laplace and inverse Laplace transforms of a truncated shift of a function;
4. solve initial value problems (IVP) using Laplace transforms.
L aplace transforms derive their name from the French scholar Pierre-Simon
Laplace (1749 – 1827), who did pivotal work in mathematics, statistics, physics,
and astronomy. These transforms are useful for solving engineering problems
involving initial value problems (IVP).
Section 3.1 introduces the definition of the Laplace transform and its basic properties.
This is followed by a discussion on the Laplace transforms of elementary functions
(polynomials, exponential, and trigonometric functions), as well as the unit-step
function, the delta function, and convolution of functions.
Sections 3.2 and 3.3 are dedicated to evaluating Laplace transforms of products
involving exponential function 𝑒𝑒 𝑎𝑎𝑎𝑎 or unit-step function 𝑈𝑈(𝑡𝑡 − 𝑎𝑎); whereas Section 3.4
presents the Laplace transform as an elegant algebraic tool for solving IVPs of linear
differential equations. As usual, we conclude the chapter with exercises in Section 3.5.
49
Laplace Transforms 50
We use lower-case letters to denote functions in the 𝑡𝑡-domain, and upper-case letters
to denote functions in the 𝑠𝑠-domain. Figure 3.1 illustrates the role of Laplace
transform.
ℒ
𝑓𝑓(𝑡𝑡) 𝐹𝐹(𝑠𝑠)
Figure 3.1. The Laplace transform maps functions in the 𝑡𝑡-domain to functions in the 𝑠𝑠-
domain
𝑅𝑅 ∞
Remark. The notation lim � 𝑒𝑒 −𝑠𝑠𝑠𝑠
𝑓𝑓(𝑡𝑡)𝑑𝑑𝑑𝑑 above can be written as � 𝑒𝑒 −𝑠𝑠𝑠𝑠 𝑓𝑓(𝑡𝑡)𝑑𝑑𝑑𝑑 ,
𝑅𝑅→∞ 0 0
i.e. as an improper integral.
Laplace Transforms 51
The inverse Laplace transform has the opposite role, as illustrated by Figure 3.2.
𝑓𝑓(𝑡𝑡) 𝐹𝐹(𝑠𝑠)
ℒ −1
Figure 3.2. The inverse Laplace transform maps functions in the 𝑠𝑠-domain to functions
in the 𝑡𝑡-domains
The Laplace transforms of elementary functions are shown without proof in Table 3.1.
We shall use them directly for subsequent problems.
𝑓𝑓(𝑡𝑡) ℒ[𝑓𝑓(𝑡𝑡)]
𝑛𝑛!
𝑡𝑡 𝑛𝑛
𝑠𝑠 𝑛𝑛+1
1
𝑒𝑒 𝑎𝑎𝑎𝑎
𝑠𝑠 − 𝑎𝑎
𝑎𝑎
sin 𝑎𝑎𝑎𝑎
𝑠𝑠 2 + 𝑎𝑎2
𝑠𝑠
cos 𝑎𝑎𝑎𝑎
𝑠𝑠 2 + 𝑎𝑎2
ℒ −1 [𝐹𝐹(𝑠𝑠)] 𝐹𝐹(𝑠𝑠)
Table 3.1 Laplace transforms of elementary functions
Remark. For 𝑛𝑛 = 0, 1, 2, …, the notation 𝑛𝑛! is read 𝑛𝑛 factorial. It is the product of all
integers from 1 to 𝑛𝑛, in other words, 𝑛𝑛! = 𝑛𝑛 ⋅ (𝑛𝑛 − 1) ⋅ (𝑛𝑛 − 2) ⋯ 2 ⋅ 1.
Laplace Transforms 52
𝑛𝑛! 𝑛𝑛!
ℒ[𝑡𝑡 𝑛𝑛 ] = or ℒ −1 � � = 𝑡𝑡 𝑛𝑛
𝑠𝑠 𝑛𝑛+1 𝑠𝑠 𝑛𝑛+1
1 1
ℒ[𝑒𝑒 𝑎𝑎𝑎𝑎 ] = or ℒ −1 � � = 𝑒𝑒 𝑎𝑎𝑎𝑎
𝑠𝑠 − 𝑎𝑎 𝑠𝑠 − 𝑎𝑎
Example 3.1.2
3! 6
(a) ℒ[𝑡𝑡 3 ] = =
𝑠𝑠 3+1 𝑠𝑠 4
4! 24
(b) ℒ[𝑡𝑡 4 ] = =
𝑠𝑠 4+1 𝑠𝑠 5
6 3!
(c) ℒ −1 � 4 � = ℒ −1 � 3+1 � = 𝑡𝑡 3
𝑠𝑠 𝑠𝑠
1 1 2! 1
(d) ℒ −1 � 3 � = ℒ −1 � 2+1 � = 𝑡𝑡 2
𝑠𝑠 2! 𝑠𝑠 2
Example 3.1.3
1
(a) ℒ[𝑒𝑒 𝑡𝑡 ] =
𝑠𝑠 − 1
1 1
(b) ℒ[𝑒𝑒 −𝑡𝑡 ] = =
𝑠𝑠 − (−1) 𝑠𝑠 + 1
1
(c) ℒ −1 � � = 𝑒𝑒 𝑡𝑡
𝑠𝑠 − 1
1 1
(d) ℒ −1 � � = ℒ −1 � � = 𝑒𝑒 −2𝑡𝑡
𝑠𝑠 + 2 𝑠𝑠 − (−2)
Laplace Transforms 53
The Laplace transform for sine and cosine functions can be written as follows.
𝑎𝑎 𝑎𝑎
ℒ[sin 𝑎𝑎𝑎𝑎] = or ℒ −1 � � = sin 𝑎𝑎𝑎𝑎
𝑠𝑠 2 + 𝑎𝑎2 𝑠𝑠 2 + 𝑎𝑎2
𝑠𝑠 𝑠𝑠
ℒ[cos 𝑎𝑎𝑎𝑎] = or ℒ −1 � � = cos 𝑎𝑎𝑎𝑎
𝑠𝑠 2 + 𝑎𝑎2 𝑠𝑠 2 + 𝑎𝑎2
Example 3.1.4
2 2
(a) ℒ[sin 2𝑡𝑡] = = 2
𝑠𝑠 2 +22 𝑠𝑠 + 4
s 𝑠𝑠
(b) ℒ[cos 2𝑡𝑡] = = 2
𝑠𝑠 2 +22 𝑠𝑠 + 4
1 1 −1 2 1
(c) ℒ −1 � � = ℒ � � = sin 2𝑡𝑡
𝑠𝑠 2 + 4 2 𝑠𝑠 2 + 22 2
s 𝑠𝑠
(d) ℒ −1 � � = ℒ −1
� � = cos 2𝑡𝑡
𝑠𝑠 2 + 4 𝑠𝑠 2 + 22
1
t
a
Figure 3.3. Graph of 𝑈𝑈(𝑡𝑡 − 𝑎𝑎)
Laplace Transforms 54
Given a function 𝑓𝑓(𝑡𝑡), the product 𝑓𝑓(𝑡𝑡)𝑈𝑈(𝑡𝑡 − 𝑎𝑎) describes the truncated function at
𝑡𝑡 = 𝑎𝑎, that is, the function is cut-off prior to 𝑡𝑡 = 𝑎𝑎 and resumes from 𝑡𝑡 = 𝑎𝑎 onwards.
Figure 3.4 shows the graphical comparisons between 𝑓𝑓(𝑡𝑡) and 𝑓𝑓(𝑡𝑡)𝑈𝑈(𝑡𝑡 − 𝑎𝑎).
y y
y = f(t)
t a t
y = f(t)U(t-a)
Another function that is very useful in engineering is called Dirac’s delta function,
𝛿𝛿(𝑡𝑡 − 𝑎𝑎), named after the British physicist, Paul Adrien Maurice Dirac (1902 – 1984). It
is also known as the impulse function. Mathematically speaking, Dirac’s delta function
is not really a function in the formal sense. It satisfies the following two properties:
∞
∞ for 𝑡𝑡 = 𝑎𝑎
𝛿𝛿(𝑡𝑡 − 𝑎𝑎) = � and � 𝛿𝛿(𝑡𝑡 − 𝑎𝑎)𝑑𝑑𝑑𝑑 = 1.
0 for 𝑡𝑡 ≠ 𝑎𝑎 −∞
The delta function can be considered as the derivative of the unit-step function. The
Laplace transform of the unit-step and delta functions is as follows.
𝑓𝑓(𝑡𝑡) ℒ[𝑓𝑓(𝑡𝑡)]
𝑒𝑒 −𝑎𝑎𝑎𝑎
𝑈𝑈(𝑡𝑡 − 𝑎𝑎) for 𝑎𝑎 ≥ 0
𝑠𝑠
𝛿𝛿(𝑡𝑡 − 𝑎𝑎) for 𝑎𝑎 ≥ 0 𝑒𝑒 −𝑎𝑎𝑎𝑎
ℒ −1 [𝐹𝐹(𝑠𝑠)] 𝐹𝐹(𝑠𝑠)
Table 3.2 Laplace transforms of unit-step and delta functions
Laplace Transforms 55
Example 3.1.5
𝑒𝑒 −2𝑠𝑠 𝑒𝑒 −𝑠𝑠
(a) ℒ[𝑈𝑈(𝑡𝑡 − 2)] = (c) ℒ −1
� � = 𝑈𝑈(𝑡𝑡 − 1)
𝑠𝑠 𝑠𝑠
(b) ℒ[𝛿𝛿(𝑡𝑡 − 2)] = 𝑒𝑒 −2𝑠𝑠 (d) ℒ −1 [𝑒𝑒 −𝑠𝑠 ] = 𝛿𝛿(𝑡𝑡 − 1)
Example 3.1.6
The graph of 𝑓𝑓(𝑡𝑡) is given below. Express 𝑓𝑓(𝑡𝑡) in terms of unit-step functions, and
evaluate ℒ[𝑓𝑓(𝑡𝑡)].
y
1
t
1 2 3 4 5 6 7 8
Solution
𝑓𝑓(𝑡𝑡) = 2𝑈𝑈(𝑡𝑡 − 1) − 𝑈𝑈(𝑡𝑡 − 5)
2𝑒𝑒 −𝑠𝑠 𝑒𝑒 −5𝑠𝑠
ℒ[𝑓𝑓(𝑡𝑡)] = 2ℒ[𝑈𝑈(𝑡𝑡 − 1)] − ℒ[𝑈𝑈(𝑡𝑡 − 5)] = −
𝑠𝑠 𝑠𝑠
Laplace Transforms 56
Laplace transforms and inverse Laplace transforms take on the linear properties of the
integral.
Example 3.1.8
2 3 2 3
(a) ℒ[2𝑒𝑒 −𝑡𝑡 + sin 3𝑡𝑡] = 2ℒ[𝑒𝑒 −𝑡𝑡 ] + ℒ[sin 3𝑡𝑡] = + 2 2
= + 2
𝑠𝑠 − (−1) 𝑠𝑠 + 3 𝑠𝑠 + 1 𝑠𝑠 + 9
1 1
(b) ℒ[1 + 𝛿𝛿(𝑡𝑡)] = ℒ[𝑒𝑒 0 ] + ℒ[𝛿𝛿(𝑡𝑡)] = + 𝑒𝑒 −0𝑠𝑠 = + 1
𝑠𝑠 − 0 𝑠𝑠
1 1
(c) ℒ −1 �𝑒𝑒 −𝑠𝑠 + 1 + � = ℒ −1 [𝑒𝑒 −𝑠𝑠 ] + ℒ −1 [𝑒𝑒 −0𝑠𝑠 ] + ℒ −1 � � = 𝛿𝛿(𝑡𝑡 − 1) + 𝛿𝛿(𝑡𝑡) + 1
𝑠𝑠 𝑠𝑠
s+3 𝑠𝑠 3
(d) ℒ −1 � 2
� = ℒ −1 � 2 2
� + ℒ −1 � 2 � = cos 3𝑡𝑡 + sin 3𝑡𝑡
𝑠𝑠 + 9 𝑠𝑠 + 3 𝑠𝑠 + 32
Given two functions 𝑓𝑓(𝑡𝑡) and 𝑔𝑔(𝑡𝑡), the convolution (𝑓𝑓 ∗ 𝑔𝑔)(𝑡𝑡) is defined by
𝑡𝑡
(𝑓𝑓 ∗ 𝑔𝑔)(𝑡𝑡) = � 𝑓𝑓(𝑢𝑢)𝑔𝑔(𝑡𝑡 − 𝑢𝑢)𝑑𝑑𝑑𝑑
0
The Laplace transform of the convolution of 𝑓𝑓 and 𝑔𝑔 is the product of the Laplace
transform of 𝑓𝑓 and the Laplace transform of 𝑔𝑔, that is,
ℒ[(𝑓𝑓 ∗ 𝑔𝑔)(𝑡𝑡)] = ℒ[𝑓𝑓(𝑡𝑡)] ⋅ ℒ[𝑔𝑔(𝑡𝑡)].
In other words, ℒ[𝑓𝑓 ∗ 𝑔𝑔] = 𝐹𝐹(𝑠𝑠)𝐺𝐺(𝑠𝑠).
Laplace Transforms 57
Example 3.1.9
1! 1 1
(a) ℒ[𝑡𝑡 ∗ sin 𝑡𝑡] = ℒ[𝑡𝑡] ⋅ ℒ[sin 𝑡𝑡] = ⋅ = 2 2
𝑠𝑠1+1 𝑠𝑠 2 +12 𝑠𝑠 (𝑠𝑠 + 1)
1 1 1
(b) ℒ[𝑡𝑡 ∗ 𝑒𝑒 𝑡𝑡 ] = ℒ[𝑡𝑡] ⋅ ℒ[𝑒𝑒 𝑡𝑡 ] = ⋅ = 2
𝑠𝑠 𝑠𝑠 − 1 𝑠𝑠 (𝑠𝑠 − 1)
2
1 𝑠𝑠 𝑠𝑠
(c) ℒ[𝑒𝑒 𝑡𝑡 ∗ cos 𝑡𝑡] = ℒ[𝑒𝑒 𝑡𝑡 ] ⋅ ℒ[cos 𝑡𝑡] = ⋅ 2 =
𝑠𝑠 − 1 𝑠𝑠 + 1 (𝑠𝑠 − 1)(𝑠𝑠 2 + 1)
Note that the symbol ∗ is used for convolution, not multiplication. Hence, the
expressions 𝑡𝑡 ∗ sin 𝑡𝑡 and 𝑡𝑡 sin 𝑡𝑡 are completely different. To find the Laplace transform
of 𝑡𝑡 sin 𝑡𝑡, or in general, 𝑡𝑡 𝑓𝑓(𝑡𝑡), we apply the formula
𝑑𝑑
ℒ[𝑡𝑡 𝑓𝑓(𝑡𝑡)] = − (ℒ[𝑓𝑓(𝑡𝑡)]).
𝑑𝑑𝑑𝑑
Alternatively, we write ℒ[𝑡𝑡 𝑓𝑓(𝑡𝑡)] = −𝐹𝐹 ′ (𝑠𝑠).
Example 3.1.10
Evaluate ℒ[𝑡𝑡 sin 𝑡𝑡].
Solution
1
Since ℒ[sin 𝑡𝑡] = ,
𝑠𝑠 2 + 1
𝑑𝑑 1 𝑑𝑑
ℒ[𝑡𝑡 sin 𝑡𝑡] =− � 2 � = − ((𝑠𝑠 2 + 1)−1 )
𝑑𝑑𝑑𝑑 𝑠𝑠 + 1 𝑑𝑑𝑑𝑑
2𝑠𝑠
=
(𝑠𝑠 2 + 1)2
Laplace Transforms 58
Theorem 3.2.1
If 𝐹𝐹(𝑠𝑠) = ℒ[𝑓𝑓(𝑡𝑡)], then
ℒ[𝑒𝑒 𝑎𝑎𝑎𝑎 𝑓𝑓(𝑡𝑡)] = 𝐹𝐹(𝑠𝑠 − 𝑎𝑎).
Proof
From Definition 3.1.1, we have
𝑅𝑅
ℒ[𝑒𝑒 𝑎𝑎𝑎𝑎 𝑓𝑓(𝑡𝑡)] = lim � 𝑒𝑒 −𝑠𝑠𝑠𝑠 ⋅ 𝑒𝑒 𝑎𝑎𝑎𝑎 𝑓𝑓(𝑡𝑡)𝑑𝑑𝑑𝑑
𝑅𝑅→∞ 0
𝑅𝑅
= lim � 𝑒𝑒 −(𝑠𝑠−𝑎𝑎)𝑡𝑡 𝑓𝑓(𝑡𝑡)𝑑𝑑𝑑𝑑
𝑅𝑅→∞ 0
= 𝐹𝐹(𝑠𝑠 − 𝑎𝑎).
Example 3.2.2
Evaluate ℒ[𝑒𝑒 𝑡𝑡 sin 𝑡𝑡].
Solution
Step 1. 𝑎𝑎 = 1 and 𝑓𝑓(𝑡𝑡) = sin 𝑡𝑡
1
Step 2. 𝐹𝐹(𝑠𝑠) = ℒ[sin 𝑡𝑡] =
𝑠𝑠 2 +1
1
Step 3. ℒ[𝑒𝑒 𝑡𝑡 sin 𝑡𝑡] = 𝐹𝐹(𝑠𝑠 − 1) =
(𝑠𝑠 − 1)2 + 1
Example 3.2.3
Evaluate ℒ[𝑡𝑡 2 𝑒𝑒 −𝑡𝑡 ].
Solution
Step 1. 𝑎𝑎 = −1 and 𝑓𝑓(𝑡𝑡) = 𝑡𝑡 2
2! 2
Step 2. 𝐹𝐹(𝑠𝑠) = ℒ[𝑡𝑡 2 ] = =
𝑠𝑠 2+1 𝑠𝑠 3
2
Step 3. ℒ[𝑡𝑡 2 𝑒𝑒 −𝑡𝑡 ] = 𝐹𝐹(𝑠𝑠 + 1) =
(𝑠𝑠 + 1)3
Example 3.2.4
Evaluate ℒ[𝑒𝑒 2𝑡𝑡 𝛿𝛿(𝑡𝑡 − 1)].
Solution
Step 1. 𝑎𝑎 = 2 and 𝑓𝑓(𝑡𝑡) = 𝛿𝛿(𝑡𝑡 − 1)
Step 2. 𝐹𝐹(𝑠𝑠) = ℒ[𝛿𝛿(𝑡𝑡 − 1)] = 𝑒𝑒 −𝑠𝑠
Step 3. ℒ[𝑒𝑒 2𝑡𝑡 𝛿𝛿(𝑡𝑡 − 1)] = 𝐹𝐹(𝑠𝑠 − 2) = 𝑒𝑒 −(𝑠𝑠−2)
Laplace Transforms 60
Remark. To identify 𝑎𝑎, we observe the factor (𝑠𝑠 − 𝑎𝑎) in the denominator, e.g. (𝑠𝑠 − 1)2 ,
(𝑠𝑠 + 2), (𝑠𝑠 − 2)3 , etc.
Example 3.2.5
1
Evaluate ℒ −1 � �.
(𝑠𝑠 − 1)2 + 1
Solution
1 1
Step 1. 𝑎𝑎 = 1 and 𝐹𝐹(𝑠𝑠 − 1) = . So, 𝐹𝐹(𝑠𝑠) =
(𝑠𝑠 − 1)2 + 1 𝑠𝑠 2 + 1
1
Step 2. 𝑓𝑓(𝑡𝑡) = ℒ −1 � � = sin 𝑡𝑡
𝑠𝑠 2 +1
1
Step 3. ℒ −1 � � = 𝑒𝑒𝑡𝑡 sin 𝑡𝑡
(𝑠𝑠 − 1)2 + 1
Laplace Transforms 61
Example 3.2.6
2
Evaluate ℒ −1 � �.
(𝑠𝑠 + 1)3
Solution
2 2
Step 1. 𝑎𝑎 = −1 and 𝐹𝐹(𝑠𝑠 + 1) = . So, 𝐹𝐹(𝑠𝑠) =
(𝑠𝑠 + 1)3 𝑠𝑠 3
2 2!
Step 2. 𝑓𝑓(𝑡𝑡) = ℒ −1 � 3 � = ℒ −1 � 2+1 � = 𝑡𝑡 2
𝑠𝑠 𝑠𝑠
2
Step 3. ℒ −1 � � = 𝑒𝑒−𝑡𝑡 𝑡𝑡2
(𝑠𝑠 + 1)3
Example 3.2.7
Evaluate ℒ −1 [𝑒𝑒 2−𝑠𝑠 ].
Solution
Step 1. 𝑒𝑒 2−𝑠𝑠 = 𝑒𝑒 −(𝑠𝑠−2) ⇒ 𝑎𝑎 = 2 and 𝐹𝐹(𝑠𝑠 − 2) = 𝑒𝑒 −(𝑠𝑠−2) . So, 𝐹𝐹(𝑠𝑠) = 𝑒𝑒 −𝑠𝑠
Step 2. 𝑓𝑓(𝑡𝑡) = ℒ −1 [𝑒𝑒 −𝑠𝑠 ] = 𝛿𝛿(𝑡𝑡 − 1)
Step 3. ℒ −1 [𝑒𝑒 2−𝑠𝑠 ] = 𝑒𝑒 2𝑡𝑡 𝛿𝛿(𝑡𝑡 − 1)
y = f(t)
t
y = f(t-a)
t
y = f(t-a) U(t-a)
𝑦𝑦 = 𝑓𝑓(𝑡𝑡 − 𝑎𝑎)𝑈𝑈(𝑡𝑡 − 𝑎𝑎) is the truncated shift of 𝑦𝑦 = 𝑓𝑓(𝑡𝑡)
Figure 3.5. Graphs of 𝑓𝑓(𝑡𝑡), 𝑓𝑓(𝑡𝑡 − 𝑎𝑎), and 𝑓𝑓(𝑡𝑡 − 𝑎𝑎)𝑈𝑈(𝑡𝑡 − 𝑎𝑎)
Laplace Transforms 63
Theorem 3.3.1
If 𝐹𝐹(𝑠𝑠) = ℒ[𝑓𝑓(𝑡𝑡)], then
ℒ[𝑓𝑓(𝑡𝑡 − 𝑎𝑎) 𝑈𝑈(𝑡𝑡 − 𝑎𝑎)] = 𝑒𝑒−𝑎𝑎𝑎𝑎 𝐹𝐹(𝑠𝑠)
Proof
From Definition 3.1.1, we have
𝑅𝑅
ℒ[𝑓𝑓(𝑡𝑡 − 𝑎𝑎) 𝑈𝑈(𝑡𝑡 − 𝑎𝑎)] = lim � 𝑒𝑒 −𝑠𝑠𝑠𝑠 ⋅ 𝑓𝑓(𝑡𝑡 − 𝑎𝑎) 𝑈𝑈(𝑡𝑡 − 𝑎𝑎)𝑑𝑑𝑑𝑑
𝑅𝑅→∞ 0
𝑅𝑅 𝑅𝑅
= lim � 𝑒𝑒 −𝑠𝑠𝑠𝑠 𝑓𝑓(𝑡𝑡 − 𝑎𝑎)𝑑𝑑𝑑𝑑 = lim � 𝑒𝑒 −𝑠𝑠(𝑢𝑢+𝑎𝑎) 𝑓𝑓(𝑢𝑢)𝑑𝑑𝑑𝑑
𝑅𝑅→∞ 𝑎𝑎 𝑅𝑅→∞ 0
𝑅𝑅
−𝑎𝑎𝑎𝑎
= 𝑒𝑒 lim � 𝑒𝑒 −𝑠𝑠𝑠𝑠 𝑓𝑓(𝑢𝑢)𝑑𝑑𝑑𝑑 = 𝑒𝑒 −𝑎𝑎𝑎𝑎 𝐹𝐹(𝑠𝑠)
𝑅𝑅→∞ 0
Example 3.3.2
Evaluate ℒ[𝑡𝑡 𝑈𝑈(𝑡𝑡 − 1)].
Solution
Step 1. 𝑎𝑎 = 1 and 𝑓𝑓(𝑡𝑡 − 1) = 𝑡𝑡. So, 𝑓𝑓(𝑡𝑡) = 𝑡𝑡 + 1
1 1
Step 2. 𝐹𝐹(𝑠𝑠) = ℒ[𝑡𝑡 + 1] = +
𝑠𝑠 2 𝑠𝑠
1 1
Step 3. ℒ[𝑡𝑡 𝑈𝑈(𝑡𝑡 − 1)] = 𝑒𝑒−𝑠𝑠 � 2 + �
𝑠𝑠 𝑠𝑠
Example 3.3.3
Evaluate ℒ[sin 𝑡𝑡 𝑈𝑈(𝑡𝑡 − 𝜋𝜋)].
Solution
Step 1. 𝑎𝑎 = 𝜋𝜋 and 𝑓𝑓(𝑡𝑡 − 𝜋𝜋) = sin 𝑡𝑡. So, 𝑓𝑓(𝑡𝑡) = sin(𝑡𝑡 + 𝜋𝜋) = − sin 𝑡𝑡
−1
Step 2. 𝐹𝐹(𝑠𝑠) = ℒ[− sin 𝑡𝑡] =
𝑠𝑠 2+1
−1
Step 3. ℒ[sin 𝑡𝑡 𝑈𝑈(𝑡𝑡 − 𝜋𝜋)] = 𝑒𝑒−𝜋𝜋𝜋𝜋 � 2 �
𝑠𝑠 + 1
Example 3.3.4
Evaluate ℒ[(𝑡𝑡 2 − 1) 𝑈𝑈(𝑡𝑡 − 1)].
Solution
Step 1. 𝑎𝑎 = 1 and 𝑓𝑓(𝑡𝑡 − 1) = 𝑡𝑡 2 − 1. So, 𝑓𝑓(𝑡𝑡) = (𝑡𝑡 + 1)2 − 1 = 𝑡𝑡 2 + 2𝑡𝑡
2 2
Step 2. 𝐹𝐹(𝑠𝑠) = ℒ[𝑡𝑡 2 + 2𝑡𝑡] = +
𝑠𝑠 3 𝑠𝑠 2
2 2
Step 3. ℒ[(𝑡𝑡 2 − 1) 𝑈𝑈(𝑡𝑡 − 1)] = 𝑒𝑒−𝑠𝑠 � + �
𝑠𝑠3 𝑠𝑠2
Laplace Transforms 65
Step 3. Find 𝑓𝑓(𝑡𝑡 − 𝑎𝑎) and conclude ℒ −1 [𝑒𝑒 −𝑎𝑎𝑎𝑎 𝐹𝐹(𝑠𝑠)] = 𝑓𝑓(𝑡𝑡 − 𝑎𝑎)𝑈𝑈(𝑡𝑡 − 𝑎𝑎).
Remark. We observe the exponential factor 𝑒𝑒 −𝑎𝑎𝑎𝑎 to identify the value of 𝑎𝑎.
Example 3.3.5
1 1
Evaluate ℒ −1 �𝑒𝑒−𝑠𝑠 � + �� .
𝑠𝑠2 𝑠𝑠
Solution
1 1
Step 1. 𝑎𝑎 = 1 and 𝐹𝐹(𝑠𝑠) = +
𝑠𝑠 2 𝑠𝑠
1 1
Step 2. 𝑓𝑓(𝑡𝑡) = ℒ −1 � + � = 𝑡𝑡 + 1
𝑠𝑠 2 𝑠𝑠
Step 3. 𝑓𝑓(𝑡𝑡 − 1) = (𝑡𝑡 − 1) + 1 = 𝑡𝑡 and
1 1
ℒ −1 �𝑒𝑒 −𝑠𝑠 � 2 + �� = 𝑡𝑡 𝑈𝑈(𝑡𝑡 − 1)
𝑠𝑠 𝑠𝑠
Laplace Transforms 66
Example 3.3.6
−1
Evaluate ℒ −1 �𝑒𝑒−𝜋𝜋𝜋𝜋 � ��.
𝑠𝑠2+1
Solution
−1
Step 1. 𝑎𝑎 = 𝜋𝜋 and 𝐹𝐹(𝑠𝑠) =
𝑠𝑠 2+1
−1
Step 2. 𝑓𝑓(𝑡𝑡) = ℒ −1 � 2 � = − sin 𝑡𝑡
𝑠𝑠 + 1
Step 3. 𝑓𝑓(𝑡𝑡 − 𝜋𝜋) = − sin(𝑡𝑡 − 𝜋𝜋) = sin 𝑡𝑡 and
−1
ℒ −1 �𝑒𝑒 −𝜋𝜋𝜋𝜋 � 2 �� = sin 𝑡𝑡 𝑈𝑈(𝑡𝑡 − 𝜋𝜋)
𝑠𝑠 + 1
Example 3.3.7
2 2
Evaluate ℒ −1 �𝑒𝑒−𝑠𝑠 � 3 + 2 �� .
𝑠𝑠 𝑠𝑠
Solution
2 2
Step 1. 𝑎𝑎 = 1 and 𝐹𝐹(𝑠𝑠) = 3
+ 2
𝑠𝑠 𝑠𝑠
2 2 2! 1!
Step 2. 𝑓𝑓(𝑡𝑡) = ℒ −1 � 3 + 2 � = ℒ −1 � 2+1 � + 2ℒ −1 � 1+1 � = 𝑡𝑡 2 + 2𝑡𝑡
𝑠𝑠 𝑠𝑠 𝑠𝑠 𝑠𝑠
Step 3. 𝑓𝑓(𝑡𝑡 − 1) = (𝑡𝑡 − 1)2 + 2(𝑡𝑡 − 1) = 𝑡𝑡 2 − 1 and
2 2
ℒ −1 �𝑒𝑒 −𝑠𝑠 � 3
+ 2 �� = (𝑡𝑡 2 − 1) 𝑈𝑈(𝑡𝑡 − 1)
𝑠𝑠 𝑠𝑠
Laplace Transforms 67
3.4 Application
The Laplace transform and its inverse is useful for solving initial value problems (IVP)
involving linear differential equations. This algebraic technique provides an alternative
to those in Chapters 1 and 2. It is particularly useful when dealing with the unit-step
and delta functions. Figure 3.6 below illustrates the concept of the Laplace transform
(and its inverse) in solving IVPs.
ℒ ℒ −1
IVP algebraic form solution of IVP
The Laplace transform technique allows us to find the particular solution of higher
order linear ODEs efficiently. To use this technique, we need the Laplace transform of
the first and second order derivatives of the function 𝑓𝑓.
𝑑𝑑𝑑𝑑
ℒ � � = 𝑠𝑠𝑠𝑠(𝑠𝑠) − 𝑓𝑓(0)
𝑑𝑑𝑑𝑑
𝑑𝑑 2 𝑓𝑓
ℒ� � = 𝑠𝑠 2 𝐹𝐹(𝑠𝑠) − 𝑠𝑠𝑠𝑠(0) − 𝑓𝑓 ′ (0)
𝑑𝑑𝑡𝑡 2
Step 2. Substitute initial values 𝑓𝑓(0) and 𝑓𝑓′(0) and express 𝐹𝐹(𝑠𝑠) as the subject.
Compare the technique used in Example 3.4.1 below with that in Example 1.4.6 of
Chapter 1.
Laplace Transforms 68
Example 3.4.1
Solve the IVP:
𝑑𝑑𝑑𝑑
+ 𝑓𝑓 = 0
� 𝑑𝑑𝑑𝑑
𝑓𝑓(0) = 10
Solution
𝑑𝑑𝑑𝑑
ℒ� � + ℒ[𝑓𝑓] = ℒ[0] ⇒ �𝑠𝑠 𝐹𝐹(𝑠𝑠) − 𝑓𝑓(0)� + 𝐹𝐹(𝑠𝑠) = 0
𝑑𝑑𝑑𝑑
⇒ (𝑠𝑠 𝐹𝐹(𝑠𝑠) − 10) + 𝐹𝐹(𝑠𝑠) = 0
10
⇒ (𝑠𝑠 + 1) 𝐹𝐹(𝑠𝑠) = 10 ⇒ 𝐹𝐹(𝑠𝑠) =
𝑠𝑠 + 1
10
𝑓𝑓(𝑡𝑡) = ℒ −1 �𝑠𝑠+1� = 10 𝑒𝑒 −𝑡𝑡
In many cases, it is necessary to evaluate the inverse Laplace transform (in the last step
above) through Partial Fraction Decomposition (PFD), see Example 3.4.2 below.
Example 3.4.2
1
Use PFD to evaluate ℒ −1 � �.
𝑠𝑠(𝑠𝑠2+ 1)
Solution
1 𝐴𝐴 𝐵𝐵𝐵𝐵 + 𝐶𝐶
2
= + 2 ⇒ 1 = 𝐴𝐴(𝑠𝑠 2 + 1) + (𝐵𝐵𝐵𝐵 + 𝐶𝐶)𝑠𝑠
𝑠𝑠(𝑠𝑠 + 1) 𝑠𝑠 𝑠𝑠 + 1
Using coefficients comparison (or other method) we have 𝐴𝐴 = 1, 𝐵𝐵 = −1, 𝐶𝐶 = 0.
1 1 −𝑠𝑠 + 0 1 𝑠𝑠
ℒ −1 � � = ℒ −1
� + � = ℒ −1
� � − ℒ −1
� � = 1 − cos 𝑡𝑡
𝑠𝑠(𝑠𝑠 2 + 1) 𝑠𝑠 𝑠𝑠 2 + 1 𝑠𝑠 𝑠𝑠 2 + 1
Laplace Transforms 69
Example 3.4.3
Solve the IVP:
𝑑𝑑2 𝑓𝑓
⎧ 2 + 𝑓𝑓 = 1
⎪ 𝑑𝑑𝑡𝑡
⎨𝑓𝑓(0) = 0
⎪
⎩𝑓𝑓 ′ (0) = 0
Solution
𝑑𝑑 2 𝑓𝑓
ℒ � 2 � + ℒ[𝑓𝑓] = ℒ[1]
𝑑𝑑𝑡𝑡
1
⇒ �𝑠𝑠 2 𝐹𝐹(𝑠𝑠) − 𝑠𝑠𝑠𝑠(0) − 𝑓𝑓 ′ (0)� + 𝐹𝐹(𝑠𝑠) =
𝑠𝑠
1
⇒ (𝑠𝑠 2 𝐹𝐹(𝑠𝑠) − 0 − 0) + 𝐹𝐹(𝑠𝑠) =
𝑠𝑠
1
⇒ (𝑠𝑠 2 + 1)𝐹𝐹(𝑠𝑠) =
𝑠𝑠
1
⇒ 𝐹𝐹(𝑠𝑠) =
𝑠𝑠(𝑠𝑠 2 + 1)
Example 3.4.4
Solve the IVP:
𝑑𝑑2 𝑓𝑓
⎧ 2 = 2𝑈𝑈(𝑡𝑡 − 1)
⎪ 𝑑𝑑𝑡𝑡
⎨𝑓𝑓(0) = 0
⎪
⎩𝑓𝑓 ′ (0) = 0
Solution
𝑑𝑑 2 𝑓𝑓
ℒ � 2 � = 2ℒ[𝑈𝑈(𝑡𝑡 − 1)]
𝑑𝑑𝑡𝑡
2 ′ (0)
𝑒𝑒 −𝑠𝑠
⇒ 𝑠𝑠 𝐹𝐹(𝑠𝑠) − 𝑠𝑠𝑠𝑠(0) − 𝑓𝑓 =2
𝑠𝑠
𝑒𝑒 −𝑠𝑠
⇒ 𝑠𝑠 2 𝐹𝐹(𝑠𝑠) − 0 − 0 = 2
𝑠𝑠
𝑒𝑒 −𝑠𝑠 𝑒𝑒 −𝑠𝑠
⇒ 𝑠𝑠 2 𝐹𝐹(𝑠𝑠) = 2 ⇒ 𝐹𝐹(𝑠𝑠) = 2 3
𝑠𝑠 𝑠𝑠
2
𝑓𝑓(𝑡𝑡) = ℒ −1 �𝑒𝑒 −𝑠𝑠 � 3 �� = 𝑔𝑔(𝑡𝑡 − 1)𝑈𝑈(𝑡𝑡 − 1)
𝑠𝑠
2
𝐺𝐺(𝑠𝑠) = 3 ⇒ 𝑔𝑔(𝑡𝑡) = 𝑡𝑡 2 ⇒ 𝑔𝑔(𝑡𝑡 − 1) = (𝑡𝑡 − 1)2
𝑠𝑠
Thus, 𝑓𝑓(𝑡𝑡) = (𝑡𝑡 − 1)2 𝑈𝑈(𝑡𝑡 − 1).
Laplace Transforms 71
Example 3.4.5
A series circuit consists of an inductor of inductance 1H, a resistor of resistance 0.4 kΩ,
and a capacitor of capacitance 25 𝜇𝜇F. An impulse is applied onto the closed circuit so
that the charge 𝑞𝑞 (in coulomb) on the capacitor satisfies the differential equation
𝑑𝑑 2 𝑞𝑞 𝑑𝑑𝑑𝑑
2
+ 400 + 40000𝑞𝑞 = 100𝛿𝛿(𝑡𝑡 − 5)
𝑑𝑑𝑡𝑡 𝑑𝑑𝑑𝑑
Assuming zero initial conditions, express 𝑞𝑞 in terms of 𝑡𝑡.
Solution
𝑑𝑑 2 𝑞𝑞 𝑑𝑑𝑑𝑑
ℒ � 2 � + 400ℒ � � + 40000ℒ[𝑞𝑞] = 100ℒ[𝛿𝛿(𝑡𝑡 − 5)]
𝑑𝑑𝑡𝑡 𝑑𝑑𝑑𝑑
⇒ �𝑠𝑠 2 𝑄𝑄(𝑠𝑠) − 𝑠𝑠𝑠𝑠(0) − 𝑞𝑞 ′ (0)� + 400�𝑠𝑠𝑠𝑠(𝑠𝑠) − 𝑞𝑞(0)� + 40000 𝑄𝑄(𝑠𝑠) = 100𝑒𝑒 −5𝑠𝑠
⇒ 𝑠𝑠 2 𝑄𝑄(𝑠𝑠) + 400𝑠𝑠 𝑄𝑄(𝑠𝑠) + 40000 𝑄𝑄(𝑠𝑠) = 100𝑒𝑒 −5𝑠𝑠
⇒ (𝑠𝑠 2 + 400𝑠𝑠 + 40000) 𝑄𝑄(𝑠𝑠) = 100𝑒𝑒 −5𝑠𝑠
100 𝑒𝑒 −5s 100
⇒ 𝑄𝑄(𝑠𝑠) = 2 = 𝑒𝑒 −5𝑠𝑠 � �
𝑠𝑠 + 400𝑠𝑠 + 40000 (𝑠𝑠 + 200)2
100
𝑞𝑞(𝑡𝑡) = ℒ −1 �𝑒𝑒 −5𝑠𝑠 � �� = 𝑓𝑓(𝑡𝑡 − 5)𝑈𝑈(𝑡𝑡 − 5)
(𝑠𝑠 + 200)2
100 100
𝐹𝐹(𝑠𝑠) = ⇒ 𝑓𝑓(𝑡𝑡) = ℒ −1 � � = 𝑒𝑒 −200𝑡𝑡 𝑔𝑔(𝑡𝑡)
(𝑠𝑠 + 200) 2 (𝑠𝑠 + 200)2
100 100
𝐺𝐺(𝑠𝑠 + 200) = ⇒ 𝐺𝐺(𝑠𝑠) = 2 ⇒ 𝑔𝑔(𝑡𝑡) = 100𝑡𝑡
(𝑠𝑠 + 200) 2 𝑠𝑠
100
𝑓𝑓(𝑡𝑡) = ℒ −1 � � = 𝑒𝑒 −200𝑡𝑡 (100𝑡𝑡)
(𝑠𝑠 + 200)2
Thus, 𝑞𝑞(𝑡𝑡) = 𝑓𝑓(𝑡𝑡 − 5)𝑈𝑈(𝑡𝑡 − 5) = 100 𝑒𝑒 −200(𝑡𝑡−5) (𝑡𝑡 − 5) 𝑈𝑈(𝑡𝑡 − 5).
Laplace Transforms 72
3.5 Exercises
1. Evaluate the following Laplace transforms (see Examples 3.1.2 and 3.1.3).
(a) ℒ[1 + 𝑡𝑡] (c) ℒ[2𝑡𝑡 2 + 𝑒𝑒 2𝑡𝑡 ]
2. Evaluate the following inverse Laplace transforms (see Examples 3.1.2 and 3.1.3).
2 1 4 3 1
(a) ℒ −1 � 3 + 2 � (c) ℒ −1 � 5 + 4 − �
𝑠𝑠 𝑠𝑠 𝑠𝑠 𝑠𝑠 𝑠𝑠 + 5
1 1 2 1
(b) ℒ −1 � − � (d) ℒ −1 � − �
𝑠𝑠 𝑠𝑠 − 4 𝑠𝑠 + 1 𝑠𝑠 − 2
(b) ℒ[sin 𝑡𝑡 − cos 𝑡𝑡] (d) ℒ[sin 5𝑡𝑡 − sin 𝑡𝑡 + cos 2𝑡𝑡]
4. Evaluate the following inverse Laplace transforms (see Examples 3.1.3 and 3.1.4).
2 2 𝑠𝑠 + 3
(a) ℒ −1 � 2 + � (c) ℒ −1 � 2 �
𝑠𝑠 + 1 𝑠𝑠 + 1 𝑠𝑠 + 9
1 1 2 − 3𝑠𝑠
(b) ℒ −1 � + 2 � (d) ℒ −1 � �
𝑠𝑠 + 4 𝑠𝑠 + 4 𝑠𝑠 2 + 25
Laplace Transforms 73
8. The graphs of 𝑓𝑓(𝑡𝑡) is given below. Express 𝑓𝑓(𝑡𝑡) in terms of unit-step functions,
and evaluate ℒ[𝑓𝑓(𝑡𝑡)] (see Example 3.1.6).
y y
3
2
2
(a) 1 (c)
1
t t
1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8
y y
2 2
(b) 1 (d) 1
t t
1 2 3 4 5 6 7 8 -1 1 2 3 4 5 6 7
10. Evaluate the following inverse Laplace transforms (see Examples 3.2.5 – 3.2.7).
1 −1
𝑠𝑠
(a) ℒ −1 � � (c) ℒ � �
(𝑠𝑠 − 2)2 + 1 (𝑠𝑠 − 1)2 + 4
2 𝑠𝑠 − 2
(b) ℒ −1 � � (d) ℒ −1 � �
(𝑠𝑠 − 1)3 (𝑠𝑠 + 2)2 + 4
Laplace Transforms 75
11. Evaluate the following Laplace transforms (see Examples 3.3.2 – 3.3.4).
(a) ℒ[𝑡𝑡 2 𝑈𝑈(𝑡𝑡 − 2)] (c) ℒ[(2𝑡𝑡 + 1) 𝑈𝑈(𝑡𝑡 − 5)]
𝜋𝜋
(b) ℒ �sin 𝑡𝑡 𝑈𝑈 �𝑡𝑡 − �� (d) ℒ[(𝑡𝑡 3 − 1) 𝑈𝑈(𝑡𝑡 − 1)]
2
12. Evaluate the following inverse Laplace transforms (see Examples 3.3.5 – 3.3.7).
𝑒𝑒−𝑠𝑠 𝑠𝑠 + 3
(a) ℒ −1 � 3 � (c) ℒ −1 �𝑒𝑒−𝜋𝜋𝜋𝜋 � 2 ��
𝑠𝑠 𝑠𝑠 + 9
2 1 2𝑠𝑠 − 5
(b) ℒ −1 �𝑒𝑒−2𝑠𝑠 � 3 + 2 �� (d) ℒ −1 �𝑒𝑒−2𝜋𝜋𝜋𝜋 � 2 ��
𝑠𝑠 𝑠𝑠 𝑠𝑠 + 4
15. Evaluate the following inverse Laplace transforms (see Example 3.4.2).
𝑠𝑠 − 1 3
(a) ℒ −1 � 2 � (c) ℒ −1 � 2 �
𝑠𝑠(𝑠𝑠 + 1) 𝑠𝑠 (𝑠𝑠 − 3)
𝑠𝑠 6
(b) ℒ −1 � � (d) ℒ −1 � �
𝑠𝑠 2 − 1 (𝑠𝑠 2 + 1)(𝑠𝑠 2 + 4)
Laplace Transforms 76
17. Solve the following IVPs using Laplace transform (see Examples 3.4.3 – 3.4.4).
𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑
= 𝑈𝑈(𝑡𝑡 − 1) = 𝑡𝑡 𝑈𝑈(𝑡𝑡 − 2)
(a) � 𝑑𝑑𝑑𝑑 (c) � 𝑑𝑑𝑑𝑑
𝑓𝑓(0) = 3 𝑓𝑓(0) = 4
𝑑𝑑 2 𝑓𝑓 𝑑𝑑2 𝑓𝑓
⎧ 2 + 𝑓𝑓 = 1 − 𝑈𝑈(𝑡𝑡 − 1) ⎧ 2 + 𝑓𝑓 = 𝛿𝛿(𝑡𝑡 − 1)
⎪ 𝑑𝑑𝑡𝑡 ⎪ 𝑑𝑑𝑡𝑡
(b) (d)
⎨𝑓𝑓(0) = 0 ⎨𝑓𝑓(0) = 0
⎪ ⎪
⎩𝑓𝑓 ′ (0) = 0 ⎩𝑓𝑓 ′ (0) = 2
20. A spring of stiffness 10 N/m lies on a smooth horizontal surface with a smooth
ball of unit mass is attached to its end, while the other end is fixed to a wall. Let 𝑥𝑥
be the displacement of the ball from its equilibrium position. An impulse force
acts on the ball so that its harmonic motion satisfies the differential equation
𝑑𝑑 2 𝑥𝑥
+ 4𝑥𝑥 = 𝛿𝛿(𝑡𝑡 − 𝜋𝜋).
𝑑𝑑𝑡𝑡 2
Express the displacement 𝑥𝑥 as a function of 𝑡𝑡.
− END OF CHAPTER 3 −
Chapter 4
Fourier Series
Learning Objectives
By the end of this chapter, students should be able to
1. define periodic functions;
2. describe the symmetric properties of even and odd periodic functions;
3. find the Fourier series of a periodic function.
We begin with Section 4.1 by defining the periodic function. The Fourier series
formula follows immediately in Section 4.2, where we work through a few
typical examples. Section 4.3 is devoted to the Fourier series of even/odd
functions; their Fourier series take simpler forms. A simple application of
Fourier series is presented in Section 4.4 and exercises are given in Section 4.5
for further practice.
78
Fourier Series 79
Example 4.1.2
Sketch the following functions and determine their periods:
(a) 𝑦𝑦 = sin 𝑡𝑡
(b) 𝑦𝑦 = cos 𝑡𝑡
Solution
(a) y = sin t y (b) y = cos t y
1 1
t t
-3π -2π -π π 2π 3π -3π -2π -π π 2π 3π
-1 -1
A function 𝑓𝑓(𝑡𝑡) defined on the interval −𝐿𝐿 < 𝑡𝑡 < 𝐿𝐿 can be extended to a 2𝐿𝐿-
periodic function by imposing the condition 𝑓𝑓(𝑡𝑡) = 𝑓𝑓(𝑡𝑡 + 2𝐿𝐿) for all 𝑡𝑡, as
shown in Examples 4.1.3 and 4.1.4.
Fourier Series 80
Example 4.1.3
0 for −𝜋𝜋 < 𝑡𝑡 < 0
(a) Sketch the graph of 𝑓𝑓(𝑡𝑡) = � on the interval
1 for 0 < 𝑡𝑡 < 𝜋𝜋
−𝜋𝜋 < 𝑡𝑡 < 𝜋𝜋.
(b) Hence, sketch the periodic extension 𝑓𝑓(𝑡𝑡) = 𝑓𝑓(𝑡𝑡 + 2𝜋𝜋) for all 𝑡𝑡 on the
interval −3𝜋𝜋 < 𝑡𝑡 < 3𝜋𝜋.
Solution
(a) y
t
-3π -2π -π π 2π 3π
(b) y
t
-3π -2π -π π 2π 3π
Fourier Series 81
Example 4.1.4
Sketch three cycles of the graph of the following periodic functions and
determine their periods.
0 for −𝜋𝜋 < 𝑡𝑡 < 0
(a) 𝑓𝑓(𝑡𝑡) = � and 𝑓𝑓(𝑡𝑡) = 𝑓𝑓(𝑡𝑡 + 2𝜋𝜋)
𝑡𝑡 for 0 < 𝑡𝑡 < 𝜋𝜋
−1 for −1 < 𝑡𝑡 < 0
(b) 𝑔𝑔(𝑡𝑡) = � and 𝑔𝑔(𝑡𝑡) = 𝑔𝑔(𝑡𝑡 + 2)
1 for 0 < 𝑡𝑡 < 1
Solution
(a) y period = 2𝜋𝜋
π
y=t
π/2
y=0 t
-3π -2π -π π 2π 3π
(b) y period = 2
1
y=1
t
-3 -2 -1 1 2 3
y = −1
-1
Fourier Series 82
where 𝑎𝑎0 , 𝑎𝑎𝑛𝑛 , and 𝑏𝑏𝑛𝑛 are the Fourier coefficients given by
2 𝑇𝑇/2
𝑎𝑎0 = � 𝑓𝑓(𝑡𝑡) 𝑑𝑑𝑑𝑑
𝑇𝑇 −𝑇𝑇/2
2 𝑇𝑇/2 2𝑛𝑛𝑛𝑛𝑛𝑛
𝑎𝑎𝑛𝑛 = � 𝑓𝑓(𝑡𝑡) cos � � 𝑑𝑑𝑑𝑑 for 𝑛𝑛 = 1,2,3, …
𝑇𝑇 −𝑇𝑇/2 𝑇𝑇
2 𝑇𝑇/2 2𝑛𝑛𝑛𝑛𝑛𝑛
𝑏𝑏𝑛𝑛 = � 𝑓𝑓(𝑡𝑡) sin � � 𝑑𝑑𝑑𝑑 for 𝑛𝑛 = 1,2,3, …
𝑇𝑇 −𝑇𝑇/2 𝑇𝑇
In Step 4 of the procedure above, the Fourier coefficients 𝑎𝑎𝑛𝑛 or 𝑏𝑏𝑛𝑛 can be
simplified if they contain either the factor of (1 − (−1)𝑛𝑛 ) or (1 + (−1)𝑛𝑛 ). This
is done by observing its alternating values as follows.
Example 4.2.2
∞ ∞
1 − (−1)𝑛𝑛 2
(a) �� � sin(𝑛𝑛𝑛𝑛𝑛𝑛) = � sin�(2𝑘𝑘 − 1)𝜋𝜋𝜋𝜋�
𝑛𝑛𝑛𝑛 (2𝑘𝑘 − 1)𝜋𝜋
𝑛𝑛=1 𝑘𝑘=1
∞ ∞
1 + (−1)𝑛𝑛 2
(b) �� � sin(𝑛𝑛𝑛𝑛𝑛𝑛) = � sin(2𝑘𝑘𝑘𝑘𝑘𝑘)
𝑛𝑛𝑛𝑛 2𝑘𝑘𝑘𝑘
𝑛𝑛=1 𝑘𝑘=1
Fourier Series 84
Example 4.2.3
Calculate the Fourier series of 𝑓𝑓(𝑡𝑡) given by
0 for −1 < 𝑡𝑡 < 0
𝑓𝑓(𝑡𝑡) = � and 𝑓𝑓(𝑡𝑡) = 𝑓𝑓(𝑡𝑡 + 2).
1 for 0 < 𝑡𝑡 < 1
Solution
Step 1. 𝑓𝑓(𝑡𝑡) = 𝑓𝑓(𝑡𝑡 + 2) ⇒ 𝑇𝑇 = 2
1 1
2
Step 2. 𝑎𝑎0 = � 𝑓𝑓(𝑡𝑡)𝑑𝑑𝑑𝑑 = 0 + � 1 𝑑𝑑𝑑𝑑 = 1 .
2
−1 0
1 1
2 2𝑛𝑛𝑛𝑛𝑛𝑛
𝑎𝑎𝑛𝑛 = � 𝑓𝑓(𝑡𝑡) cos � � 𝑑𝑑𝑑𝑑 = 0 + � 1 ∙ cos(𝑛𝑛𝑛𝑛𝑛𝑛) 𝑑𝑑𝑑𝑑
2 2
−1 0
1
sin(𝑛𝑛𝑛𝑛𝑛𝑛) sin(𝑛𝑛𝑛𝑛) sin(0)
=� � = − = 0.
𝑛𝑛𝑛𝑛 0
𝑛𝑛𝑛𝑛 𝑛𝑛𝑛𝑛
1 1
2 2𝑛𝑛𝑛𝑛𝑛𝑛
𝑏𝑏𝑛𝑛 = � 𝑓𝑓(𝑡𝑡) sin � � 𝑑𝑑𝑑𝑑 = 0 + � 1 ∙ sin(𝑛𝑛𝑛𝑛𝑛𝑛) 𝑑𝑑𝑑𝑑
2 2
−1 0
1
− cos(𝑛𝑛𝑛𝑛𝑛𝑛) cos(𝑛𝑛𝑛𝑛) cos(0) 1 − (−1)𝑛𝑛
=� � =− + = .
𝑛𝑛𝑛𝑛 0
𝑛𝑛𝑛𝑛 𝑛𝑛𝑛𝑛 𝑛𝑛𝑛𝑛
∞
1 1 − (−1)𝑛𝑛
Step 3. The Fourier series of 𝑓𝑓(𝑡𝑡) is 𝑓𝑓(𝑡𝑡) = + � � � sin(𝑛𝑛𝑛𝑛𝑛𝑛) .
2 𝑛𝑛𝑛𝑛
𝑛𝑛=1
∞
1 2
Step 4. 𝑓𝑓(𝑡𝑡) = + � sin�(2𝑘𝑘 − 1)𝜋𝜋𝜋𝜋� , cf. Example 4.2.2(a).
2 (2𝑘𝑘 − 1)𝜋𝜋
𝑘𝑘=1
Fourier Series 85
Let us consider the Fourier series of the function 𝑓𝑓(𝑡𝑡) in Example 4.2.3.
Denoting the 𝑛𝑛-th partial sum of the Fourier series as
𝑛𝑛
1 2
𝑆𝑆𝑛𝑛 (𝑡𝑡) = + � sin�(2𝑘𝑘 − 1)𝜋𝜋𝜋𝜋�,
2 (2𝑘𝑘 − 1)𝜋𝜋
𝑘𝑘=1
we can see graphically how 𝑆𝑆𝑛𝑛 (𝑡𝑡) approximates 𝑓𝑓(𝑡𝑡) as 𝑛𝑛 gets larger, as shown
in Figure 4.1 below.
y y
1 1
0 t 0 t
-4 -3 -2 -1 0 1 2 3 4 -4 -3 -2 -1 0 1 2 3 4
(a) 𝑓𝑓(𝑡𝑡) vs. 𝑆𝑆1 (𝑡𝑡) (b) 𝑓𝑓(𝑡𝑡) vs. 𝑆𝑆2 (𝑡𝑡)
y y
1 1
0 t t
0
-4 -3 -2 -1 0 1 2 3 4 -4 -3 -2 -1 0 1 2 3 4
(c) 𝑓𝑓(𝑡𝑡) vs. 𝑆𝑆3 (𝑡𝑡) (d) 𝑓𝑓(𝑡𝑡) vs. 𝑆𝑆6 (𝑡𝑡)
We observe from the graphs in Figure 4.1 above that as 𝑛𝑛 gets larger, the
graphs of 𝑆𝑆𝑛𝑛 (𝑡𝑡) resemble that of 𝑓𝑓(𝑡𝑡) more and more.
Fourier Series 86
Example 4.2.4
Calculate the Fourier series of 𝑓𝑓(𝑡𝑡) given by
0 for −𝜋𝜋 < 𝑡𝑡 < 0
𝑓𝑓(𝑡𝑡) = � and 𝑓𝑓(𝑡𝑡) = 𝑓𝑓(𝑡𝑡 + 2𝜋𝜋).
𝑡𝑡 for 0 < 𝑡𝑡 < 𝜋𝜋
Solution
Step 1. 𝑓𝑓(𝑡𝑡) = 𝑓𝑓(𝑡𝑡 + 2𝜋𝜋) ⇒ 𝑇𝑇 = 2𝜋𝜋.
𝜋𝜋 𝝅𝝅 𝜋𝜋
2 1 1 𝑡𝑡 2 𝜋𝜋
Step 2. 𝑎𝑎0 = 2𝜋𝜋 � 𝑓𝑓(𝑡𝑡)𝑑𝑑𝑑𝑑 = 𝜋𝜋 �0 + � 𝑡𝑡 𝑑𝑑𝑑𝑑� = 𝜋𝜋 � 2 � = 2 .
−𝜋𝜋 0 0
𝜋𝜋 𝜋𝜋
2 2𝑛𝑛𝑛𝑛𝑛𝑛 1
𝑎𝑎𝑛𝑛 = � 𝑓𝑓(𝑡𝑡) cos � � 𝑑𝑑𝑑𝑑 = �0 + � 𝑡𝑡 ∙ cos(𝑛𝑛𝑛𝑛) 𝑑𝑑𝑑𝑑�
2𝜋𝜋 2𝜋𝜋 𝜋𝜋
−𝜋𝜋 0
𝜋𝜋
1 𝑡𝑡 sin(𝑛𝑛𝑛𝑛) cos(𝑛𝑛𝑛𝑛) 1 𝜋𝜋 sin(𝑛𝑛𝑛𝑛) cos(𝑛𝑛𝑛𝑛) 1 cos 0
= � + 2 � = � + 2 � − �0 + 2 �
𝜋𝜋 𝑛𝑛 𝑛𝑛 0
𝜋𝜋 𝑛𝑛 𝑛𝑛 𝜋𝜋 𝑛𝑛
1 (−1)𝑛𝑛 1 (−1)𝑛𝑛 − 1
= �0 + − 2� = .
𝜋𝜋 𝑛𝑛2 𝑛𝑛 𝜋𝜋𝑛𝑛2
−(−1)𝑛𝑛
Similarly, 𝑏𝑏𝑛𝑛 = .
𝑛𝑛
∞ ∞
𝜋𝜋 2 cos(2𝑘𝑘 − 1)𝑡𝑡 (−1)𝑛𝑛
Step 4. 𝑓𝑓(𝑡𝑡) = − � − � sin(𝑛𝑛𝑛𝑛).
4 𝜋𝜋 (2𝑘𝑘 − 1)2 𝑛𝑛
𝑘𝑘=1 𝑛𝑛=1
Fourier Series 87
Remark. The graph of an even function is symmetrical about the vertical axis,
while the graph of an odd function is symmetrical about the origin. There are
also functions that are neither even nor odd.
Example 4.3.2
(a) The function ℎ(𝑡𝑡) given by
ℎ(𝑡𝑡) = |𝑡𝑡| for −1 < 𝑡𝑡 < 1 and ℎ(𝑡𝑡) = ℎ(𝑡𝑡 + 2)
is an even function. Its graph is symmetric about the vertical axis in
Figure 4.2.
y
1
0.5
t
-3 -2 -1 1 2 3
Figure 4.2. Graph of ℎ(𝑡𝑡)
Fourier Series 88
t
-3π -2π -π π 2π 3π
-π
Figure 4.3. Graph of 𝑦𝑦(𝑡𝑡)
(c) The function 𝑓𝑓(𝑡𝑡) defined in Example 4.1.4(a) is neither even nor odd.
Observe that its graph if not symmetrical about the vertical axis, neither
is it symmetrical about the origin.
𝐿𝐿
Proof
𝐿𝐿 0 𝐿𝐿 0 𝐿𝐿
𝐿𝐿 0 𝐿𝐿 0 𝐿𝐿
= − � 𝑔𝑔(𝑢𝑢)𝑑𝑑𝑑𝑑 + � 𝑔𝑔(𝑡𝑡)𝑑𝑑𝑑𝑑 = 0
0 0
Fourier Series 90
Example 4.3.5
𝜋𝜋
𝜋𝜋 𝜋𝜋
(b) 𝑦𝑦 = sin 𝑡𝑡 sin 𝑛𝑛𝑛𝑛 is an even function, and � sin 𝑡𝑡 cos 𝑛𝑛𝑛𝑛 𝑑𝑑𝑑𝑑 = 2 � sin 𝑡𝑡 cos 𝑛𝑛𝑛𝑛 𝑑𝑑𝑑𝑑 .
−𝜋𝜋 0
𝜋𝜋
𝜋𝜋 𝜋𝜋
(d) 𝑦𝑦 = 𝑡𝑡 2 cos 𝑛𝑛𝑛𝑛 is an even function, and � 𝑡𝑡 2 cos 𝑛𝑛𝑛𝑛 𝑑𝑑𝑑𝑑 = 2 � 𝑡𝑡 2 cos 𝑛𝑛𝑛𝑛 𝑑𝑑𝑑𝑑 .
−𝜋𝜋 0
Proof
From Theorem 4.3.4, it is sufficient to show that for each case, the
corresponding Fourier coefficient has odd function integrand.
2𝑛𝑛𝑛𝑛𝑛𝑛
(a) 𝑓𝑓(𝑡𝑡) is an even function ⇒ 𝑓𝑓(𝑡𝑡) sin � � is an odd function.
𝑇𝑇
2𝑛𝑛𝑛𝑛𝑛𝑛
(b) 𝑓𝑓(𝑡𝑡) is an odd function ⇒ 𝑓𝑓(𝑡𝑡) cos � � is an odd function.
𝑇𝑇
Fourier Series 91
Example 4.3.7
Calculate the Fourier series of 𝑓𝑓(𝑡𝑡) given by
−1 if −𝜋𝜋 < 𝑡𝑡 < 0
𝑓𝑓(𝑡𝑡) = � and 𝑓𝑓(𝑡𝑡) = 𝑓𝑓(𝑡𝑡 + 2𝜋𝜋).
1 if 0 < 𝑡𝑡 < 𝜋𝜋
Solution
Step 1. 𝑓𝑓(𝑡𝑡) = 𝑓𝑓(𝑡𝑡 + 2𝜋𝜋) ⇒ 𝑇𝑇 = 2𝜋𝜋.
Step 2. The graph of 𝑓𝑓(𝑡𝑡) is symmetrical about the origin (cf. Example
4.1.4(b)), so 𝑓𝑓(𝑡𝑡) is an odd function, and hence, 𝑎𝑎0 = 𝑎𝑎𝑛𝑛 = 0 for all
positive integers of 𝑛𝑛.
𝜋𝜋
1
𝑏𝑏𝑛𝑛 = � 𝑓𝑓(𝑡𝑡) sin(𝑛𝑛𝑛𝑛) 𝑑𝑑𝑑𝑑
𝜋𝜋
−𝜋𝜋
𝜋𝜋
2
= � 𝑓𝑓(𝑡𝑡) sin(𝑛𝑛𝑛𝑛) 𝑑𝑑𝑑𝑑 since 𝑓𝑓(𝑡𝑡) sin(𝑛𝑛𝑛𝑛) is an even function
𝜋𝜋
0
𝜋𝜋 𝜋𝜋
2 2 − cos(𝑛𝑛𝑛𝑛) 2 − cos(𝑛𝑛𝑛𝑛) + cos 0
= � 1 ⋅ sin(𝑛𝑛𝑛𝑛) 𝑑𝑑𝑑𝑑 = � � = � �
𝜋𝜋 𝜋𝜋 𝑛𝑛 0
𝜋𝜋 𝑛𝑛
0
2 1 − (−1)𝑛𝑛
= � � for all positive integers 𝑛𝑛.
𝜋𝜋 𝑛𝑛
∞
2 1 − (−1)𝑛𝑛
Step 3. The Fourier series of 𝑓𝑓(𝑡𝑡) is 𝑓𝑓(𝑡𝑡) = � � � sin(𝑛𝑛𝑛𝑛) .
𝜋𝜋 𝑛𝑛
𝑛𝑛=1
∞
4 sin�(2𝑘𝑘 − 1)𝑡𝑡�
Step 4. 𝑓𝑓(𝑡𝑡) = �
𝜋𝜋 2𝑘𝑘 − 1
𝑘𝑘=1
Fourier Series 92
Example 4.3.8
Calculate the Fourier series of Sawtooth function 𝑓𝑓(𝑡𝑡) given by
𝑓𝑓(𝑡𝑡) = 𝑡𝑡 for −𝜋𝜋 < 𝑡𝑡 < 𝜋𝜋 and 𝑓𝑓(𝑡𝑡) = 𝑓𝑓(𝑡𝑡 + 2𝜋𝜋).
Solution
Step 1. 𝑓𝑓(𝑡𝑡) = 𝑓𝑓(𝑡𝑡 + 2𝜋𝜋) ⇒ 𝑇𝑇 = 2𝜋𝜋.
Step 2. The graph of 𝑓𝑓(𝑡𝑡) is symmetrical about the origin (cf. Example
4.3.2(b)), so 𝑓𝑓(𝑡𝑡) is an odd function, and hence, 𝑎𝑎0 = 𝑎𝑎𝑛𝑛 = 0 for all
positive integers of 𝑛𝑛.
𝜋𝜋
1
𝑏𝑏𝑛𝑛 = � 𝑓𝑓(𝑡𝑡) sin(𝑛𝑛𝑛𝑛) 𝑑𝑑𝑑𝑑
𝜋𝜋
−𝜋𝜋
𝜋𝜋
2
= � 𝑓𝑓(𝑡𝑡) sin(𝑛𝑛𝑛𝑛) 𝑑𝑑𝑑𝑑 since 𝑓𝑓(𝑡𝑡) sin(𝑛𝑛𝑛𝑛) is an even function
𝜋𝜋
0
𝜋𝜋 𝜋𝜋
2 2 𝑡𝑡 cos(𝑛𝑛𝑛𝑛) sin(𝑛𝑛𝑛𝑛)
= � 𝑡𝑡 sin(𝑛𝑛𝑛𝑛) 𝑑𝑑𝑑𝑑 = �− + �
𝜋𝜋 𝜋𝜋 𝑛𝑛 𝑛𝑛2 0
0
2 𝜋𝜋(−1)𝑛𝑛 0 2(−1)𝑛𝑛+1
= ��− + �� = for all positive integers 𝑛𝑛.
𝜋𝜋 𝑛𝑛 𝑛𝑛 𝑛𝑛
∞
(−1)𝑛𝑛+1
Step 3. The Fourier series of 𝑓𝑓(𝑡𝑡) is 𝑓𝑓(𝑡𝑡) = 2 � sin(𝑛𝑛𝑛𝑛).
𝑛𝑛
𝑛𝑛=1
Fourier Series 93
Example 4.3.9
Calculate the Fourier series of 𝑓𝑓(𝑡𝑡) given by
𝑓𝑓(𝑡𝑡) = |𝑡𝑡| for −1 < 𝑡𝑡 < 1 and 𝑓𝑓(𝑡𝑡) = 𝑓𝑓(𝑡𝑡 + 2).
Solution
Step 1. 𝑓𝑓(𝑡𝑡) = 𝑓𝑓(𝑡𝑡 + 2) ⇒ 𝑇𝑇 = 2.
Step 2. The graph of 𝑓𝑓(𝑡𝑡) is symmetrical about the vertical axis (cf.
Example 4.3.2(a)), so 𝑓𝑓(𝑡𝑡) is an even function, and hence, 𝑏𝑏𝑛𝑛 = 0
for all positive integers of 𝑛𝑛.
1 1 1
1
𝑎𝑎0 = � 𝑓𝑓(𝑡𝑡)𝑑𝑑𝑑𝑑 = 2 � 𝑓𝑓(𝑡𝑡)𝑑𝑑𝑑𝑑 = 2 � 𝑡𝑡 𝑑𝑑𝑑𝑑 = �𝑡𝑡 2 � = 1
0
−1 0 0
1 1
(−1)𝑛𝑛 − 1
= 2� � for all positive integers 𝑛𝑛.
(𝑛𝑛𝑛𝑛)2
∞
1 4 cos�(2𝑘𝑘 − 1)𝜋𝜋𝜋𝜋�
Step 4. 𝑓𝑓(𝑡𝑡) = − 2 � (2𝑘𝑘 − 1)2
.
2 𝜋𝜋
𝑛𝑛=1
Fourier Series 94
4.4 Applications
In this section, we will see how Fourier series can be used to find the exact
value of certain infinite series.
Example 4.4.1
Use the Fourier series of the Sawtooth function in Example 4.3.8 to calculate
the exact value of the infinite series
1 1 1 1
1 − + − + − ⋯,
3 5 7 9
leaving the answer in terms of 𝜋𝜋.
Solution
From Example 4.3.8,
∞
(−1)𝑛𝑛+1
𝑡𝑡 = 2 � sin(𝑛𝑛𝑛𝑛) for − 𝜋𝜋 < 𝑡𝑡 < 𝜋𝜋
𝑛𝑛
𝑛𝑛=1
𝜋𝜋
Substituting 𝑡𝑡 = 2 into the Fourier series above, we have
∞
𝜋𝜋 (−1)𝑛𝑛+1 𝑛𝑛𝑛𝑛
=2 � sin � �
2 𝑛𝑛 2
𝑛𝑛=1
𝜋𝜋 3𝜋𝜋 5𝜋𝜋
sin 2 sin 𝜋𝜋 sin 2 sin 2𝜋𝜋 sin 2 sin 3𝜋𝜋
= 2� − + − + − +⋯�
1 2 3 4 5 6
−1 1 −1
= 2 �1 − 0 + −0+ −0+ −0+⋯�
3 5 7
So,
𝜋𝜋 1 1 1
= 1− + − +⋯
4 3 5 7
Fourier Series 95
4.5 Exercises
2(a) to (d). Calculate the Fourier series of the functions in Problem 1(a) to (d),
respectively (See Example 4.2.3).
4(a) to (d). Calculate the Fourier series of the functions in Problem 2(a) to (d),
respectively (See Example 4.2.4).
5. Sketch three cycles of the following periodic functions, and for each
function, determine whether it is even or odd function (See Example
4.3.2).
−3 if −1 < 𝑡𝑡 < 0
(a) 𝑓𝑓(𝑡𝑡) = � and 𝑓𝑓(𝑡𝑡) = 𝑓𝑓(𝑡𝑡 + 2)
3 if 0 < 𝑡𝑡 < 1
𝑡𝑡 if −𝜋𝜋 < 𝑡𝑡 ≤ 0
(b) 𝑓𝑓(𝑡𝑡) = � and 𝑓𝑓(𝑡𝑡) = 𝑓𝑓(𝑡𝑡 + 2𝜋𝜋)
−𝑡𝑡 if 0 < 𝑡𝑡 < 𝜋𝜋
1 + 𝑡𝑡 if −1 < 𝑡𝑡 ≤ 0
(c) 𝑓𝑓(𝑡𝑡) = � and 𝑓𝑓(𝑡𝑡) = 𝑓𝑓(𝑡𝑡 + 2)
1 − 𝑡𝑡 if 0 < 𝑡𝑡 < 1
(d) 𝑓𝑓(𝑡𝑡) = −2𝑡𝑡 for − 𝜋𝜋 < 𝑡𝑡 < 𝜋𝜋 and 𝑓𝑓(𝑡𝑡) = 𝑓𝑓(𝑡𝑡 + 2𝜋𝜋)
6(a) to (d). Calculate the Fourier series for the functions in Problem 5(a) to (d),
respectively (See Examples 4.3.7 – 4.3.9).
9. Use the Fourier series of 𝑓𝑓(𝑡𝑡) in Problem 5(b) to calculate the exact value
of the following infinite series, leaving the answer in terms of 𝜋𝜋.
1 1 1 1
(a) 2
+ 2+ 2+ 2+⋯
1 3 5 7
1 1 1 1
(b) + + + +⋯ (rearrangement of terms is allowed here)
12 22 32 42
1 1 1 1
(c) 4
+ 4+ 4+ 4+⋯ by using the Parseval’s Identity
1 2 3 4
𝑇𝑇/2 ∞
2 2
𝑎𝑎02
� [𝑓𝑓(𝑡𝑡)] 𝑑𝑑𝑑𝑑 = + �(𝑎𝑎𝑛𝑛2 + 𝑏𝑏𝑛𝑛2 )
𝑇𝑇 2
−𝑇𝑇/2 𝑛𝑛=1
∞
1
Remark. The infinite series � is called the Riemann Zeta function.
𝑘𝑘 𝑠𝑠
𝑘𝑘=1
− END OF CHAPTER 4 −