Advanced Calculus for Engineers
Advanced Calculus for Engineers
INTRODUCTION
CONCEPTS:
2) We shall begin with the topic of Fourier Series which discusses the following concepts:
⇒ A function f (x) is said to be periodic if for all values of x and some positive number
T called the Period, we have;
f (x + T ) = f (x)
2) T is the interval between two successive repetitions and is called the Period of f (x).
That is, the following is a graph of periodic function with period T .
5) (i) The following are examples of periodic functions each with period 2π:
(a) f (x) = 1
(b) f (x) = cos x
(c) f (x) = sin x
(ii) The following are examples of functions that are not periodic (nonperiodic functions):
(a) f (x) = x
(b) f (x) = x2
(c) f (x) = ex
(d) f (x) = cosh x
(e) f (x) = ln x
6) A constant function f (x) = c is periodic with any period, where c, is a constant number.
7) If f (x) has period T , it also has the period 2T because the equation f (x + T ) = f (x)
implies:
f (x + 3T ) = f (x + T + T + T ) = f ([x + T + T ] + T )
= f (x + T + T ) = f ([x + T ] + T )
= f (x + T )
= f (x)
⇒ f (x + 3T ) = f (x)
f (x + nT ) = f (x),
for all x.
8) If f (x) and g(x) have period T , then af (x) + bg(x) with any constants a and b also has
the period T .
9) The two periodic functions that most of us are familiar are sine and cosine and in fact
we will be using these two functions regularly in the remaining sections.
EXAMPLE
1. Show that each of the following functions is periodic with the period 2π.
SOLUTION
(b) f (x) = sin x ⇒ f (x + T ) = f (x + 2π) = sin(x + 2π) = sin x cos 2π + cos x sin 2π. But,
cos 2π = 1 and sin 2π = 0, thus; f (x+T ) = f (x+2π) = sin(x+2π) = sin x(1)+cos x(0) =
sin x = f (x), hence shown.
1) Our problem in the first few sections of this topic will be the representation of various
functions f (x) of period 2π in terms of the simple functions
1, cos x, sin x, cos 2x, sin 2x, ..., cos nx, sin nx. (1)
2) All of these functions have the period 2π. They form a system called Trigonometric
System.
is called the Trigonometric Series, where a0 , a1 , b1 , a2 , b2 , ... are constants, called the
Coeffients of the series.
4) Each term of the series (2) has the period 2π. If the coefficients are such that the series
converges, then its sum will be a function of period 2π.
Proof:
⇒ The proof follows simply by transforming the integrands trigonometrically from prod-
ucts into sums. That is,
Z π
1 π 1 π
Z Z
cos nx cos mxdx = cos(n + m)xdx + cos(n − m)xdx and
−π 2 −π 2 −π
Z π
1 π 1 π
Z Z
sin nx sin mxdx = cos(n − m)xdx − cos(n + m)xdx
−π 2 −π 2 −π
⇒ Since, m 6= n (integer!), the integrals on the right are all 0. And for all integers m and
n (without exception), we have;
Z π
1 π 1 π
Z Z
sin nx cos mxdx = sin(n + m)xdx + sin(n − m)xdx
−π 2 −π 2 −π
=0+0
=0 Hence proved.
Z π
1
a0 = f (x)dx
2π −π
1 π
Z
an = f (x) cos nxdx; for n = 1, 2, 3, ...
π −π
1 π
Z
bn = f (x) sin nxdx; for n = 1, 2, 3, ...
π −π
3) That is, from the Fourier Series representation of the function f (x)
∞
X
f (x) = a0 + (an cos nx + bn sin nx) (3)
n=1
Z π
1
Therefore a0 = f (x)dx. (4)
2π −π
⇒ Multiplying on both sides of (3) by cos mx with any fixed positive integer m and
integrating from −π to π, we have;
Z π Z π" ∞
X
#
f (x) cos mxdx = a0 + (an cos nx + bn sin nx) cos mxdx
−π −π n=1
Z π
1
Therefore am = an = f (x) cos nxdx (5)
π −π
⇒ Multiplying on both sides of (3) by sin mx with any fixed positive integer m and
integrating from −π to π, we have;
Z π Z π ∞
X
f (x) sin mxdx = [a0 + (an cos nx + bn sin nx)] sin mxdx
−π −π n=1
Z π
1
Therefore bm = bn = f (x) sin nxdx (6)
π −π
⇒ Let f (x) have period T = 2L, then we can introduce a new variable v such that f (x),
as a function of v, has period 2π. If we set,
T 2π π
x= v, so that v = x= x
2π T L
then v = ±π corresponds to x = ±L.
⇒ This means that, f as a function of v, has period 2π, and therefore, a Fourier series of
the form
∞
L X
f (x) = f ( v) = a0 + (an cos nv + bn sin nv)
π n=1
2) We could use these formulas directly, but the change to x simplifies calculations. Since,
π π
v= x, we have dv = dx
L L
and integrate over x from −L to L, consequently we obtain for a function f (x) of period
2L the Fourier Series,
∞
X nπ nπ
f (x) = a0 + (an cos x + bn sin x) (7)
n=1
L L
3) We continue to call (7) with any coefficients a Fourier Series, and we can integrate over
any other interval of length T = 2L.
EXAMPLES
1. Given that
(
−k; if − π < x < 0
f (x) = and f (x + 2π) = f (x).
k; if 0 < x < π,
SOLUTION
(a) Since f (x) has a period T = 2π, then the Fourier coefficients are given by the Euler
formulas:
Z π
1
a0 = f (x)dx
2π −π
1 π
Z
an = f (x) cos nxdx; for n = 1, 2, 3, ...
π −π
1 π
Z
bn = f (x) sin nxdx; for n = 1, 2, 3, ...
π −π
⇒ Thus, we have;
Z π Z 0 Z π
1 1
a0 = f (x)dx = ( (−k)dx + kdx)
2π −π 2π −π 0
k k
= [−(0 − −π) + (π − 0)] = (−π + π)
2π 2π
a0 = 0.
1 π 1 0
Z Z Z π
an = f (x) cos nxdx = [ (−k) cos nxdx + k cos nxdx]
π −π π −π 0
1 −k sin nx 0 k sin nx π
= [ |−π + |0 ]
π n n
an = 0.
k 2k
bn = [cos 0 − cos(−nπ) − cos nπ + cos 0] = (1 − cos nπ)
nπ nπ
⇒ Since, cos π = −1, cos 2π = 1, cos 3π = −1, e.t.c, in general, we have;
cos nπ = (−1)n
2k
⇒ Where a0 = 0, an = 0 and bn = nπ
(1 − (−1)n ), so the Fourier series of f (x)
becomes;
∞
X 2k
f (x) = 0 + (0 + [ (1 − (−1)n )] sin nx)
n=1
nπ
∞
(1 − (−1)n )
2k X
= sin nx
π n=1 n
2k 2 2
= 2 sin x + 0 + sin 3x + 0 + sin 5x + · · ·
π 3 5
4k 1 1
f (x) = sin x + sin 3x + sin 5x + · · ·
π 3 5
4k
S1 = sin x
π
4k 1
S2 = (sin x + sin 3x).
π 3
SOLUTION
⇒ Since f (x) has period T = 2L = 4 → L = 2, thus its Fourier Series is given by:
∞
X nπ nπ
f (x) = a0 + (an cos x + bn sin x)
n=1
L L
⇒ Thus, we have;
Z L
1
a0 = f (x)dx, L = 2,
2L −L
1 2 1 −1
Z Z Z 1 Z 2
⇒ a0 = f (x)dx = [ 0dx + kdx + 0dx]
4 −2 4 −2 −1 1
1
= [0 + 2k + 0]
4
k
⇒ a0 =
2Z
1 2 1 1
Z
nπ nπ
an = f (x) cos xdx = k cos xdx
2 −2 2 2 −1 2
2k nπ
= sin
nπ
2
nπ 0; if n is even
But, sin = 1; if n = 1, 5, 9, ...
2
−1; if n = 3, 7, 11, ...,
0; if n is even
2k
⇒ an = nπ ; if n = 1, 5, 9, ...
2k
− nπ ; if n = 3, 7, 11, ...,
SOLUTION
∞
(a) ⇒ Let f (x) = x + x2 = a0 +
P
(an cos nx + bn sin nx). And since f (x) is 2π periodic,
n=1
then we have;
Z π
1
a0 = f (x)dx
2π −π
Z π
1 1 x2 x3 π
= (x + x2 )dx = ( + )|−π
2π −π 2π 2 3
2 3 2 3
1 π π π π
= ( + )−( − )
2π 2 3 2 3
2 3 2 3
1 2π 3
1 π π π π
= + − + =
2π 2 3 2 3 2π 3
π2
⇒ a0 =
3
1 π
Z
an = (x + x2 ) cos nxdx
π −π
Z
1 1 2 1
= (x + x ) sin nx − (1 + 2x) sin nxdx
π n n
R
⇒Again,
R integrating
R the integral (1 + 2x) sin nxdx by parts, we have from
udv = uv − vdu, R that let u = (1 + 2x) and dv = sin nxdx, so that
du = 2dx and v = sin nxdx = − n1 cos nx. Thus we have;
Z Z
1 1
(1 + 2x) sin nxdx = − (1 + 2x) cos nx − − cos nx(2)dx
n n
Z
1 2
= − (1 + 2x) cos nx + cos nxdx
n n
Z
1 2
⇒ (1 + 2x) sin nxdx = − (1 + 2x) cos nx + 2 sin nx
n n
Z
1 1 2 1
an = (x + x ) sin nx − (1 + 2x) sin nxdx
π n n
π
1 1 2 1 1 2
= (x + x ) sin nx − [− (1 + 2x) cos nx + 2 sin nx]
π n n n n −π
π
1 1 2 1
= [ (x + x2 ) − 3 ] sin nx + 2 [(1 + 2x)] cos nx]
π n n n −π
1 1 1
= 0 + 2 (1 + 2π) cos nπ − 0 + 2 (1 − 2π) cos nπ
π n n
cos nπ
= [(1 + 2π) − (1 − 2π)]
πn2
cos nπ 4π cos nπ 4π(−1)n
= [1 + 2π − 1 + 2π)] = =
πn2 πn2 πn2
n
4(−1)
⇒ an = 2
Zn π
1 π
Z
1
bn = f (x) sin nxdx = (x + x2 ) sin nxdx
π −π π −π
−2(−1)n 2(−1)n+1
bn = =
n n
π2 P∞ 1
(b) ⇒ To deduce, = 2
, put x = π into (∗), we get;
6 n=1 n
π2
2 1 1 1
π+π = + 4 1 + 2 + 2 + 2 + ··· (∗∗)
3 2 3 4
π2
2 1 1 1
−π + π = + 4 1 + 2 + 2 + 2 + ··· (∗ ∗ ∗)
3 2 3 4
π2 π2
2 1 1 1 1 1 1
2π = + 4 1 + 2 + 2 + 2 + ··· + + 4 1 + 2 + 2 + 2 + ···
3 2 3 4 3 2 3 4
2
2π 1 1 1
= + 8 1 + 2 + 2 + 2 + ···
3 2 3 4
2π 2
2π 2 −
3 = 1 + 1 + 1 + 1 + ···
8 22 32 42
∞
π2 X 1
=
6 n=1
n2
0; if − 2 < x < −1,
4. (a) Obtain a Fourier series for f (x) = 1 if − 1 < x < 1,
0; if 1 < x < 2.
(b) By using the Fourier series obtained in (a) above, deduce a series
π
for at the point x = 0.
4
⇒ Thus, we have;
1 1
Z
1 1
a0 = 1dx = x|1−1 = (1 − −1)
4 −1 4 4
1
⇒ a0 =
2Z
1 1 nπ 2 nπ 1
an = 1 cos xdx = sin x|
2 −1 2 2nπ 2 −1
1 nπ nπ 1 nπ nπ
= [sin − sin(− )] = [sin + sin ]
nπ 2 2 nπ 2 2
2 nπ
⇒ an = sin
nπZ 2
1 1 nπ 2 nπ 1
bn = 1 sin xdx = − cos x|
2 −1 2 2nπ 2 −1
1 nπ nπ 1 nπ nπ
= − [cos − cos(− )] = [cos − cos ]
nπ 2 2 nπ 2 2
⇒ bn =0
∞
(an cos nπ x + bn sin nπ
P
⇒ Put the values of a0 , an and bn into f (x) = a0 + L L
x), we
n=1
get;
∞
1 X 2 nπ nπ
f (x) = + sin cos x+0
2 n=1 nπ 2 2
∞
1 2X 1 nπ nπ
= + sin cos x
2 π n=1 n 2 2
1 2 π 1 3π 1 5π 1 7π
⇒ f (x) = + cos x − cos x + cos x − cos x + · · ·
2 π 2 3 2 5 2 7 2
EXERCISE