23
EE 230 Fourier series – 1 Fourier series A Fourier series can be used to express any periodic function in terms of a series of cosines and sines. A periodic function, defined by a period T, v(t + T) = v(t) Familiar periodic functions: square, triangle, sawtooth, and sinusoids (of course). A DC voltage or current also fits the definition of a periodic function. According to Fourier, a periodic function v(t) can be written as: v (t)= a o + a 1 cos ω o t + a 2 cos 2ω o t + a 3 cos 3ω o t +… + b 1 sin ω o t + b 2 sin 2ω o t + b 3 sin 3ω o t +… = a o + n=1 [ a n cos ( nω o t ) + b n sin ( nω o t ) ] ω o =2π f o = 2π T

fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series – �1

Fourier seriesA Fourier series can be used to express any periodic function in terms of a series of cosines and sines.

A periodic function, defined by a period T,

v(t + T) = v(t)

Familiar periodic functions: square, triangle, sawtooth, and sinusoids (of course). A DC voltage or current also fits the definition of a periodic function.

According to Fourier, a periodic function v(t) can be written as:

v (t) = ao + a1 cos ωot + a2 cos 2ωot + a3 cos 3ωot + …

+b1 sin ωot + b2 sin 2ωot + b3 sin 3ωot + …

= ao +∞

∑n=1

[an cos (nωot) + bn sin (nωot)]ωo = 2πfo =

2πT

Page 2: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series – �2

The fundamental frequency fo (or ωo0), is defined by the period of the original function. The n = 1 terms are the fundamental terms. The n = 2, 3, 4, and higher terms are the harmonics of the fundamental.

Expressing a particular periodic function in terms of a Fourier series is “simply” a matter of picking the appropriate coefficients an and bn to use for each term.

Mathematical legalese:

1. f(t) is single-valued everywhere. (i.e. It is a “good” function.)

2. The integral exists for any to. (i.e. It is not infinite.)

3. f(t) has a finite number of discontinuities within any one period.

4. f(t) has a finite number of maxima and minima in any one period.

� to+T

to

��f (t)��dt

v (t) = ao +∞

∑n=1

[an cos (nωot) + bn sin (nωot)]ωo = 2πfo =

2πT

Page 3: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series – �3

Finding an and bn

Determining the coefficients is straight-forward, once we recall some special properties of sinusoids. Below are a few preliminary insights that will be helpful in the calculations that follow. In the following relations, m and n are integers. (You should confirm these results.)

m ≠ n

m ≠ n

∫T

0sin (n

2πT ) dt = 0 ∫

T

0cos (n

2πT ) dt = 0

∫T

0sin (mωot) cos (nωot) dt = 0

∫T

0sin (mωot) sin (nωot) dt = 0

∫T

0cos (mωot) cos (nωot) dt = 0

∫T

0sin2 (nωot) dt =

T2 ∫

T

0cos2 (nωot) dt =

T2

Page 4: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series – �4

Start by taking the integral over one period for both sides of the equation:

The integral over every term in the summation will be zero, leaving only the one term involving ao.

We see that ao is simply the average, or DC, component of v(t).

∫T

0v (t) dt = ∫

T

0aodt + ∫

T

0

∑n=1

[an cos (nωot) + bn sin (nωot)] dt

∫T

0v (t) dt = ∫

T

0aodt +

∑n=1 [an ∫

T

0cos (nωot) dt + bn ∫

T

0sin (nωot) dt]

∫T

0v (t) dt = ∫

T

oaodt = aoT

ao =1T ∫

T

0v (t) dt

v (t) = ao +∞

∑n=1

[an cos (nωot) + bn sin (nωot)]

Page 5: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series – �5

Finding an and bn coefficients involves similar mathematical shenanigans. To find the an coefficients, multiply both sides of the Fourier expression by cos(mω0t), where m is some specific integer and then integrate over one period.

∫T

0v (t) cos (mωot) dt = ∫

T

0ao cos (mωot) dt

+∫T

0 [∞

∑n=1

an cos (nωot) cos (mωot)] dt

+∫T

0 [∞

∑n=1

bn sin (nωot) cos (mωot)] dt

v (t) = ao +∞

∑n=1

[an cos (nωot) + bn sin (nωot)]

Page 6: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series – �6

We see that the first term is zero. As we examine the two summations we note that every single term in the second one will be zero and in the first one all terms will be zero, except for the single where m = n. So the equation with two infinitely long summations boils down to

∫T

0v (t) cos (mωot) dt = ao ∫

T

0cos (mωot) dt

+∞

∑n=1

an [∫T

0cos (nωot) cos (mωot) dt]

+∞

∑n=1

bn [∫T

0sin (nωot) cos (mωot) dt]

∫T

0v (t) cos (nωot) dt = an ∫

T

0cos2 (nωot) dt = an

T2

an =2T ∫

T

0v (t) cos (nωot) dt

