How do we find the Fourier coefficient for a cosine term in a Fourier series?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 2K views
member 428835
hey pf!

okay, so if you've studied PDEs you know the value of a Fourier series, and the difficulty of determining a Fourier coefficient. my question relates to finding this coefficient. briefly, i'll define a Fourier series as [tex]f(x)=\sum_{n=0}^{\infty} A_n\cos\frac{n\pi x}{L}+B_n\sin\frac{n\pi x}{L}[/tex] when solving for [itex]A_n[/itex] one way (the only way i know) is to multiply both sides by [itex]\cos\frac{m\pi x}{L}[/itex]. now, when we integrate over [itex][-L,L][/itex] the sine term vanishes by its orthogonality with cosine and we are left with [tex]\int_{-L}^{L}f(x)\cos\frac{m\pi x}{L}dx=\sum_{n=0}^{\infty} A_n \int_{-L}^{L} \cos\frac{m\pi x}{L}\cos\frac{n\pi x}{L}dx[/tex], where the r.h.s=0 if [itex]m \neq n[/itex] thus we know [itex]m = n[/itex] (for now let's assume [itex]m=n \neq 0[/itex]). [itex]m = n \implies \int_{-L}^{L} \cos\frac{m\pi x}{L}\cos\frac{n\pi x}{L}dx=L[/itex] thus [tex]\sum_{n=1}^{\infty}A_n=\frac{1}{L}\int_{-L}^{L}f(x)\cos\frac{n\pi x}{L}dx[/tex] but every book i see states simply [tex]A_n=\frac{1}{L}\int_{-L}^{L}f(x)\cos\frac{n\pi x}{L}dx[/tex] where did the sum go?
 
Physics news on Phys.org
joshmccraney said:
...
now, when we integrate over [itex][-L,L][/itex] the sine term vanishes by its orthogonality with cosine and we are left with [tex]\int_{-L}^{L}f(x)\cos\frac{m\pi x}{L}dx=\sum_{n=0}^{\infty} A_n \int_{-L}^{L} \cos\frac{m\pi x}{L}\cos\frac{n\pi x}{L}dx[/tex], where the r.h.s=0 if [itex]m \neq n[/itex]

Exactly. Which means only one term of the sum is left, the [itex]n=m[/itex] term, so this equation is identical to

[tex]\int_{-L}^{L}f(x)\cos\frac{m\pi x}{L}dx= A_m \int_{-L}^{L} \cos\frac{m\pi x}{L}\cos\frac{m\pi x}{L}dx[/tex]

Does that make sense?

jason
 
  • Like
Likes   Reactions: 1 person
jasonRF said:
Exactly. Which means only one term of the sum is left, the [itex]n=m[/itex] term, so this equation is identical to

[tex]\int_{-L}^{L}f(x)\cos\frac{m\pi x}{L}dx= A_m \int_{-L}^{L} \cos\frac{m\pi x}{L}\cos\frac{m\pi x}{L}dx[/tex]

wait, does this mean [tex]\sum\int_{-L}^{L}f(x)\cos\frac{m\pi x}{L}dx= A_m \int_{-L}^{L} \cos\frac{m\pi x}{L}\cos\frac{m\pi x}{L}dx[/tex] is equivalent to [tex]\int_{-L}^{L}f(x)\cos\frac{m\pi x}{L}dx= \sum A_m \int_{-L}^{L} \cos\frac{m\pi x}{L}\cos\frac{m\pi x}{L}dx[/tex]
could you explain?
 
never mind, i see what you mean now! thanks!
 
"Where did the sum go?" is the wrong question.

The right question is "where do the parentheses go?"

Answer:
$$\int_{-L}^{L}f (x) \cos\frac{m\pi x}{L} dx = \sum_{n=0}^{\infty} \left( A_n \int_{-L}^{L} \cos \frac{m\pi x}{L} \cos \frac{n\pi x}{L} dx \right)$$

and all the integrals on the right hand side are zero, except when ##m = n##.