Calculating Fourier Coefficients and Series for f(x)

AI Thread Summary
The discussion revolves around calculating Fourier coefficients and series for a piecewise function defined over specific intervals. The user is confused about the function's oddness and the resulting Fourier series, which includes both sine and cosine terms despite the expectation of only sine terms for odd functions. They express difficulty with the integral calculations and seek general strategies for tackling such problems. The conversation highlights the importance of correctly identifying the function's properties and suggests that the user may have overlooked something in their calculations. Overall, the user is looking for guidance on simplifying the process of finding Fourier coefficients.
broegger
Messages
257
Reaction score
0
Hi!

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

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

Since this function is odd the Fourier series should only contain \sin{x} (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.
 
I multiplied the values first without the error limit. Got 19.38. rounded it off to 2 significant figures since the given data has 2 significant figures. So = 19. For error I used the above formula. It comes out about 1.48. Now my question is. Should I write the answer as 19±1.5 (rounding 1.48 to 2 significant figures) OR should I write it as 19±1. So in short, should the error have same number of significant figures as the mean value or should it have the same number of decimal places as...
Thread 'A cylinder connected to a hanging mass'
Let's declare that for the cylinder, mass = M = 10 kg Radius = R = 4 m For the wall and the floor, Friction coeff = ##\mu## = 0.5 For the hanging mass, mass = m = 11 kg First, we divide the force according to their respective plane (x and y thing, correct me if I'm wrong) and according to which, cylinder or the hanging mass, they're working on. Force on the hanging mass $$mg - T = ma$$ Force(Cylinder) on y $$N_f + f_w - Mg = 0$$ Force(Cylinder) on x $$T + f_f - N_w = Ma$$ There's also...
Back
Top