Page 7: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series – �7

To find the coefficients for the sine terms, we use the same trick, except that we multiply by sin(mω0t) before integrating.

∫T

0v (t) sin (mωot) dt = ∫

T

0ao sin (mωot) dt

+∫T

0 [∞

∑n=1

an cos (nωot) sin (mωot)] dt

+∫T

0 [∞

∑n=1

bn sin (nωot) sin (mωot)] dt

= ao ∫T

0sin (mωot) dt

+∞

∑n=1

an [∫T

0cos (nωot) sin (mωot) dt]

+∞

∑n=1

bn [∫T

0sin (nωot) sin (mωot) dt]

Page 8: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series – �8

Once again, every single term integrates to zero, except for the the only that has two sines with m = n.

∫T

0v (t) sin (nωot) dt = bn ∫

T

0sin2 (nωot) dt = bn

T2

bn =2T ∫

T

0v (t) sin (nωot) dt

So, every periodic function can be represented by its Fourier series

v (t) = ao +∞

∑n=1

[an cos (nωot) + bn sin (nωot)]bn =

2T ∫

T

0v (t) sin (nωot) dtan =

2T ∫

T

0v (t) cos (nωot) dt

ao =1T ∫

T

0v (t) dt (Note that ao is just a special

case of the an calculation.)

Everything is just sines and cosines! What a concept.

Page 9: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series – �9

Example - sawtooth (ramp)

0 ≤ t < T

!!!

Work out these integrals for yourself.

ao =1T ∫

T

0v (t) dt =

1T ∫

T

0 ( Vm

Tt) dt =

Vm

2

t

v(t)

T 2T

Vm

an =2T ∫

T

0v (t) cos (nωot) dt =

2T ∫

T

0 ( Vm

Tt) cos (nωot) dt = 0

bn =2T ∫

T

0v (t) sin (nωot) dt =

2T ∫

T

0 ( Vm

Tt) sin (nωot) dt = −

Vm

v (t) =Vm

2−

Vm

π

∑n=1

sin (nωot)n

v (t) =Vm

Tt

(Average value.)

Page 10: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series –

-0.25

0

0.25

0.5

0.75

1

1.25

0 0.5 1 1.5 2

-0.25

0

0.25

0.5

0.75

1

1.25

0 0.5 1 1.5 2

Sawtoothv

(t)

-0.25

0

0.25

0.5

0.75

1

1.25

time (periods)0 0.5 1 1.5 2

�10

n = 0 (DC component)

n = 3

n = 1

-0.25

0

0.25

0.5

0.75

1

1.25

0 0.5 1 1.5 2

n = 2

Page 11: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series –

-0.25

0

0.25

0.5

0.75

1

1.25

0 0.5 1 1.5 2

-0.25

0

0.25

0.5

0.75

1

1.25

0 0.5 1 1.5 2

Sawtoothv

(t)

-0.25

0

0.25

0.5

0.75

1

1.25

time (periods)0 0.5 1 1.5 2

�11

n = 4 n = 6

n = 10

-0.25

0

0.25

0.5

0.75

1

1.25

0 0.5 1 1.5 2

n = 8

Page 12: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series – �12

Example - square (pulse)

v(t) = Vm for 0 ≤ t < T/2

= 0 for T/2 ≤ t < T

(50% duty cycle)

Work out the integrals for yourself.

(Again.)

if n is odd.

= 0 if n is even.

Only the odd terms survive, n = 1, 3, 5, …

t

v(t)

T 2T

Vm

ao =1T ∫

T/2

0Vm dt =

Vm

2(Average value.)

an =2T ∫

T/2

0Vm cos (nωot) dt = 0

bn =2T ∫

T/2

0Vm sin (nωot) dt =

2Vm

v (t) =Vm

2+

2Vm

π ∑n odd

sin (nωot)n

Page 13: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series – �13

Squarev

(t)

-0.25

0

0.25

0.5

0.75

1

1.25

time (periods)

0 0.5 1 1.5 2-0.25

0

0.25

0.5

0.75

1

1.25

0 0.5 1 1.5 2

n = 1n = 0

-0.25

0

0.25

0.5

0.75

1

1.25

0 0.5 1 1.5 2-0.25

0

0.25

0.5

0.75

1

1.25

0 0.5 1 1.5 2

n = 3 n = 5

Page 14: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series – �14

-0.25

0

0.25

0.5

0.75

1

1.25

0 0.5 1 1.5 2

n = 19

Squarev

(t)

-0.25

0

0.25

0.5

0.75

1

1.25

time (periods)

0 0.5 1 1.5 2

n = 7-0.25

0

0.25

0.5

0.75

1

1.25

0 0.5 1 1.5 2

n = 11

-0.25

0

0.25

0.5

0.75

1

1.25

0 0.5 1 1.5 2

n = 15

Page 15: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series – �15

Example - triangle

t

v(t)

