- #1
Vitani11
- 275
- 3
Homework Statement
I need to expand this piecewise function f(x) = h for a<x<L and f(x) = 0 for 0<x<a. I am told that this is a square wave so ao and an in the expansion are 0 (odd function). Therefore I only need to worry about bn. The limits on the integral are from a to L, but what about the coefficient? Is it 1/(L-a)? Also for the sine term which is inside the integrand - is this just (L-a) in replace of the L in the general formula?That's what I did and I want to make sure.
Homework Equations
bn = 1/L∫f(x)sin(nπx/L)dx where the limits are from -L to L in general.
I have bn = 1/(L-a)∫hsin(nπx/(L-a))dx where the limits are from a to L.
The Attempt at a Solution
I've found the Fourier expansion to be 4hL/π(L-a) ∑sin(nπx/(L-a))
Last edited: