Fourier series coefficients for piecewise sine function

2 replies · 3K views · last reply
Jason-Li
Messages
119
Reaction score
14
Homework Statement
Sketch the waveform defined below and explain how you would obtain its fourier Series (I've attached the question. It's title is "wave.png"
Relevant Equations
As attached: It's title is "form.png"
ANY AND ALL HELP IS GREATLY APPRECIATED :smile:
I have found old posts for this question however after reading through them several times I am having a hard time knowing where to start.

I am happy with the sketch that the function is correctly drawn and is neither odd nor even. It's title is "wave1.png"
Ao=0 as the average value of the function is 0. I have proven this from working through Ao = 1/π ∫ f(x) dx with my limits of π/2 & π and 3π/2 & 2π.

Bn & An are where I am struggling, I have worked through and got answers but I don't think they are correct but can't see another way. So I did as follows with x = ωt. The limits of each integration are again π & π/2 and 2π & 3π/2.

An = 1/π ∫ f(x)cos(nx) dx
An = 1/π ∫ sin(x)cos(nx) dx + 1/π ∫ sin(x)cos(nx) dx
An = 1/π ∫ ((sin(x+nx))+sin(x-nx))/2+1/π ∫ ((sin(x+nx))+sin(x-nx))/2
An = 1/2π [ (-cos(x+nx))/(1+n) - (cos(x-nx))/(1-n) ] + 1/2π [ (-cos(x+nx))/(1+n) - (cos(x-nx))/(1-n) ]
An = 1/2π [[ (-cos(π+nπ))/(1+n) - (cos(π-nπ))/(1-n) ] - [ (-cos(π/2+n*π/2)/(1+n) - (cos(π/2-nπ/2))/(1-n) ] + 1/2π [[ (-cos(2π+n2π))/(1+n) - (cos(2π-n2π))/(1-n) ] - [ (-cos(3π/2+n*3π/2)/(1+n) - (cos(3π/2-n3π/2))/(1-n) ]
An = 1/2π [-(-cos(nπ))/(1+n) - (-cos(nπ))/(1-n)] + 1/2π [-(cos(n2π))/(1+n) - (cos(n2π))/(1-n)]
An = 1/2π [(2cos(nπ))/(1-n^2) + 1/2π [(2cos(n2π))/(1-n^2)]
An = (cos(πn)) / (π (1-n^2)) + (cos(2πn)) / (π (1-n^2))
An = (cos(πn)+(cos(2πn)) / (π (1-n^2)) This doesn't seem correct?

Other people have Bn working out to 0 however I can't figure out how to start at all, I had an initially thought that as it resembles an odd wave (but isn't odd due to the 0 values) that it would still only have sine terms?

Thanks in advance for any help, it really is appreciated!
 
Attachments
  • Handwritten-style problem text: part c asks to sketch the waveform defined piecewise by f(ωt) = 0 or V sin(ωt) over four intervals from 0 to 2π, and explain how to obtain its Fourier series.
    wave.png
    13.6 KB · Views: 295
  • Graph of a periodic piecewise function on horizontal axis with labels V and -V on the vertical axis: a positive hump from pi/2 to pi and a negative hump from 3*pi/2 to 2*pi, zero elsewhere.
    wave1.png
    1.9 KB · Views: 291
  • Fourier series formula f(x) = a0/2 + sum from n=1 to infinity of (an cos nx + bn sin nx), followed by integral formulas for a0, an and bn over the range -π to π, each annotated as twice the mean value over a period.
    form.png
    10.3 KB · Views: 362
Last edited:
Does that describe the entire signal, or does it repeat? If it does repeat, then what will it look like from negative 2* pi to zero (in sections)
 
scottdave said:
Does that describe the entire signal, or does it repeat? If it does repeat, then what will it look like from negative 2* pi to zero (in sections)

I am assuming that it would repeat? There is no symmetry that I can see? It would be odd if there was no 'missing' parts of the wave however
Graph of a periodic function on a horizontal axis marked from -2pi to 2*pi, with labels at -3*pi/2, -pi, -pi/2, pi/2, pi and 3*pi/2, showing repeated segments of a curve that rises from zero, falls back, and dips below the axis.


Thanks for the reply