Fourier Series Problem: Finding Coefficients for Piecewise Function f(t)

Drake25
Messages
2
Reaction score
0

Homework Statement


one period of a function f(t) is given by the piecewise function f(t)= 2t if -pi/2 <t <0 and -1 if 0< t < pi/2
I need to find a sub 0, a sub n, a sub 1,2,3,& 4, and b sub 1,2,3 &4
If I could just get a sub 0 the rest are easy, however, my answer does not look correct.

Homework Equations



a sub 0= 1/p * integral from p to -p f(t)dt
a sub n= 1/p * integral from p to -p f(t)cos (n*pi*t)/p dt
b sub n is the same except sin replaces cos

The Attempt at a Solution


I worked through the equation for a sub o and got -pi/2 -1
Now, it's the -1 that I don't think belongs? But i don't know for sure if it is wrong but if it is that will mess up all of the other answers. I just wish someone could explain to me how I have done it wrong. Thank you!
 
Physics news on Phys.org
\int_{0}^{\frac{\pi}{2}}{-1dt} is -\pi/2, not -1.

Also keep in mind that the equations as you've written them are wrong; either you want a 1/2p in the beginning or you want to integrate from -p/2 to p/2. The point is to divide by the "length of integration", but if you integrate from -p to p that length is actually 2p. a_0 should represent the average value of the function on that interval.
 
Last edited:
ok, that makes sense! thank you!
i wish my computer would allow me to type symbols like you did, where can i find those so that my question is easier to read?
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...

Similar threads

Back
Top