How do you find the fourier expansion coefficients?

Vitani11
Messages
275
Reaction score
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:
Physics news on Phys.org
It looks like you are stating some things that aren't true, and plugging some values into formulas without really understanding how the formulas work.
First questions:
1) Can you verify for yourself whether this is a square wave? What is the definition of a square wave? Does it matter?
1a) Is this really a square wave? It is a rectangular wave, yes, but square? I think many (most?) would say that a square wave has equal amounts of on/off (high/low, etc.). 1b) Does the answer to 1a) matter?
2) Is this an odd function? Draw it out, and use the definition of odd function.
3) Do the answers to these questions affect your calculations?
4) If the limits of integration are generally (-L, L), how many periods of the waveform would be included?
 
Odd function means ##f(-x)=-f(x)##. How do you know that is odd? It is not obvious from the information you give.
 
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