• No results found

New Basis Functions. Section 8. Complex Fourier Series

N/A
N/A
Protected

Academic year: 2021

Share "New Basis Functions. Section 8. Complex Fourier Series"

Copied!
9
0
0

Loading.... (view fulltext now)

Full text

(1)

Section 8

Complex Fourier Series

The complex Fourier series is presented first with pe-riod 2π, then with general period.

The connection with the real-valued Fourier series is explained and formulae are given for converting be-tween the two types of representation.

Examples are given of computing the complex Fourier series and converting between complex and real se-rieses.

New Basis Functions

Recall that the Fourier series builds a representation composed of a weighted sum of the following basis functions.

1 (i.e. a constant term)

cos(t) cos(2t) cos(3t) cos(4t) . . . sin(t) sin(2t) sin(3t) sin(4t) . . . Computing the weights an, bn and c often involves

some nasty integration.

We now present an alternative representation based on a different set of basis functions:

1 (i.e. a constant term)

eit e2it e3it e4it . . .

e−it e−2it e−3it e−4it . . . These can all be represented by the term

eint

with n taking integer values from −∞ to +. Note that the constant term is provided by the case when

(2)

Series of Complex Exponentials

A representation based on this family of functions is called the “complex Fourier series”.

f(t) = X∞

n=−∞

cneint

The coefficients, cn, are normally complex numbers.

It is often easier to calculate than the sin/cos Fourier series because integrals with exponentials in are usu-ally easy to evaluate.

We will now derive the complex Fourier series equa-tions, as shown above, from the sin/cos Fourier series using the expressions for sin() and cos() in terms of complex exponentials.

Complex Fourier Series

f(t) = d + X∞ n=1 [ancos(nt) +bnsin(nt)] = d+ ∞ X n=1 " an e int+ e−int 2 ! + bn e int e−int 2i !# = d+ ∞ X n=1 (an −ibn) 2 e int + X∞ n=1 (an + ibn) 2 e −int = X∞ n=−∞ cneint where cn =      d , n = 0 (an ibn)/2 , n = 1,2,3, . . . (an+ ibn)/2 , n = 1,2,3, . . .

Note that an and bn are only defined when n is negative.

(3)

an = 1πRππcos(nt)f(t)dt bn = 1π

−πsin(nt)f(t)dt d = 21π

−πf(t)dt

thus for n positive

cn = 1 2(an − ibn) = 1 2π Z π −π[cos(nt)− isin(nt)]f(t)dt = 1 2π Z π −πe −intf(t)dt for nnegative cn = 1 2(a−n +ib−n) = 1 2π Z π −π[cos(−nt) +isin(−nt)]f(t)dt = 1 2π Z π −πe −intf(t)dt and for n= 0 c0 = d 1 Z π −0

Complex Fourier Series Summary

cn = 1 2π Z π −πe −intf(t)dt f(t) = ∞ X n=−∞ cneint

(4)

Complex Series Example 1

Find the complex Fourier series to modelf(t) = sin(t).

cn = 1 2π Z π −πe −intf(t)dt = 1 2π Z π −πe −intsin(t)dt = 1 2π " einπ e−inπ n2 1 #

Which is zero when n does not equal 1 or 1. For these two special cases we have to set n = 1 + ǫ

and calculate the limit of cn as ǫ tends to zero. This gives us

c1 = 1 2i c1 = −1

2i

Which means the complex Fourier series for f(t) = sin(t) is f(t) = X∞ n=−∞ cneint = e it e−it 2i

Finding the limit as

n

tends to 1

cn = 1 2π " einπ e−inπ n21 #

Setn = 1 +ǫ and let ǫ tend to zero.

c1 = 1 2π   eiπ(1+ǫ)e−iπ(1+ǫ) (1 +ǫ)2 1   = 1 2π " −eiπǫ+ e−iπǫ (1 +ǫ)21 # ≈ 1 2π −1 iπǫ+ 1 iπǫ 1 + 2ǫ1 ≈ 1 2π −2iπǫ 2ǫ ≈ −i 2 ≈ 1 2i

(5)

Complex Series Example 2

x

T

1

f(x)

Find the complex Fourier

series to model f(x) that has a period of 2π and is 1 when 0 < x < T and zero when T < x < 2π. cn = 1 2π Z π −πe −intf(t)dt = i 2πn h e−inT 1i , when n6= 0 = 1 2πarea = T 2π , when n = 0

So the Fourier series is

f(t) = ∞ X n=−∞ cneint = 1 2π    T + −1 X n=−∞ i n h e−inT 1ieint + ∞ X i h e−inT 1ieint  

Converting c to a, b and d

From our example on the previous page.

cn =        i 2πn h e−inT 1i , when n 6= 0 1 2πarea = 2Tπ , when n = 0

We wish to calculate the coefficients for the equivalent Fourier series in terms ofsin() and cos().

Clearlyd = c0 = 2Tπ. For n > 0

cn = (an −ibn)/2

⇒ an = 2Re{cn}

and bn = −2Im{cn}

converting our expression forcn into sin() and cos():

2cn = i

πn[cos(nT)−isin(nT) −1]

= 1

πn[sin(nT) +i(cos(nT)−1)]

(6)

Complex Fourier Series f(t) = 1 2π    T + −1 X n=−∞ i n h e−inT 1ieint + ∞ X n=1 i n h e−inT 1ieint   

