Calculating Fourier Coefficients and Series for f(x)

In summary, the conversation discusses the calculation of Fourier coefficients and the Fourier series for a given function. The function is odd and should only contain sine in its Fourier series, but the speaker is getting a series with both sine and cosine. They are also struggling with the integrals and ask for any tips or tricks. The discussion also touches upon the nature of the function being odd and asks for clarification on the values at pi/2 and -pi/2. Finally, the conversation veers off-topic briefly before refocusing on the original question.
  • #1
broegger
257
0
Hi!

I have to calculate the Fourier coefficients [tex] c_n = \frac{1}{2\pi}\int_{-\pi}^{\pi}f(x)e^{-inx}dx [/tex] and the Fourier series for the following function:

[tex]
f(x)=
\begin{cases}
\frac{2}{\pi}x + 2 & \text{for } x\in \left[-\pi,-\pi/2\right]\\
-\frac{2}{\pi}x & \text{for } x\in \left[-\pi/2,\pi/2\right]\\
\frac{2}{\pi}x - 2 & \text{for } x\in \left[\pi/2,\pi\right]
\end{cases}
[/tex]

Since this function is odd the Fourier series should only contain [tex]\sin{x} [/tex] (right?), but I keep getting a series containing both sine and cosine. Furthermore I'm having big trouble with the integrals; are there any "tricks" when doing such integrals?
 
Physics news on Phys.org
  • #2
is the function really odd?
what is f(pi/2)?what is f(-pi/2)?
are they equal?

-- AI
 
  • #3
no.. f(pi/2) = -f(pi/2) => f is odd?
 
  • #4
Note to self : "should not study some dumb subject like software engineering, post something at physicsforums, listen to music and chat ... all at the same time"

whoops! apologies broegger!

anyways, back to ur question ...
could u post ur working ?
prolly u overlooked something ...
since u seem to have the problem well understood, u should have got the answer by now.

-- AI
 
  • #5
nope.. I can't get the right answer.. I'd rather not post my working, since it's is very messy :/ I'm not asking someone to do the calculations; I would just like a general (the easiest) way to deal with such problems...
 
  • #6
grunt it out...no easy way to get your coefficients.
 

FAQ: Calculating Fourier Coefficients and Series for f(x)

What is a Fourier Series?

A Fourier Series is a mathematical representation of a periodic function as a sum of sine and cosine functions. It allows us to analyze and approximate complex periodic functions.

What are Fourier Coefficients?

Fourier Coefficients are the coefficients of the sine and cosine functions used in the Fourier Series. They represent the amplitude and phase of each component of the series.

How do you calculate the Fourier Coefficients?

The Fourier Coefficients can be calculated using the Fourier Series formula, which involves integrating the function over one period and multiplying it by a sine or cosine term. Alternatively, they can be found using Fourier transform techniques.

What is the difference between the Fourier Series and Fourier Transform?

The Fourier Series is used for analyzing and approximating periodic functions, while the Fourier Transform is used for analyzing and approximating non-periodic functions. The Fourier Series has discrete coefficients, while the Fourier Transform has continuous coefficients.

Why is the Fourier Series important in science and engineering?

The Fourier Series is important because it allows us to analyze and approximate complex functions in terms of simpler sine and cosine functions. This is useful in many areas of science and engineering, such as signal processing, image processing, and solving differential equations.

Back
Top