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

In summary, the conversation discusses the difficulty of determining a Fourier coefficient in a Fourier series and the process for solving for it by multiplying both sides of the equation by a cosine term and integrating over the interval. It is explained that the sum in the equation is equivalent to only one term, the n=m term, and the correct question to ask is about the placement of parentheses. The conversation ends with a clarification and understanding of the concept.
  • #1
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
  • #2
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 1 person
  • #3
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?
 
  • #4
never mind, i see what you mean now! thanks!
 
  • #5
"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##.
 

What is a Fourier series?

A Fourier series is a mathematical representation of a periodic function as a sum of sine and cosine functions. It allows us to express a complex function as a combination of simpler trigonometric functions.

What is a Fourier coefficient?

A Fourier coefficient is a numerical value that represents the amount of a particular sine or cosine term in a Fourier series. It determines the amplitude and phase of the corresponding trigonometric function in the series.

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

The Fourier coefficient for a cosine term can be found by integrating the function over one period (or one cycle) and dividing by the period. This is known as the cosine coefficient and it represents the amplitude of the cosine term in the Fourier series.

What is the formula for the Fourier coefficient of a cosine term?

The formula for the Fourier coefficient of a cosine term is given by cn = (2/T) ∫T f(x) cos(nω0x) dx, where T is the period of the function, ω0 is the fundamental frequency, and f(x) is the periodic function being represented in the Fourier series.

Can we find the Fourier coefficient for a cosine term if the function is not periodic?

No, the Fourier series representation is only applicable to periodic functions. If the function is not periodic, then we cannot use the Fourier series and therefore cannot find the Fourier coefficient for a cosine term.

Similar threads

  • Differential Equations
Replies
4
Views
2K
  • Differential Equations
Replies
7
Views
380
  • Differential Equations
Replies
4
Views
2K
  • Topology and Analysis
Replies
4
Views
261
Replies
28
Views
5K
  • Differential Equations
Replies
1
Views
742
Replies
1
Views
1K
  • Differential Equations
Replies
2
Views
1K
Replies
8
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
330
Back
Top