Fourier Coefficients of an Even Function

In summary, the coefficients for the Fourier expansion of a given periodic function F(x) can be found using the formulas (Form1) and (Form2). For a periodic square pulse with height of 1 and width of a, the Fourier coefficients are An = (\frac{2}{πn})sin(\frac{πan}{λ}) for n≥1 and A0 = \frac{a}{λ}. These coefficients can be found by plugging the given function into the formulas and evaluating the integrals. It is important to use the correct variable for the summation index and the coefficient index in order to obtain the correct results.
  • #1
JackFlash
15
0

Homework Statement


For a given periodic function F(x), the coefficients An of its Fourier expansion can be found using the formulas (Form1) and (Form2). Consider a periodic square pulse and verify that the Fourier coefficients are as claimed:
An =([itex]\frac{2}{πn}[/itex])sin([itex]\frac{πan}{λ}[/itex])
for n≥1 and that
A0 = [itex]\frac{a}{λ}[/itex]

(the height of the pulse is 1, the width is a)

Homework Equations


(Form1): An = [itex]\frac{1}{λ}[/itex][itex]\int^{λ}_{0}[/itex] F(x)cos([itex]\frac{2πnx}{λ}[/itex]) dx

(Form2): A0 = [itex]\frac{1}{λ}[/itex][itex]\int^{λ}_{0}[/itex] F(x)dx

λ = wavelength

F(x) = Ancos([itex]\frac{2πnx}{λ}[/itex])

The Attempt at a Solution



I've tried to integrate the function F(x) through Form1, but my answer doesn't match the one that it should be. I'm missing a [itex]\frac{1}{πn}[/itex] and my sine value has a 4 in it. Then I tried without the extra cos(~) part in Form1, where ~ is the fraction within the cos (I don't want to rewrite it over and over). I was closer this time, but I couldn't get a λ in the denominator of the fraction within the sine value.
I know these attempts would be better seen had I actually written them out, but I assure you I've tried to integrate according to the functions I'm given to no avail. The textbook doesn't do a good job explaining how to calculate the Fourier coefficients as it just handwaves it under the guise of it being "straightforward". I would appreciate someone pointing me in the right direction, or someone showing what I need to start with to solve this problem as I suspect the given Formulas (Form1 and Form2) only apply to their respective question (they were part of another question, but the question I'm on directed me to them as the formulas to use).
 
Last edited:
Physics news on Phys.org
  • #2
what textbook do you have?
 
  • #3
Modern Physics for Scientists and Engineers, 2nd Edition.
Authors are John Taylor, Chris D. Zafiratos, and Michael A. Dubson.
Chapter 6, problem #32.

I figure more information than necessary is better than too little information.
 
  • #4
If you have it in your library check out Fourier Series by Tolstov.

For your question you need to know the tricks and play around with it. Here are a few:
[itex]\int^{\pi}_{-\pi}cos(nx)ds[/itex]=[itex]\int^{\pi}_{-\pi}sin(nx)dx[/itex]=0
[itex]\int^{\pi}_{-\pi}cos^{2}(nx)ds[/itex]=[itex]\int^{\pi}_{-\pi}sin^{2}(nx)dx[/itex]=[itex]\pi[/itex]
or sub pi for anything else
function is even if f(-x)=f(x) such as a cosine function or a sine squared function
function is odd if f(-x)=-f(x) such as function x or a sine function
odd x odd = even x even = evenfunction
odd x even = odd function
[itex]\int^{λ}_{-λ}(even function)[/itex]=2[itex]\int^{λ}_{0}(even function)[/itex]
[itex]\int^{λ}_{-λ}(odd function)[/itex]=0

f(x)=even=> a[itex]_{n}[/itex]=[itex]\frac{2}{\pi}[/itex][itex]\int^{\pi}_{0}f(x)cos(nx)dx[/itex], b[itex]_{n}[/itex]=0 ... (series contains only cosines)
f(x)=odd=> b[itex]_{n}[/itex]=[itex]\frac{2}{\pi}[/itex][itex]\int^{\pi}_{0}f(x)sin(nx)dx[/itex], a[itex]_{n}[/itex]=0 ... (series contains only sines)


