Calculating Fourier Cosine Series of cos(x) from 0 to \pi

Click For Summary

Discussion Overview

The discussion revolves around calculating the Fourier cosine series of the function $$\cos(x)$$ over the interval from $$0$$ to $$\pi$$. Participants explore the computation of Fourier coefficients and the implications of their values, as well as broader concepts related to Fourier analysis.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Conceptual clarification

Main Points Raised

  • One participant presents the formula for the Fourier cosine series and claims to find that both $$a_0$$ and $$a_n$$ are zero, leading to a series that is identically zero.
  • Another participant questions the assertion that $$a_n=0$$ for $$n=1$$, prompting a correction that states $$a_n=1$$ for $$n=1$$ and $$a_n=0$$ otherwise.
  • Following the correction, it is proposed that the Fourier cosine series for $$\cos(x)$$ is simply $$\cos(x)$$.
  • A later post introduces a discussion on the vector space of integrable functions and the basis formed by sine and cosine functions, emphasizing the orthogonality of these basis elements and the nature of Fourier coefficients.
  • Additionally, a participant mentions a method to evaluate the Fourier series for $$x^2$$ on the interval $$[-\pi,\pi]$$, linking it to the Riemann zeta function.

Areas of Agreement / Disagreement

There is no consensus on the initial claim regarding the Fourier coefficients, as participants initially disagree on the values of $$a_n$$. However, a later agreement is reached that the Fourier cosine series for $$\cos(x)$$ is indeed $$\cos(x)$$. The broader discussion on the properties of Fourier series and vector spaces remains exploratory.

Contextual Notes

Participants discuss the implications of the orthogonality of basis functions and the uniqueness of linear combinations in the context of Fourier series, but do not resolve the complexities involved in proving these properties.

Suvadip
Messages
68
Reaction score
0
Find the Fourier cosine series of $$cos(x)$$ from $$x=0 ~to ~\pi$$

Here the Fourier series is given by
$$f(x)=\frac{1}{2}a_0+\sum_{n=1}^{\inf}a_n cos nx dx$$ where $$a_n=\frac{2}{\pi}\int_0^\pi f(x)cos nx dx$$
I am facing problem to solve it. I am getting $$a_0=0$$ and $$a_n=0$$ so the Fourier series becomes identically zero.
 
Physics news on Phys.org
Are you sure, that $a_n=0$ for $n=1$?
 
lfdahl said:
Are you sure, that $a_n=0$ for $n=1$?

Ohh sorry, $$a_n=1~ for ~n=1, a_n=0$$ otherwise

Then Fourier cosine series for cosx is cosx?
 
suvadip said:
Ohh sorry, $$a_n=1 for n=1, a_n=0$$ otherwise

Then Fourier cosine series for cosx is cosx?

Yes :)
 
One thing often not touched upon in Fourier analysis is that the set of functions

$\{f: [-\pi,\pi] \to \Bbb R\}$ that are integrable form a vector space:

We can add them:

$(f+g)(x) = f(x) + g(x)$

And multiply them by a real number:

$(cf)(x) = c \cdot f(x)$

Furthermore, the definite integral:

[math]\int_{-\pi}^{\pi}f(x)g(x)\ dx[/math]

satisfies all the requirements of an inner product.

Now, it is a difficult theorem to show that:

$\{1,\cos(x),\sin(x),\cos(2x),\sin(2x),\dots,\cos(nx),\sin(nx),\dots\}$

forms a basis for this vector space, but it is somewhat easier to show it is a basis for the subset of such functions that have a Fourier series, and it turns out that this basis (sometimes the scalar multiple of 1 is modified for cleaner formulas) is orthogonal with respect to this inner product. This means that the "coordinates" of these vectors (functions) are the projections of the functions onto their orthogonal basis vectors, and that is precisely what the Fourier coefficients ARE

(just like with "normal vectors" the $j$-th coordinate of:

$v = (v_1,\dots,v_n)$ is $v\cdot e_j = v_j$, where $e_j = (0,\dots,1,\dots,0)$ with all 0's except for a 1 in the $j$-th place).

As such, from the uniqueness of the linear combination of basis elements for any vector, we have that the Fourier series of $\cos(nx)$ is $\cos(nx)$ and similarly the Fourier series of $\sin(nx)$ is also $\sin(nx)$, with no actual need to compute the Fourier coefficients.

A neat trick:

Evaluate the Fourier series for $x^2$ on $[-\pi,\pi]$ at $x = \pi$ to conclude that:

$\zeta(2) = \dfrac{\pi^2}{6}$

(the zeta function is defined by: [math]\zeta(s) = \sum_{n = 1}^{\infty} \frac{1}{n^s}[/math] for any complex number $s$ with real part > 1).
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K