How Do You Calculate Fourier Series Coefficients for a Piecewise Function?

nikki92
Messages
37
Reaction score
0

Homework Statement



x(t) = 4 for 0 <x<1 and 0 otherwise and this process repeats for all values including negative.

find X_0 and X_n

and find the first 6th harmonics of the Fourier series in cosine form

Homework Equations





The Attempt at a Solution



x_0 = 4/3

x_n = (4/3)*exp(-i*n*(pi/3)) *sinc(n/3)

To find the first 6th harmonics in cosine form do I just use the X_n and plug the values in? Do I have to put it literally in cosine instead of sine or do they mean cos/sin form?
 
Physics news on Phys.org
nikki92 said:

Homework Statement



x(t) = 4 for 0 <x<1 and 0 otherwise and this process repeats for all values including negative.

find X_0 and X_n

and find the first 6th harmonics of the Fourier series in cosine form

Homework Equations





The Attempt at a Solution



x_0 = 4/3

x_n = (4/3)*exp(-i*n*(pi/3)) *sinc(n/3)

To find the first 6th harmonics in cosine form do I just use the X_n and plug the values in? Do I have to put it literally in cosine instead of sine or do they mean cos/sin form?
Could you please give us the problem statement exactly as given to you? You seem to be leaving out relevant details, like what the period of x(t) is supposed to be.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top