Play with those, and a lot with trig identities.

GL

Matt
 
  • #5
Alright. Given that the function F(x) is an even function, the equations will only deal with cosines. Using the equation I was given in this book and the equations Matt gave me, my end result is:

My integrals were:
An = [itex]\frac{2}{λ}[/itex][itex]\int[/itex][itex]^{λ}_{0}[/itex]cos2([itex]\frac{2πnx}{λ}[/itex])dx
and
An = [itex]\frac{2}{π}[/itex][itex]\int[/itex][itex]^{π}_{0}[/itex]cos2([itex]\frac{2πnx}{λ}[/itex])dx

An = [itex]\frac{2}{λ}[/itex]+[itex]\frac{2knλ + sin(2knλ)}{4kn}[/itex] = [itex]\frac{4πn * sin(4πn)}{4πn}[/itex]
where k =[itex]\frac{2π}{λ}[/itex]
Using the equation where instead of lambda we have pi:
An = [itex]\frac{2πkn + sin(2πkn)}{2πkn}[/itex]

I thought of using the trig identity where sin(2θ) = 2sin(θ)cos(θ) in both equations, though that just makes things worse and makes me realize it wasn't a good idea to do so. I've also substituted cos2(~) for 1-sin2(~), but that yields the same results after some trig identities.

Using cos(nx) instead of cos([itex]\frac{2πnx}{λ}[/itex]) doesn't help either, and I've tried both above integrals with cos to the power of 1 instead of 2 (as my searches on the internet have yielded examples where the questions are solved in such a way), but still no dice. I'm getting:
An = [itex]\frac{2sin(λn)}{λn}[/itex]
and
An = [itex]\frac{2sin(πn)}{πn}[/itex]
(respective to the above integrals, but using cos(nx) instead of cos2(nx))

So far, I can see that the bottom-most result is closest to the target result, but a λ is missing in the denominator of the sin(~) function. Putting "k" (wave number, 2π/λ) back into the mix gives us the λ in the denominator, but also gives a π2.
I considered that the integral from 0 to λ (or π) is also equal to the twice the integral from 0 to λ/2 (or π/2) and tried to solve it that way, but I still don't get a λ in the denominator of the sin(~) value or I get a π2.
 
  • #6
JackFlash said:
Alright. Given that the function F(x) is an even function, the equations will only deal with cosines. Using the equation I was given in this book and the equations Matt gave me, my end result is:

My integrals were:
An = [itex]\frac{2}{λ}[/itex][itex]\int[/itex][itex]^{λ}_{0}[/itex]cos2([itex]\frac{2πnx}{λ}[/itex])dx
How did you get this?

Moderator note: I moved this thread to the advanced physics forum since it's not a problem you typically get in an intro physics course.
 
  • #7
Given F(x) = [itex]\sum[/itex][itex]^{∞}_{n=1}[/itex] A[itex]_{n}[/itex]cos([itex]\frac{2πnx}{λ}[/itex])
Considering we're solving for A[itex]_{n}[/itex], I figure it couldn't be used in the integral (given in the original post).
So:
An = [itex]\frac{2}{λ}[/itex][itex]\int^{λ}_{0}[/itex] F(x)cos([itex]\frac{2πnx}{λ}[/itex]) dx
=
[itex]\frac{2}{λ}[/itex][itex]\int^{λ}_{0}[/itex] cos([itex]\frac{2πnx}{λ}[/itex])*cos([itex]\frac{2πnx}{λ}[/itex]) dx

EDIT: I just saw that the original post had coefficients of [itex]\frac{1}{λ}[/itex] and [itex]\frac{1}{π}[/itex] rather than twice that. My mistake.
 
  • #8
I see what you did. One mistake you're making is that you're using the variable n to represent two different quantities. One is the summation index; the other is the index for An. What you should actually have is
$$A_n = \frac{2}{\lambda} \int_0^\lambda \left(\sum_{m=1}^\infty A_m\cos \frac{2\pi mx}{\lambda}\right) \cos \frac{2\pi n x}{\lambda}\,dx$$If you evaluate this integral, you'll just end up with An=An because only n=m term survives — not very useful.

