Calculating Fourier Coefficients and Series for f(x)

Click For Summary

Homework Help Overview

The discussion revolves around calculating Fourier coefficients and series for a piecewise function defined on the interval \([-π, π]\). The original poster expresses confusion regarding the nature of the function and its Fourier series representation, particularly questioning the presence of sine and cosine terms.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants explore whether the function is truly odd by evaluating it at specific points, questioning the equality of \(f(π/2)\) and \(f(-π/2)\). There is also a request for the original poster to share their working to identify potential oversights.

Discussion Status

The conversation is ongoing, with participants probing the original poster's understanding and approach. Some guidance is offered regarding the nature of the function, but there is no clear consensus or resolution yet.

Contextual Notes

The original poster indicates a desire for general strategies to tackle such problems without sharing their detailed calculations, which they describe as messy.

broegger
Messages
257
Reaction score
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)=<br /> \begin{cases}<br /> \frac{2}{\pi}x + 2 & \text{for } x\in \left[-\pi,-\pi/2\right]\\<br /> -\frac{2}{\pi}x & \text{for } x\in \left[-\pi/2,\pi/2\right]\\<br /> \frac{2}{\pi}x - 2 & \text{for } x\in \left[\pi/2,\pi\right]<br /> \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
is the function really odd?
what is f(pi/2)?what is f(-pi/2)?
are they equal?

-- AI
 
no.. f(pi/2) = -f(pi/2) => f is odd?
 
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
 
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...
 
grunt it out...no easy way to get your coefficients.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
3
Views
2K
Replies
28
Views
2K
  • · Replies 7 ·
Replies
7
Views
1K
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K