Real Fourier Series

f(t) = T 2π + ∞ X n=1 sin(nT) nπ cos(nt) + ∞ X n=1 1 cos(nT) nπ sin(nt)

Both serieses converge as 1/n.

Converting from Real to Complex

−π π 1 −1 f(t) t 2π −2π

Convert the real Fourier se-ries of the square wave

f(t) to a complex series.

For the real series, we know thatd = an = 0 and bn = 1 π Z π −πsin(nt)f(t)dt= 4 nπ , n odd

givingf(t) = 4πhsin(t) + sin(33 t) + sin(55 t) +. . .i

To convert to a complex series, use

cn =      d , n = 0 (an − ibn)/2 , n = 1,2,3, . . . (an +ibn)/2 , n = 1,2,3, . . . so we have c0 = 0

cn = −2i/(nπ) , n positive and odd cn = 2i/(nπ) , n negative and |n| odd ⇒ f(t) = −2i π " . . .+ e− 5it −5 + e−3it −3 + e−it −1 +e it 1 + e3it 3 + e5it 5 + . . . #

(7)

General Complex Series

For period of 2π cn = 1 2π Z 2π 0 e −intf(t)dt f(t) = ∞ X n=−∞ cneint

Similarly, for period L cn = 1 L Z L 0 e −inx2Lπf(x)dx f(x) = X∞ n=−∞ cneinx 2π L

The fraction 2Lπ is often written as ω0 and called the fundamental angular frequency.

Example 1

A even function f(t) is periodic with period L = 2, and f(t) = cosh(t 1) for 0 t 1. Find a complex Fourier series representation forf(t).

f(t)

t

−1

−2

0

1

2

3

4

1

cn = 1 L Z L 0 e −int2Lπf(t)dt = 1 2 Z 2 0 e −intπcosh(t1)dt = sinh(1) 1 + n2π2

(8)

Hence the complex Fourier series is f(t) = X∞ n=−∞ cneint 2π L = X∞ n=−∞ sinh(1)eintπ 1 + n2π2

We can check this answer by computing the equiv-alent real Fourier series which we calculated at the start of section 7.

an = 2Re{cn} , n = 1,2,3, . . . bn = −2Im{cn} , n = 1,2,3, . . .

d = c0

In this case, as cn is entirely real, an = 2cn = 2 sinh(1) 1 + n2π2 , n = 1,2,3, . . . bn = 0 d = sinh(1)

Example 2

1

−1

−L

L

f(x)

x

Find the complex Fourier

series of the the square wavef(x).

Note that the mean of the function is zero, soc0 = 0. cn = 1 L Z L 0 e −inx2Lπf(x)dx = 1 L " Z L/2 0 e −inx2Lπdx − Z L L/2e −inx2Lπdx # = 1 2inπ h e−2inπ + 1 2e−inπi f(x) = X∞ n=−∞ n6= 0 h 1 e−inπi inπ e inx2Lπ f(x) = 2 iπ  . . .+ e−5ix2Lπ −5 + e−3ix2Lπ −3 + e−ix2Lπ −1 +e ix2Lπ 1 + e3ix2Lπ 3 + e5ix2Lπ 5 +. . .  

(9)

Converting to a Real Series

We wish to convert the complex general range square wave series into a series with real coefficients.

cn =

(

2/(inπ) , |n| odd 0 , |n| even Clearly d = c0 = 0. For a and buse:

cn = (an −ibn)/2

⇒ an = 2Re{cn} = 0 and bn = 2Im{cn} = 4

nπ , n odd

Which gives us the real series:

f(t) = 4 π  sin x2π L + sin 3x2Lπ 3 +sin 5x2Lπ 5 +. . .  

Section 8: Summary

For periodL cn = 1 L Z L 0 e −inx2Lπf(x)dx f(x) = ∞ X n=−∞ cneinx2Lπ

Relationship with the cos/sin Fourier series.

cn =      d , n = 0 (an− ibn)/2 , n = 1,2,3, . . . (an +ibn)/2 , n = 1,2,3, . . . an = 2Re{cn} , n = 1,2,3, . . . bn = −2Im{cn} , n = 1,2,3, . . . d = c0

References

Related documents

 A clinical staff member must update or add the Adverse Reaction Sticker (QL00250) on the patient’s medication chart and front cover of current clinical notes(eg.QMR0004) or

Such a collegiate cul- ture, like honors cultures everywhere, is best achieved by open and trusting relationships of the students with each other and the instructor, discussions

Socket address structure for the client ’s control ’ s control

Just like the MacLaurin series has basis vectors x, x 2 , x 3 · · · , and everything expressed as a linear combination of all of these, can we think up some other basis vectors, and

461 [5] The variability of tephra preservation across multiple sites within the study area 462 suggests that northern Scandinavian peatlands may be an unreliable source of

Method 1: Report the Classification Codes with zeros in the Exposure Amount and Premium Amount fields. Report the applicable rate for the Classification Code in the

Using standard results from Fourier analysis and the fact that f has left and right derivatives at all points, it is easy to show that the Fourier series P ∞ k=1 sin kx k converges

Reception: Includes a five hour reception, round guest tables, gold chavari chairs, gift, guest book and cake table, white tablecloths and white napkins, glassware, silverware,