To find the coefficients for a particular F(x), you need to plug the actual function into the formula. In this case, your square wave is described by
$$F(x) = \begin{cases}
1, & 0 \le x \le a \\
0, & a<x < \lambda\end{cases}$$What do you get for the integral when you plug that in?
 
Last edited:
  • #9
((Just a side note, sorry about posting this thread in the wrong board. I couldn't decide which one to post it in between the Introductory and the Advanced Physics boards and figured it might be upper-level introductory. Thank you for correcting my error. Also, I'll make the equations a bit bigger like how others have. Easier on the eyes.))

Hm. The original integral going from 0 to λ would now be "half" of what it is. So I believe the integral would become:

A[itex]_{n}[/itex] = [itex]\frac{2}{λ}[/itex][itex]\int[/itex][itex]^{a}_{0}[/itex] (1)cos([itex]\frac{2πmx}{λ}[/itex]) dx

Solving by hand (and verified with Wolfram Alpha)

sin([itex]\frac{2πma}{λ}[/itex])[itex]/πm[/itex]
which is so very close to the answer I'm looking for.
However, a bit of playing around, if I change the integral to:

A[itex]_{n}[/itex] = [itex]\frac{4}{λ}[/itex][itex]\int[/itex][itex]^{a/2}_{0}[/itex] (1)cos([itex]\frac{2πmx}{λ}[/itex]) dx

Then I get (verified with Wolfram Alpha)

2sin([itex]\frac{πma}{λ}[/itex])[itex]/πm[/itex]
which is the solution. I'm not 100% sure why this works, but I think the reasoning behind it is the same as the reasoning behind using twice the integral from 0 to π/2 of sin(x) instead of the integral from 0 to π. But if that were the case, then the first integral should have worked.
 
  • #10
Whoops, I made a mistake writing down F(x). You wanted an even function, so it should have been
$$F(x) = \begin{cases}
1, & |x|<a/2 \\
0, & \text{otherwise}
\end{cases}.$$ If you plug this function into the general formula for An and then use the fact that F(x) is even, you should get the desired result.
 

Related to Fourier Coefficients of an Even Function

1. What are Fourier coefficients of an even function?

Fourier coefficients of an even function are a set of complex numbers that represent the amplitude and phase of different sinusoidal components in the even function. These coefficients are used in Fourier series to approximate the even function.

2. How do you calculate Fourier coefficients of an even function?

To calculate the Fourier coefficients of an even function, you can use the formula:
an = (2/T) ∫-T/2T/2f(x)cos(nω0x) dx, where T is the period of the function and ω0 is the fundamental frequency. This formula gives the amplitude of the cosine component in the Fourier series.

3. What is the significance of the first Fourier coefficient of an even function?

The first Fourier coefficient (a0) of an even function represents the average value of the function over one period. It is also known as the DC component and is the starting point for calculating the other Fourier coefficients.

4. Can you use Fourier coefficients to reconstruct an even function?

Yes, using the Fourier coefficients, you can reconstruct an even function by adding together all the sinusoidal components (cosines) in the Fourier series. The more terms you include in the series, the closer the approximation will be to the original function.

5. Are Fourier coefficients of an even function always real numbers?

No, Fourier coefficients of an even function can be complex numbers. However, for real-valued even functions, the coefficients will be conjugate symmetric, meaning an = a-n*, where * represents the complex conjugate. This property makes the series easier to work with and interpret.

Similar threads

  • Advanced Physics Homework Help
Replies
1
Views
850
  • Calculus and Beyond Homework Help
Replies
3
Views
341
  • Advanced Physics Homework Help
Replies
11
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
478
Replies
4
Views
394
  • Calculus and Beyond Homework Help
Replies
7
Views
1K
  • Advanced Physics Homework Help
Replies
4
Views
972
  • Calculus and Beyond Homework Help
Replies
3
Views
400
  • Advanced Physics Homework Help
Replies
6
Views
817
  • Topology and Analysis
Replies
4
Views
305
Back
Top