TT/2

Vm

an =2T ∫

T/2

0

Vm

T(T − 2t) cos (nωot) dt +

2T ∫

T

T/2

Vm

T(2t − T ) cos (nωot) dt

Vm

T (T − 2t) 0 ≤ t ≤ T/2Vm

T (2t − T ) T/2 ≤ t ≤ Tv (t) =

{4Vm

n2π2 n odd

0 n even

ao =1T ∫

T/2

0

Vm

T(T − 2t) dt +

1T ∫

T

T/2

Vm

T(2t − T ) dt =

Vm

2

=

bn = 0 (By symmetry.)v (t) =

Vm

2+

4Vm

π2 ∑n odd

cos (nωot)n2

Page 16: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series –

-0.25

0.00

0.25

0.50

0.75

1.00

1.25

0 0.5 1 1.5 2-0.25

0.00

0.25

0.50

0.75

1.00

1.25

0 0.5 1 1.5 2

-0.25

0.00

0.25

0.50

0.75

1.00

1.25

0 0.5 1 1.5 2

Trianglev

(t)

-0.25

0.00

0.25

0.50

0.75

1.00

1.25

time (periods)0 0.5 1 1.5 2

�16

n = 0

n = 3

n = 1

n = 5

Page 17: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series –

-0.25

0.00

0.25

0.50

0.75

1.00

1.25

0 0.5 1 1.5 2-0.25

0.00

0.25

0.50

0.75

1.00

1.25

0 0.5 1 1.5 2

-0.25

0.00

0.25

0.50

0.75

1.00

1.25

0 0.5 1 1.5 2

Trianglev

(t)

-0.25

0.00

0.25

0.50

0.75

1.00

1.25

time (periods)0 0.5 1 1.5 2

�17

n = 7

n = 11

n = 9

n = 13

Page 18: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series – �18

v (t) = ao +∞

∑n=1

[an cos (nωot) + bn sin (nωot)]Alternative trig version

Recall the trig identity from our days with AC analysis in 201

an cos (nωot) + bn sin (nωot)In general, at each harmonic, there is a pair of terms:

A cos x + B sin x = C cos (x − δx) C = A2 + B2 δx = arctan ( BA )

We can combine the two terms at nωo into one:

an cos (nωot) + bn sin (nωot) = cn cos (nωot + θn)v (t) = ao +

∑n=1

cn cos (nωot + θn)Going a step further, we recognize that the DC term can be viewed as a cosine with zero frequency, i.e. ao = ao cos(nω0 t) with n = 0.

v (t) =∞

∑n=0

cn cos (nωot + θn)

Page 19: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series – �19

The reduced form doesn’t really offer a computational advantage over using separate sines and cosines. It is still necessary to calculate to parameters at each frequency. It does allow us to view a signal in a slightly different fashion – as a line spectrum.

t

v(t)

T 2T

Vm

v (t) =Vm

2−

Vm

π

∑n=1

sin (nωot)n

ω

F(ω) c0

ω0 2ω0 3ω0 4ω0 5ω0

c1 c2 c3 c4 c5

The Fourier series is a type of transform, and we can view the function in “Fourier-series” space.

In this case, cn = bn and θn = 90°.

Page 20: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series – �20

ω

F(ω) c0

ω0 3ω0 5ω0 7ω0 9ω0

c1 c3 c5 c7 c9

t

v(t)

T 2T

Vm

v (t) =Vm

2+

2Vm

π ∑n odd

sin (nωot)n

Again, cn = bn and θn = 90°.

Page 21: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series – �21

t

v(t)

TT/2

Vm

v (t) =Vm

2+

4Vm

π2 ∑n odd

cos (nωot)n2

ω

F(ω) c0

ω0 3ω0 5ω0 7ω0 9ω0

c1 c3 c5 c7 c9

Now, cn = an and θn = 0.

Page 22: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series – �22

ω

F(ω)

co

ωo 2ωo

c1 c2 c3 c4 c5

3ωo 4ωo 5ωo

|T| = 1

Ideal, low-pass filter

What happens when we apply a sinusoidal signal to a filter. The Fourier series line spectrum shows us exactly what will happen. Consider a low-pass filter. (Make it ideal, just for simplicity.)

The signal components at co and c1 pass through. All higher order components are cut-off.

vo (t) = co + c1 cos (nωot + θ1)A DC and single single frequency of the sine wave come out!

Page 23: fourier series - Iowa State Universitytuttle.merc.iastate.edu/ee230/topics/fourier/fourier_series.pdf · EE 230 Fourier series – 3 Finding a n and b n Determining the coefficients

EE 230 Fourier series – �23

ω

F(ω)

co

ωo 2ωo

c1 c2 c3 c4 c5

3ωo 4ωo 5ωo

|T| = 1

Or an ideal band-pass filter centered at 3ωo:

vo (t) = c3 cos (3ωot + θ3)