Uploaded by u20512717

WTW 238

advertisement
WTW 238 – Mathematics
Study Notes
Source: Class notes & Textbook
Theme 1: Linear systems of differential equations
Theme 2: Sequences and series of real numbers
Theme 3: Power series
Theme 4: Fourier series
Theme 5: Partial differential equations
Theme 1: Linear systems of differential equations
8 Lectures [week 1 & 2]
This theme will carry on from WTW 256 using the eigenvalue – eigenvector method to solve
systems of linear systems of differential equations. Special attention will be given to repeated
eigenvalues, non-homogenous systems and second order linear systems.
Theme 1.1: Eigenvalue – Eigenvector method
Theme 1.2: Repeated Eigenvalue solutions
Theme 1.3: Non-homogenous linear systems
Theme 1.4: Second-order linear systems
Pre-knowledge for this theme consists of linear systems (WTW 164), eigenvalue and
eigenvectors of a 𝑛 × π‘› matrix (WTW 256), linear systems of first order differential equations
(WTW 256) and finally, the method of undetermined coefficients (WTW 256)
Theme 1.1 – Eigenvalue-Eigenvalue method
𝑋̅ ′ = 𝐴 βˆ™ 𝑋̅
Where 𝑋̅ is the solution vector and 𝐴 is a 𝑛 × π‘› matrix.
det(𝐴 − πœ† βˆ™ 𝐼) = 0
Where 𝐼 is an 𝑛 × π‘› identity matrix and πœ† is the eigenvalues of the matrix 𝐴.
⃑⃑⃑⃑𝑛 is computed by solving the following
For an eigenvalue πœ†π‘› a corresponding eigenvector π‘˜
system such that the solution is a non-zero vector:
⃑⃑⃑⃑𝑛 = 0
⃑
(𝐴 − πœ†π‘› βˆ™ 𝐼) βˆ™ π‘˜
Let’s look at an example:
π‘₯ ′ (𝑑)
π‘₯ (𝑑)
10 5
(
) βˆ™ [ 1 ] = [ 1′ ]
π‘₯2 (𝑑)
π‘₯2 (𝑑)
3 8
1
10 5
det ((
)−πœ†βˆ™(
0
3 8
10 − πœ†
det ((
3
10 − πœ†
det ((
3
0
10 − πœ†
)) = det ((
1
3
5
))
8−πœ†
5
)) = (10 − πœ†)(8 − πœ†) − 15 = πœ†2 − 18πœ† + 65
8−πœ†
5
)) = (πœ† − 13)(πœ† − 5) = 0,
8−πœ†
πœ†1 = 13,
πœ†2 = 5
5
⃑⃑⃑⃑1 = (10 − 13
⃑⃑⃑⃑1 = ⃑0
)βˆ™π‘˜
(𝐴 − πœ†1 βˆ™ 𝐼) βˆ™ π‘˜
3
8 − 13
−3 5
⃑,
(
) βˆ™ ⃑⃑⃑⃑
π‘˜1 = 0
3 −5
⃑⃑⃑⃑1 = [5]
π‘˜
3
5
⃑⃑⃑⃑2 = (10 − 5
⃑⃑⃑⃑2 = ⃑0
)βˆ™π‘˜
(𝐴 − πœ†2 βˆ™ 𝐼) βˆ™ π‘˜
3
8−5
5
(
3
5 ⃑⃑⃑⃑
) βˆ™ π‘˜2 = ⃑0,
3
⃑⃑⃑⃑2 = [ 1 ]
π‘˜
−1
⃑⃑⃑⃑1 = [5] and
Therefore, the eigenvalues πœ†1 = 13 and πœ†2 = 5 have corresponding eigenvectors π‘˜
3
1
⃑⃑⃑⃑
π‘˜2 = [ ].
−1
Now solving for the functions
[
π‘₯1 (𝑑)
1
5
π‘˜1 + 𝑐2 𝑒 πœ†2 𝑑 ⃑⃑⃑⃑
π‘˜2 = 𝑐1 𝑒13𝑑 [ ] + 𝑐2 𝑒 5𝑑 [ ]
] = 𝑐1 𝑒 πœ†1 𝑑 ⃑⃑⃑⃑
π‘₯2 (𝑑)
−1
3
[
π‘₯1 (𝑑)
5𝑐 𝑒13𝑑 + 𝑐2 𝑒 5𝑑
]
] = [ 1 13𝑑
π‘₯2 (𝑑)
3𝑐1 𝑒 − 𝑐2 𝑒 5𝑑
Solving another problem with an IVP:
π‘₯ ′ (𝑑)
π‘₯ (𝑑)
7 −5
(
) βˆ™ [ 1 ] = [ 1′ ] ,
π‘₯2 (𝑑)
π‘₯2 (𝑑)
4 3
π‘₯ (0)
1
[ 1 ]=[ ]
π‘₯2 (0)
0
1
⃑⃑⃑⃑1 = [4 (2 − 4𝑖)]
The eigenvalues πœ†1 = 5 − 4𝑖 and πœ†2 = 5 + 4𝑖 have corresponding eigenvectors π‘˜
1
1
⃑⃑⃑⃑2 = [4 (2 + 4𝑖)].
and π‘˜
1
[
1
1
π‘₯1 (𝑑)
] = 𝑐1 𝑒 πœ†1𝑑 ⃑⃑⃑⃑
π‘˜1 + 𝑐2 𝑒 πœ†2𝑑 ⃑⃑⃑⃑
π‘˜2 = 𝑐1 𝑒 (5−4𝑖)𝑑 [4 (2 − 4𝑖)] + 𝑐2 𝑒 (5+4𝑖)𝑑 [4 (2 + 4𝑖)]
π‘₯2 (𝑑)
1
1
[
1
1
( (2 − 4𝑖)) 𝑐1 𝑒 (5−4𝑖)𝑑 + ( (2 + 4𝑖)) 𝑐2 𝑒 (5+4𝑖)𝑑
π‘₯1 (𝑑)
4
]=[ 4
]
π‘₯2 (𝑑)
(5−4𝑖)𝑑
(5+4𝑖)𝑑
𝑐1 𝑒
+ 𝑐2 𝑒
1
1
𝑒 5𝑑 (( (2 − 4𝑖)) 𝑐1 (cos(4𝑑) − 𝑖 βˆ™ sin(4𝑑)) + ( (2 + 4𝑖)) 𝑐2 (cos(4𝑑) + 𝑖 βˆ™ sin(4𝑑)))
π‘₯1 (𝑑)
4
4
[
]=[
]
π‘₯2 (𝑑)
5𝑑
𝑒 (𝑐1 (cos(4𝑑) − 𝑖 βˆ™ sin(4𝑑)) + 𝑐2 (cos(4𝑑) + 𝑖 βˆ™ sin(4𝑑)))
1
1
𝑒 5𝑑 ((( − 𝑖)) 𝑐1 (cos(4𝑑) − 𝑖 βˆ™ sin(4𝑑)) + (( + 𝑖)) 𝑐2 (cos(4𝑑) + 𝑖 βˆ™ sin(4𝑑)))
π‘₯1 (𝑑)
2
2
[
]=[
]
π‘₯2 (𝑑)
5𝑑
𝑒 (𝑐1 (cos(4𝑑) − 𝑖 βˆ™ sin(4𝑑)) + 𝑐2 (cos(4𝑑) + 𝑖 βˆ™ sin(4𝑑)))
1
1
1
1
𝑒 5𝑑 (𝑐1 (( − 𝑖) βˆ™ cos(4𝑑) − ( − 𝑖) βˆ™ 𝑖 βˆ™ sin(4𝑑)) + 𝑐2 (( + 𝑖) βˆ™ cos(4𝑑) + ( + 𝑖) βˆ™ 𝑖 βˆ™ sin(4𝑑)))
π‘₯1 (𝑑)
2
2
2
2
[
]=[
]
π‘₯2 (𝑑)
5𝑑
𝑒 (𝑐1 (cos(4𝑑) − 𝑖 βˆ™ sin(4𝑑)) + 𝑐2 (cos(4𝑑) + 𝑖 βˆ™ sin(4𝑑)))
[
π‘₯1 (𝑑)
]
π‘₯2 (𝑑)
1
𝑖
1
𝑖
𝑒 5𝑑 (𝑐1 (( cos(4𝑑) − 𝑖 cos(4𝑑)) − ( sin(4𝑑) + sin(4𝑑))) + 𝑐2 (( cos(4𝑑) + 𝑖 cos(4𝑑)) + ( sin(4𝑑) − sin(4𝑑))))
2
2
2
2
=[
]
𝑒 5𝑑 (𝑐1 (cos(4𝑑) − 𝑖 βˆ™ sin(4𝑑)) + 𝑐2 (cos(4𝑑) + 𝑖 βˆ™ sin(4𝑑)))
[
π‘₯1 (𝑑)
]
π‘₯2 (𝑑)
=𝑒
5𝑑
1
1
1
1
(𝑐1 (( cos(4𝑑) − sin(4𝑑)) − 𝑖 ( sin(4𝑑) + cos(4𝑑))) + 𝑐2 (( cos(4𝑑) − sin(4𝑑)) + 𝑖 ( sin(4𝑑) + cos(4𝑑))))
2
2
2
2
[
]
(𝑐1 (cos(4𝑑) − 𝑖 βˆ™ sin(4𝑑)) + 𝑐2 (cos(4𝑑) + 𝑖 βˆ™ sin(4𝑑)))
1
1
π‘₯ (𝑑)
𝑐 ( cos(4𝑑) − sin(4𝑑)) + 𝑐2 ( sin(4𝑑) + cos(4𝑑))
[ 1 ] = 𝑒 5𝑑 [ 1 2
]
2
π‘₯2 (𝑑)
𝑐1 cos(4𝑑) + 𝑐2 sin(4𝑑)
[
1
π‘₯1 (0)
1
] = [𝑐1 (2) + 𝑐2 ] = [ ] ,
π‘₯2 (0)
0
𝑐
1
𝑐2
1
[𝑐 ] = [ ]
1
0
1
π‘₯1 (𝑑)
5𝑑 ( sin(4𝑑) + cos(4𝑑))
[
]=𝑒 [ 2
]
π‘₯2 (𝑑)
sin(4𝑑)
Some properties of eigenvalues and eigenvectors:
➒
➒
In a lower- or upper triangular or diagonal matrix, the entries on the diagonal of the matrix are
the eigenvalues of the matrix.
An 𝑛 × π‘› matrix 𝐴 has eigenvalues πœ†1 , πœ†2 , … , πœ†π‘› . The inverted matrix, 𝐴−1 has the eigenvalues
1
,
1
πœ†1 πœ†2
➒
➒
,…,
1
πœ†π‘›
.
An 𝑛 × π‘› matrix 𝐴 has eigenvalues πœ†1 , πœ†2 , … , πœ†π‘› . The squared matrix, 𝐴2 has the eigenvalues
πœ†21 , πœ†22 , … , πœ†2𝑛 .
An eigenvalue or eigenvector can never be zero (only applies to theme 1.1).
Theme 1.2: Repeated Eigenvalue solutions
Multiplicity and completeness, what is it and what does it mean?
An eigenvalue with multiplicity of π‘š is said to be complete when the eigenvalue has π‘š unique associated
eigenvectors. The multiplicity, π‘š, is the number of repetitions the eigenvalue has.
Example time:
π‘₯ ′ (𝑑)
π‘₯ (𝑑)
1 0
(
) βˆ™ [ 1 ] = [ 1′ ] ,
π‘₯2 (𝑑)
0 1
π‘₯2 (𝑑)
1
det ((
0
0
1
)−πœ†βˆ™(
1
0
1−πœ†
det ((
0
[
π‘₯1 (0)
1
]=[ ]
π‘₯2 (0)
0
0
1−πœ†
)) = det ((
1
0
0
))
1−πœ†
0
)) = (1 − πœ†)(1 − πœ†) = 0
1−πœ†
πœ†1 = πœ†2 = 1
⃑⃑⃑⃑1 = (1 − 1
(𝐴 − πœ†1 βˆ™ 𝐼) βˆ™ π‘˜
0
0 0 ⃑⃑⃑⃑
⃑,
(
) βˆ™ π‘˜1 = 0
0 0
⃑⃑⃑⃑2 = (1 − 1
(𝐴 − πœ†2 βˆ™ 𝐼) βˆ™ π‘˜
1
0
(
0
[
0 ⃑⃑⃑⃑
⃑,
) βˆ™ π‘˜2 = 0
0
0
) βˆ™ ⃑⃑⃑⃑
π‘˜1 = ⃑0
1−1
⃑⃑⃑⃑1 = [1]
π‘˜
0
0
⃑⃑⃑⃑2 = ⃑0
)βˆ™π‘˜
1−1
⃑⃑⃑⃑2 = [0]
π‘˜
1
π‘₯1 (𝑑)
1
0
π‘˜1 + 𝑐2 𝑒 πœ†2 𝑑 ⃑⃑⃑⃑
π‘˜2 = 𝑐1 𝑒 𝑑 [ ] + 𝑐2 𝑒 𝑑 [ ]
] = 𝑐1 𝑒 πœ†1 𝑑 ⃑⃑⃑⃑
π‘₯2 (𝑑)
0
1
[
[
π‘₯1 (𝑑)
𝑐 𝑒𝑑
] = [ 1 𝑑]
π‘₯2 (𝑑)
𝑐2 𝑒
𝑐1
π‘₯1 (0)
1
] = [𝑐 ] = [ ]
π‘₯2 (0)
0
2
[
𝑑
π‘₯1 (𝑑)
] = [𝑒 ]
π‘₯2 (𝑑)
0
This matrix has complete eigenvalues.
What happens when the eigenvalues are incomplete or defective eigenvalues? Let’s have a look
at what to do when there is more than one defective eigenvalue. What is meant by a defective
eigenvalue?
When an eigenvector can not simply be calculated as in the previous example. By choosing a
different value for the eigenvector we could get two linearly independent eigenvectors. But this
is not the case in defective eigenvalues.
Let 𝐴 be the following matrix and solve the system of linear differential equations:
1
𝐴 = (0
4
𝑋̅ ′ = 𝐴 βˆ™ 𝑋̅,
1
det ((0
4
5
1
8
1
0
0) − πœ† βˆ™ ( 0
0
1
1−πœ†
det (( 0
4
5
1−πœ†
8
0
1
0
5
1
8
0
0)
1
0
1−πœ†
0)) = det (( 0
1
4
5
1−πœ†
8
0
0 ))
1−πœ†
0
0 )) = (1 − πœ†)(1 − πœ†)(1 − πœ†) = 0
1−πœ†
πœ†1 = πœ†2 = πœ†3 = 1
1−1
(𝐴 − πœ†1 βˆ™ 𝐼) βˆ™ ⃑⃑⃑⃑
π‘˜1 = ( 0
4
0
(0
4
5
0
8
0
π‘˜1 = ⃑0,
0) βˆ™ ⃑⃑⃑⃑
0
1−1
(𝐴 − πœ†2 βˆ™ 𝐼) βˆ™ ⃑⃑⃑⃑
π‘˜2 = ( 0
4
0
(0
4
5
0
8
0
π‘˜2 = ⃑⃑⃑⃑
π‘˜1 ,
0) βˆ™ ⃑⃑⃑⃑
0
0
(0
4
5
0
8
1−1
(𝐴 − πœ†3 βˆ™ 𝐼) βˆ™ ⃑⃑⃑⃑
π‘˜3 = ( 0
4
0
(0
4
5
0
8
0
⃑⃑⃑⃑3 = ⃑⃑⃑⃑
π‘˜2 ,
0) βˆ™ π‘˜
0
5
1−1
8
0
(0
4
5
0
8
5
1−1
8
0
π‘˜1 = ⃑0
0 ) βˆ™ ⃑⃑⃑⃑
1−1
0
⃑⃑⃑⃑
π‘˜1 = [0]
1
0
⃑⃑⃑⃑2 = ⃑0
0 )βˆ™π‘˜
1−1
0
0
π‘˜2 = [0] ,
0) βˆ™ ⃑⃑⃑⃑
1
0
5
1−1
8
1⁄
4
⃑⃑⃑⃑
π‘˜2 = [ 0 ]
0
0
⃑⃑⃑⃑3 = 0
⃑
0 )βˆ™π‘˜
1−1
1⁄
0
4
⃑⃑⃑⃑
)
βˆ™
π‘˜
=
[
0
3
0 ],
0
0
− 1⁄10
⃑⃑⃑⃑
π‘˜3 = [ 1⁄ ]
20
0
π‘₯1 (𝑑)
𝑑2
⃑⃑⃑⃑2 + ⃑⃑⃑⃑
[π‘₯2 (𝑑)] = [𝑒 𝑑 ⃑⃑⃑⃑
π‘˜1 + 𝑒 𝑑 (𝑑 βˆ™ ⃑⃑⃑⃑
π‘˜1 + ⃑⃑⃑⃑
π‘˜2 ) + 𝑒 𝑑 ( βˆ™ ⃑⃑⃑⃑
π‘˜ +π‘‘βˆ™π‘˜
π‘˜3 )]
2 1
π‘₯3 (𝑑)
1⁄
1⁄
− 1⁄10
π‘₯1 (𝑑)
2
0
0
0
𝑑
4
4
[π‘₯2 (𝑑)] = 𝑒 𝑑 [0] + (𝑑 βˆ™ [0] + [ 0 ]) + ( βˆ™ [0] + 𝑑 βˆ™ [ 0 ] + [ 1⁄
])
2
20
1
1
1
π‘₯3 (𝑑)
0
0
0
[
]
1⁄
1⁄
− 1⁄10
π‘₯1 (𝑑)
0
0
𝑑2 0
4
4
𝑑
[π‘₯2 (𝑑)] = 𝑒 [([0] + [ 0 ] + [ 1⁄ ]) + 𝑑 ([0] + [ 0 ]) + ( βˆ™ [0])]
2
20
1
1
1
π‘₯3 (𝑑)
0
0
0
3⁄
0
1⁄
π‘₯1 (𝑑)
20
4
𝑑
[π‘₯2 (𝑑)] = 𝑒 [𝑐1 ([1⁄ ]) + 𝑐2 𝑑 ([ 0 ]) + 𝑐3 𝑑 2 ([ 0 ])]
1⁄
20
π‘₯3 (𝑑)
1
2
1
Theme 1.3: Non-homogenous linear systems
𝑋̅ ′ = 𝐴 βˆ™ 𝑋̅ + 𝐹
Where 𝑋̅ is the solution vector and 𝐴 is a 𝑛 × π‘› matrix and 𝐹 is a forcing function.
We will do three examples:
2 −1 Μ…
0
𝑋̅ ′ = [
]βˆ™π‘‹+[ ]
3 −2
3𝑑
1
1
𝑋𝑐 = 𝑐1 𝑒 𝑑 [ ] + 𝑐2 𝑒 −𝑑 [ ]
1
3
π‘Ž
𝑐
0
0
Guess the particular solution: 𝑋𝑃 = 𝑑 [ ] + [ ] , 𝐹 = 𝑑 [ ] + [ ]
𝑏
𝑑
3
0
π‘Ž
2
[ ]=[
𝑏
3
π‘Ž
𝑐
−1
0
] βˆ™ [𝑑 [ ] + [ ]] + [ ]
𝑏
𝑑
−2
3𝑑
π‘Ž
2 −1 π‘Žπ‘‘ + 𝑐
0
[ ]=[
]βˆ™[
]+[ ]
𝑏
3 −2 𝑏𝑑 + 𝑑
3𝑑
π‘Ž
2π‘Žπ‘‘ + 2𝑐 − 𝑏𝑑 − 𝑑
0
[ ]=[
]+[ ]
𝑏
3π‘Žπ‘‘ + 3𝑐 − 2𝑏𝑑 − 2𝑑
3𝑑
π‘Ž
2π‘Žπ‘‘ − 𝑏𝑑 + 2𝑐 − 𝑑
[ ]=[
]
𝑏
3π‘Žπ‘‘ − 2𝑏𝑑 + 3𝑑 + 3𝑐 − 2𝑑
π‘Ž
2π‘Ž − 𝑏
2𝑐 − 𝑑
[ ] = 𝑑[
]+[
]
𝑏
3π‘Ž − 2𝑏 + 3
3𝑐 − 2𝑑
0
2π‘Ž − 𝑏
[ ] = 𝑑[
],
0
3π‘Ž − 2𝑏 + 3
π‘Ž
3
[ ] = [ ],
𝑏
6
π‘Ž
2𝑐 − 𝑑
[ ]=[
]
𝑏
3𝑐 − 2𝑑
3
2𝑐 − 𝑑
[ ]=[
],
6
3𝑐 − 2𝑑
𝑐
0
[ ]=[ ]
𝑑
−3
3
0
1
1
𝑋̅ = 𝑋𝑐 + 𝑋𝑃 = 𝑑 [ ] + [ ] + 𝑐1 𝑒 𝑑 [ ] + 𝑐2 𝑒 −𝑑 [ ]
6
−3
1
3
Next example:
4
2 2 Μ…
𝑋̅ ′ = [
] βˆ™ 𝑋 + [ 2𝑑 ]
1 3
𝑒
−2
1
𝑋𝑐 = 𝑐1 𝑒 𝑑 [ ] + 𝑐2 𝑒 4𝑑 [ ]
1
1
π‘Ž
𝑐
4
0
Guess the particular solution: 𝑋𝑃 = 𝑒 2𝑑 [ ] + [ ] , 𝐹 = 𝑒 2𝑑 [ ] + [ ]
𝑏
𝑑
1
0
π‘Ž
𝑐
4
2π‘Ž
2 2
0
𝑒 2𝑑 [ ] = [
] βˆ™ [𝑒 2𝑑 [ ] + [ ]] + 𝑒 2𝑑 [ ] + [ ]
𝑏
𝑑
2𝑏
1 3
1
0
𝑒 2𝑑 [
2π‘Ž
2
]=[
2𝑏
1
4
2 π‘Žπ‘’ 2𝑑 + 𝑐
0
] βˆ™ [ 2𝑑
] + 𝑒 2𝑑 [ ] + [ ]
3 𝑏𝑒 + 𝑑
1
0
𝑒 2𝑑 [
2𝑑
2𝑑
4
2π‘Ž
0
] = [2π‘Žπ‘’ 2𝑑 + 2𝑐 + 2𝑏𝑒2𝑑 + 2𝑑] + 𝑒 2𝑑 [ ] + [ ]
2𝑏
1
0
π‘Žπ‘’ + 𝑐 + 3𝑏𝑒 + 3𝑑
2𝑑
2𝑑
2π‘Ž
+ 2𝑑 + 4]
𝑒 2𝑑 [ ] = [2π‘Žπ‘’2𝑑 + 2𝑏𝑒2𝑑 + 2𝑐
2𝑏
π‘Žπ‘’ + 3𝑏𝑒 + 𝑒 2𝑑 + 𝑐 + 3𝑑
𝑒 2𝑑 [
2π‘Ž
2π‘Ž + 2𝑏
2𝑐 + 2𝑑 + 4
] = 𝑒 2𝑑 [
]+[
]
2𝑏
π‘Ž + 3𝑏 + 1
𝑐 + 3𝑑
2π‘Ž
2π‘Ž + 2𝑏
𝑒 2𝑑 [ ] = 𝑒 2𝑑 [
],
2𝑏
π‘Ž + 3𝑏 + 1
π‘Ž
−1
[ ] = [ ],
𝑏
0
0
2𝑐 + 2𝑑 + 4
[ ]=[
]
0
𝑐 + 3𝑑
𝑐
−3
[ ]=[ ]
𝑑
1
−1
−3
−2
1
𝑋̅ = 𝑋𝑐 + 𝑋𝑃 = 𝑒 2𝑑 [ ] + [ ] + 𝑐1 𝑒 𝑑 [ ] + 𝑐2 𝑒 4𝑑 [ ]
0
1
1
1
The final example:
2
𝑋̅ ′ = [
3
𝑑
−1 Μ…
] βˆ™ 𝑋 + [ 𝑒 𝑑]
−2
−𝑒
1
1
𝑋𝑐 = 𝑐1 𝑒 𝑑 [ ] + 𝑐2 𝑒 −𝑑 [ ]
1
3
π‘Ž
𝑐
1
Guess the particular solution: 𝑋𝑃 = 𝑒 𝑑 [ ] + 𝑑𝑒 𝑑 [ ] , 𝐹 = 𝑒 𝑑 [ ] gives duplication.
𝑏
𝑑
−1
π‘Ž
𝑐
𝑐
2
𝑒 𝑑 [ ] + 𝑑𝑒 𝑑 [ ] + 𝑒 𝑑 [ ] = [
𝑏
𝑑
𝑑
3
𝑒𝑑 [
𝑒𝑑 [
𝑑
π‘Ž
𝑐
−1
] βˆ™ [𝑒 𝑑 [ ] + 𝑑𝑒 𝑑 [ ]] + [ 𝑒 𝑑 ]
𝑏
𝑑
−2
−𝑒
𝑑
𝑑
𝑑
𝑐
π‘Ž+𝑐
2 −1
] + 𝑑𝑒 𝑑 [ ] = [
] βˆ™ [[ π‘Žπ‘’π‘‘ + 𝑐𝑑𝑒 𝑑 ]] + [ 𝑒 𝑑 ]
𝑑
𝑏+𝑑
3 −2
𝑏𝑒 + 𝑑𝑑𝑒
−𝑒
𝑑
𝑑
𝑑
𝑑
𝑑
𝑐
π‘Ž+𝑐
] + 𝑑𝑒 𝑑 [ ] = [ 2π‘Žπ‘’π‘‘ + 2𝑐𝑑𝑒𝑑 − 𝑏𝑒 𝑑 − 𝑑𝑑𝑒 𝑑 ] + [ 𝑒 𝑑 ]
𝑑
𝑏+𝑑
3π‘Žπ‘’ + 3𝑐𝑑𝑒 − 2𝑏𝑒 − 2𝑑𝑑𝑒
−𝑒
𝑒𝑑 [
𝑑
𝑑
𝑑
𝑑
𝑑
𝑐
π‘Ž+𝑐
] + 𝑑𝑒 𝑑 [ ] = [ 2π‘Žπ‘’π‘‘ − 𝑏𝑒 𝑑 + 𝑒 𝑑 + 2𝑐𝑑𝑒 𝑑 − 𝑑𝑑𝑒 𝑑 ]
𝑑
𝑏+𝑑
3π‘Žπ‘’ − 2𝑏𝑒 − 𝑒 + 3𝑐𝑑𝑒 − 2𝑑𝑑𝑒
𝑐
π‘Ž+𝑐
2π‘Ž − 𝑏 + 1
2𝑐 − 𝑑
𝑒𝑑 [
] + 𝑑𝑒 𝑑 [ ] = 𝑒 𝑑 [
] + 𝑑𝑒 𝑑 [
]
𝑑
𝑏+𝑑
3π‘Ž − 2𝑏 − 1
3𝑐 − 2𝑑
𝑐
2𝑐 − 𝑑
𝑑𝑒 𝑑 [ ] = 𝑑𝑒 𝑑 [
],
𝑑
3𝑐 − 2𝑑
𝑐
2𝑐 − 𝑑
[ ]=[
],
𝑑
3𝑐 − 2𝑑
𝑐
𝑑
[ ] = [ ],
𝑑
𝑐
𝑒𝑑 [
π‘Ž+𝑐
2π‘Ž − 𝑏 + 1
] = 𝑒𝑑 [
]
𝑏+𝑑
3π‘Ž − 2𝑏 − 1
π‘Ž+𝑐
2π‘Ž − 𝑏 + 1
[
]=[
]
𝑏+𝑑
3π‘Ž − 2𝑏 − 1
π‘Ž
0
[ ] = [ ],
𝑏
−1
𝑐
2
[ ]=[ ]
𝑑
2
0
2
1
1
𝑋̅ = 𝑋𝑐 + 𝑋𝑃 = 𝑒 𝑑 [ ] + 𝑑𝑒 𝑑 [ ] + 𝑐1 𝑒 𝑑 [ ] + 𝑐2 𝑒 −𝑑 [ ]
−1
2
1
3
Theme 1.4: Second-order linear systems
𝑋̅ ′′ = 𝐴 βˆ™ 𝑋̅
Is a linear second-order homogeneous system of differential equations.
In this theme it will be wise to calculate eigenvalues as follows:
πœ†π‘› = −πœ”π‘›2
As this will be easier to use in the standard solutions given the value of πœ†.
𝑛
𝑋̅ = ∑ ((π‘Žπ‘– cos(πœ”π‘– 𝑑) + 𝑏𝑖 sin(πœ”π‘– 𝑑)) βˆ™ π‘˜βƒ‘π‘– ) ,
πœ†π‘– < 0
𝑖=1
𝑋̅ = (π‘Ž0 + 𝑑𝑏0 ) βˆ™ π‘˜βƒ‘0 ,
πœ†0 = 0
Example:
0
𝑋̅ ′′ = [
2
0
] βˆ™ 𝑋̅
−3
0 0
1 0
−πœ†
det ((
)−πœ†βˆ™(
)) = det ((
2 −3
0 1
2
−πœ†
det ((
2
0
)) = (−πœ†)(−3 − πœ†) = 0,
−3 − πœ†
πœ†0 = −πœ”02 = 0,
0
))
−3 − πœ†
πœ†0 = 0,
πœ†1 = −3
πœ†1 = −πœ”12 = −3 ∴ πœ”1 = √3
⃑⃑⃑⃑0 = (0 0 ) βˆ™ π‘˜
⃑⃑⃑⃑0 = ⃑0
(𝐴 − πœ†0 βˆ™ 𝐼) βˆ™ π‘˜
2 −3
0
(
2
0
⃑⃑⃑⃑0 = 0
⃑,
)βˆ™π‘˜
−3
⃑⃑⃑⃑1 = (3
(𝐴 − πœ†1 βˆ™ 𝐼) βˆ™ π‘˜
2
3 0 ⃑⃑⃑⃑
⃑,
(
) βˆ™ π‘˜1 = 0
2 0
3
⃑⃑⃑⃑
π‘˜1 = [ ]
2
0 ⃑⃑⃑⃑
) βˆ™ π‘˜1 = ⃑0
0
⃑⃑⃑⃑1 = [0]
π‘˜
1
0
3
𝑋̅ = (π‘Ž1 cos(√3𝑑) + 𝑏1 sin(√3𝑑)) βˆ™ [ ] + (π‘Ž0 + 𝑑𝑏0 ) βˆ™ [ ]
1
2
Theme 2: Sequences and series of real numbers
12 Lectures [week 3 & 4 & 5]
This theme will introduce series and sequences. The theme will address series of non-negative
numbers and convergence tests for various types of series.
Theme 2.1: Sequences of real numbers
Theme 2.2: Series of real numbers
Theme 2.3: Series with non-negative terms
Theme 2.4: Absolute- and conditional convergence
Pre-knowledge for this theme consists of limits to infinity (WTW 158) and L’Hospitals’ rule of
indeterminate forms of limits to infinity (WTW 158).
Theme 2.1 – Sequences of real numbers
The way a sequence can be written has many forms:
{π‘Žπ‘› } = 2, 3, 8, 11, … ,
π‘Žπ‘› = 3𝑛 − 1,
1 3 7 15
{𝑏𝑛 } = , , , , … ,
2 4 8 16
𝑏𝑛 = 1 −
𝑛∈β„€
1
,
2𝑛
𝑛∈β„€
Graphs of sequences are not continuous. Consider the second sequence:
𝑏𝑛 = 1 −
1
2𝑛
The limit can be easily seen from this sequence. The limit of a sequence is the term to which the
general term of a sequence tends to. In the previous demonstration it is easy to see that π‘Žπ‘› =
3𝑛 − 1 will tend to infinity or diverge. {π‘Žπ‘› } diverges as when 𝑛 approaches ∞, {π‘Žπ‘› } approaches
∞. {𝑏𝑛 } on the other hand, is convergent as when 𝑛 approaches ∞, {π‘Žπ‘› } approaches 1, a real
number. Therefore, it is said that {𝑏𝑛 } converges to 1.
A sequence, {π‘Žπ‘› } is said to converge when lim (π‘Žπ‘› ) = π‘Ž∞ = 𝐿 and 𝐿 ∈ ℝ, else the sequence
𝑛→∞
diverges. Either, 𝐿 = ∞ or 𝐿 does not exist.
Let’s refresh all the limit operations:
lim (π‘Žπ‘› + 𝑏𝑛 ) = lim (π‘Žπ‘› ) + lim (𝑏𝑛 ) ↔ lim (π‘Žπ‘› ) & lim (𝑏𝑛 ) π‘‘π‘œπ‘’π‘  𝑒π‘₯𝑖𝑠𝑑
𝑛→∞
𝑛→∞
𝑛→∞
𝑛→∞
𝑛→∞
lim (π‘Žπ‘› − 𝑏𝑛 ) = lim (π‘Žπ‘› ) − lim (𝑏𝑛 ) ↔ lim (π‘Žπ‘› ) & lim (𝑏𝑛 ) π‘‘π‘œπ‘’π‘  𝑒π‘₯𝑖𝑠𝑑
𝑛→∞
𝑛→∞
𝑛→∞
𝑛→∞
lim (𝐢) = 𝐢,
𝑛→∞
𝐢∈ℝ
lim (𝐢 βˆ™ π‘Žπ‘› ) = 𝐢 βˆ™ lim (π‘Žπ‘› ) ,
𝑛→∞
𝑛→∞
𝑛→∞
𝐢∈ℝ
lim (π‘Žπ‘› βˆ™ 𝑏𝑛 ) = lim (π‘Žπ‘› ) βˆ™ lim (𝑏𝑛 ) ↔ lim (π‘Žπ‘› ) & lim (𝑏𝑛 ) π‘‘π‘œπ‘’π‘  𝑒π‘₯𝑖𝑠𝑑
𝑛→∞
lim (
𝑛→∞
𝑛→∞
𝑛→∞
𝑛→∞
𝑛→∞
lim (π‘Žπ‘› )
π‘Žπ‘›
) = (𝑛→∞
) ↔ lim (π‘Žπ‘› ) & lim (𝑏𝑛 ) ≠ 0 π‘‘π‘œπ‘’π‘  𝑒π‘₯𝑖𝑠𝑑
𝑛→∞
𝑛→∞
𝑏𝑛
lim (𝑏𝑛 )
𝑛→∞
𝑛
lim ((π‘Žπ‘› )𝑛 ) = ( lim (π‘Žπ‘› )) ,
𝑛→∞
𝑛→∞
lim (π‘Žπ‘› )
lim ((𝐢)π‘Žπ‘› ) = 𝐢 𝑛→∞
𝑛→∞
,
𝑙𝑒𝑑 𝑛 = π‘₯ π‘€π‘–π‘‘β„Ž π‘₯ ∈ ℝ
𝑙𝑒𝑑 𝑛 = π‘₯ π‘€π‘–π‘‘β„Ž π‘₯ ∈ ℝ
lim (ln(π‘Žπ‘› )) = ln ( π‘™π‘–π‘š (π‘Žπ‘› )) ,
𝑛→∞
𝑙𝑒𝑑 𝑛 = π‘₯ π‘€π‘–π‘‘β„Ž π‘₯ ∈ ℝ
𝑛→∞
The squeeze theorem:
Let 𝐿 = lim (π‘Žπ‘› ) = lim (𝑏𝑛 ) and 𝑐𝑛 is such that π‘Žπ‘› ≤ 𝑐𝑛 ≤ 𝑏𝑛 then 𝑐𝑛 will converge to 𝐿.
𝑛→∞
𝑛→∞
The absolute value theorem:
Let {π‘Žπ‘› } = |{𝑏𝑛 }| which implies {π‘Žπ‘› } ≥ {𝑏𝑛 }. If {π‘Žπ‘› } converges then {𝑏𝑛 } will also converge. If
{𝑏𝑛 } diverges then {π‘Žπ‘› } will also diverge.
Geometric sequence:
{π‘Žπ‘› } = π‘Ž βˆ™ π‘Ÿ 𝑛
Will converge for the following values of π‘Ÿ.
|π‘Ÿ| < 1: πΆπ‘œπ‘›π‘£π‘’π‘Ÿπ‘”π‘’π‘ 
π‘Ÿ = 1: πΆπ‘œπ‘›π‘£π‘’π‘Ÿπ‘”π‘’π‘ 
π‘Ÿ = 0: πΆπ‘œπ‘›π‘£π‘’π‘Ÿπ‘”π‘’π‘ 
Any other value of π‘Ÿ will cause the sequence to diverge.
L’Hospital rule and the indeterminate form:
lim (
𝑛→∞
π‘Žπ‘›
π‘Ž′ (π‘₯)
) = lim ( ′ ) ,
𝑛→∞ 𝑏 (π‘₯)
𝑏𝑛
π‘Žπ‘› , 𝑏𝑛 → π‘Ž(π‘₯), 𝑏(π‘₯)
Remember to apply L’Hospitals rule it must be in the indeterminate form.
➒
➒
0
0
∞
∞
➒ 0 βˆ™ ∞, try π‘Ž(π‘₯) =
1
1
π‘Ž(π‘₯)
➒ ∞−∞
➒ 00 , ∞0 , 1∞ try π‘Ž(π‘₯) → ln( π‘Ž(π‘₯))
Some proofs:
𝑛
π‘Ž
π‘Ž 𝑛
ln( (1+ ) )
𝑛
lim ((1 + ) ) = lim (𝑒
)
𝑛→∞
𝑛→∞
𝑛
π‘Ž
lim (π‘›βˆ™ln(1− ))
𝑛
𝑒 𝑛→∞
π‘Ž
ln(1+ )
𝑛 )
1
𝑛→∞
𝑛
𝑒
lim (
= 𝑒 1(∞βˆ™0) → 𝐿′ π»π‘œπ‘ π‘π‘–π‘‘π‘Žπ‘™
π‘Ž
π‘Ž(π‘₯) = ln (1 + ) ,
π‘₯
0
= 𝑒 0 → π‘Ÿπ‘’π‘Žπ‘™ 𝐿′ π»π‘œπ‘ π‘π‘–π‘‘π‘Žπ‘™,
π‘Ž
ln(1+ )
𝑛 )
1
𝑛→∞
𝑛
𝑒
lim (
=
1
𝑏(π‘₯) = ,
π‘₯
π‘Ž
π‘Ž
π‘₯ 2 (1+ )
π‘₯
lim
1
π‘₯→∞
π‘₯2
(
)
𝑒
lim (
=𝑒
π‘₯→∞
π‘Ž
π‘Ž)
1+
π‘₯
π‘Ž′ (π‘₯) =
−π‘Ž
π‘Ž
π‘₯ 2 (1 + π‘₯ )
𝑏 ′ (π‘₯) = −
1
π‘₯2
= π‘’π‘Ž
π‘Ž 𝑛
lim ((1 + ) ) = 𝑒 π‘Ž
𝑛→∞
𝑛
Another proof:
1
𝑛
lim ( √𝑛) = lim (𝑛𝑛 )
𝑛→∞
𝑛→∞
1
lim (𝑒
ln(𝑛𝑛 )
𝑛→∞
𝑛→∞
1
lim ( ln(𝑛))
𝑛
𝑒 𝑛→∞
ln(π‘₯)
lim (
)
𝑒 π‘₯→∞ π‘₯
=
∞
𝑒0
1
) = lim (𝑒 𝑛 ln(𝑛) )
= 𝑒 0βˆ™∞ → 𝐿′ π»π‘œπ‘ π‘π‘–π‘‘π‘Žπ‘™
→ π‘Ÿπ‘’π‘Žπ‘™ 𝐿′ π»π‘œπ‘ π‘π‘–π‘‘π‘Žπ‘™,
ln(π‘₯)
lim (
)
π‘₯
𝑒 π‘₯→∞
1
lim ( )
π‘₯
= 𝑒 π‘₯→∞
π‘Ž(π‘₯) = π‘₯,
𝑏(π‘₯) = ln(π‘₯) ,
= 𝑒0 = 1
𝑛
lim ( √𝑛) = 1
𝑛→∞
These proofs may be used as standard forms in later paragraphs.
π‘Ž′ (π‘₯) = 1
𝑏 ′ (π‘₯) =
1
π‘₯
Upper and lower boundaries:
An upperbound is a limit to which the sequence will not exceed. In other words, there exists a
constant such that:
{π‘Žπ‘› } ≤ 𝐢1
In the case of the first proof if we let π‘Ž = 1, then the boundary is 𝑒.
A lowerbound is a limit to which the sequence will not exceed. In other words, there exists a
constant such that:
{π‘Žπ‘› } ≥ 𝐢1
In the case of the second proof the limit is set at 1.
πœ‹
Another case has an upper and lower bound: {π‘Žπ‘› } = sin ( 4 𝑛)
The last case has no bounds (unbounded): {π‘Žπ‘› } = −3𝑛 + 5
A convergent sequence is always bounded. In both proofs there were convergent sequences,
and both could be bounded either by an upper or lower bound. Do not get confused with the
inverse of this theorem: “A bounded sequence is convergent” as this is not always true as can be
πœ‹
seen in the third figure. The sequence {π‘Žπ‘› } = sin ( 4 𝑛) is not a convergent sequence as it does
not reach a real number at infinity but is bounded.
Monotonic sequences?
Sequences that are strictly increasing or decreasing is said to be monotonic. The following table
shows some tests to test whether sequences are monotonic.
Increasing
{π‘Žπ‘› } = 𝑓(π‘₯) → 𝑓 ′ (π‘₯) > 0 for all π‘₯
{π‘Žπ‘› } < {π‘Žπ‘›+1 } for all 𝑛
Decreasing
{π‘Žπ‘› } = 𝑓(π‘₯) → 𝑓 ′ (π‘₯) < 0 for all π‘₯
{π‘Žπ‘› } > {π‘Žπ‘›+1 } for all 𝑛
1<
1>
{π‘Žπ‘›+1 }
for
{π‘Žπ‘› }
all 𝑛
{π‘Žπ‘›+1 }
for
{π‘Žπ‘› }
all 𝑛
When a sequence is monotonic and bounded the sequence is said to be convergent.
In the first two cases the sequences were monotonic and bounded and therefore convergent.
The third was bounded but not monotonic and hence divergent. The last case was monotonic
but unbounded and hence divergent.
If from a sequence a finite number of terms is removed the limit will remain unchanged. Let’s
look at it graphically:
From each graph more and more terms were removed but the limit stayed unchanged.
Theme 2.2 – Series of real numbers
A series is a sum of a sequence of numbers.
𝑁
𝑆𝑛 = ∑{π‘Žπ‘› }
𝑛=1
The partial sum only contains a finite number of terms of the sequence which is summed up. If
the partial sum of a sequence converges to a real value, 𝐿, then the sum will converge to the
same value.
Let 𝑆𝑛 = ∑𝑁
𝑛=1{π‘Žπ‘› } be a partial sum.
If lim (𝑆𝑛 ) = 𝐿 then 𝑆𝑛 converges to 𝐿 and hence 𝑆𝑛 is convergent.
𝑛→∞
𝑁
𝑆𝑛 = ∑{ln(𝑛 + 1) − ln(𝑛)} = ln(2) − ln(1) + ln(3) − ln(2) + β‹― + ln(𝑁 + 1) − ln(𝑁)
𝑛=1
= − ln(1) + ln(𝑁 + 1)
lim (𝑆𝑛 ) = − ln(1) + ln(∞) = ∞,
𝑛→∞
𝑁
1
1
1
1
1
π‘‘π‘–π‘£π‘’π‘Ÿπ‘”π‘’π‘ 
1
1
1
𝑆𝑛 = ∑ {𝑒 𝑑 − 𝑒 𝑑+1 } = 𝑒 1 − 𝑒 2 + 𝑒 2 − 𝑒 3 + β‹― + 𝑒 𝑁 − 𝑒 𝑁+1 = 𝑒 1 − 𝑒 𝑁+1
𝑛=1
1
lim (𝑆𝑛 ) = 𝑒 1 − 𝑒 ∞ = 𝑒 − 1,
𝑛→∞
π‘π‘œπ‘›π‘£π‘’π‘Ÿπ‘”π‘’π‘ 
The above examples are known as telescoping series. One key feature of telescoping series lies
in the similar terms they produce that end up cancelling out when added. When testing for
convergence it is easier to calculate a partial sum and then taking an infinite limit.
𝑁
𝑁
𝑛=2
𝑛=2
1
1
1
𝑆𝑛 = ∑ { 2
− },
}= ∑{
𝑛 −𝑛
𝑛−1 𝑛
𝑁
∑{
𝑛=2
π‘π‘Žπ‘Ÿπ‘‘π‘–π‘Žπ‘™ π‘“π‘Ÿπ‘Žπ‘π‘‘π‘–π‘œπ‘›π‘ 
1
1
1 1 1
1
1
1
− } = 1 − + − + β‹―+
− =1−
𝑛−1 𝑛
2 2 3
𝑁−1 𝑁
𝑁
lim (𝑆𝑛 ) = 1 −
𝑛→∞
1
= 1,
∞
π‘π‘œπ‘›π‘£π‘’π‘Ÿπ‘”π‘’π‘ 
Geometric series:
𝑁
𝑆𝑛 = ∑{π‘Ž βˆ™ π‘Ÿ 𝑛 } ,
𝑛=1
|π‘Ÿ| < 1,
|π‘Ÿ| ≥ 1,
𝑆∞ =
π‘Ž
1−π‘Ÿ
π‘π‘œπ‘›π‘£π‘’π‘Ÿπ‘”π‘’π‘ 
π‘‘π‘–π‘£π‘’π‘Ÿπ‘”π‘’π‘ 
When linearly combining series care should be taken about the convergence and divergence of
the resulting series. When combining two convergent series the resulting series will be
convergent. When combine a convergent and divergent series the resulting series is always
divergent.
When combining a divergent and divergent series the resulting series has no conclusion.
𝑁
𝑁
𝑆𝑛 = ∑{ln(𝑛 + 1)} − ∑{ln(𝑛)} = ln(2) − ln(1) + ln(3) − ln(2) + β‹― + ln(𝑁 + 1) − ln(𝑁)
𝑛=1
𝑛=1
= − ln(1) + ln(𝑁 + 1)
lim (𝑆𝑛 ) = − ln(1) + ln(∞) = ∞,
𝑛→∞
𝑁
𝑆𝑛 =
𝑁
1
1
1
1
π‘‘π‘–π‘£π‘’π‘Ÿπ‘”π‘’π‘ 
1
∑ {𝑒 𝑑 } −
∑ {𝑒 𝑑+1 } = 𝑒 1 + 𝑒 2 − 𝑒 2 − 𝑒 3 + β‹― + 𝑒 𝑁 − 𝑒 𝑁+1 = 𝑒 1 − 𝑒 𝑁+1
𝑛=1
𝑛=1
1
lim (𝑆𝑛 ) = 𝑒 1 − 𝑒 ∞ = 𝑒 − 1,
𝑛→∞
1
1
1
π‘π‘œπ‘›π‘£π‘’π‘Ÿπ‘”π‘’π‘ 
Test for divergence:
𝑁
𝑆𝑛 = ∑{π‘Žπ‘› }
𝑛=1
If lim {π‘Žπ‘› } ≠ 0 then the series, 𝑆𝑛 , does diverge.
𝑛→∞
𝑁
1
𝑆𝑛 = ∑ {𝑒 𝑑 } ,
𝑛=1
1
lim {𝑒 𝑑 } = 𝑒 0 = 1 ≠ 0
𝑛→∞
1
Therefore, the series, ∑𝑁
𝑛=1 {𝑒 𝑑 }, diverges.
Be careful of the following statement: “ if the limit is zero the series converges”. This is not
always true. A convergent series will always have a limit equal to zero, but a zero limit does not
conclude convergence. Let’s look at an example of this.
Consider the following harmonic series:
𝑁
1
1 1 1 1 1 1 1
1
𝑆𝑛 = ∑ { } = 1 + + + + + + + + β‹― +
𝑛
2 3 4 5 6 7 8
𝑁
𝑛=1
1 1
1
1
1 1
1 1 1 1
1 1 1
1 + + + β‹― > 1 + + ( + ) + ( + + + ) += 1 + + + + β‹―
2 3
𝑁
2
4 4
8 8 8 8
2 2 2
𝑁
𝑁
𝑛=1
𝑛=1
1
1
∑{ }>1+∑{ }
𝑛
2
1
1
𝑁
By inspection it is easy to see that 1 + ∑𝑁
𝑛=1 {2} diverges, and since ∑𝑛=1 {𝑛} is larger than the
1
first then by the squeeze theorem ∑𝑁
𝑛=1 {𝑛} is divergent.
To use the test for divergence:
𝑁
1
𝑆𝑛 = ∑ { }
𝑛
𝑛=1
1
lim { } = 0
𝑛→∞ 𝑛
Theme 2.3 – Series with non-negative numbers
Let’s look at a few tests that may have a conclusion on the convergence of a series. The integral
test is one test one may use to determine convergence.
The integral test:
𝑏
∫ 𝑓(π‘₯) βˆ™ 𝑑π‘₯ ≈ ∑
π‘Ž
𝑏
𝑛=π‘Ž
∞
∫ 𝑓(π‘₯) βˆ™ 𝑑π‘₯ ∝ ∑
0
𝑓(𝑛) βˆ™ βˆ†π‘›
∞
𝑓(𝑛)
𝑛=0
This shows that the behaviour of an integral has the same behaviour as a series. Although this
test does not give the value of the series, it may be used to determine convergence.
The integral test may only be used if:
𝑓(π‘₯) > 0,
𝑓 ′ (π‘₯) < 0,
π‘“π‘œπ‘Ÿ π‘Žπ‘™π‘™ π‘₯
π‘“π‘œπ‘Ÿ π‘Žπ‘™π‘™ π‘₯ > π‘₯0 ,
π‘₯0 ∈ ℝ
𝑓(π‘₯) π‘šπ‘’π‘ π‘‘ 𝑏𝑒 π‘Ž π‘π‘œπ‘›π‘‘π‘–π‘›π‘’π‘œπ‘’π‘  π‘“π‘’π‘›π‘π‘‘π‘–π‘œπ‘›
In words, the function must be positive, decreasing and continuous.
∞
If the integral, ∫0 𝑓(π‘₯) βˆ™ 𝑑π‘₯, converges then the series will also converge. If the integral diverges,
the series will also diverge.
P-series:
∞
∑
𝑛=1
1
1
1
1
1
1
= 𝑝+ 𝑝+ 𝑝+ 𝑝+ 𝑝+β‹―
𝑝
𝑛
1
2
3
4
5
𝑝
𝑝
𝑝
𝑝
Let 𝑝 < 0: ∑∞
𝑛=1 𝑛 = 1 + 2 + 3 + β‹―
Using the test for divergence: lim 𝑛𝑝 = ∞ ≠ 0, therefore this series is divergent.
𝑛→∞
Let 𝑝 = 0: ∑∞
𝑛=1
1
𝑛0
=
1
10
+
1
20
1
30
+
+β‹―=1+1+1+1+β‹―
Using the test for divergence: lim 1 = 1 ≠ 0, therefore this series is divergent.
𝑛→∞
Let 0 < 𝑝 < 1: ∑∞
𝑛=1
1
𝑛𝑝
=
1
1𝑝
+
∞ 1
π‘₯𝑝
Using the integral test: ∫0
1
2𝑝
+
1
3𝑝
+β‹―
𝑏 1
π‘₯𝑝
βˆ™ 𝑑π‘₯ = lim (∫0
𝑏→∞
is divergent because the integral diverges.
Let 𝑝 = 1: Harmonic series. Divergent.
And finally let 1 < 𝑝: ∑∞
𝑛=1
1
𝑛𝑝
=
1
1𝑝
+
1
2𝑝
+
1
3𝑝
1
βˆ™ 𝑑π‘₯) = lim (1−𝑝 𝑏1−𝑝 ) = ∞ therefore this series
+β‹―
𝑏→∞
∞ 1
π‘₯𝑝
Using the integral test: ∫0
𝑏 1
π‘₯𝑝
βˆ™ 𝑑π‘₯ = lim (∫0
𝑏→∞
−1
1 (𝑝−1)
βˆ™ 𝑑π‘₯) = lim ((𝑝−1) (𝑏)
𝑏→∞
) = 0 therefore this
series is convergent because the integral converges. So, after a long exercise, the p-series is only
convergent when 𝑝 > 1.
The next two tests are known as the direct comparison test and the limit comparison test. The
direct comparison test is like the squeeze theorem, but it is only focused on one side of the
inequality. The side will depend on what is being tested for.
Consider two series:
∞
∞
∑{π‘Žπ‘› } ,
∑{𝑏𝑛 }
𝑛=1
𝑛=1
∞
∞
∞
If ∑∞
𝑛=1{π‘Žπ‘› } converges and ∑𝑛=1{π‘Žπ‘› } > ∑𝑛=1{𝑏𝑛 } then ∑𝑛=1{𝑏𝑛 } will converge.
∞
∞
∞
If ∑∞
𝑛=1{π‘Žπ‘› } diverges and ∑𝑛=1{π‘Žπ‘› } < ∑𝑛=1{𝑏𝑛 } then ∑𝑛=1{𝑏𝑛 } will diverge.
Makes sense, right? We may not however draw any conclusion from the following:
∞
∞
If ∑∞
𝑛=1{π‘Žπ‘› } converges and ∑𝑛=1{π‘Žπ‘› } < ∑𝑛=1{𝑏𝑛 }. (No conclusion)
∞
∞
If ∑∞
𝑛=1{π‘Žπ‘› } diverges and ∑𝑛=1{π‘Žπ‘› } > ∑𝑛=1{𝑏𝑛 }. (No conclusion)
The limit comparison test:
Suppose that the following series have only positive terms
∞
lim (
𝑛→∞
{
{π‘Žπ‘› }
) = 0,
{𝑏𝑛 }
lim (
𝑛→∞
{π‘Žπ‘› }
) = ∞,
{𝑏𝑛 }
∑{π‘Žπ‘› } ,
∑{𝑏𝑛 }
𝑛=1
𝑛=1
∞
{π‘Žπ‘› }
lim (
) = 𝑐,
𝑛→∞ {𝑏𝑛 }
𝐼𝑓:
∞
𝑐 ∈ ℝ>0 ,
∑{π‘Žπ‘› } 𝑀𝑖𝑙𝑙 π‘π‘’β„Žπ‘Žπ‘£π‘’ π‘™π‘–π‘˜π‘’ ∑{𝑏𝑛 }
𝑛=1
∞
∞
∞
𝑛=1
∑{𝑏𝑛 } 𝑖𝑠 π‘π‘œπ‘›π‘£π‘’π‘Ÿπ‘”π‘’π‘›π‘‘,
∑{π‘Žπ‘› } 𝑀𝑖𝑙𝑙 𝑏𝑒 π‘π‘œπ‘›π‘£π‘’π‘Ÿπ‘”π‘’π‘›π‘‘
𝑛=1
∞
𝑛=1
∞
∑{𝑏𝑛 } 𝑖𝑠 π‘‘π‘–π‘£π‘’π‘Ÿπ‘”π‘’π‘›π‘‘,
∑{π‘Žπ‘› } 𝑀𝑖𝑙𝑙 𝑏𝑒 π‘‘π‘–π‘£π‘’π‘Ÿπ‘”π‘’π‘›π‘‘
𝑛=1
𝑛=1
Let’s look at a few examples on how to apply these tests:
∞
∑
𝑛=1
∞
∫
1
∑∞
𝑛=1
1 1
𝑒𝑛
𝑛2
1 1
𝑒𝑛
𝑛2
𝑏
1
1
1 1
1 1
π‘₯ βˆ™ 𝑑π‘₯ = lim (∫
𝑒
𝑒 π‘₯ βˆ™ 𝑑π‘₯) = lim (−𝑒 𝑏 + 𝑒 1 ) = 𝑒 − 1
2
2
𝑏→∞
𝑏→∞
π‘₯
1 π‘₯
is therefore a convergent series by the integral test.
}
∞
∑
𝑛=1
1 > sin(𝑛) ,
5 − 2 βˆ™ sin(𝑛)
𝑛
−2 < −2 βˆ™ sin(𝑛) ,
3 5 − 2 βˆ™ sin(𝑛)
<
𝑛
𝑛
3
∞
∑∞
𝑛=1 𝑛 diverges by the p-series, and since it is less than ∑𝑛=1
5−2βˆ™sin(𝑛)
,
𝑛
∑∞
𝑛=1
5−2βˆ™sin(𝑛)
𝑛
will also
diverge by the direct comparison test.
∞
∑(
𝑛=1
∞
∑(
𝑛=1
2
√𝑛
2
√𝑛
+
(−1)𝑛
)
3𝑛+1
∞
)+ ∑(
𝑛=1
(−1)𝑛
)
3𝑛+1
2
∑∞
𝑛=1 ( 𝑛) is divergent by the p-series test.
√
∞
∞
∞
𝑛=1
𝑛=1
𝑛=1
(−1)𝑛
(−1)𝑛
1 1 𝑛
∑ ( 𝑛+1 ) < ∑ (| 𝑛+1 |) = ∑ ( βˆ™ ( ) )
3
3
3 3
(−1)𝑛
∑∞
𝑛=1 (
3𝑛+1
2
) converges by the direct comparison test and geometric series. Since ∑∞
𝑛=1 ( 𝑛) is
divergent and is added to the convergent series
(−1)𝑛
∑∞
𝑛=1 ( 3𝑛+1 ),
2
∑∞
𝑛=1 (√𝑛) +
√
(−1)𝑛
∞
∑𝑛=1 ( 𝑛+1 ) will
3
be a
divergent series.
The final example:
∞
1 𝑛
∑ (1 + )
𝑛
𝑛=1
1 𝑛
lim ((1 + ) ) = 𝑒 1 ≠ 0
𝑛→∞
𝑛
1 𝑛
∑∞
𝑛=1 (1 + 𝑛) diverges by the test for divergence.
Note through doing many problems these techniques will become more intuitive. There is no set
rule for when to use what.
Theme 2.4 – Absolute and conditional convergence
An alternating series is a series were terms are alternating between positive and negative
terms:
∞
∑(
𝑛=1
(−1)𝑛
(−1)1 (−1)2 (−1)3 (−1)5
1 1 1 1 1
+
+
+
+β‹―=− + − + − +β‹―
)=
𝑛
1
2
4
5
1 2 3 4 5
Note the terms are alternating hence the name alternating series. The big question is whether
the series converges or diverges. The following test may be used and is known as the alternating
series test. Consider the following alternating series:
∞
∑(−1)𝑛 {π‘Žπ‘› } = −π‘Ž1 + π‘Ž2 − π‘Ž3 + β‹―
𝑛=1
The series will converge if {π‘Žπ‘› } is strictly decreasing and have only positive terms and the limit
of the sequence is zero. In math terms
{π‘Žπ‘› } → 𝑓(π‘₯),
𝑓 ′ (π‘₯) < 0
{π‘Žπ‘› } > 0
lim ({π‘Žπ‘› }) = 0
𝑛→∞
1 1
Looking at the demonstration, we can see that {π‘Žπ‘› } = 𝑛. 𝑛 is decreasing an only has positive
1
𝑛→∞ 𝑛
terms. The limit lim ( ) does evaluate to zero. Therefore, the series converges by the
alternating series test.
The two graphs show the series and the sequence respectively. Note that the sequence does
converge to zero and the series does converge to a value as well, in this case − ln(2) ≈ −0.69.
What can we expect the error to be when we only consider the partial sums of these series? The
error will always be less than the absolute value of first term that is neglected of the sequence.
An example will demonstrate this well.
{π‘Žπ‘› } =
(−1)𝑛
1 1 1 1 1 1
= −1, , − , , − , , − , …
𝑛
2 3 4 5 6 7
∞
(−1)𝑛
1 1 1 1
𝑆∞ = ∑
= −1 + − + − + β‹― = − ln(2)
𝑛
2 3 4 5
𝑛=1
Consider the partial sum of the first 10 terms:
10
𝑆10 = ∑
𝑛=1
(−1)𝑛
1 1
1 1
= −1 + − + β‹― − +
= −0.6456
𝑛
2 3
9 10
1
11
The next term to be added is π‘Ž11 = − . This value will overshoot the series value.
1 1
1 1
1
𝑆11 = 𝑆10 + π‘Ž11 = −1 + − + β‹― − +
−
= −0.7365
2 3
9 10 11
We can then estimate the error as being less than the next term in the sequence:
|𝑆∞ − 𝑆𝑛 | = |π‘’π‘Ÿπ‘Ÿπ‘œπ‘Ÿ| < |π‘Žπ‘›+1 |
|− ln(2) − (−0.6456)| = 0.0475 < 0.0909
This is always true for convergent alternating series. This is helpful to determine the required
terms to estimate the value of a sum.
Determine the number of terms required to ensure that the error is less than 0.01.
∞
𝑆∞ = ∑
𝑛=1
(−1)𝑛
1 1 1 1
= −1 + − + − + β‹― = − ln(2)
𝑛
2 3 4 5
{π‘Žπ‘› } =
(−1)𝑛
1 1 1 1 1 1
= −1, , − , , − , , − , …
𝑛
2 3 4 5 6 7
(−1)𝑛+1
1
|
|=
< 0.01,
𝑛+1
𝑛+1
𝑛 = 99
What is absolute convergence? When taking the absolute value of an alternating series, it is
obviously larger than the original series. If the absolute value of an alternating series is
convergent, then by the direct comparison test, the original series is also convergent. This
alternating series is then known as absolutely convergent. A series that is only convergent but
diverges when the absolute value of the series is taken is conditionally convergent. Let’s look at
an example:
∞
𝑆∞ = ∑
𝑛=1
(−1)𝑛
= − ln(2) ,
𝑛
∞
∞
𝑛=1
𝑛=1
π‘π‘œπ‘›π‘£π‘’π‘Ÿπ‘”π‘’π‘  (π‘Žπ‘™π‘‘π‘’π‘Ÿπ‘›π‘Žπ‘‘π‘–π‘›π‘” π‘ π‘’π‘Ÿπ‘–π‘’π‘  𝑑𝑒𝑠𝑑)
(−1)𝑛
1
𝑆∞ = ∑ |
| = ∑ = ∞,
𝑛
𝑛
π‘‘π‘–π‘£π‘’π‘Ÿπ‘”π‘’π‘  (β„Žπ‘Žπ‘Ÿπ‘šπ‘œπ‘›π‘–π‘ π‘ π‘’π‘Ÿπ‘–π‘’π‘ )
This series is referred to as conditionally convergent.
The next example:
∞
𝑆∞ = ∑ (
𝑛=1
(−1)𝑛
1
)=− ,
𝑛
3
4
∞
π‘π‘œπ‘›π‘£π‘’π‘Ÿπ‘”π‘’π‘  (π‘Žπ‘™π‘‘π‘’π‘Ÿπ‘›π‘Žπ‘‘π‘–π‘›π‘” π‘ π‘’π‘Ÿπ‘–π‘’π‘  𝑑𝑒𝑠𝑑)
∞
(−1)𝑛
1 𝑛
1
𝑆∞ = ∑ |( 𝑛 )| = ∑ (( ) ) = ,
3
3
2
𝑛=1
π‘π‘œπ‘›π‘£π‘’π‘Ÿπ‘”π‘’π‘  (π‘”π‘’π‘œπ‘šπ‘’π‘‘π‘Ÿπ‘–π‘ π‘ π‘’π‘Ÿπ‘–π‘’π‘ )
𝑛=1
This series is referred to as an absolutely convergent series.
Remember that all previous tests may be used to determine convergence.
Two new tests are introduced. Ratio and root test.
Ratio test:
∑{π‘Žπ‘› }
π‘Žπ‘›+1
𝐿 < 1,
∑{π‘Žπ‘› } π‘π‘œπ‘›π‘£π‘’π‘Ÿπ‘”π‘’π‘ 
|) = 𝐿,
𝑛→∞
π‘Žπ‘›
π‘Žπ‘›+1
𝑖𝑓 lim (|
𝐿 > 1,
∑{π‘Žπ‘› } π‘‘π‘–π‘£π‘’π‘Ÿπ‘”π‘’π‘ 
|) = 𝐿,
𝑛→∞
π‘Žπ‘›
π‘Žπ‘›+1
𝑖𝑓 lim (|
𝐿 = 1,
π‘›π‘œ π‘π‘œπ‘›π‘π‘™π‘’π‘ π‘–π‘œπ‘›
|) = 𝐿,
𝑛→∞
π‘Žπ‘›
𝑖𝑓 lim (|
Root test:
∑{π‘Žπ‘› }
1
𝑖𝑓 lim (|π‘Žπ‘› |𝑛 ) = 𝐿,
𝑛→∞
1
𝑖𝑓 lim (|π‘Žπ‘› |𝑛 ) = 𝐿,
𝑛→∞
𝐿 < 1,
𝐿 > 1,
1
𝑖𝑓 lim (|π‘Žπ‘› |𝑛 ) = 𝐿,
𝐿 = 1,
𝑛→∞
∑{π‘Žπ‘› } π‘π‘œπ‘›π‘£π‘’π‘Ÿπ‘”π‘’π‘ 
∑{π‘Žπ‘› } π‘‘π‘–π‘£π‘’π‘Ÿπ‘”π‘’π‘ 
π‘›π‘œ π‘π‘œπ‘›π‘π‘™π‘’π‘ π‘–π‘œπ‘›
Example:
∞
∑
𝑛=1
𝑛!
2𝑛
2
(𝑛 + 1)!
2
(𝑛 + 1) βˆ™ (𝑛!) 2𝑛
(𝑛 + 1)
π‘Žπ‘›+1
(𝑛+1)2
2
lim (|
βˆ™
|) = lim (| 2𝑛 |)
|) = lim (|
|) = lim (| 𝑛2 2𝑛
𝑛!
𝑛→∞
𝑛→∞
𝑛→∞
𝑛→∞
π‘Žπ‘›
2 βˆ™2
2 βˆ™ 2 βˆ™ 2 (𝑛!)
2
2𝑛
(𝑛 + 1)
(1)
lim (| 2𝑛
|) = lim (| 2𝑛
|) = 0 = 𝐿 < 1,
𝑛→∞
𝑛→∞ 2
2 βˆ™2
βˆ™ 4 βˆ™ ln(2)
π‘π‘œπ‘›π‘£π‘’π‘Ÿπ‘”π‘’π‘›π‘‘ (π‘Ÿπ‘Žπ‘‘π‘–π‘œ 𝑑𝑒𝑠𝑑)
Theme 3: Power series
10 Lectures [week 6 & 7 & 8]
This theme will introduce power series. The theme will address convergence and
representation of series as functions. Taylor series and polynomials will be addressed. The final
subtheme will solve differential equations using power series.
Theme 3.1: Sequences of real numbers
Theme 3.2: Series of real numbers
Theme 3.3: Series with non-negative terms
Theme 3.4: Absolute- and conditional convergence
Pre-knowledge for this theme consists of Taylor polynomials (WTW164).
Theme 3.1 – Convergence of a power series
What is a power series?
∞
∑ 𝑐𝑛 π‘₯ 𝑛 = 𝑐0 + 𝑐1 π‘₯ + 𝑐2 π‘₯ 2 + 𝑐3 π‘₯ 3 + β‹―
𝑛=0
𝑐𝑛 are constant coefficients of the polynomial terms. A power series about a point π‘Ž will have a
number 𝑅 which is known as the radius of convergence. Therefore, the series will converge for
values of π‘₯ on an interval π‘₯ ∈ (π‘Ž − 𝑅, π‘Ž + 𝑅).
∞
∑ 𝑐𝑛 (π‘₯ − π‘Ž)𝑛 ,
π‘₯ ∈ (π‘Ž − 𝑅, π‘Ž + 𝑅)
𝑛=0
How can we determine the radius of convergence?
∞
2 𝑛
𝑆∞ = ∑ 𝑛 ( ) βˆ™ π‘₯ 𝑛
3
𝑛=0
Always, always, always do a ratio test.
2 𝑛 𝑛
𝑐𝑛 = 𝑛 ( ) π‘₯ ,
3
𝑐𝑛+1
2 𝑛+1 𝑛+1
(𝑛
=
+ 1) ( )
π‘₯
,
3
2
1
| βˆ™ π‘₯ βˆ™ lim (1 + )| < 1,
𝑛→∞
3
𝑛
3
3
− <π‘₯< ,
2
2
−3
π‘“π‘œπ‘Ÿ π‘₯ =
,
2
π‘“π‘œπ‘Ÿ π‘₯ =
−3
,
2
2
−1 < π‘₯ < 1
3
π‘Ž = 0,
∞
𝑐𝑛+1 2
1
= βˆ™ π‘₯ βˆ™ (1 + )
𝑐𝑛
3
𝑛
𝑅=
3
2
∞
2 𝑛
3 𝑛
𝑆∞ = ∑ 𝑛 βˆ™ ( ) βˆ™ (− ) = ∑ 𝑛 βˆ™ (−1)𝑛 ⟹ π·π‘–π‘£π‘’π‘Ÿπ‘”π‘’π‘  (π‘Žπ‘™π‘‘. π‘ π‘’π‘Ÿπ‘–π‘’π‘  𝑑𝑒𝑠𝑑)
3
2
𝑛=0
∞
𝑛
𝑛
𝑛=0
∞
2
3
𝑆∞ = ∑ 𝑛 βˆ™ ( ) βˆ™ ( ) = ∑ 𝑛 ⟹ π·π‘–π‘£π‘’π‘Ÿπ‘”π‘’π‘  (𝑝 − π‘ π‘’π‘Ÿπ‘–π‘’π‘ : 𝑝 = −1)
3
2
𝑛=0
𝑛=0
Therefore, the series will only converge on the interval:
3 3
π‘₯ ∈ (− , ) ,
2 2
𝑅=
3
2
Theme 3.2 – Representation of functions as power series
Recall the geometric series:
∞
𝑆∞ = ∑ π‘Žπ‘Ÿ 𝑛 =
𝑛=0
π‘Ž
1−π‘Ÿ
If we let π‘Ž = 1 and π‘Ÿ = π‘₯:
∞
𝑆∞ = ∑ π‘₯ 𝑛 =
𝑛=0
1
1−π‘₯
Some special (algebraic) manipulations:
1
1
=
|
1 − 𝛼π‘₯ 1 − 𝑋 𝑋→𝛼π‘₯
1
1
=
|
𝛼
1−π‘₯
1 − 𝑋 𝑋→π‘₯ 𝛼
1
1
1
1
=
= βˆ™
|
1
𝛼 − π‘₯ 𝛼 (1 − π‘₯) 𝛼 (1 − 𝑋) 𝑋→ 1 π‘₯
𝛼
𝛼
Through (calculus) manipulation different functions can be represented:
∞
𝑑
1
(𝑆∞ ) = ∑ 𝑛 βˆ™ π‘₯ 𝑛−1 = −
(1 − π‘₯)2
𝑑π‘₯
𝑛=0
∞
∫ 𝑆∞ βˆ™ 𝑑π‘₯ = ∑
𝑛=1
1
1
π‘₯ 𝑛+1 = − ln(1 − π‘₯) + 𝐢 = ln (
)+𝐢
𝑛+1
1−π‘₯
How does integrating and differentiating the power series influence the radius of convergence?
∞
𝑆∞ = ∑ π‘₯ 𝑛 = 1 + π‘₯ + π‘₯ 2 + π‘₯ 3 + β‹―
𝑛=0
∞
𝑑
(𝑆 ) = ∑ 𝑛 βˆ™ π‘₯ 𝑛−1 = 0 + 1 + 2π‘₯ + 3π‘₯ 2 + β‹―
𝑑π‘₯ ∞
𝑛=0
∞
∫ 𝑆∞ βˆ™ 𝑑π‘₯ = ∑
𝑛=0
1
1
1
1
π‘₯ 𝑛+1 = π‘₯ + π‘₯ 2 + π‘₯ 3 + π‘₯ 4 + β‹―
𝑛+1
2
3
4
Using the ratio test to find the radius of convergence of the following:
∞
𝑆∞ = ∑ π‘₯ 𝑛 = 1 + π‘₯ + π‘₯ 2 + π‘₯ 3 + β‹―
𝑛=0
| lim (
𝑛→∞
π‘₯ 𝑛+1
)| < 1,
π‘₯𝑛
−1 < π‘₯ < 1,
𝑅=1
The derivative:
∞
𝑑
(𝑆 ) = ∑ 𝑛 βˆ™ π‘₯ 𝑛−1 = 0 + 1 + 2π‘₯ + 3π‘₯ 2 + β‹―
𝑑π‘₯ ∞
𝑛=0
| lim (
𝑛→∞
(𝑛 + 1)π‘₯ 𝑛
)| < 1,
𝑛π‘₯ 𝑛−1
−1 < π‘₯ < 1,
𝑅=1
∞
∑ 𝑛 βˆ™ (−1)𝑛−1 ,
π‘“π‘œπ‘Ÿ π‘₯ = −1,
π·π‘–π‘£π‘’π‘Ÿπ‘”π‘’π‘  (π‘Žπ‘™π‘‘. π‘ π‘’π‘Ÿπ‘–π‘’π‘  𝑑𝑒𝑠𝑑)
𝑛=0
∞
−1 < π‘₯ < 1,
π‘“π‘œπ‘Ÿ π‘₯ = 1,
{
π·π‘–π‘£π‘’π‘Ÿπ‘”π‘’π‘  (𝑝 − π‘ π‘’π‘Ÿπ‘–π‘’π‘ : 𝑝 = −1)
∑𝑛,
𝑛=0
And finally, the integral:
∞
∫ 𝑆∞ βˆ™ 𝑑π‘₯ = ∑
𝑛=0
| lim (
𝑛→∞
1
1
1
1
π‘₯ 𝑛+1 = π‘₯ + π‘₯ 2 + π‘₯ 3 + π‘₯ 4 + β‹―
𝑛+1
2
3
4
(𝑛 + 2)π‘₯ 𝑛+2
)| < 1,
(𝑛 + 1)π‘₯ 𝑛+1
∞
π‘“π‘œπ‘Ÿ π‘₯ = −1,
∑
𝑛=0
∞
−1 ≤ π‘₯ < 1,
{
π‘“π‘œπ‘Ÿ π‘₯ = 1,
−1 < π‘₯ < 1,
1
βˆ™ (−1)𝑛+1 ,
𝑛+1
∑
𝑛=0
1
,
𝑛+1
𝑅=1
πΆπ‘œπ‘›π‘£π‘’π‘Ÿπ‘”π‘’π‘  (π‘Žπ‘™π‘‘. π‘ π‘’π‘Ÿπ‘–π‘’π‘  𝑑𝑒𝑠𝑑)
π·π‘–π‘£π‘’π‘Ÿπ‘”π‘’π‘  (π‘™π‘–π‘šπ‘–π‘‘ π‘π‘œπ‘šπ‘π‘Žπ‘Ÿπ‘–π‘ π‘œπ‘› 𝑑𝑒𝑠𝑑)
Note that the radius of convergence remained unchanged, but the interval did change.
The ol’reliable:
𝑓(π‘₯) = tan−1 (π‘₯)
𝑓 ′ (π‘₯) =
1
1
1
=
=
|
2
2
1+π‘₯
1 − (−π‘₯ ) 1 − 𝛽 𝛽→−π‘₯2
∞
∞
∞
𝑛=0
𝑛=0
𝑛=0
1
= ∑ 𝛽 𝑛 = ∑(−π‘₯ 2 )𝑛 = ∑(−1)𝑛 βˆ™ (π‘₯ 2𝑛 )
1−𝛽
∞
𝑓
′ (π‘₯)
∞
𝑛
= ∑(−1) βˆ™
𝑛=0
(π‘₯ 2𝑛 )
,
−1 (π‘₯)
𝑓(π‘₯) = tan
= ∑(−1)𝑛 βˆ™
𝑛=0
1
βˆ™ (π‘₯ 2𝑛+1 )
2𝑛 + 1
Theme 3.3 – Taylor-polynomials and Taylor-series
How can a polynomial be used to describe more complex functions such as exponentials and
trigonometric functions?
𝑓(π‘₯) = 𝑒 π‘₯
𝑓 ′ (π‘₯) = 𝑒 π‘₯ ,
𝑓 ′′ (π‘₯) = 𝑒 π‘₯ ,
𝑓 ′′′ (π‘₯) = 𝑒 π‘₯ ,
,… ,
𝑓 𝑛 (π‘₯) = 𝑒 π‘₯
𝑓 𝑛 (π‘Ž) = 𝑒 π‘Ž
∞
𝑇𝑛 (π‘₯) = ∑
𝑛=0
𝑓 𝑛 (π‘Ž)
βˆ™ (π‘₯ − π‘Ž)𝑛
𝑛!
∞
π‘₯
𝑓(π‘₯) = 𝑒 = ∑
𝑛=0
π‘’π‘Ž
βˆ™ (π‘₯ − π‘Ž)𝑛
𝑛!
Let us approximate 𝑓(π‘₯) = 𝑒 π‘₯ about the point π‘₯ = 0 by using a few terms from the Taylor
polynomial (note that a Taylor polynomial centred about π‘₯ = 0 is known as a Maclaurin series:
1
𝑒π‘₯ ≈ ∑
𝑛=0
1
βˆ™ (π‘₯)𝑛 = 1 + π‘₯,
𝑛!
1 1
π‘₯ ∈ (− , )
2 2
Note that at the point π‘₯ = 0 the Taylor polynomial is equal to the function but further from the
point, the polynomial diverges. By adding more terms, the accuracy may be increased.
4
π‘₯
𝑒 ≈∑
𝑛=0
1
1
1
1
βˆ™ (π‘₯)𝑛 = 1 + π‘₯ + π‘₯ 2 + π‘₯ 3 + π‘₯ 4
𝑛!
2
6
24
The polynomial converges to the function the more terms is added.
Let’s look at some trigonometric functions:
𝑓(π‘₯) = sin(π‘₯)
π‘Ž = 0,
𝑓 ′ (π‘₯) = cos(π‘₯) ,
𝑓 ′′ (π‘₯) = − sin(π‘₯) ,
𝑓 ′ (0) = 1,
∞
𝑇𝑛 (π‘₯) = ∑
𝑛=0
𝑓(0) = sin(0) = 0
𝑓 ′′ (0) = 0,
𝑓 ′′′ (π‘₯) = − cos(π‘₯) ,
𝑓 ′′′ (0) = −1,
𝑓 𝑛 (π‘₯) =?
,… ,
𝑓 𝑛 (π‘₯) =?
,… ,
𝑓 𝑛 (0)
0
1
0
−1 3 0 4 1 5 0 6 −1 7
βˆ™ (π‘₯)𝑛 = π‘₯ 0 + π‘₯ 1 + π‘₯ 2 +
π‘₯ + π‘₯ + π‘₯ + π‘₯ +
π‘₯ +β‹―
𝑛!
0!
1!
2!
3!
4!
5!
6!
7!
∞
𝑇𝑛 (π‘₯) = ∑
𝑛=0
𝑓 𝑛 (0)
1
1
1
1
βˆ™ (π‘₯)𝑛 = π‘₯ 1 − π‘₯ 3 + π‘₯ 5 − π‘₯ 7 + β‹―
𝑛!
1!
3!
5!
7!
∞
𝑓(π‘₯) = sin(π‘₯) = ∑
𝑛=0
(−1)𝑛
βˆ™ (π‘₯)2𝑛+1
(2𝑛 + 1)!
Similarly, for 𝑓(π‘₯) = cos(π‘₯):
𝑓(π‘₯) = cos(π‘₯)
π‘Ž = 0,
𝑓 ′ (π‘₯) = − sin(π‘₯) ,
𝑓 ′′ (π‘₯) = − cos(π‘₯) ,
𝑓 ′ (0) = 0,
∞
𝑇𝑛 (π‘₯) = ∑
𝑛=0
𝑓(0) = cos(0) = 1
𝑓 ′′ (0) = −1,
𝑓 ′′′ (π‘₯) = sin(π‘₯) ,
𝑓 ′′′ (0) = 0,
,… ,
𝑓 𝑛 (π‘₯) =?
,… ,
𝑓 𝑛 (π‘₯) =?
𝑓 𝑛 (0)
1
0
−1 2 0 3 1 4 0 5 −1 6 0 7
βˆ™ (π‘₯)𝑛 = π‘₯ 0 + π‘₯ 1 +
π‘₯ + π‘₯ + π‘₯ + π‘₯ +
π‘₯ + π‘₯ +β‹―
𝑛!
0!
1!
2!
3!
4!
5!
6!
7!
∞
𝑇𝑛 (π‘₯) = ∑
𝑛=0
𝑓 𝑛 (0)
1
1
1
1
βˆ™ (π‘₯)𝑛 = π‘₯ 0 − π‘₯ 2 + π‘₯ 4 − π‘₯ 6 + β‹―
𝑛!
0!
2!
4!
6!
∞
𝑓(π‘₯) = cos(π‘₯) = ∑
𝑛=0
(−1)𝑛
βˆ™ (π‘₯)2𝑛
(2𝑛)!
These approximations using only a few terms (four) has a high level of accuracy.
∞
π‘’π‘Ž
π‘₯
𝑒 = ∑ βˆ™ (π‘₯ − π‘Ž)𝑛 ,
𝑛!
𝑛=0
∞
(−1)𝑛
sin(π‘₯) = ∑
βˆ™ (π‘₯)2𝑛+1 ,
(2𝑛 + 1)!
𝑛=0
∞
(−1)𝑛
cos(π‘₯) = ∑
βˆ™ (π‘₯)2𝑛
(2𝑛)!
𝑛=0
The last function if left for the reader as an exercise. Luckily the writer is also a reader.
𝑓(π‘₯) = ln(π‘₯)
π‘Ž = 1,
𝑓 ′ (π‘₯) =
∞
𝑇𝑛 (π‘₯) = ∑
𝑛=0
1
,
π‘₯
𝑓 ′′ (π‘₯) = −
1
,
π‘₯2
𝑓(π‘Ž) = 0
𝑓 ′′′ (π‘₯) =
(1) βˆ™ (2)
,
π‘₯3
,… ,
𝑓 𝑛 (π‘₯) =?
𝑓 𝑛 (1)
βˆ™ (π‘₯ − 1)𝑛
𝑛!
=
(1) βˆ™ (2) 1
ln(1) 1 1
1 1
+ βˆ™ βˆ™ (π‘₯ − 1) − 2 βˆ™ βˆ™ (π‘₯ − 1)2 +
βˆ™ βˆ™ (π‘₯ − 1)3 + β‹―
0!
1 1!
1 2!
13
3!
1 1
1 1
1 1
= 0 + βˆ™ βˆ™ (π‘₯ − 1) − βˆ™ 2 βˆ™ (π‘₯ − 1)2 + βˆ™ 3 βˆ™ (π‘₯ − 1)3 + β‹―
1 1
2 1
3 1
∞
=∑
𝑛=1
(−1)𝑛−1
1
1
βˆ™ (π‘₯ − 1)𝑛 = (π‘₯ − 1) − βˆ™ (π‘₯ − 1)2 + βˆ™ (π‘₯ − 1)3 + β‹―
𝑛
2
3
ln(π‘₯) =
π‘₯ − 1 (π‘₯ − 1)2 (π‘₯ − 1)3
−
+
+β‹―
1
2
3
Note that the partial Taylor polynomial can be used to approximate the function. If a remainder
term is incorporated into the equation such that:
𝑛
𝑓(π‘₯) = 𝑇𝑛 (π‘₯) + 𝑅𝑛 (π‘₯) = ∑
𝑛=0
𝑓 𝑛 (π‘Ž)
𝑓 𝑛+1 (𝑐)
βˆ™ (π‘₯ − π‘Ž)𝑛 +
βˆ™ (π‘₯ − π‘Ž)𝑛+1
(𝑛 + 1)!
𝑛!
𝑐 ∈ (π‘₯, π‘Ž)
If the limit, lim (𝑅𝑛 (π‘₯)) = 0 then that will result in 𝑓(π‘₯) = 𝑇∞ (π‘₯).
𝑛→∞
So, assume that 𝑓 𝑛+1 (𝑐) = 𝐾 does exist, then:
lim (
𝑛→∞
(π‘₯ − π‘Ž)𝑛
𝐾
βˆ™ (π‘₯ − π‘Ž)𝑛+1 ) = 𝐾(π‘₯ − π‘Ž) βˆ™ lim (
)=0
𝑛→∞ (𝑛 + 1)!
(𝑛 + 1)!
From this it can be concluded that the Taylor polynomials will always converge to the function.
But how far will it converge? How can the radius of convergence be determined?
Remember the old friend, the ratio test:
∞
π‘₯
𝑓(π‘₯) = 𝑒 = ∑
𝑛=0
{π‘Žπ‘› } =
π‘’π‘Ž
βˆ™ (π‘₯ − π‘Ž)𝑛 ,
𝑛!
π‘’π‘Ž
βˆ™ (π‘₯ − π‘Ž)𝑛
𝑛!
{π‘Žπ‘›+1 } =
π‘’π‘Ž
βˆ™ (π‘₯ − π‘Ž)𝑛+1
(𝑛 + 1)!
{π‘Žπ‘›+1 } π‘₯ − π‘Ž
=
{π‘Žπ‘› }
𝑛+1
lim (|
𝑛→∞
π‘₯−π‘Ž
|) = 0 βˆ™ (π‘₯ − π‘Ž)
𝑛+1
Therefore, for all real values of π‘₯ the limit will always be 0 and hence, less than 1. This means
that the radius of convergence is ∞. Irrespective about which point the polynomial is centred.
What is a binomial series?
𝑛
π‘˜
(π‘˜(π‘˜ − 1)) 2 (π‘˜(π‘˜ − 1)(π‘˜ − 2)) 3
∑ ⟨ ⟩ π‘₯ 𝑛 = (1 + π‘₯)π‘˜ = 1 + π‘˜π‘₯ +
π‘₯ +
π‘₯ +β‹―
𝑛
2!
3!
𝑛=0
(π‘˜!)
π‘˜
⟨ ⟩=
𝑛
𝑛! (π‘˜ − 𝑛)!
Taylors theorem:
𝑛
𝑓(π‘₯) = ∑
𝑛=0
𝑓 𝑛 (π‘Ž)
𝑓(π‘Ž) 𝑓 ′ (π‘Ž)
𝑓 ′′ (π‘Ž)
(π‘₯ − π‘Ž)1 +
(π‘₯ − π‘Ž)2 + β‹― + 𝑅𝑛 (π‘₯)
βˆ™ (π‘₯ − π‘Ž)𝑛 + 𝑅𝑛 (π‘₯) =
+
𝑛!
0!
1!
2!
𝑅𝑛 (π‘₯) =
𝑓 𝑛+1 (𝑐)
βˆ™ (π‘₯ − π‘Ž)𝑛+1
(𝑛 + 1)!
The error is estimated by using the remainder when the Taylor series is used to approximate
the function value. Let’s look at a Maclaurin series of ln(π‘₯ + 1) if only the third order is used to
approximate the function at ln(1.1).
𝑓(π‘₯) = ln(1 + π‘₯) ,
𝑓(0) = 0,
𝑓 ′ (π‘₯) =
𝑓 ′ (0) = 1,
1
,
1+π‘₯
𝑓 ′′ (π‘₯) = −
𝑓 ′′ (π‘₯) = −1,
1
,…
(1 + π‘₯)2
𝑓 ′′′ (0) = 2
𝑛
𝑛
𝑛=0
𝑛=1
𝑓 𝑛 (0)
π‘₯2 π‘₯3 π‘₯4
𝑓 𝑛 (0)
∑
βˆ™ (π‘₯)𝑛 = 0 + π‘₯ − + − + β‹― = ∑
βˆ™ (π‘₯)𝑛
𝑛!
2
3
4
𝑛!
𝑇3 (π‘₯) = π‘₯ −
π‘₯2 π‘₯3
+
≈ ln(1 + π‘₯) ,
2
3
𝑇3 (0.1) = 0.1 −
𝑓(0.1) = ln(1.1)
0.12 0.13
+
= 0.09533 ≈ ln(1.1) = 0.09531
2
3
𝑛
𝑅𝑛 (π‘₯) = 𝑓(π‘₯) − ∑
𝑛=0
𝑓 𝑛 (π‘Ž)
βˆ™ (π‘₯ − π‘Ž)𝑛 = 0.0953101 − 0.0953333 = −0.0000232
𝑛!
𝑅𝑛 (π‘₯) = −0.0000232 ≈ −
0.14
= −0.000025
4
The error can be approximated using the first term that was neglected in the approximation.
Let’s do another example:
Approximate the value of:
0
2
∫ 𝑒 π‘₯ βˆ™ 𝑑π‘₯
−1
∞
∞
1
𝑒 π‘₯ = ∑ βˆ™ (π‘₯)𝑛 ,
𝑛!
𝑒
π‘₯2
=∑
𝑛=0
0
∫ 𝑒
−1
π‘₯2
𝑛=0
1
βˆ™ (π‘₯)2𝑛
𝑛!
∞
∞
𝑛=0
𝑛=0
0
1
1
1
−1
2𝑛+1
(π‘₯)
βˆ™ 𝑑π‘₯ = ∑ βˆ™
βˆ™
βˆ™ (−1)2𝑛+1
| =∑ βˆ™
𝑛! 2𝑛 + 1
𝑛! 2𝑛 + 1
−1
∞
∑
𝑛=0
1
1
1 1
1
1 1
1
βˆ™
=1+ +
+
+β‹―≈1+ +
+
𝑛! 2𝑛 + 1
3 10 42
3 10 42
0
1 1
1
2
∫ 𝑒 π‘₯ βˆ™ 𝑑π‘₯ ≈ 1 + +
+
= 1.457
3 10 42
−1
Find a Taylor polynomial centred about π‘₯ = 2 for ln(3π‘₯ + 2) and approximate the value of ln(7)
𝑓(π‘₯) = ln(2 + 3π‘₯) ,
𝑓 𝑛 (π‘₯) =
𝑓 ′ (π‘₯) =
(−1)𝑛−1
βˆ™ 3𝑛 βˆ™ (𝑛 − 1)!,
(3π‘₯ + 2)𝑛
3
,
2 + 3π‘₯
𝑓 ′′ (π‘₯) = −
1βˆ™3βˆ™3
,…
(2 + 3π‘₯)2
3 𝑛
𝑓 𝑛 (2) = (−1)𝑛−1 (𝑛 − 1)! βˆ™ ( ) ,
8
𝑛≠0
𝑓(2) = ln(8)
∞
∞
𝑛=0
𝑛=1
𝑓 𝑛 (2)
π‘₯2 π‘₯3 π‘₯4
𝑓 𝑛 (2)
∑
βˆ™ (π‘₯ − 2)𝑛 = ln(8) + π‘₯ − + − + β‹― = ln(8) + ∑
βˆ™ (π‘₯ − 2)𝑛
𝑛!
2
3
4
𝑛!
∞
𝑓(π‘₯) = ln(2 + 3π‘₯) = ln(8) + ∑
𝑛=1
(−1)𝑛−1 3 𝑛
βˆ™ ( ) βˆ™ (π‘₯ − 2)𝑛
𝑛
8
3 1
−1 3 2
1
(π‘₯
𝑓(π‘₯) = ln(2 + 3π‘₯) ≈ ln(8) + ( ) βˆ™ − 2) +
βˆ™ ( ) βˆ™ (π‘₯ − 2)2
8
2
8
1
2
5
3 1 5
−1 3 2 5
𝑓 ( ) = ln(7) ≈ ln(8) + ( ) βˆ™ ( − 2) +
βˆ™ ( ) βˆ™ ( − 2) = 1.9466
3
8
3
2
8
3
Theme 3.4 – Power series solutions to differential equations
Let’s go back to WTW256:
𝑑𝑦
+ 2𝑦(π‘₯) = 0
𝑑π‘₯
Solving this separable DE, it yields the following function:
𝑦(π‘₯) = 𝐢0 𝑒 −2π‘₯
The power series method assumes that the solution is in the form:
∞
𝑦(π‘₯) = ∑ 𝑐𝑛 π‘₯ 𝑛 = 𝑐0 + 𝑐1 π‘₯ + 𝑐2 π‘₯ 2 + β‹―
𝑛=0
Let’s attempt to solve it using the power series method:
∞
∑ 𝑐𝑛
∞
(𝑛)π‘₯ 𝑛−1
+ 2 ∑ 𝑐𝑛 π‘₯ 𝑛 = 0
𝑛=1
𝑛=0
Getting all indexes, the same:
∞
∞
𝑛
∑ 𝑐𝑛+1 (𝑛 + 1)π‘₯ + 2 ∑ 𝑐𝑛 π‘₯ 𝑛 = 0
𝑛=0
𝑛=0
Make sure all the π‘₯ exponents are the same.
∞
∑[𝑐𝑛+1 (𝑛 + 1)π‘₯ 𝑛 + 2𝑐𝑛 π‘₯ 𝑛 ] = 0,
∴ 𝑐𝑛+1 (𝑛 + 1)π‘₯ 𝑛 + 2𝑐𝑛 π‘₯ 𝑛 = 0
𝑛=0
𝑐𝑛+1 (𝑛 + 1) + 2𝑐𝑛 = 0,
𝑐𝑛+1 = −
2𝑐0 (−1)1 1
=
βˆ™ 2 𝑐0
1
1!
2𝑐1
2
2𝑐0 (−1)2 2
𝑐2 = −
=− βˆ™−
=
βˆ™ 2 𝑐0
2
2
1
2!
2𝑐2 (−1)3 3
𝑐3 = −
=
βˆ™ 2 𝑐0
3
3!
𝑛
(−1)
𝑐𝑛 =
βˆ™ 2𝑛 𝑐0
𝑛!
2𝑐𝑛
← π‘…π‘’π‘π‘’π‘Ÿπ‘Ÿπ‘’π‘›π‘π‘’ π‘Ÿπ‘’π‘™π‘Žπ‘‘π‘–π‘œπ‘›
𝑛+1
𝑛=0
𝑐1 = −
𝑛=1
𝑛=2
𝑛 ∈ [0, ∞),
∞
(−1)𝑛 𝑛
𝑦(π‘₯) = ∑
βˆ™ 2 𝑐0 βˆ™ π‘₯ 𝑛
𝑛!
𝑛=0
∞
(−2π‘₯)𝑛
𝑦(π‘₯) = 𝑐0 ∑
= 𝑐0 𝑒 −2π‘₯
𝑛!
𝑛=0
Does this solution converge to the actual solution? Use the ratio test:
𝑛∈β„€
{π‘Žπ‘› } =
(−2π‘₯)𝑛
βˆ™,
𝑛!
{π‘Žπ‘›+1 } =
(−2π‘₯)𝑛+1
(𝑛 + 1)!
{π‘Žπ‘›+1 }
−2π‘₯
=
{π‘Žπ‘› }
𝑛+1
lim (|
𝑛→∞
π‘₯−π‘Ž
|) = 0 βˆ™ (−2π‘₯)
𝑛+1
Therefore, for all real values of π‘₯ the limit will always be 0 and hence, less than 1. This means
that the radius of convergence is ∞. The solution converges for all real values of π‘₯.
What are ordinary and singular points?
Consider the following DE:
𝐴(π‘₯)𝑦 ′′ (π‘₯) + 𝐡(π‘₯)𝑦 ′ (π‘₯) + 𝐢(π‘₯)𝑦(π‘₯) = 0,
𝐴(π‘₯) = 1
On the interval where 𝐡(π‘₯) and 𝐢(π‘₯) can be evaluated and analysed, all these points are known
as ordinary points. When these functions cannot be evaluated at a point these points are called
singularities. The guaranteed radius of convergence can be determined by noting that all power
series solutions are centred around π‘₯ = 0. Let π‘Ž be a singularity point on a differential equation
series solution. The power series solution will converge on an interval π‘₯ < |π‘Ž|. The radius of
convergence is therefore 𝑅 = π‘Ž.
Linearly independent solutions:
𝑦 ′′ (π‘₯) + 𝑦(π‘₯) = 0
∞
∞
𝑛=0
𝑛=0
𝑑2
(∑ 𝑐𝑛 π‘₯ 𝑛 ) + ∑ 𝑐𝑛 π‘₯ 𝑛 = 0
𝑑π‘₯ 2
∞
∑ 𝑐𝑛 (𝑛)(𝑛 − 1)π‘₯
∞
𝑛−2
+ ∑ 𝑐𝑛 π‘₯ 𝑛 = 0
𝑛=2
𝑛=0
∞
∞
𝑛
∑ 𝑐𝑛+2 (𝑛 + 2)(𝑛 + 1)π‘₯ + ∑ 𝑐𝑛 π‘₯ 𝑛 = 0
𝑛=0
𝑛=0
∞
∑[𝑐𝑛+2 (𝑛 + 2)(𝑛 + 1)π‘₯ 𝑛 + 𝑐𝑛 π‘₯ 𝑛 ] = 0
𝑛=0
𝑐𝑛+2 (𝑛 + 2)(𝑛 + 1)π‘₯ 𝑛 + 𝑐𝑛 π‘₯ 𝑛 = 0,
−𝑐0
(1)(2)
−𝑐1
𝑐3 =
(2)(3)
−𝑐2
𝑐0
𝑐4 =
=
(4)(3) (1)(2)(3)(4)
𝑐2 =
𝑐𝑛+2 =
−𝑐𝑛
(𝑛 + 2)(𝑛 + 1)
𝑛=0
𝑛=1
𝑛=2
−𝑐3
𝑐1
𝑐5 =
=
(4)(5) (2)(3)(4)(5)
−𝑐4
−𝑐0
𝑐6 =
=
(6)(5) (1)(2)(3)(4)(5)(6)
−𝑐5
−𝑐1
𝑐7 =
=
(6)(7) (2)(3)(4)(5)(6)(7)
𝑛=3
𝑛=4
𝑛=5
∞
∑ 𝑐𝑛 π‘₯ 𝑛 = 𝑐0 + 𝑐1 π‘₯ + 𝑐2 π‘₯ 2 + 𝑐3 π‘₯ 3 + 𝑐4 π‘₯ 4 + 𝑐5 π‘₯ 5 + 𝑐6 π‘₯ 6 + 𝑐7 π‘₯ 7 + β‹―
𝑛=0
= 𝑐0 + 𝑐1 π‘₯ −
= 𝑐0 (1 −
𝑐0 2 −𝑐1 3 𝑐0 4 𝑐1 5 −𝑐0 6 −𝑐1 7
π‘₯ +
π‘₯ + π‘₯ + π‘₯ +
π‘₯ +
π‘₯ +β‹―
2!
3!
4!
5!
6!
7!
π‘₯2 π‘₯4 π‘₯6
π‘₯3 π‘₯5 π‘₯7
+ − + β‹― ) + 𝑐1 (π‘₯ − + + + β‹― )
2! 4! 6!
3! 5! 7!
∞
∞
𝑛=0
𝑛=0
(−1)𝑛 βˆ™ π‘₯ 2𝑛
(−1)𝑛 βˆ™ π‘₯ 2𝑛+1
= 𝑐0 βˆ™ ∑
+ 𝑐1 βˆ™ ∑
(2𝑛 + 1)!
2𝑛!
𝑦(π‘₯) = 𝑐0 βˆ™ cos(π‘₯) + 𝑐1 βˆ™ sin(π‘₯)
Let’s look at some examples to solve more complex differential equations.
(π‘₯ − 3) (
𝑑𝑦
) + 2𝑦(π‘₯) = 0
𝑑π‘₯
∞
∞
(π‘₯ − 3) ∑ 𝑐𝑛 𝑛π‘₯
𝑛−1
+ 2 ∑ 𝑐𝑛 π‘₯ 𝑛 = 0
𝑛=1
∞
𝑛=0
∞
𝑛
∞
∑ 𝑐𝑛 𝑛π‘₯ − 3 ∑ 𝑐𝑛 𝑛π‘₯
𝑛=1
𝑛−1
+ 2 ∑ 𝑐𝑛 π‘₯ 𝑛 = 0
𝑛=1
∞
𝑛=0
∞
𝑛
∞
∑ 𝑐𝑛 𝑛π‘₯ − 3 ∑ 𝑐𝑛+1 (𝑛 + 1)π‘₯ + 2 ∑ 𝑐𝑛 π‘₯ 𝑛 = 0
𝑛=0
𝑛
𝑛=0
𝑛=0
∞
∑[𝑐𝑛 𝑛π‘₯ 𝑛 − 3𝑐𝑛+1 (𝑛 + 1)π‘₯ 𝑛 + 2𝑐𝑛 π‘₯ 𝑛 ] = 0
𝑛=0
𝑐𝑛 𝑛 − 3𝑐𝑛+1 (𝑛 + 1) + 2𝑐𝑛 = 0,
2
𝑐1 = 𝑐0 ( 1 )
3
3
2 3
3
𝑐2 = 𝑐1 ( ) = 𝑐0 ( ) ( ) = 𝑐0 ( 2 )
6
3 6
3
4
3 4
4
𝑐3 = 𝑐2 ( ) = 𝑐0 ( 2 ) ( ) = 𝑐0 ( 3 )
9
3
9
3
𝑛+1
𝑐𝑛 = 𝑐0 ( 𝑛 )
3
𝑐𝑛+1 =
−2𝑐𝑛 − 𝑛𝑐𝑛
𝑛+2
= 𝑐𝑛 (
)
−3(𝑛 + 1)
3𝑛 + 3
𝑛=0
𝑛=1
𝑛=2
𝑛 = 0,1,2,3, …
∞
∞
𝑛
𝑦(π‘₯) = ∑ 𝑐𝑛 π‘₯ = 𝑐0 βˆ™ ∑ (
𝑛+1 𝑛
)π‘₯
3𝑛
𝑛=0
𝑛=0
𝑛+1 𝑛
)π‘₯ ,
3𝑛
{π‘Žπ‘›+1 } = (
Ratio test:
{π‘Žπ‘› } = (
𝑛 + 2 𝑛+1
)π‘₯
3𝑛+1
{π‘Žπ‘›+1 } 𝑛 + 2 π‘₯
=
βˆ™
{π‘Žπ‘› }
𝑛+1 3
𝑛+2 π‘₯
π‘₯
lim (|
βˆ™ |) = | | < 1
𝑛→∞ 𝑛 + 1 3
3
−3 < π‘₯ < 3,
𝑅=3
∞
π‘₯ = −3,
∑(−1)𝑛 (𝑛 + 1) ,
π‘‘π‘–π‘£π‘’π‘Ÿπ‘”π‘’π‘  (π‘Žπ‘™π‘‘. π‘ π‘’π‘Ÿπ‘–π‘’π‘  𝑑𝑒𝑠𝑑)
𝑛=0
∞
−3 < π‘₯ < 3 ∢
{
π‘₯ = 3,
∑(𝑛 + 1) ,
π‘‘π‘–π‘£π‘’π‘Ÿπ‘”π‘’π‘  (𝑑𝑒𝑠𝑑 π‘“π‘œπ‘Ÿ π‘‘π‘–π‘£π‘’π‘Ÿπ‘”π‘’π‘›π‘π‘’)
𝑛=0
Testing (separable):
𝑑𝑦
2
+
𝑦(π‘₯) = 0
𝑑π‘₯ π‘₯ − 3
ln(𝑦(π‘₯)) = −2 ln(π‘₯ − 3) + π‘˜
𝑦(π‘₯) =
π‘˜0
(π‘₯ − 3)2
Finding a power series to represent the solution:
π‘Œ(π‘₯) = ∫ 𝑦(π‘₯) βˆ™ 𝑑π‘₯ = −
π‘˜0
+𝐢
π‘₯−3
∞
π‘˜0
π‘˜0
π‘˜0
π‘₯ 𝑛
−
+𝐢 =
+ 𝐢 = 𝐢 + βˆ™ ∑ ( ) = π‘Œ(π‘₯)
1
π‘₯−3
3
3
3 (1 − 3 π‘₯)
𝑛=0
∞
∞
∞
𝑛=0
𝑛=1
𝑛=0
𝑑𝑦
π‘˜0
π‘₯ 𝑛
π‘˜0
1
π‘˜0
1
𝑦(π‘₯) =
βˆ™ ∑ 𝑛 𝑛π‘₯ 𝑛−1 =
βˆ™ ∑ 𝑛+1 (𝑛 + 1)π‘₯ 𝑛
[𝐢 + βˆ™ ∑ ( ) ] =
𝑑π‘₯
3
3
3
3
3
3
∞
(𝑛 + 1) 𝑛
π‘˜0
𝑦(π‘₯) =
βˆ™∑
π‘₯
9
3𝑛
𝑛=0
They have similar results.
Let’s look at another problem.
𝑦 ′′ (π‘₯) + 𝑦(π‘₯) = π‘₯
∞
∞
∑ 𝑐𝑛 (𝑛)(𝑛 − 1)π‘₯
𝑛−2
+ (∑ 𝑐𝑛 π‘₯ 𝑛 ) = π‘₯
𝑛=2
𝑛=0
∞
∞
𝑛
(∑ 𝑐𝑛+2 (𝑛 + 2)(𝑛 + 1)π‘₯ ) + (𝑐0 + 𝑐1 π‘₯ + ∑ 𝑐𝑛 π‘₯ 𝑛 ) = π‘₯
𝑛=0
𝑛=2
∞
∞
𝑛
(2𝑐2 + 6𝑐3 π‘₯ + ∑ 𝑐𝑛+2 (𝑛 + 2)(𝑛 + 1)π‘₯ ) + (𝑐0 + 𝑐1 π‘₯ + ∑ 𝑐𝑛 π‘₯ 𝑛 ) = π‘₯
𝑛=2
𝑛=2
∞
∞
𝑛
(∑ 𝑐𝑛+2 (𝑛 + 2)(𝑛 + 1)π‘₯ ) + (∑ 𝑐𝑛 π‘₯ 𝑛 ) = −𝑐0 − 𝑐1 π‘₯ − 2𝑐2 − 6𝑐3 π‘₯ + π‘₯
𝑛=2
𝑛=2
𝑐𝑛+2 (𝑛 + 2)(𝑛 + 1) + 𝑐𝑛 = 0,
𝑐0 = −2𝑐2 ,
−𝑐0 − 2𝑐2 = 0,
𝑐1 = 1 − 6𝑐3 ,
𝑐𝑛+2 = −
−𝑐1 − 6𝑐3 + 1 = 0
𝑐𝑛
(𝑛 + 1)(𝑛 + 2)
𝑐0 (−1)1 𝑐0
=
2
2!
(−1)1 (𝑐1 )
𝑐1
𝑐3 = −
=
(2)(3)
3!
(−1)2 (𝑐0 )
2𝑐2
𝑐4 =
=
(2)(3)(4)
4!
(−1)2 (𝑐1 )
6𝑐3
𝑐5 =
=
(2)(3)(4)(5)
5!
(−1)3 (𝑐0 )
𝑐4
2𝑐2
𝑐6 = −
=−
=
(5)(6)
(2)(3)(4)(5)(6)
6!
(−1)3 (𝑐1 )
𝑐5
6𝑐3
𝑐7 = −
=−
=
(6)(7)
(2)(3)(4)(5)(6)(7)
7!
𝑐2 = (−1)1
𝑛=0
𝑛=1
𝑛=2
𝑛=3
𝑛=4
𝑛=5
∞
∑ 𝑐𝑛 π‘₯ 𝑛 = 𝑐0 + 𝑐1 π‘₯ + 𝑐2 π‘₯ 2 + 𝑐3 π‘₯ 3 + 𝑐4 π‘₯ 4 + 𝑐5 π‘₯ 5 + 𝑐6 π‘₯ 6 + 𝑐7 π‘₯ 7 + β‹―
𝑛=0
(−1)0 (𝑐0 ) (−1)1 (𝑐0 ) 2 (−1)1 (𝑐1 ) 3 (−1)2 (𝑐0 ) 4 (−1)2 (𝑐1 ) 5
= 𝑐1 π‘₯ +
+
π‘₯ +
π‘₯ +
π‘₯ +
π‘₯
0!
2!
3!
4!
5!
(−1)3 (𝑐0 ) 6 (−1)3 (𝑐1 ) 7
+
π‘₯ +
π‘₯ +β‹―
6!
7!
1
= 1π‘₯ 1 +
(−1)0 (𝑐0 ) (−1)1 (𝑐0 ) 2 (−1)2 (𝑐0 ) 4 (−1)3 (𝑐0 ) 6
(−1)0 (𝑐1 ) 1
+
π‘₯ +
π‘₯ +
π‘₯ + β‹―+
π‘₯
0!
2!
4!
6!
1!
(−1)1 (𝑐1 ) 3 (−1)2 (𝑐1 ) 5 (−1)3 (𝑐1 ) 7
+
π‘₯ +
π‘₯ +
π‘₯ +β‹―
3!
5!
7!
∞
∞
𝑛=0
𝑛=0
(−1)𝑛 2𝑛
(−1)𝑛
𝑦(π‘₯) = π‘₯ + 𝑐0 βˆ™ ∑ (
) π‘₯ + 𝑐1 βˆ™ ∑ (
) π‘₯ 2𝑛+1
(2𝑛)!
(2𝑛 + 1)!
1
𝑦(π‘₯) = π‘₯ 1 + 𝑐0 βˆ™ cos(π‘₯) + 𝑐1 βˆ™ sin(π‘₯)
The final example:
𝑦 ′′ (π‘₯) − 2π‘₯𝑦 ′ (π‘₯) − 4𝑦(π‘₯) = 0
∞
∞
∑ 𝑐𝑛 (𝑛)(𝑛 − 1)π‘₯
𝑛−2
∞
− 2π‘₯ ∑ 𝑐𝑛
𝑛=2
(𝑛)π‘₯ 𝑛−1
− 4 ∑ 𝑐𝑛 π‘₯ 𝑛 = 0
𝑛=1
∞
𝑛=0
∞
𝑛
∞
(2𝑐2 + ∑ 𝑐𝑛+2 (𝑛 + 2)(𝑛 + 1)π‘₯ ) − 2 (∑ 𝑐𝑛
𝑛=1
(𝑛)π‘₯ 𝑛
) − 4 (𝑐0 + ∑ 𝑐𝑛 π‘₯ 𝑛 ) = 0
𝑛=1
𝑛=1
∞
∑ π‘₯ 𝑛 [𝑐𝑛+2 (𝑛 + 2)(𝑛 + 1) − 2𝑐𝑛 (𝑛) − 4𝑐𝑛 ] = −2(𝑐2 ) + 4(𝑐0 )
𝑛=1
−2𝑐2 + 4𝑐0 = 0,
𝑐𝑛+2 (𝑛 + 2)(𝑛 + 1) − 2𝑐𝑛 (𝑛) − 4𝑐𝑛 = 0
𝑐2 = 2𝑐0 ,
𝑐𝑛+2 =
2𝑐𝑛
(𝑛 + 1)
2𝑐0
(1)
2𝑐1
𝑐3 =
(2)
2𝑐2
2 2𝑐0 (2)2 (𝑐0 )
𝑐4 =
=
βˆ™
=
(3) (3) (1)
(1)(3)
2𝑐3
2 2𝑐1 (2)2 (𝑐1 )
𝑐5 =
=
βˆ™
=
(4) (4) (2)
(2)(4)
(2)3 (𝑐0 )
2𝑐4
2
2 2𝑐0
𝑐6 =
=
βˆ™
βˆ™
=
(5) (5) (3) (1) (1)(3)(5)
(2)3 (𝑐1 )
2𝑐5
2
2 2𝑐1
𝑐7 =
=
βˆ™
βˆ™
=
(6) (6) (4) (2) (2)(4)(6)
𝑐2 =
∞
𝑛=0
𝑛=1
𝑛=2
𝑛=3
𝑛=4
𝑛=5
∑ 𝑐𝑛 π‘₯ 𝑛 = 𝑐0 + 𝑐1 π‘₯ + 𝑐2 π‘₯ 2 + 𝑐3 π‘₯ 3 + 𝑐4 π‘₯ 4 + 𝑐5 π‘₯ 5 + 𝑐6 π‘₯ 6 + 𝑐7 π‘₯ 7 + β‹―
𝑛=0
= 𝑐0 + 𝑐1 π‘₯ +
= 𝑐0 (
(2)3 𝑐0 6
(2)3 𝑐1 7
2𝑐0 2 2𝑐1 3 (2)2 𝑐0 4 (2)2 𝑐1 5
π‘₯ +
π‘₯ +
π‘₯ +
π‘₯ +
π‘₯ +
π‘₯ +β‹―
(1)
(2)
(1)(3)
(2)(4)
(1)(3)(5)
(2)(4)(6)
(2)1 π‘₯ 2 (2)2 π‘₯ 4
(2)3 π‘₯ 6
(2)1 π‘₯ 3 (2)2 π‘₯ 5
(2)3 π‘₯ 7
+
+
+ β‹― ) + 𝑐1 π‘₯ + 𝑐1 (
+
+
+ β‹―)
(1)
(1)(3) (1)(3)(5)
(2)
(2)(4) (2)(4)(6)
1 βˆ™ 3 βˆ™ 5 βˆ™ 7 β‹― (2𝑛 − 1) = 1 βˆ™ 3 βˆ™ 5 βˆ™ 7 β‹― (2𝑛 − 1) βˆ™
(2𝑛)!
2 βˆ™ 4 βˆ™ 6 βˆ™ 8 β‹― (2𝑛)
= 𝑛
2 βˆ™ 4 βˆ™ 6 βˆ™ 8 β‹― (2𝑛) 2 (𝑛)!
2 βˆ™ 4 βˆ™ 6 βˆ™ 8 β‹― (2𝑛) = (2𝑛 )(1 βˆ™ 2 βˆ™ 3 βˆ™ 4 β‹― (𝑛)) = 2𝑛 (𝑛!)
∞
∞
𝑛=0
𝑛=0
(𝑛!)(2π‘₯)2𝑛
(π‘₯ 2𝑛+1 )
= 𝑐0 βˆ™ ∑ (
) + 𝑐1 ∑ (
)
(2𝑛)!
(𝑛!)
Theme 4 – Fourier series
6 Lectures [week 8 & 9]
This theme will introduce Fourier series and the Fourier transforms. The convergence of the
Fourier series and the special cases like Fourier-sine and -cosine series.
Theme 4.1: General Fourier series and convergence
Theme 4.2: Fourier-sine and -cosine series.
Pre-knowledge for this theme consists of factor integration (WTW 164) and even and odd
functions (WTW 158).
Theme 4.1: General Fourier series and convergence.
Recap: Even and odd functions
When 𝑓(π‘₯) = 𝑓(−π‘₯), 𝑓(π‘₯) is known as an even function. An example is 𝑓(π‘₯) = cos(π‘₯)
When −𝑓(π‘₯) = 𝑓(−π‘₯), 𝑓(π‘₯) is known as an even function. An example is 𝑓(π‘₯) = sin(π‘₯)
Orthogonal functions:
Functions are orthogonal when their inner product is zero. The inner product is the integral of
the product of the functions on that interval.
𝑏
∫ (𝑓1 (π‘₯) βˆ™ 𝑓2 (π‘₯)) βˆ™ 𝑑π‘₯ = 0
π‘Ž
Let’s look at sin(π‘₯) and cos(π‘₯).
𝑝
π‘›πœ‹π‘₯
π‘›πœ‹π‘₯
) cos (
) 𝑑π‘₯
𝑝
𝑝
−𝑝
𝑝
1
2π‘›πœ‹π‘₯
∫
sin (
) 𝑑π‘₯
𝑝
−𝑝 2
1 𝑝
2π‘›πœ‹π‘₯ 𝑝
(− βˆ™
βˆ™ cos (
))|
2 2π‘›πœ‹
𝑝
−𝑝
𝑝
(−
) βˆ™ (cos(2π‘›πœ‹) − cos(2π‘›πœ‹))
4π‘›πœ‹
=0
π‘›πœ‹π‘₯
π‘›πœ‹π‘₯
sin ( 𝑝 ) and cos ( 𝑝 ) are
∫ sin (
𝑝
π‘›πœ‹π‘₯
π‘šπœ‹π‘₯
) sin (
) 𝑑π‘₯
𝑝
𝑝
−𝑝
𝑝,
π‘š=𝑛
={
0,
π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
∫ sin (
𝑝
π‘›πœ‹π‘₯
π‘šπœ‹π‘₯
) cos (
) 𝑑π‘₯
𝑝
𝑝
−𝑝
𝑝,
π‘š=𝑛
={
0,
π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’
∫ cos (
orthogonal on the interval π‘₯ ∈
[−𝑝, 𝑝].
A Fourier series transform takes a given function and approximates it by summating a finite or
infinite number of sine and cosine terms. The Fourier transform has the following standard
form:
∞
∞
𝑛=1
𝑛=1
π‘Ž0
π‘›πœ‹π‘₯
π‘›πœ‹π‘₯
β„±(π‘₯) =
+ ∑ π‘Žπ‘› cos (
) + ∑ 𝑏𝑛 sin (
)
2
𝑝
𝑝
Let us derive formulas for the three coefficients.
Let
∞
∞
𝑓(π‘₯) = π‘Ž0 + ∑ π‘Žπ‘› cos(𝑛π‘₯) + ∑ 𝑏𝑛 sin(𝑛π‘₯) ,
𝑛=1
−πœ‹ < π‘₯ < πœ‹
𝑛=1
Integrate the equation:
πœ‹
πœ‹
πœ‹ ∞
πœ‹ ∞
∫ 𝑓(π‘₯) βˆ™ 𝑑π‘₯ = ∫ π‘Ž0 βˆ™ 𝑑π‘₯ + ∫ ∑ π‘Žπ‘› cos(𝑛π‘₯) βˆ™ 𝑑π‘₯ + ∫ ∑ 𝑏𝑛 sin(𝑛π‘₯) βˆ™ 𝑑π‘₯
−πœ‹
−πœ‹
πœ‹
πœ‹
−πœ‹ 𝑛=1
−πœ‹ 𝑛=1
∞
∞
πœ‹
πœ‹
∫ 𝑓(π‘₯) βˆ™ 𝑑π‘₯ = ∫ π‘Ž0 βˆ™ 𝑑π‘₯ + ∑ π‘Žπ‘› ∫ cos(𝑛π‘₯) βˆ™ 𝑑π‘₯ + ∑ 𝑏𝑛 ∫ sin(𝑛π‘₯) βˆ™ 𝑑π‘₯
−πœ‹
−πœ‹
−πœ‹
𝑛=1
−πœ‹
𝑛=1
πœ‹
∞
πœ‹
∫ 𝑓(π‘₯) βˆ™ 𝑑π‘₯ = π‘Ž0 (πœ‹ + πœ‹) + 2 ∑ π‘Žπ‘› ∫ cos(𝑛π‘₯) βˆ™ 𝑑π‘₯
0
𝑛=1
−πœ‹
πœ‹
∞
1
∫ 𝑓(π‘₯) βˆ™ 𝑑π‘₯ = 2πœ‹π‘Ž0 + 2 ∑ π‘Žπ‘› ( (sin(πœ‹π‘›) − sin(0)) )
𝑛
𝑛=1
−πœ‹
πœ‹
πœ‹
1
π‘Ž0 =
βˆ™ ∫ 𝑓(π‘₯) βˆ™ 𝑑π‘₯
2πœ‹
∫ 𝑓(π‘₯) βˆ™ 𝑑π‘₯ = 2πœ‹π‘Ž0 ,
−πœ‹
−πœ‹
For the term π‘Žπ‘› , multiply all terms with cos(π‘šπ‘₯):
∞
∞
𝑓(π‘₯) cos(π‘šπ‘₯) = π‘Ž0 cos(π‘šπ‘₯) + ∑ π‘Žπ‘› cos(𝑛π‘₯) cos(π‘šπ‘₯) + ∑ 𝑏𝑛 sin(𝑛π‘₯) cos(π‘šπ‘₯)
𝑛=1
𝑛=1
Integrate the equation:
πœ‹
πœ‹
∞
∞
πœ‹
πœ‹
∫ 𝑓(π‘₯) cos(π‘šπ‘₯) βˆ™ 𝑑π‘₯ = ∫ π‘Ž0 cos(π‘šπ‘₯) βˆ™ 𝑑π‘₯ + ∑ π‘Žπ‘› ∫ cos(π‘šπ‘₯) cos(𝑛π‘₯) βˆ™ 𝑑π‘₯ + ∑ 𝑏𝑛 ∫ sin(π‘šπ‘₯) cos(𝑛π‘₯) βˆ™ 𝑑π‘₯
−πœ‹
−πœ‹
−πœ‹
𝑛=1
πœ‹
∞
𝑛=1
−πœ‹
πœ‹
∫ 𝑓(π‘₯) cos(π‘šπ‘₯) βˆ™ 𝑑π‘₯ = 0 + ∑ π‘Žπ‘› ∫ cos(π‘šπ‘₯) cos(𝑛π‘₯) βˆ™ 𝑑π‘₯ + 0
𝑛=1
−πœ‹
πœ‹
−πœ‹
∞
∫ 𝑓(π‘₯) cos(π‘šπ‘₯) βˆ™ 𝑑π‘₯ = ∑ π‘Žπ‘› ({0,
−πœ‹
πœ‹,
π‘š=𝑛
π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’)
𝑛=1
The summation falls away as the only non-zero term will be the term where π‘š = 𝑛.
πœ‹
∫ 𝑓(π‘₯) cos(π‘šπ‘₯) βˆ™ 𝑑π‘₯ = π‘Žπ‘› πœ‹,
−πœ‹
For the term 𝑛𝑛 , multiply all terms with sin(π‘šπ‘₯):
πœ‹
1
π‘Žπ‘› = ∫ 𝑓(π‘₯) cos(π‘šπ‘₯) βˆ™ 𝑑π‘₯
πœ‹
−πœ‹
∞
∞
𝑓(π‘₯) sin(π‘šπ‘₯) = π‘Ž0 sin(π‘šπ‘₯) + ∑ π‘Žπ‘› cos(𝑛π‘₯) sin(π‘šπ‘₯) + ∑ 𝑏𝑛 sin(𝑛π‘₯) sin(π‘šπ‘₯)
𝑛=1
𝑛=1
Integrate the equation:
πœ‹
πœ‹
∞
∞
πœ‹
πœ‹
∫ 𝑓(π‘₯) sin(π‘šπ‘₯) βˆ™ 𝑑π‘₯ = ∫ π‘Ž0 sin(π‘šπ‘₯) βˆ™ 𝑑π‘₯ + ∑ π‘Žπ‘› ∫ cos(π‘šπ‘₯) sin(π‘šπ‘₯) βˆ™ 𝑑π‘₯ + ∑ 𝑏𝑛 ∫ sin(π‘šπ‘₯) sin(π‘šπ‘₯) βˆ™ 𝑑π‘₯
−πœ‹
−πœ‹
𝑛=1
−πœ‹
−πœ‹
𝑛=1
πœ‹
∞
πœ‹
∫ 𝑓(π‘₯) sin(π‘šπ‘₯) βˆ™ 𝑑π‘₯ = 0 + 0 + ∑ 𝑏𝑛 ∫ sin(π‘šπ‘₯) sin(π‘šπ‘₯) βˆ™ 𝑑π‘₯
𝑛=1
−πœ‹
πœ‹
−πœ‹
∞
∫ 𝑓(π‘₯) sin(π‘šπ‘₯) βˆ™ 𝑑π‘₯ = ∑ 𝑏𝑛 ({0,
πœ‹,
π‘š=𝑛
π‘œπ‘‘β„Žπ‘’π‘Ÿπ‘€π‘–π‘ π‘’)
𝑛=1
−πœ‹
The summation falls away as the only non-zero term will be the term where π‘š = 𝑛.
πœ‹
πœ‹
∫ 𝑓(π‘₯) sin(π‘šπ‘₯) βˆ™ 𝑑π‘₯ = π‘Žπ‘› πœ‹,
−πœ‹
1
𝑏𝑛 = ∫ 𝑓(π‘₯) sin(π‘šπ‘₯) βˆ™ 𝑑π‘₯
πœ‹
−πœ‹
Note that these formulas only apply to a function that has a period of 2πœ‹. When the most general
case is considered, the period must be adjusted accordingly:
𝑏
1
π‘Ž0 =
βˆ™ ∫ 𝑓(π‘₯) βˆ™ 𝑑π‘₯,
2𝑝
π‘Ž
𝑏
1
π‘›πœ‹π‘₯
π‘Žπ‘› = ∫ 𝑓(π‘₯) cos (
) βˆ™ 𝑑π‘₯,
𝑝
𝑝
π‘Ž
𝑝=
𝑏
1
π‘›πœ‹π‘₯
𝑏𝑛 = ∫ 𝑓(π‘₯) sin (
) βˆ™ 𝑑π‘₯
𝑝
𝑝
π‘Ž
(𝑏 − π‘Ž)
2
Let’s look at a simple example:
𝑓(π‘₯) = π‘₯,
𝑝=
−1 < π‘₯ < 1
1 − (−1)
=1
2
∞
∞
𝑛=1
𝑛=1
π‘Ž0
π‘›πœ‹π‘₯
π‘›πœ‹π‘₯
β„±(π‘₯) =
+ ∑ π‘Žπ‘› cos (
) + ∑ 𝑏𝑛 sin (
)
2
𝑝
𝑝
1
1
1
1
π‘Ž0 =
βˆ™ ∫ π‘₯ βˆ™ 𝑑π‘₯ = π‘₯ 2 | = 0
2(1)
4
−1
−1
1
1
π‘Žπ‘› = ∫ π‘₯ cos(π‘›πœ‹π‘₯) βˆ™ 𝑑π‘₯ = π‘œπ‘‘π‘‘(𝑓𝑛. )|π‘Ž−π‘Ž = 0
1
−1
1
1
(−1)𝑛+1 2
2
𝑛
(−1) =
𝑏𝑛 = ∫ π‘₯ sin(π‘›πœ‹π‘₯) βˆ™ 𝑑π‘₯ = 2 ∫ π‘₯ sin(π‘›πœ‹π‘₯) βˆ™ 𝑑π‘₯ = −
π‘›πœ‹
π‘›πœ‹
−1
∞
β„±(π‘₯) = ∑
𝑛=1
0
(−1)𝑛+1 2
2
1
2
1
sin(π‘›πœ‹π‘₯) = sin(πœ‹π‘₯) − sin(2πœ‹π‘₯) +
sin(3πœ‹π‘₯) −
sin(4πœ‹π‘₯) + β‹―
π‘›πœ‹
πœ‹
πœ‹
3πœ‹
2πœ‹
𝑁
𝑓(π‘₯) ≈ ∑
𝑛=1
(−1)𝑛+1 2
sin(π‘›πœ‹π‘₯)
π‘›πœ‹
𝑁=1
𝑁=4
𝑁 = 50
It is expected that there are only sine terms as sine is an odd function like 𝑓(π‘₯) = π‘₯. If 𝑓(π‘₯) is an
even function only cosine and the constant term will play a role in the Fourier transform. Note
that the transform converges to the function (if it didn’t, that would be embarrassing). The
transform at a jump discontinuity will converge to the average value between the two points. As
in the above case, there is a jump at π‘₯ = 1 from 𝑓(1− ) = 1 to 𝑓(1+ ) = −1, the Fourier
transform, β„±(π‘₯), converges to 0 as it is the average between the two values.
Let’s look at a function that is neither odd nor even.
𝑓(π‘₯) = π‘₯ 2 + 1,
𝑝=
0<π‘₯<2
2−0
=1
2
∞
∞
𝑛=1
𝑛=1
π‘Ž0
π‘›πœ‹π‘₯
π‘›πœ‹π‘₯
β„±(π‘₯) =
+ ∑ π‘Žπ‘› cos (
) + ∑ 𝑏𝑛 sin (
)
2
𝑝
𝑝
2
2
1 3
8
14
π‘Ž0 = ∫(π‘₯ + 1) βˆ™ 𝑑π‘₯ = ( π‘₯ + π‘₯)| = ( + 2) =
3
3
3
0
2
0
π‘Ž0 =
2
14
3
2
2
π‘Žπ‘› = ∫(π‘₯ + 1) cos(π‘›πœ‹π‘₯) βˆ™ 𝑑π‘₯ = ∫(π‘₯
0
0
2
2
2
2)
cos(π‘›πœ‹π‘₯) βˆ™ 𝑑π‘₯ + ∫ cos(π‘›πœ‹π‘₯) βˆ™ 𝑑π‘₯
0
2
2
π‘₯2
2π‘₯
1
π‘₯
sin(π‘›πœ‹π‘₯)| − ∫
sin(𝑛π‘₯) βˆ™ 𝑑π‘₯ + ( sin(π‘›πœ‹π‘₯))| = 2 ∫
sin(𝑛π‘₯) βˆ™ 𝑑π‘₯
π‘›πœ‹
π‘›πœ‹
π‘›πœ‹
π‘›πœ‹
0
0
0
0
2
2
2π‘₯
2
−4
4
(−
cos(π‘›πœ‹π‘₯))|
−
∫
cos(π‘›πœ‹π‘₯)
βˆ™
𝑑π‘₯
=
−
(
cos(2πœ‹π‘›))
=
(π‘›πœ‹)2
(π‘›πœ‹)2
(π‘›πœ‹)2
(π‘›πœ‹)2
0
0
π‘Žπ‘› =
2
4
(π‘›πœ‹)2
2
2
2
𝑏𝑛 = ∫(π‘₯ + 1) sin(π‘›πœ‹π‘₯) βˆ™ 𝑑π‘₯ = ∫(π‘₯
0
2)
sin(π‘›πœ‹π‘₯) βˆ™ 𝑑π‘₯ + ∫ sin(π‘›πœ‹π‘₯) βˆ™ 𝑑π‘₯
0
2
0
2
2
2
π‘₯2
π‘₯
−1
−4
π‘₯
cos(π‘›πœ‹π‘₯))| + 2 ∫
cos(π‘›πœ‹π‘₯) βˆ™ 𝑑π‘₯ + ( cos(π‘›πœ‹π‘₯))| =
+ 2∫
cos(π‘›πœ‹π‘₯) βˆ™ 𝑑π‘₯
(−
π‘›πœ‹
π‘›πœ‹
π‘›πœ‹
π‘›πœ‹
π‘›πœ‹
0
0
0
0
2
2
−4
2
2
−4
4
−4
(sin(2π‘›πœ‹) − 0)) =
+(
sin(π‘›πœ‹π‘₯))|
+∫
sin(π‘›πœ‹π‘₯) βˆ™ 𝑑π‘₯ =
+(
2
2
2
(π‘›πœ‹)
(π‘›πœ‹)
(π‘›πœ‹)
π‘›πœ‹
π‘›πœ‹
π‘›πœ‹
0
0
𝑏𝑛 =
−4
π‘›πœ‹
∞
∞
𝑛=1
𝑛=1
7
4
−4
β„±(π‘₯) = + ∑
cos(π‘›πœ‹π‘₯) + ∑
sin(π‘›πœ‹π‘₯)
2
(π‘›πœ‹)
3
π‘›πœ‹
β„±(π‘₯) =
7 4
1
−4
−2
+ 2 cos(πœ‹π‘₯) + 2 cos(2πœ‹π‘₯) + β‹― +
sin(πœ‹π‘₯) +
sin(2πœ‹π‘₯) + β‹―
3 πœ‹
πœ‹
πœ‹
πœ‹
𝑁=1
𝑁=4
𝑁 = 50
Find the Fourier series of the following piece wise function (square wave):
0,
𝑓(π‘₯) = {
π‘₯,
𝑝=
−1 < π‘₯ < 0
0<π‘₯<1
1 − (−1)
=1
2
∞
∞
𝑛=1
𝑛=1
π‘Ž0
β„±(π‘₯) =
+ ∑ π‘Žπ‘› cos(π‘›πœ‹π‘₯) + ∑ 𝑏𝑛 sin(π‘›πœ‹π‘₯)
2
0
1
1
1
1 2 1 1
π‘Ž0 = ∫ 0𝑑π‘₯ + ∫ π‘₯𝑑π‘₯ = ( π‘₯ )| =
2
2
4
4
0
−1
0
π‘Ž0 =
1
4
1
1
1
π‘₯
1
π‘Žπ‘› = ∫ π‘₯ cos(π‘›πœ‹π‘₯) βˆ™ 𝑑π‘₯ = ( sin(π‘›πœ‹π‘₯))| − ∫
sin(π‘›πœ‹π‘₯) 𝑑π‘₯
π‘›πœ‹
π‘›πœ‹
0
0
0
0,
𝑛 = 𝑒𝑣𝑒𝑛
1
(−1)𝑛
1
1
(
cos(π‘›πœ‹π‘₯))| =
−
= { −2
,
𝑛 = π‘œπ‘‘π‘‘
(π‘›πœ‹)2
(π‘›πœ‹)2 (π‘›πœ‹)2
0
(π‘›πœ‹)2
π‘Žπ‘› =
−2
2
((2𝑛 − 1)πœ‹)
1
1
1
π‘₯
1
π‘Žπ‘› = ∫ π‘₯ sin(π‘›πœ‹π‘₯) βˆ™ 𝑑π‘₯ = (−
cos(π‘›πœ‹π‘₯))| + ∫
cos(π‘›πœ‹π‘₯) 𝑑π‘₯
π‘›πœ‹
π‘›πœ‹
0
0
0
1
(−1)𝑛+1
(−1)𝑛+1
1
+(
cos(π‘›πœ‹π‘₯))|
=
(π‘›πœ‹)2
π‘›πœ‹
π‘›πœ‹
0
𝑏𝑛 =
(−1)𝑛+1
π‘›πœ‹
∞
∞
𝑛=1
𝑛=1
(−1)𝑛+1
1
−2
β„±(π‘₯) = + ∑
sin(π‘›πœ‹π‘₯)
2 cos((2𝑛 − 1)πœ‹π‘₯) + ∑
4
π‘›πœ‹
((2𝑛 − 1)πœ‹)
β„±(π‘₯) =
1 −2
−2
1
−1
+ 2 cos(πœ‹π‘₯) + 2 cos(3πœ‹π‘₯) + β‹― + sin(πœ‹π‘₯) +
sin(2πœ‹π‘₯) + β‹―
4 πœ‹
9πœ‹
πœ‹
2πœ‹
𝑁=1
𝑁=4
𝑁 = 50
Remember that absolute valued functions may be re-written as piecewise functions:
𝑓(π‘₯) = |sin(π‘₯)|,
𝑓(π‘₯) = {
− sin(π‘₯) ,
sin(π‘₯) ,
π‘₯ ∈ (−πœ‹, πœ‹)
−πœ‹ < π‘₯ < 0
0<π‘₯<πœ‹
sin(π‘›πœ‹) = 0,
cos(π‘›πœ‹) = (−1)𝑛 ,
𝑛∈β„€
We can use the Fourier series to calculate the value of a series. Use the previous example to
determine the value of the series given below.
0,
𝑓(π‘₯) = {
π‘₯,
∞
∞
𝑛=1
𝑛=1
(−1)𝑛+1
−2
−1 < π‘₯ < 0 1
= +∑
cos((2𝑛
−
1)πœ‹π‘₯)
+
∑
sin(π‘›πœ‹π‘₯)
2
0<π‘₯<1
4
π‘›πœ‹
((2𝑛 − 1)πœ‹)
Determine the value of:
∞
∑
𝑛=1
1
(2𝑛 − 1)2
cos((2𝑛 − 1)πœ‹π‘₯) = cos(2πœ‹π‘›) = 1,
sin(π‘›πœ‹π‘₯) → sin(0) = 0,
∞
π‘₯=0
𝑂𝐾
1
−2
0= +∑
2
4
((2𝑛 − 1)πœ‹)
𝑛=1
∞
πœ‹2
1
=∑
2
8
𝑛=1 ((2𝑛 − 1))
Theme 4.2 – Fourier sine series and Fourier cosine series
The product of even and odd functions:
Let 𝑓(π‘₯) be an even function and 𝑔(π‘₯) an odd function:
β„Ž(π‘₯) = 𝑓(π‘₯) βˆ™ 𝑓(π‘₯)
β„Ž(−π‘₯) = 𝑓(−π‘₯) βˆ™ 𝑓(−π‘₯)
β„Ž(−π‘₯) = 𝑓(π‘₯) βˆ™ 𝑓(π‘₯)
β„Ž(−π‘₯) = β„Ž(π‘₯)
β„Ž(π‘₯) = π‘₯ 2 cos(2πœ‹π‘₯)
β„Ž(π‘₯) = 𝑔(π‘₯) βˆ™ 𝑔(π‘₯)
β„Ž(−π‘₯) = 𝑔(−π‘₯) βˆ™ 𝑔(−π‘₯)
β„Ž(−π‘₯) = (−1)2 βˆ™ 𝑔(π‘₯) βˆ™ 𝑔(π‘₯)
β„Ž(−π‘₯) = β„Ž(π‘₯)
β„Ž(π‘₯) = π‘₯ sin(πœ‹π‘₯)
β„Ž(π‘₯) = 𝑓(π‘₯) βˆ™ 𝑔(π‘₯)
β„Ž(−π‘₯) = 𝑓(−π‘₯) βˆ™ 𝑔(−π‘₯)
β„Ž(−π‘₯) = −𝑓(π‘₯) βˆ™ 𝑔(π‘₯)
β„Ž(−π‘₯) = −β„Ž(π‘₯)
πœ‹
β„Ž(π‘₯) = π‘₯ cos ( π‘₯)
2
As stated previously, odd functions only have sine terms. The even functions have a constant
term as well as cosine terms.
𝑝
𝑝
1
1
1
π‘Ž0 =
∫ 𝑓(π‘₯)𝑑π‘₯ = ∫ 𝑓(π‘₯)𝑑π‘₯ = (𝐹(𝑝) − 𝐹(0))
2𝑝
𝑝
𝑝
−𝑝
0
𝑝
𝑝
1
2
π‘Žπ‘› = ∫ 𝑓(π‘₯) cos(π‘₯) 𝑑π‘₯ = ∫ 𝑓(π‘₯) cos(π‘₯) 𝑑π‘₯
𝑝
𝑝
−𝑝
0
𝑝
1
𝑏𝑛 = ∫ 𝑓(π‘₯) sin(π‘₯) 𝑑π‘₯ = 0
𝑝
−𝑝
And for an odd function 𝑔(π‘₯):
𝑝
1
π‘Ž0 =
∫ 𝑔(π‘₯)𝑑π‘₯ = 0
2𝑝
−𝑝
𝑝
1
π‘Žπ‘› = ∫ 𝑔(π‘₯) cos(π‘₯) 𝑑π‘₯ = 0
𝑝
−𝑝
𝑝
𝑝
1
2
𝑏𝑛 = ∫ 𝑔(π‘₯) sin(π‘₯) 𝑑π‘₯ = ∫ 𝑔(π‘₯) sin(π‘₯) 𝑑π‘₯
𝑝
𝑝
−𝑝
0
For even expansions of functions, the Fourier cosine series is used. The odd expansion uses only
sine terms. What is meant by even and odd expansions?
Good question. Consider the following function:
𝑓(π‘₯) = π‘₯ 2 + 1,
𝑓(π‘₯) = π‘₯ 2 + 1,
0<π‘₯<2
𝑓(π‘₯) = π‘₯ 2 + 1,
0<π‘₯<2
−2 < π‘₯ < 2,
𝑒𝑣𝑒𝑛
𝑓(π‘₯) = π‘₯ 2 + 1,
−2 < π‘₯ < 2,
π‘œπ‘‘π‘‘
−2 < π‘₯ < 2,
π‘œπ‘‘π‘‘
Let’s look at the Fourier expansions:
𝑓(π‘₯) = π‘₯ 2 + 1,
𝑓(π‘₯) = π‘₯ 2 + 1,
−2 < π‘₯ < 2,
𝑒𝑣𝑒𝑛
0<π‘₯<2
𝑓(π‘₯) = π‘₯ 2 + 1,
Solving DE’s using Fourier series. There are two different types of problems, Dirichlet
conditions and Neumann conditions:
Dirichlet
π‘Žπ‘¦ ′′ + 𝑏𝑦 = 𝑓(π‘₯),
π‘₯(0) = π‘₯(𝐿) = 0
Use the Fourier sine series to solve
Neumann
π‘Žπ‘¦ ′′ + 𝑏𝑦 = 𝑓(π‘₯),
π‘₯ ′ (0) = π‘₯ ′ (𝐿) = 0
Use the Fourier cosine series to solve
Consider the following DE:
Dirichlet:
𝑦 ′′ (π‘₯) + 3𝑦(π‘₯) = 3 − π‘₯,
𝑦(0) = 𝑦(3) = 0
𝑝 =3−0=3
∞
∞
𝑛=1
𝑛=1
π‘›πœ‹π‘₯
π‘›πœ‹π‘₯
𝑦(π‘₯) = ∑ 𝑏𝑛 sin (
) = ∑ 𝑏𝑛 sin (
)
𝑝
3
∞
𝑦
′ (π‘₯)
∞
π‘›πœ‹
π‘›πœ‹π‘₯
= ∑ 𝑏𝑛
cos (
),
3
3
𝑦
′′ (π‘₯)
𝑛=1
π‘›πœ‹ 2
π‘›πœ‹π‘₯
= − ∑ 𝑏𝑛 ( ) sin (
)
3
3
𝑛=1
𝑓(π‘₯) = 3 − π‘₯
∞
∞
𝑛=1
𝑛=1
π‘›πœ‹π‘₯
π‘›πœ‹π‘₯
ℱ𝑠𝑖𝑛𝑒 {3 − π‘₯} = ∑ 𝐡𝑛 sin (
) = ∑ 𝐡𝑛 sin (
)
𝑝
3
𝑝
3
2
π‘₯π‘›πœ‹
2
π‘₯π‘›πœ‹
6
𝐡𝑛 = ∫(3 − π‘₯) sin (
) 𝑑π‘₯ = ∫(3 − π‘₯) sin (
) 𝑑π‘₯ =
𝑝
𝑝
3
3
π‘›πœ‹
0
0
∞
ℱ𝑠𝑖𝑛𝑒 {3 − π‘₯} = ∑
𝑛=1
6
π‘›πœ‹π‘₯
sin (
)
π‘›πœ‹
3
𝑦 ′′ (π‘₯) + 3𝑦(π‘₯) = 3 − π‘₯
∞
∞
∞
𝑛=1
𝑛=1
𝑛=1
π‘›πœ‹ 2
π‘›πœ‹π‘₯
π‘›πœ‹π‘₯
6
π‘›πœ‹π‘₯
− ∑ 𝑏𝑛 ( ) sin (
) + 3 ∑ 𝑏𝑛 sin (
)=∑
sin (
)
3
3
3
π‘›πœ‹
3
∞
∞
∞
𝑛=1
𝑛=1
𝑛=1
π‘›πœ‹ 2
6
− ∑ 𝑏𝑛 ( ) + 3 ∑ 𝑏𝑛 = ∑
3
π‘›πœ‹
π‘›πœ‹ 2
6
−𝑏𝑛 ( ) + 3𝑏𝑛 =
,
3
π‘›πœ‹
𝑏𝑛 =
∞
𝑦(π‘₯) = ∑
𝑛=1
6
2
π‘›πœ‹
π‘›πœ‹ (3 − ( 3 ) )
,
𝑏𝑛 =
54
π‘›πœ‹π‘₯
sin (
)
2
π‘›πœ‹(27 − (π‘›πœ‹) )
3
54
π‘›πœ‹(27 − (π‘›πœ‹)2 )
Neumann:
2𝑦 ′′ (π‘₯) − 𝑦(π‘₯) = 3 − π‘₯,
𝑦 ′ (0) = 𝑦 ′ (3) = 0
∞
∞
𝑛=1
𝑛=1
π‘Ž0
π‘›πœ‹π‘₯
π‘Ž0
π‘›πœ‹π‘₯
𝑦(π‘₯) =
+ ∑ π‘Žπ‘› cos (
)=
+ ∑ π‘Žπ‘› cos (
)
2
𝑝
2
3
∞
𝑦
′ (π‘₯)
π‘›πœ‹
π‘›πœ‹π‘₯
= − ∑ π‘Žπ‘›
sin (
),
3
3
∞
𝑦
′′ (π‘₯)
𝑛=1
π‘›πœ‹ 2
π‘›πœ‹π‘₯
= − ∑ π‘Žπ‘› ( ) cos (
)
3
3
𝑛=1
𝑓(π‘₯) = 3 − π‘₯
∞
∞
𝑛=1
𝑛=1
π‘›πœ‹π‘₯
π‘›πœ‹π‘₯
β„±π‘π‘œπ‘ π‘–π‘›π‘’ {3 − π‘₯} = 𝐴0 + ∑ 𝐴𝑛 cos (
) = 𝐴0 + ∑ 𝐴𝑛 cos (
)
𝑝
3
𝑝
3
1
1
3
𝐴0 = ∫ 𝑓(π‘₯)𝑑π‘₯ = ∫ 3 − π‘₯𝑑π‘₯ =
𝑝
3
2
0
0
𝑝
3
0,
𝑛 = 𝑒𝑣𝑒𝑛
2
π‘›πœ‹π‘₯
2
π‘›πœ‹π‘₯
𝐴𝑛 = ∫ 𝑓(π‘₯) cos (
) 𝑑π‘₯ = ∫(3 − π‘₯) cos (
) 𝑑π‘₯ = { 12
,
𝑛 = π‘œπ‘‘π‘‘
𝑝
𝑝
3
3
(π‘›πœ‹)2
0
0
∞
3
12
π‘›πœ‹π‘₯
β„±π‘π‘œπ‘ π‘–π‘›π‘’ {3 − π‘₯} = + ∑
cos (
)
2
(π‘›πœ‹)
2
3
𝑛=1
2𝑦 ′′ (π‘₯) − 𝑦(π‘₯) = 3 − π‘₯
∞
∞
∞
𝑛=1
𝑛=1
𝑛=1
(2𝑛 − 1)πœ‹π‘₯
π‘›πœ‹ 2
π‘›πœ‹π‘₯
π‘Ž0
π‘›πœ‹π‘₯
3
12
−2 ∑ π‘Žπ‘› ( ) cos (
) − − ∑ π‘Žπ‘› cos (
)= +∑
cos (
)
2
3
3
2
3
2
3
((2𝑛 − 1)πœ‹)
−
π‘Ž0 3
= ,
2
2
π‘Ž0 = −3
(2𝑛 − 1)πœ‹π‘₯
π‘›πœ‹ 2
π‘›πœ‹π‘₯
π‘›πœ‹π‘₯
12
−2π‘Žπ‘› ( ) cos (
) − π‘Žπ‘› cos (
)=
cos (
)
2
3
3
3
3
((2𝑛 − 1)πœ‹)
12
π‘›πœ‹π‘₯
π‘›πœ‹π‘₯
π‘›πœ‹ 2
cos (
),
𝑛 = π‘œπ‘‘π‘‘
2
−π‘Žπ‘› cos (
) (2 ( ) + 1) = {(π‘›πœ‹)
3
3
3
0,
𝑛 = 𝑒𝑣𝑒𝑛
π‘›πœ‹π‘₯
π‘›πœ‹ 2
12
π‘›πœ‹π‘₯
−π‘Žπ‘› cos (
) (2 ( ) + 1) =
cos (
),
2
(π‘›πœ‹)
3
3
3
π‘Žπ‘› =
∞
−108
(π‘›πœ‹)2 (2𝑛2 πœ‹ 2
+ 9)
,
π‘›πœ‹ 2
12
−π‘Žπ‘› (2 ( ) + 1) =
(π‘›πœ‹)2
3
𝑛 → 2𝑛 − 1
(2𝑛 − 1)πœ‹π‘₯
−3
108
𝑦(π‘₯) =
−∑
cos (
)
2
2
3
((2𝑛 − 1)πœ‹) (2(2𝑛 − 1)2 πœ‹ 2 + 9)
𝑛=1
Theme 5 – Partial differential equations
13 Lectures [week 10 & 11 & 12]
This theme will introduce eigenvalue problems and partial differential equations. The wave and
heat equation Fourier solutions.
Theme 5.1: Eigenvalue problems.
Theme 5.2: The heat equation.
Theme 5.3: The wave equation.
Pre-knowledge for this theme consists of linear second order differential equations (WTW256).
Theme 5.1: Eigenvalue problems.
What is a boundary value problem? A boundary value problem is a type of differential equation
whose conditions are at the boundary.
Examples hereof:
➒ 2D-flow over a stationary body: Due to the no-slip condition, the flow at the boundary
(the body) will be zero and at some velocity at the free surface.
𝑑𝑒
𝜏=πœ‡βˆ™
,
𝑒(0) = 0,
𝑒(𝛿) = 𝑉
𝑑𝑦
➒ Fixed-fixed vibrating string: Due to the fixed-fixed condition the endpoints will not
displace, hence the displacements at the boundaries are zero.
πœ•2𝑦
πœ•2𝑦
2
=
π‘Ž
βˆ™
,
𝑦(0, 𝑑) = 𝑦(𝐿, 𝑑) = 0
πœ•π‘‘ 2
πœ•π‘₯ 2
➒ Cantilever beam with loading: The cantilevered side will have a zero slope and zero
displacement.
𝑑2 𝑣
𝑀(π‘₯) = 𝐸𝐼 βˆ™ 2 ,
𝑣(0) = 𝑣 ′ (0) = 0
𝑑π‘₯
Consider the following eigenvalue problem:
𝑦 ′′ (π‘₯) + (𝑓(πœ†))𝑦 ′ (π‘₯) + 𝑔(πœ†)𝑦(π‘₯) = 0
The characteristic equation:
π‘š2 + 𝑓(πœ†)π‘š + 𝑔(πœ†) = 0
[𝑓(πœ†)]2 − 4𝑔(πœ†) < 0,
πœ† ∈ β„‚,
π‘π‘œπ‘šπ‘π‘™π‘’π‘₯
2
{[𝑓(πœ†)] − 4𝑔(πœ†) = 0,
πœ† ∈ ℝ,
π‘Ÿπ‘’π‘Žπ‘™ π‘Ÿπ‘’π‘π‘’π‘Žπ‘‘π‘’π‘‘
[𝑓(πœ†)]2 − 4𝑔(πœ†) > 0,
πœ† ∈ ℝ,
π‘Ÿπ‘’π‘Žπ‘™ π‘’π‘›π‘–π‘žπ‘’π‘’
Find the eigenvalue as well as the associated eigenfunction:
𝑦 ′′ (π‘₯) + πœ†π‘¦(π‘₯) = 0,
𝑦(0) = 𝑦(𝐿) = 0
πœ† = 0,
2
π‘š + πœ† = 0,
{πœ† > 0,
𝑦(π‘₯) = 𝐴𝑑 + 𝐡
𝑦(π‘₯) = 𝐢1 cos(√πœ†π‘₯) + 𝐢2 sin(√πœ†π‘₯)
πœ† < 0,
𝑦(π‘₯) = 𝐢1 𝑒 √πœ†π‘₯ + 𝐢2 π‘₯𝑒 √πœ†π‘₯
For πœ† = 0 (the boring one, not an eigenvalue):
𝑦(0) = 𝐡 = 0,
𝑦(𝐿) = 𝐴𝐿 = 0,
𝑦(π‘₯) = 0
For πœ† > 0:
𝑦(0) = 𝐢1 = 0,
𝑦(𝐿) = 𝐢2 sin(√πœ†πΏ) = 0,
sin(√πœ†πΏ) = 0 = sin(π‘›πœ‹) ,
π‘›πœ‹ 2
πœ†=( )
𝐿
𝐢2 ≠ 0
π‘›πœ‹π‘₯
𝑦(π‘₯) = 𝐢2 sin (
)
𝐿
For πœ† < 0 (not an eigenvalue):
𝑦(𝐿) = 𝐢2 𝐿𝑒 √πœ†πΏ = 0,
𝑦(0) = 𝐢1 = 0,
𝐢2 = 0
𝑦(π‘₯) = 0
Another example:
𝑦 ′′ (π‘₯) + πœ†π‘¦(π‘₯) = 0,
𝑦 ′ (0) = 𝑦 ′ (𝐿) = 0
πœ† = 0,
π‘š2 + πœ† = 0,
{πœ† > 0,
𝑦(π‘₯) = 𝐴𝑑 + 𝐡
𝑦(π‘₯) = 𝐢1 cos(√πœ†π‘₯) + 𝐢2 sin(√πœ†π‘₯)
πœ† < 0,
𝑦(π‘₯) = 𝐢1 𝑒 √πœ†π‘₯ + 𝐢2 π‘₯𝑒 √πœ†π‘₯
For πœ† = 0:
𝑦 ′ (0) = 𝐴 = 0,
𝑦 ′ (𝐿) = 𝐴 = 0,
𝑦(π‘₯) = 𝐡,
𝐡∈ℝ
𝑦(π‘₯) = 1
For πœ† > 0:
𝑦 ′ (π‘₯) = 𝐢2 √πœ† cos(√πœ†π‘₯) − 𝐢1 √πœ† sin(√πœ†π‘₯)
𝑦(0) = 𝐢2 √πœ† = 0,
𝑦(𝐿) = −𝐢1 √πœ† sin(√πœ†πΏ) = 0,
sin(√πœ†πΏ) = 0 = sin(π‘›πœ‹) ,
𝐢1 ≠ 0
π‘›πœ‹ 2
πœ†=( )
𝐿
π‘›πœ‹π‘₯
𝑦(π‘₯) = cos (
)
𝐿
For πœ† < 0 (Not an eigen value):
𝑦 ′ (π‘₯) = 𝐢1 √πœ†π‘’ √πœ†π‘₯ + 𝐢2 √πœ†π‘₯𝑒 √πœ†π‘₯ + 𝐢2 𝑒 √πœ†π‘₯
𝑦 ′ (0) = 𝐢1 √πœ† + 𝐢2 = 0,
𝑦 ′ (𝐿) = 𝐢2 √πœ†πΏπ‘’ √πœ†πΏ = 0,
𝐢2 = 0
𝑦(π‘₯) = 0
The last example:
𝑦 ′′ (π‘₯) + 2𝑦 ′ (π‘₯) + (1 + πœ†)𝑦(π‘₯) = 0,
π‘š2 + 2π‘š + (πœ† + 1) = 0,
π‘š=
𝑦(0) = 𝑦(1) = 0
−2 ± √4 − 4(1 + πœ†)
= −1 ± 𝑖√πœ†
2
For πœ† = 0 (Not an eigen value):
𝑦(π‘₯) = 𝐢1 𝑒 −π‘₯ + 𝐢2 π‘₯𝑒 −π‘₯
𝑦(1) = 𝐢2 𝑒 −1 = 0,
𝑦(0) = 𝐢1 = 0,
𝑦(π‘₯) = 0
For πœ† > 0:
𝑦(π‘₯) = 𝐢1 𝑒 −π‘₯ cos(√πœ†π‘₯) + 𝐢2 𝑒 −π‘₯ sin(√πœ†π‘₯)
𝑦(1) = 𝐢2 𝑒 −1 sin(√πœ†) = 0,
𝑦(0) = 𝐢1 = 0,
sin(√πœ†) = 0 = sin(π‘›πœ‹) ,
𝐢2 ≠ 0
πœ† = (π‘›πœ‹)2
𝑦(π‘₯) = 𝑒 −π‘₯ sin(π‘›πœ‹π‘₯)
For πœ† < 0 (Not an eigenvalue):
𝑦(π‘₯) = 𝐢1 𝑒 (−1+√πœ†)π‘₯ + 𝐢2 𝑒 (−1−√πœ†)π‘₯
𝑦(1) = 𝐢1 𝑒 (−1+√πœ†) + 𝐢2 𝑒 (−1−√πœ†) = 𝐢1 (𝑒 √πœ† − 𝑒 −√πœ† ) = 0
𝑦(0) = 𝐢1 + 𝐢2 = 0,
𝑒 √πœ† − 𝑒 −√πœ† ≠ 0
𝐢1 = 0,
𝑦(π‘₯) = 0
Standard eigenvalue problems’ solution:
𝑦 ′′ (π‘₯) + πœ†π‘¦(π‘₯) = 0,
𝑦
′′ (π‘₯)
+ πœ†π‘¦(π‘₯) = 0,
𝑦(0) = 𝑦(𝐿) = 0,
𝑦
′ (0)
=𝑦
′ (𝐿)
= 0,
π‘›πœ‹ 2
πœ†=( ) ,
𝐿
π‘›πœ‹π‘₯
𝑦(π‘₯) = sin (
)
𝐿
π‘›πœ‹ 2
(
πœ†={ 𝐿) ,
0
𝑦(π‘₯) = {
π‘›πœ‹π‘₯
cos (
)
𝐿
1
2
𝑦 ′′ (π‘₯) + πœ†π‘¦(π‘₯) = 0,
𝑦 ′ (0) = 𝑦(𝐿) = 0,
πœ†=(
(2𝑛 − 1)πœ‹
) ,
2𝐿
𝑦(π‘₯) = cos (
2
𝑦
′′ (π‘₯)
+ πœ†π‘¦(π‘₯) = 0,
𝑦
′ (0)
= 𝑦(𝐿) = 0,
(2𝑛 − 1)πœ‹
πœ†=(
) ,
2𝐿
𝑦(π‘₯) = sin (
(2𝑛 − 1)πœ‹π‘₯
)
2𝐿
(2𝑛 − 1)πœ‹π‘₯
)
2𝐿
Theme 5.2 – The heat equation
The heat equation is an equation used to describe heat flow in an laterally insulated, solid, thin,
homogenous material (although in this case that is the assumption). The heat function, 𝑒(π‘₯, 𝑑),
describes the temperature in the solid in terms of the position on the solid, π‘₯, as well as at a
time, 𝑑. The heat equation problem will consist of the actual heat equation, two boundary
conditions and an initial condition. There are two standard heat equations. The first, Problem A,
has a boundary condition that keeps the ends at a constant temperature.
𝑒𝑑 (π‘₯, 𝑑) = π‘˜π‘’π‘₯π‘₯ (π‘₯, 𝑑),
0<π‘₯<𝐿
0<𝑑
{ 𝑒(0, 𝑑) = 𝑒(𝐿, 𝑑) = 0,
𝑒(π‘₯, 0) = 𝑓(π‘₯),
0<π‘₯<𝐿
The second, Problem B, has a boundary condition that keeps the ends insulated (no heat
transfer).
𝑒𝑑 (π‘₯, 𝑑) = π‘˜π‘’π‘₯π‘₯ (π‘₯, 𝑑),
0<π‘₯<𝐿
0<𝑑
{ 𝑒π‘₯ (0, 𝑑) = 𝑒π‘₯ (𝐿, 𝑑) = 0,
𝑒(π‘₯, 0) = 𝑓(π‘₯),
0<π‘₯<𝐿
How does one go about solving this? Consider problem A:
𝑒𝑑 (π‘₯, 𝑑) = π‘˜π‘’π‘₯π‘₯ (π‘₯, 𝑑),
0<π‘₯<𝐿
0<𝑑
{ 𝑒(0, 𝑑) = 𝑒(𝐿, 𝑑) = 0,
𝑒(π‘₯, 0) = 𝑓(π‘₯),
0<π‘₯<𝐿
Assume the equation is separable such that the temperature is a product: π‘ˆ(π‘₯, 𝑑) = 𝑋(π‘₯) βˆ™ 𝑇(𝑑)
π‘ˆ(π‘₯, 𝑑) = 𝑋(π‘₯) βˆ™ 𝑇(𝑑)
π‘ˆ(0, 𝑑) = 𝑋(0) βˆ™ 𝑇(𝑑) = 0,
𝑋(0) = 0,
π‘ˆ(𝐿, 𝑑) = 𝑋(𝐿) βˆ™ 𝑇(𝑑) = 0
𝑋(𝐿) = 0,
π‘ˆπ‘‘ (π‘₯, 𝑑) = 𝑋(π‘₯) βˆ™ 𝑇 ′ (𝑑),
𝑇(𝑑) ≠ 0
π‘ˆπ‘₯π‘₯ (π‘₯, 𝑑) = 𝑋 ′′ (π‘₯) βˆ™ 𝑇(𝑑)
𝑋(π‘₯) βˆ™ 𝑇 ′ (𝑑) = π‘˜ βˆ™ 𝑋 ′′ (π‘₯) βˆ™ 𝑇(𝑑),
𝑋 ′′ (π‘₯) 𝑇 ′ (𝑑)
=
𝑋(π‘₯)
π‘˜π‘‡(𝑑)
Looking at this equation when we change π‘₯, the left-hand side will change as it depends on π‘₯.
The right-hand side will remain unchanged if π‘₯ is changed. The same will happen if 𝑑 changes.
The only way this equation can be satisfied, is when both are equal to a constant.
𝑋 ′′ (π‘₯) 𝑇 ′ (𝑑)
=
= −πœ†
𝑋(π‘₯)
π‘˜π‘‡(𝑑)
𝑋 ′′ (π‘₯)
= −πœ†,
𝑋 ′′ (π‘₯) + πœ†π‘‹(π‘₯) = 0
𝑋(π‘₯)
This is an eigenvalue problem from theme
5.1.
𝑋 ′′ (π‘₯) + πœ†π‘‹(π‘₯) = 0,
𝑋(0) = 𝑋(𝐿) = 0
𝑇 ′ (𝑑)
= −πœ†,
𝑇 ′ (𝑑) = −πœ†π‘˜π‘‡(𝑑)
π‘˜π‘‡(𝑑)
This is a separable differential equation from
WTW256.
𝑑𝑇
= −πœ†π‘˜π‘‡(𝑑)
𝑑𝑑
Solving the eigenvalue problem:
𝑋 ′′ (π‘₯) + πœ†π‘‹(π‘₯) = 0,
π‘›πœ‹ 2
πœ†=( ) ,
𝐿
𝑋(0) = 𝑋(𝐿) = 0
π‘›πœ‹π‘₯
𝑦(π‘₯) = sin (
)
𝐿
Solving the separable differential equation:
𝑑𝑇
= −πœ†π‘˜π‘‡(𝑑)
𝑑𝑑
𝑇(𝑑) = 𝑒
−π‘˜π‘‘(
π‘›πœ‹ 2
)
𝐿
Putting all the pieces together:
π‘ˆ(π‘₯, 𝑑) = 𝑋(π‘₯) βˆ™ 𝑇(𝑑)
π‘ˆ(π‘₯, 𝑑) = 𝑒
−π‘˜π‘‘(
π‘›πœ‹ 2
)
𝐿
π‘›πœ‹π‘₯
βˆ™ sin (
)
𝐿
For the Fourier solution:
𝐿
2
π‘›πœ‹π‘₯
𝑐𝑛 = ∫ 𝑓(π‘₯) sin (
) 𝑑π‘₯
𝐿
𝐿
0
∞
π‘ˆ(π‘₯, 𝑑) = ∑ (𝑐𝑛 𝑒
−π‘˜π‘‘(
π‘›πœ‹ 2
)
𝐿
𝑛=0
π‘›πœ‹π‘₯
βˆ™ sin (
))
𝐿
Problem B is solved using the same steps. The eigenvalue problem will have a different solution
π‘›πœ‹π‘₯
) and a constant term 𝑐0 .
𝐿
and 𝑐𝑛 is computed using cos (
Problem A Fourier series solution:
∞
π‘ˆ(π‘₯, 𝑑) = ∑ (𝑐𝑛 𝑒
−π‘˜π‘‘(
𝑛=0
π‘›πœ‹ 2
)
𝐿
𝐿
π‘›πœ‹π‘₯
sin (
)) ,
𝐿
2
π‘›πœ‹π‘₯
𝑐𝑛 = ∫ 𝑓(π‘₯) sin (
) 𝑑π‘₯
𝐿
𝐿
0
Problem B Fourier series solution:
∞
π‘ˆ(π‘₯, 𝑑) = 𝑐0 ∑ (𝑐𝑛 𝑒
𝑛=0
−π‘˜π‘‘(
π‘›πœ‹ 2
)
𝐿
π‘›πœ‹π‘₯
cos (
)) ,
𝐿
𝐿
2
π‘›πœ‹π‘₯
𝑐𝑛 = ∫ 𝑓(π‘₯) cos (
) 𝑑π‘₯ ,
𝐿
𝐿
The standard heat equation
The end points are held at a constant temperature
The end points are insulated
The thermal diffusivity of the material
The initial condition or initial temperature
distribution
The length of the rod
0
𝐿
1
𝑐0 = ∫ 𝑓(π‘₯)𝑑π‘₯
𝐿
0
𝑒𝑑 (π‘₯, 𝑑) = π‘˜π‘’π‘₯π‘₯ (π‘₯, 𝑑),
0<π‘₯<𝐿
𝑒(0, 𝑑) = πœƒ1 ,
𝑒(𝐿, 𝑑) = πœƒ2 ,
0<𝑑
𝑒π‘₯ (0, 𝑑) = 𝑒π‘₯ (𝐿, 𝑑) = 0,
0<𝑑
π‘˜
𝑒(π‘₯, 0) = 𝑓(π‘₯),
0<π‘₯<𝐿
𝐿
Two steel rods π‘˜ = 0.15
π‘π‘š2
𝑠
are both 25 π‘π‘š in length. Rod A is having an initial uniform
temperature of 100℃ while rod B is 0℃. At time 𝑑 = 0 the ends of the rods are put into contact.
Determine:
a) The Fourier series solution when the outer ends are kept at 0℃
b) The Fourier series solution when the outer ends are insulated.
𝑒𝑑 (π‘₯, 𝑑) = 0.15𝑒π‘₯π‘₯ (π‘₯, 𝑑),
0 < π‘₯ < 50
𝑒(0, 𝑑) = 𝑒(50, 𝑑) = 0,
0<𝑑
100,
0 < π‘₯ < 25
𝑒(π‘₯, 0) = {
0,
25 < π‘₯ < 50
π‘ˆ(π‘₯, 𝑑) = 𝑋(π‘₯) βˆ™ 𝑇(𝑑)
π‘ˆ(0, 𝑑) = 𝑋(0) βˆ™ 𝑇(𝑑) = 0,
𝑋(0) = 0,
π‘ˆ(50, 𝑑) = 𝑋(50) βˆ™ 𝑇(𝑑) = 0
𝑋(50) = 0,
π‘ˆπ‘‘ (π‘₯, 𝑑) = 𝑋(π‘₯) βˆ™ 𝑇 ′ (𝑑),
π‘ˆπ‘₯π‘₯ (π‘₯, 𝑑) = 𝑋 ′′ (π‘₯) βˆ™ 𝑇(𝑑)
𝑋 ′′ (π‘₯)
𝑇 ′ (𝑑)
=
= −πœ†
𝑋(π‘₯)
0.15 βˆ™ 𝑇(𝑑)
𝑋(π‘₯) βˆ™ 𝑇 ′ (𝑑) = 0.15 βˆ™ 𝑋 ′′ (π‘₯) βˆ™ 𝑇(𝑑),
𝑋 ′′ (π‘₯)
= −πœ†,
𝑋 ′′ (π‘₯) + πœ†π‘‹(π‘₯) = 0
𝑋(π‘₯)
𝑋 ′′ (π‘₯) + πœ†π‘‹(π‘₯) = 0,
𝑋(0) = 𝑋(𝐿) = 0
π‘›πœ‹π‘₯
𝑋𝑛 = sin (
),
50
π‘›πœ‹ 2
πœ†=( )
50
π‘ˆ(π‘₯, 𝑑) = ∑ (𝑐𝑛 𝑒
−0.15𝑑(
𝑛=0
25
π‘›πœ‹ 2
)
50
𝑇 ′ (𝑑)
= −πœ†,
𝑇 ′ (𝑑) = −πœ†π‘˜π‘‡(𝑑)
π‘˜π‘‡(𝑑)
𝑑𝑇
= −πœ†π‘˜π‘‡(𝑑)
𝑑𝑑
𝑇𝑛 = 𝑒 −
π‘ˆπ‘› (π‘₯, 𝑑) = 𝑒 −
∞
𝑇(𝑑) ≠ 0
0.15𝑛2 πœ‹2
𝑑
2500
π‘›πœ‹π‘₯
sin (
)) ,
50
0.15𝑛2 πœ‹2
𝑑
2500
π‘›πœ‹π‘₯
βˆ™ sin (
)
50
𝐿
2
π‘›πœ‹π‘₯
𝑐𝑛 = ∫ 𝑓(π‘₯) sin (
) 𝑑π‘₯
𝐿
𝐿
0
50
1
π‘›πœ‹π‘₯
1
200
π‘›πœ‹
𝑐𝑛 =
∫ 100 sin (
) 𝑑π‘₯ +
∫ 0𝑑π‘₯ =
(1 − cos ( ))
25
𝐿
25
π‘›πœ‹
2
0
25
∞
π‘ˆ(π‘₯, 𝑑) = ∑ (
𝑛=1
𝑑 = 0𝑠
𝑑 = 10𝑠
π‘›πœ‹ 2
200
π‘›πœ‹
π‘›πœ‹π‘₯
−0.15𝑑( )
50 sin (
(1 − cos ( )) 𝑒
))
π‘›πœ‹
2
50
𝑑 = 200𝑠
𝑑 = 1800
𝑑 = 7200𝑠
𝑒𝑑 (π‘₯, 𝑑) = 0.15𝑒π‘₯π‘₯ (π‘₯, 𝑑),
0 < π‘₯ < 50
(0,
(50,
𝑒π‘₯ 𝑑) = 𝑒π‘₯
𝑑) = 0,
0<𝑑
100,
0 < π‘₯ < 25
𝑒(π‘₯, 0) = {
0,
25 < π‘₯ < 50
π‘ˆ(π‘₯, 𝑑) = 𝑋(π‘₯) βˆ™ 𝑇(𝑑)
π‘ˆπ‘₯ (0, 𝑑) = 𝑋 ′ (0) βˆ™ 𝑇(𝑑) = 0,
𝑋 ′ (0) = 0,
π‘ˆπ‘₯ (50, 𝑑) = 𝑋 ′ (50) βˆ™ 𝑇(𝑑) = 0
𝑋 ′ (50) = 0,
π‘ˆπ‘‘ (π‘₯, 𝑑) = 𝑋(π‘₯) βˆ™ 𝑇 ′ (𝑑),
π‘ˆπ‘₯π‘₯ (π‘₯, 𝑑) = 𝑋 ′′ (π‘₯) βˆ™ 𝑇(𝑑)
𝑋 ′′ (π‘₯)
𝑇 ′ (𝑑)
=
= −πœ†
𝑋(π‘₯)
0.15 βˆ™ 𝑇(𝑑)
𝑋(π‘₯) βˆ™ 𝑇 ′ (𝑑) = 0.15 βˆ™ 𝑋 ′′ (π‘₯) βˆ™ 𝑇(𝑑),
𝑋 ′′ (π‘₯)
= −πœ†,
𝑋 ′′ (π‘₯) + πœ†π‘‹(π‘₯) = 0
𝑋(π‘₯)
𝑋 ′′ (π‘₯) + πœ†π‘‹(π‘₯) = 0,
𝑋 ′ (0) = 𝑋 ′ (𝐿) = 0
π‘›πœ‹π‘₯
𝑋𝑛 = cos (
),
50
π‘›πœ‹ 2
πœ†=( )
50
π‘ˆπ‘› (π‘₯, 𝑑) = 𝑒
∞
π‘ˆ(π‘₯, 𝑑) = 𝑐0 + ∑ (𝑐𝑛 𝑒
−0.15𝑑(
π‘›πœ‹ 2
)
50
𝑛=0
𝑇(𝑑) ≠ 0
𝑇 ′ (𝑑)
= −πœ†,
𝑇 ′ (𝑑) = −πœ†π‘˜π‘‡(𝑑)
π‘˜π‘‡(𝑑)
𝑑𝑇
= −πœ†π‘˜π‘‡(𝑑)
𝑑𝑑
𝑇𝑛 = 𝑒 −
−
π‘›πœ‹π‘₯
cos (
)) ,
50
0.15𝑛2 πœ‹2
𝑑
2500
0.15𝑛2 πœ‹2
𝑑
2500
π‘›πœ‹π‘₯
βˆ™ cos (
)
50
𝐿
2
π‘›πœ‹π‘₯
𝑐𝑛 = ∫ 𝑓(π‘₯) cos (
) 𝑑π‘₯ ,
𝐿
𝐿
0
25
𝐿
1
𝑐0 = ∫ 𝑓(π‘₯)𝑑π‘₯
𝐿
0
50
1
π‘›πœ‹π‘₯
1
200
π‘›πœ‹
𝑐𝑛 =
∫ 100 sin (
) 𝑑π‘₯ +
∫ 0𝑑π‘₯ =
(sin ( ))
25
𝐿
25
π‘›πœ‹
2
0
25
50
50
0
0
1
1
𝑐0 =
∫ 100𝑑π‘₯ +
∫ 0𝑑π‘₯ = 50
50
50
∞
π‘ˆ(π‘₯, 𝑑) = 50 + ∑ (
𝑛=0
𝑑 = 0𝑠
𝑑 = 10𝑠
π‘›πœ‹ 2
200
π‘›πœ‹
π‘›πœ‹π‘₯
−0.15𝑑( )
50 cos (
(sin ( )) 𝑒
))
π‘›πœ‹
2
50
𝑑 = 200𝑠
𝑑 = 1800
𝑑 = 7200𝑠
Notice the plots of each case. In case a) the points where held at a constant temperature even
though heat exchange is happening meaning that heat was constantly rejected at the endpoints
and in doing so maintained constant temperature (heat transfer at the ends where allowed).
The rod eventually cooled down to zero. In case b) the endpoints were insulated meaning no
heat transfer could happen to the surroundings from the ends. Slowly heat is distributed
uniformly within the rod. The ends aren’t kept at a constant temperature.
These PDE’s are considered as the standard heat equation. Non-standard equations may need
transformations to help solve the equation.
2𝑒𝑑 (π‘₯, 𝑑) = 𝑒π‘₯π‘₯ (π‘₯, 𝑑) + 8,
0<π‘₯<1
𝑒(1, 𝑑) = 30,
0<𝑑
{𝑒(0, 𝑑) = 10,
𝑒(π‘₯, 0) = 10 − 4π‘₯ 2 ,
0<π‘₯<1
Use the transformation: π‘ˆ(π‘₯, 𝑑) = π‘Š(π‘₯, 𝑑) + β„Ž(π‘₯)
π‘ˆπ‘₯π‘₯ = π‘Šπ‘₯π‘₯ + β„Ž′′ (π‘₯)
π‘ˆπ‘‘ = π‘Šπ‘‘ ,
2π‘Šπ‘‘ = π‘Šπ‘₯π‘₯ + β„Ž′′ (π‘₯) + 8
The first objective is to find β„Ž(π‘₯) such that it will result in a standard heat equation.
β„Ž′′ (π‘₯) + 8 = 0
β„Ž(π‘₯) = −4π‘₯ 2 + 𝐢π‘₯ + 𝐷
β„Ž(0) = 𝐷,
β„Ž(1) = −4 + 𝐢 + 𝐷
π‘ˆ(0, 𝑑) = 10 = π‘Š(0, 𝑑) + β„Ž(0),
π‘Š(0, 𝑑) = 0,
β„Ž(0) = 10
π‘ˆ(0,1) = 30 = π‘Š(0,1) + β„Ž(1),
π‘Š(0,1) = 0,
β„Ž(1) = 30
β„Ž(0) = 10,
β„Ž(1) = 24,
β„Ž(π‘₯) = −4π‘₯ 2 + 24π‘₯ + 10
Find the initial temperature distribution π‘Š(π‘₯, 0):
π‘ˆ(π‘₯, 0) = π‘Š(π‘₯, 0) + β„Ž(π‘₯),
10 − 4π‘₯ 2 = π‘Š(π‘₯, 0) − 4π‘₯ 2 + 24π‘₯ + 10
π‘Š(π‘₯, 0) = −24π‘₯
The new transformed problem is:
2𝑀𝑑 = 𝑀π‘₯π‘₯ ,
0<π‘₯<1
0<𝑑
{𝑀(0, 𝑑) = 𝑀(1, 𝑑) = 0,
𝑀(π‘₯, 0) = −24π‘₯,
0<π‘₯<1
Some non-standard heat equations can still be solved using the separation of variables.
𝑒𝑑 (π‘₯, 𝑑) = 2𝑒π‘₯π‘₯ (π‘₯, 𝑑) − 3𝑒(π‘₯, 𝑑),
0<π‘₯<2
{
𝑒(0, 𝑑) = 𝑒(2, 𝑑) = 0,
0<𝑑
𝑒(π‘₯, 0) = 4π‘₯,
0<π‘₯<2
π‘ˆ(π‘₯, 𝑑) = 𝑋(π‘₯) βˆ™ 𝑇(𝑑)
π‘ˆ(0, 𝑑) = 𝑋(0) βˆ™ 𝑇(𝑑) = 0,
𝑋(0) = 0,
π‘ˆ(2, 𝑑) = 𝑋(2) βˆ™ 𝑇(𝑑) = 0
𝑋(2) = 0,
π‘ˆπ‘‘ (π‘₯, 𝑑) = 𝑋(π‘₯) βˆ™ 𝑇 ′ (𝑑),
𝑇(𝑑) ≠ 0
π‘ˆπ‘₯π‘₯ (π‘₯, 𝑑) = 𝑋 ′′ (π‘₯) βˆ™ 𝑇(𝑑)
𝑋(π‘₯) βˆ™ 𝑇 ′ (𝑑) = 2𝑋 ′′ (π‘₯) βˆ™ 𝑇(𝑑) − 3𝑋(π‘₯) βˆ™ 𝑇(𝑑)
3
𝑋 ′′ (π‘₯) 𝑇 ′ (𝑑) 3
𝑋(π‘₯) βˆ™ 𝑇 ′ (𝑑) = 2𝑇(𝑑) βˆ™ (𝑋 ′′ (π‘₯) − 𝑋(π‘₯)) →
=
+ = −πœ†
2
𝑋(π‘₯)
2𝑇(𝑑) 2
𝑋 ′′ (π‘₯)
= −πœ†
𝑋(π‘₯)
𝑋 ′′ (π‘₯) + 𝑋(π‘₯) = 0,
𝑋(0) = 𝑋(2) = 0
π‘›πœ‹π‘₯
𝑋𝑛 = sin (
),
2
π‘›πœ‹ 2
πœ†=( )
2
𝑇𝑛 =
π‘ˆπ‘› (π‘₯, 𝑑) =
∞
π‘ˆ(π‘₯, 𝑑) = ∑ (𝑐𝑛 𝑒
𝑛2 πœ‹2
−𝑑(
+3)
2
𝑛=0
𝑇 ′ (𝑑) 3
3
+ = −πœ†,
𝑇 ′ (𝑑) = −2 (πœ† + ) 𝑇(𝑑)
2𝑇(𝑑) 2
2
𝑑𝑇
3
= −2 (πœ† + ) 𝑇(𝑑)
𝑑𝑑
2
𝑛 2 πœ‹2
−𝑑(
+3)
2
𝑒
𝑛 2 πœ‹2
−𝑑(
+3)
2
𝑒
π‘›πœ‹π‘₯
βˆ™ sin (
)
2
𝐿
π‘›πœ‹π‘₯
βˆ™ sin (
)) ,
2
2
π‘›πœ‹π‘₯
𝑐𝑛 = ∫ 𝑓(π‘₯) sin (
) 𝑑π‘₯
𝐿
𝐿
0
2
(−1)𝑛+1 βˆ™ 16
2
π‘›πœ‹π‘₯
𝑐𝑛 = ∫ 4π‘₯ sin (
) 𝑑π‘₯ =
2
2
π‘›πœ‹
0
∞
π‘ˆ(π‘₯, 𝑑) = ∑ (
𝑛=0
2 2
(−1)𝑛+1 βˆ™ 16 −𝑑(𝑛 πœ‹
2
𝑒
π‘›πœ‹
Always keep the eigenvalue problem standard.
+3)
π‘›πœ‹π‘₯
βˆ™ sin (
))
2
Theme 5.3: The wave equation.
The next PDE we’ll be discussing is the wave equation.
𝑦𝑑𝑑 (π‘₯, 𝑑) = 𝛼 2 𝑦π‘₯π‘₯ (π‘₯, 𝑑),
(0 < π‘₯ < 𝐿,
0 < 𝑑)
The heat equation has boundary conditions, an initial velocity and an initial displacement.
(0 < π‘₯ < 𝐿,
𝑦𝑑𝑑 (π‘₯, 𝑑) = 𝛼 2 𝑦π‘₯π‘₯ (π‘₯, 𝑑),
0 < 𝑑)
(0 < 𝑑)
𝑦(0, 𝑑) = 𝑦(𝐿, 𝑑) = 0,
(0 < π‘₯ < 𝐿)
𝑦(π‘₯, 0) = 𝑓(π‘₯),
(0 < π‘₯ < 𝐿)
𝑦𝑑 (π‘₯, 0) = 𝑔(π‘₯),
{
The first case is when the initial displacement is a non-zero function and the initial velocity is
zero (Problem A).
(0 < π‘₯ < 10,
𝑦𝑑𝑑 (π‘₯, 𝑑) = 5𝑦π‘₯π‘₯ (π‘₯, 𝑑),
0 < 𝑑)
(0 < 𝑑)
𝑦(0, 𝑑) = 𝑦(10, 𝑑) = 0,
2
(0
𝑦(π‘₯, 0) = π‘₯ − 10π‘₯,
< π‘₯ < 10)
(0 < π‘₯ < 10)
𝑦𝑑 (π‘₯, 0) = 0,
Assume that 𝑦(π‘₯, 𝑑) is separable:
π‘Œ =π‘‹βˆ™π‘‡
π‘Œπ‘‘π‘‘ = 𝑋 βˆ™ 𝑇 ′′ ,
π‘Œπ‘₯π‘₯ = 𝑋 ′′ βˆ™ 𝑇
𝑋 βˆ™ 𝑇 ′′ = 5 βˆ™ 𝑋 ′′ βˆ™ 𝑇 →
𝑦(0, 𝑑) = 0 = 𝑋(0) βˆ™ 𝑇(𝑑),
𝑋 ′′
𝑇 ′′
=
= −πœ†
𝑋
5βˆ™π‘‡
𝑇(𝑑) ≠ 0 ∴ 𝑋(0) = 0
𝑦(0,10) = 0 = 𝑋(10) βˆ™ 𝑇(𝑑),
𝑇(𝑑) ≠ 0 ∴ 𝑋(10) = 0
𝑦𝑑 (π‘₯, 0) = 0 = 𝑋(π‘₯) βˆ™ 𝑇 ′ (0),
𝑋(π‘₯) ≠ 0 ∴ 𝑇 ′ (0) = 0
Solve the two differential equations:
𝑋 ′′
= −πœ† → 𝑋 ′′ + πœ†π‘‹ = 0,
𝑋
π‘›πœ‹π‘₯
𝑋𝑛 = sin (
),
10
𝑋(0) = 𝑋(10) = 0
π‘›πœ‹ 2
πœ†=( )
10
𝑇 ′′
= −πœ† → 𝑇 ′′ + 5πœ†π‘‡ = 0,
5βˆ™π‘‡
π‘š 2 + 5πœ† = 0
𝑇 ′ (0) = 0
π‘š = ±π‘–√5πœ†
𝑇(𝑑) = 𝐢1 cos(𝑑√5πœ†) + 𝐢2 sin(𝑑√5πœ†)
′ (𝑑)
𝑇
= −𝐢1 √5πœ† sin (𝑑√5πœ†) + 𝐢2 √5πœ† cos (𝑑√5πœ†)
𝑇 ′ (0) = 𝐢2 √5πœ† = 0 ∴ 𝐢2 = 0
𝑇(𝑑) = cos(𝑑√5πœ†)
π‘›πœ‹π‘‘
𝑇(𝑑) = cos (√5
)
10
π‘›πœ‹π‘₯
π‘›πœ‹π‘‘
π‘Œπ‘› (π‘₯, 𝑑) = sin (
) cos (√5
)
10
10
𝐿
∞
π‘›πœ‹π‘₯
π‘›πœ‹π‘‘
π‘Œ(π‘₯, 𝑑) = ∑ (𝑐𝑛 sin (
) cos (√5
)) ,
10
10
2
π‘›πœ‹π‘₯
𝑐𝑛 = ∫ 𝑓(π‘₯) sin (
) 𝑑π‘₯
𝐿
𝐿
𝑛=0
0
10
2
π‘›πœ‹π‘₯
800
𝑐𝑛 =
∫ (π‘₯ 2 − 10π‘₯) sin (
) 𝑑π‘₯ = −
3
10
10
((2𝑛 + 1)πœ‹)
0
∞
π‘Œ(π‘₯, 𝑑) = ∑ (−
𝑛=0
800
π‘›πœ‹π‘₯
π‘›πœ‹π‘‘
) cos (√5
))
10
10
3 sin (
((2𝑛 + 1)πœ‹)
The second case is when the initial velocity is a non-zero function (Problem B).
(0 < π‘₯ < 10,
𝑦𝑑𝑑 (π‘₯, 𝑑) = 5𝑦π‘₯π‘₯ (π‘₯, 𝑑),
0 < 𝑑)
(0 < 𝑑)
𝑦(0, 𝑑) = 𝑦(10, 𝑑) = 0,
2
(0
𝑦(π‘₯, 0) = π‘₯ − 10π‘₯,
< π‘₯ < 10)
(0 < π‘₯ < 10)
𝑦𝑑 (π‘₯, 0) = 0,
𝑋 βˆ™ 𝑇 ′′ = 5 βˆ™ 𝑋 ′′ βˆ™ 𝑇 →
𝑋 ′′
𝑇 ′′
=
= −πœ†
𝑋
5βˆ™π‘‡
𝑦(0, 𝑑) = 0 = 𝑋(0) βˆ™ 𝑇(𝑑),
𝑦(0,10) = 0 = 𝑋(10) βˆ™ 𝑇(𝑑),
𝑦(π‘₯, 0) = 0 = 𝑋(π‘₯) βˆ™ 𝑇(0),
𝑇(𝑑) ≠ 0 ∴ 𝑋(0) = 0
𝑇(𝑑) ≠ 0 ∴ 𝑋(10) = 0
𝑋(π‘₯) ≠ 0 ∴ 𝑇(0) = 0
Solve the two differential equations:
𝑋 ′′
= −πœ† → 𝑋 ′′ + πœ†π‘‹ = 0,
𝑋
π‘›πœ‹π‘₯
𝑋𝑛 = sin (
),
10
∞
𝑋(0) = 𝑋(10) = 0
π‘›πœ‹ 2
πœ†=( )
10
𝑇 ′ (0) = 0
π‘š = ±π‘–√5πœ†
𝑇(𝑑) = 𝐢1 cos(𝑑√5πœ†) + 𝐢2 sin(𝑑√5πœ†)
𝑇(0) = 𝐢1 = 0 ∴ 𝐢1 = 0
𝑇(𝑑) = sin(𝑑√5πœ†)
π‘›πœ‹π‘‘
𝑇(𝑑) = sin (√5
)
10
π‘›πœ‹π‘₯
π‘›πœ‹π‘‘
π‘Œπ‘› (π‘₯, 𝑑) = sin (
) sin (√5
)
10
10
π‘›πœ‹π‘₯
π‘›πœ‹π‘‘
π‘Œ(π‘₯, 𝑑) = ∑ (𝑐𝑛 sin (
) sin (√5
)) ,
10
10
𝑛=0
𝑇 ′′
= −πœ† → 𝑇 ′′ + 5πœ†π‘‡ = 0,
5βˆ™π‘‡
π‘š 2 + 5πœ† = 0
𝐿
2
π‘›πœ‹π‘₯
𝑐𝑛 =
∫ 𝑓(π‘₯) sin (
) 𝑑π‘₯
π‘›πœ‹π‘Ž
𝐿
0
10
π‘›πœ‹π‘₯
200(−1)𝑛+1
𝑐𝑛 =
∫ π‘₯ sin (
) 𝑑π‘₯ =
10
𝑛2 πœ‹ 2 √5
√5π‘›πœ‹
2
0
∞
π‘Œ(π‘₯, 𝑑) = ∑ (
200(−1)𝑛+1
𝑛=1
𝑛2 πœ‹ 2 √5
π‘›πœ‹π‘₯
π‘›πœ‹π‘‘
sin (
) sin (√5
))
10
10
0
1
2
3
5
6
7
8/1
4
The wave equation may be asked in a non-standard form which will need a transformation to
solve:
(0 < π‘₯ < 2,
𝑦𝑑𝑑 (π‘₯, 𝑑) = 3𝑦π‘₯π‘₯ (π‘₯, 𝑑) + 2π‘₯,
(0 < 𝑑)
𝑦(0, 𝑑) = 𝑦(2, 𝑑) = 0,
(0 < π‘₯ < 2)
𝑦(π‘₯, 0) = 0,
(0 < π‘₯ < 2)
𝑦𝑑 (π‘₯, 0) = 0,
0 < 𝑑)
Use the following transformation: 𝑦(π‘₯, 𝑑) = 𝑀(π‘₯, 𝑑) + β„Ž(π‘₯)
𝑦𝑑𝑑 = 𝑀𝑑𝑑 ,
𝑀𝑑𝑑 = 3𝑀π‘₯π‘₯ + 3β„Ž′′ (π‘₯) + 2π‘₯,
𝑦π‘₯π‘₯ = 𝑀π‘₯π‘₯ + β„Ž′′ (π‘₯)
3β„Ž′′ (π‘₯) + 2π‘₯ = 0,
β„Ž(π‘₯) = −
π‘₯3
+ 𝐢π‘₯ + 𝐷
9
𝑦(0, 𝑑) = 𝑀(0, 𝑑) + β„Ž(0) = 0,
𝑀(0, 𝑑) = 0 ∴ β„Ž(0) = 0
𝑦(2, 𝑑) = 𝑀(2, 𝑑) + β„Ž(2) = 0,
𝑀(2, 𝑑) = 0 ∴ β„Ž(2) = 0
β„Ž(0) = 𝐷 = 0,
8
β„Ž(2) = − + 2𝐢 = 0,
9
4
𝐢= ,
9
→ β„Ž(π‘₯) = −
𝑦(π‘₯, 𝑑) = 𝑀(π‘₯, 𝑑) + β„Ž(π‘₯) = 0
𝑦(π‘₯, 𝑑) = 𝑀(π‘₯, 𝑑) −
π‘₯3 4
π‘₯3 4
+ π‘₯ = 0 → 𝑀(π‘₯, 0) =
− π‘₯
9 9
9 9
𝑦𝑑 (π‘₯, 0) = 𝑀𝑑 (π‘₯, 𝑑) = 0 → 𝑦𝑑 (π‘₯, 0) = 𝑀𝑑 (π‘₯, 0) = 0
(0 < π‘₯ < 2,
𝑀𝑑𝑑 = 3𝑀π‘₯π‘₯ ,
0 < 𝑑)
(0 < 𝑑)
𝑀(0, 𝑑) = 𝑀(2, 𝑑) = 0,
π‘₯3 4
(0 < π‘₯ < 2)
𝑀(π‘₯, 0) =
− π‘₯,
9 9
(0 < π‘₯ < 2)
𝑀𝑑 (π‘₯, 0) = 0,
π‘₯3 4
+ π‘₯
9 9
Another method used to solve the wave equation is by using d’Alembert’s solution.
𝑦𝑑𝑑 = π‘Ž2 𝑦π‘₯π‘₯ ,
0 < π‘₯ < 𝐿,
𝑦(0, 𝑑) = 𝑦(𝐿, 𝑑) = 0
𝑦(π‘₯, 0) = 𝑓(π‘₯),
0 < π‘₯ < 𝐿,
0 < π‘₯ < 𝐿,
{𝑦𝑑 (π‘₯, 0) = 𝑔(π‘₯),
𝑑>0
𝑑>0
𝑑>0
Problem A:
1
𝑦𝐴 (π‘₯, 𝑑) = [𝐹(π‘₯ + π‘Žπ‘‘) + 𝐹(π‘₯ − π‘Žπ‘‘)]
2
The 𝐹 function refers to the odd extension of 𝑓, the initial displacement function. This method is
effective when the displacement function is requested at a specific timestamp. This is also
helpful when evaluating exact points on a string at any time.
Problem B:
π‘₯+π‘Žπ‘‘
1
1
[𝐻(π‘₯ + π‘Žπ‘‘) − 𝐻(π‘₯ − π‘Žπ‘‘)],
𝑦𝐡 (π‘₯, 𝑑) =
∫ 𝐺(𝑠)𝑑𝑠 =
2π‘Ž
2π‘Ž
π‘₯
𝐻(π‘₯) = ∫ 𝐺(𝑠)𝑑𝑠
π‘₯−π‘Žπ‘‘
0
The 𝐺 function refers to the odd extension of 𝑔, the initial velocity function.
In the case where both the initial velocity and displacement is non-zero, the solutions to
problem A and B may be added together.
1
1
[𝐻(π‘₯ + π‘Žπ‘‘) − 𝐻(π‘₯ − π‘Žπ‘‘)]
𝑦(π‘₯, 𝑑) = [𝐹(π‘₯ + π‘Žπ‘‘) + 𝐹(π‘₯ − π‘Žπ‘‘)] +
2
2π‘Ž
Download