8614smith
- 49
- 0
Homework Statement
Express the function plotted in the figure below as a Fourier series.
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 \frac{A}{\pi}\left|x\right| ?
does the \frac{A}{\pi} part refer to the function between 0 and \pi?
If so what about the function between \piand2\pi? do i just leave that out? and why is it only integrated below between 0 and pi?
here is the solution:
f(x)=\frac{A}{\pi}\left|x\right| the function is even therefore {b_n} =0
{a_0}=\frac{2A}{\pi^2}\int^{\pi}_{0}xdx=\frac{2A}{\pi^2}\left[\frac{x^2}{2}\right]^{\pi}_{0}=A
{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
...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 \frac{2A}{\pi^2} term on the a0 and an terms and why this is not just \frac{A}{\pi}?
In other words where does the extra \frac{2}{\pi} come from? and how will i know when to put it in?
thanks