Why is the Function A/π |x| in the Fourier Series of a Sawtooth Wave?

In summary: It works because you can say 'the negative part equals the positive part'. You can certainly say that about even functions.
  • #1
8614smith
54
0

Homework Statement


Express the function plotted in the figure below as a Fourier series.
attachment.php?attachmentid=22952&stc=1&d=1263080410.jpg



Homework Equations


The Attempt at a Solution


I have the fully worked out solution infront of me and I am ok with working out the a0, an and bn parts but what i want to know is why is the function [tex]\frac{A}{\pi}\left|x\right|[/tex] ?

does the [tex]\frac{A}{\pi}[/tex] part refer to the function between 0 and [tex]\pi[/tex]?

If so what about the function between [tex]\pi [/tex]and[tex] 2\pi[/tex]? do i just leave that out? and why is it only integrated below between 0 and pi?

here is the solution:

[tex]f(x)=\frac{A}{\pi}\left|x\right|[/tex] the function is even therefore [tex]{b_n} =0[/tex]

[tex]{a_0}=\frac{2A}{\pi^2}\int^{\pi}_{0}xdx=\frac{2A}{\pi^2}\left[\frac{x^2}{2}\right]^{\pi}_{0}=A[/tex]

[tex]{a_n}=\frac{2A}{\pi^2}\int^{\pi}_{0}xcos(nx)dx=\frac{2A}{n{\pi^2}}\left[xsin(nx)\right]^{\pi}_{0}-\frac{2A}{n{\pi^2}}\int^{\pi}{0}sin(nx)dx[/tex]

...well you get the idea its taking me too long to type out the entire solution so i will leave it at that.

Can someone also please tell me why there is a [tex]\frac{2A}{\pi^2}[/tex] term on the a0 and an terms and why this is not just [tex]\frac{A}{\pi}[/tex]?

In other words where does the extra [tex]\frac{2}{\pi}[/tex] come from? and how will i know when to put it in?

thanks
 

Attachments

  • 00000000.jpg
    00000000.jpg
    7.7 KB · Views: 4,065
Physics news on Phys.org
  • #2
It looks like the definition of the Fourier integral they are using integrates from -pi to pi. Yes, A|x|/pi is the function on [0,pi]. Since your function is symmetric on [-pi,pi] they just integrated from 0 to pi and doubled it. That's where the 2 comes from. The A/pi comes from f(x). The other pi is in the definition of the Fourier integral. Hence 2A/pi^2.
 
  • #3
Ah i see - because the A/pi is just a constant it can come out of the integral, but why is it doubled? why is it not just integrated from 0 - 2pi is there a reason for not integrating between these limits?
 
  • #4
You have to "normalize" the integral. Obviously, the Fourier series for sin(nx), on the interval from [a, b], should be just "[itex]sin(2\pi nx/(b-a))[/itex]" (which has period [itex]2\pi[/itex])- in other words, the coefficient for sin(2\pi nx/(b-a)) is 1 and for all other sin(2\p kx/(b-a)) and cos(2\pi kx/(b-a), 0. It's easy to see that the product of two different sine and cosine will integrate to 0 but
[tex]\int_a^b sin^2(2\pi nx/(b-a) dx= \frac{1}{2}\int_a^b (1- cos(4\pi nx/(b-a))dx[/itex]
by using the trig identity [itex]sin^2(\theta)= (1/2)(1- cos(2\theta)[/itex]. the integral of "[itex]cos(4\pi nx/(b-a))[/itex]" will be 0 at both ends but
[tex]\int_a^b \frac{1}{2}dx= \frac{b- a}{2}[/itex]

In order to get "1" we must divide the integral by that. That's where we get the "2".
 
  • #5
no, I am lost again, why does the integral have to be normalized? and i thought normalizing it was taking the integral of the function squared between + and - infinity not a and b.

And what's this about coefficients? I haven't read anything about that in my lecture notes.
 
  • #6
8614smith said:
no, I am lost again, why does the integral have to be normalized? and i thought normalizing it was taking the integral of the function squared between + and - infinity not a and b.

And what's this about coefficients? I haven't read anything about that in my lecture notes.

Look up the definition of the a_n and b_n's in your problem. In a Fourier series problem you don't integrate between -infinity and +infinity. You integrate over an integral that the given function is periodic over.
 
  • #7
Dick said:
Look up the definition of the a_n and b_n's in your problem. In a Fourier series problem you don't integrate between -infinity and +infinity. You integrate over an integral that the given function is periodic over.

Ok i realize that, but why does it have to be normalized? when I've done Fourier series' of other square waves I've never normalized it before and got the right answer
 
  • #8
8614smith said:
Ok i realize that, but why does it have to be normalized? when I've done Fourier series' of other square waves I've never normalized it before and got the right answer

You don't have to normalize anything. That should be already built into the definition of the a_n and b_n's. What are they?
 
  • #9
Dick said:
You don't have to normalize anything. That should be already built into the definition of the a_n and b_n's. What are they?

Ok i totally get that now, it was the normalization thing that threw me for a second, Doubling the integral only works for even functions yes?
 
  • #10
8614smith said:
Ok i totally get that now, it was the normalization thing that threw me for a second, Doubling the integral only works for even functions yes?

Sure. It works because you can say 'the negative part equals the positive part'. You can certainly say that about even functions. And probably not many others.
 
  • #11
ok great thanks
 

FAQ: Why is the Function A/π |x| in the Fourier Series of a Sawtooth Wave?

What is a Fourier series sawtooth wave?

A Fourier series sawtooth wave is a periodic waveform that is made up of a series of sinusoidal functions. It is commonly used in signal processing and can be used to approximate any periodic function.

How is a Fourier series sawtooth wave calculated?

A Fourier series sawtooth wave is calculated by finding the coefficients of each sinusoidal function in the series using the Fourier series formula. The coefficients are then multiplied by their respective functions and added together to create the sawtooth wave.

What are the applications of Fourier series sawtooth waves?

Fourier series sawtooth waves are used in various applications such as audio and video signal processing, data compression, and image analysis. They are also used in physics and engineering to model periodic functions and phenomena.

How accurate is a Fourier series sawtooth wave in approximating a periodic function?

A Fourier series sawtooth wave is a highly accurate approximation of a periodic function. As more sinusoidal functions are added to the series, the accuracy of the approximation increases.

Are Fourier series sawtooth waves limited to sawtooth shapes?

No, Fourier series sawtooth waves can be used to approximate any periodic function, not just sawtooth shapes. However, sawtooth waves are commonly used due to their simplicity and ability to approximate other shapes well.

Similar threads

Replies
1
Views
1K
Replies
16
Views
1K
Replies
3
Views
1K
Replies
5
Views
994
Replies
1
Views
1K
Back
Top