Fourier Series for f(x) = x(2∏-x)

In summary: The red circle is something that I am unsure about and everything below it is also what I want to check if it is okay?Sorry, I should have been a little more careful. The equations above assume one period of the function is defined on the interval [-T/2, T/2], but one period of f(x) in this problem is defined on [0, 2pi]. You want to use these equations instead:f(x) = \frac{1}{2}a{0}+Ʃ^{∞}_{n=1}{an cosnx + bn sinnx=\frac{a0}{2} + a1 cosx + a2
  • #1
azserendipity
10
0

Homework Statement


Please take into account I'm not very good at maths so I would just like to make sure that what I am doing so far is correct

Obtain the Fourier transform for:

f(x) = x(2∏-x) 0<x<2∏ f(x)=f(x+2∏)


Homework Equations



f(x) = 1/2 a0 + Ʃ {an cosnx + bn sinnx} = ao/2 + a1cosx +a2cos2x + b1sinx+b2sin2x +...

The Attempt at a Solution



an = 1/x ∫x(2∏-x)cos(nωt) dt

I've attached the rest of my working out below:
 

Attachments

  • Fourier Series.jpg
    Fourier Series.jpg
    22 KB · Views: 381
Physics news on Phys.org
  • #2
Your formula for an is incorrect. You should have ##1/\pi## in front, not 1/x. What is ω equal to in this case? What about the bn coefficients?

I'm not sure exactly what you're doing with the integration. Why did you break it up into two pieces?
The second piece is definitely wrong. There's no cosine in it, for one thing.
 
Last edited:
  • #3
Ah that makes more sense!

The question itself is:

Obtain the Fourier series for:

f(x)=x(2∏-x) 0<x<2∏ f(x)=f(x+2∏)

I split the integration because there was an f(x) and an f(x) so thought you were supposed to. There was also no mention of what the values for ω is and I hadn't gotten to the bn bit yet.

In the examples I have from my lecturer he has them with cosines in so I figured that this one would be the same. Please note I'm not very good at Fourier series!
 
Last edited:
  • #4
Where did you get the formulas for an and bn? The definition of ##\omega## should have been given there. Show us the formula for an exactly as given (before you plug in f). Let's get all these little details straight before you dive into the problem.
 
  • #5
The formulas I got the formulas for an and bn from my lecture notes. The exact formulas are written as:

Periodic functions as Fourier series

f(x)= [itex]\frac{1}{2}[/itex][itex]a{0}[/itex]+[itex]Ʃ^{∞}_{n=1}[/itex]{an cosnx + bn sinnx=[itex]\frac{a0}{2}[/itex] + a1 cosx + a2 cos2x+...+b1 sinx + b2 sin2x +...

a0=[itex]\frac{2}{T}[/itex][itex]\int[/itex][itex]^{T/2}_{-T/2}[/itex] f(x)dx ie. 2xmean value of f(x) over period

an= [itex]\frac{2}{T}[/itex][itex]\int[/itex][itex]^{T/2}_{-T/2}[/itex] f(x) * cosnx dx ie. 2x mean value of f(x)*cosnx over period

bn= [itex]\frac{2}{T}[/itex][itex]\int[/itex][itex]^{T/2}_{-T/2}[/itex] f(x) * sinnx dx ie. 2x mean value of f(x)*cosnx over period


I have also attached a printscreen of the lecturers example that I have been working off of
 

Attachments

  • fouriernotes.jpg
    fouriernotes.jpg
    13.1 KB · Views: 404
  • #6
azserendipity said:
The formulas I got the formulas for an and bn from my lecture notes. The exact formulas are written as:

Periodic functions as Fourier series

f(x)= [itex]\frac{1}{2}[/itex][itex]a{0}[/itex]+[itex]Ʃ^{∞}_{n=1}[/itex]{an cosnx + bn sinnx=[itex]\frac{a0}{2}[/itex] + a1 cosx + a2 cos2x+...+b1 sinx + b2 sin2x +...
The above formula is applicable to functions with a period of ##2\pi##.

a0=[itex]\frac{2}{T}[/itex][itex]\int[/itex][itex]^{T/2}_{-T/2}[/itex] f(x)dx ie. 2xmean value of f(x) over period

an= [itex]\frac{2}{T}[/itex][itex]\int[/itex][itex]^{T/2}_{-T/2}[/itex] f(x) * cosnx dx ie. 2x mean value of f(x)*cosnx over period

bn= [itex]\frac{2}{T}[/itex][itex]\int[/itex][itex]^{T/2}_{-T/2}[/itex] f(x) * sinnx dx ie. 2x mean value of f(x)*cosnx over period
These formulas aren't quite right. It's mixing up the case where the period is ##2\pi## and the more general case of a period of T.

When the period is ##2\pi##, you have
\begin{align*}
f(x) &= \frac{a_0}{2} + \sum_{n=1}^\infty (a_n \cos nx + b_n \sin nx) \\
a_n &= \frac{1}{\pi}\int_{-\pi}^\pi f(x)\cos nx\,dx \\
b_n &= \frac{1}{\pi}\int_{-\pi}^\pi f(x)\sin nx\,dx
\end{align*}

When the period is T, you have
\begin{align*}
f(x) &= \frac{a_0}{2} + \sum_{n=1}^\infty (a_n \cos n\omega_0x + b_n \sin n\omega_0x) \\
a_n &= \frac{2}{T}\int_{-T/2}^{T/2} f(x)\cos n\omega_0x\,dx \\
b_n &= \frac{2}{T}\int_{-T/2}^{T/2} f(x)\sin n\omega_0x\,dx
\end{align*}where ##\omega_0 = 2\pi/T##. If you set ##T=2\pi## in these formulas, you'll recover the ones above.

For your particular f(x), the period is ##2\pi##, so you can use the first set of formulas.
 
  • #7
Thank you so much for giving me those equations!

I have attempted them using those equations and I've attached when I've done so far.

The red circle is something that I am unsure about and everything below it is also what I want to check if it is okay?
 

Attachments

  • fourier.jpg
    fourier.jpg
    39.4 KB · Views: 384
  • fourier2.jpg
    fourier2.jpg
    21.8 KB · Views: 355
  • #8
Sorry, I should have been a little more careful. The equations above assume one period of the function is defined on the interval [-T/2, T/2], but one period of f(x) in this problem is defined on [0, 2pi]. You want to use these equations instead:
\begin{align*}
f(x) &= \frac{a_0}{2} + \sum_{n=1}^\infty (a_n \cos nx + b_n \sin nx) \\
a_n &= \frac{1}{\pi}\int_0^{2\pi} f(x)\cos nx\,dx \\
b_n &= \frac{1}{\pi}\int_0^{2\pi} f(x)\sin nx\,dx
\end{align*}What the limits of the integrals are don't really matter other than they have to cover exactly one period.
 
  • #9
Hi,

the answer I got for Ao was 4pi^3 / 3. I've attached a copy of the worknigs just to do a final check that I'm doing it right!

Thank you so much for helping me as well :)

Also is Fourier series similar to the complex Fourier series or would I have to use a whole new set of equations?
 

Attachments

  • fourier3.jpg
    fourier3.jpg
    30 KB · Views: 350
  • #10
Close. It should be ##4\pi^2/3##.
 

FAQ: Fourier Series for f(x) = x(2∏-x)

What is a Fourier series and why is it important in science?

A Fourier series is a mathematical representation of a periodic function as a sum of sinusoidal functions with different frequencies. This is important in science because many physical phenomena can be represented as periodic functions, making Fourier series a useful tool for analyzing and understanding these phenomena.

How do you obtain a Fourier series?

To obtain a Fourier series, you need to follow a set of mathematical steps known as Fourier analysis. This involves breaking down a periodic function into its individual sinusoidal components using integration and complex numbers. The resulting series can then be used to approximate the original function.

What are the applications of Fourier series?

Fourier series have numerous applications in science and engineering, including signal processing, image and sound compression, and solving differential equations. They are also used in fields such as physics, chemistry, and biology to analyze and interpret data from experiments and simulations.

What are the limitations of Fourier series?

One limitation of Fourier series is that it can only be used to represent periodic functions. Additionally, the accuracy of the series depends on the smoothness of the original function. Functions with sharp discontinuities or corners may not be accurately represented by a Fourier series.

How can Fourier series be improved or extended?

Fourier series can be improved or extended in several ways, such as by using different types of series (e.g. cosine or complex exponential), incorporating higher order terms, or applying other mathematical transformations. These approaches can help improve the accuracy and applicability of Fourier series in different contexts.

Back
Top