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

Click For Summary
SUMMARY

The Fourier cosine series of cos(x) from x=0 to π is derived using the formula $$f(x)=\frac{1}{2}a_0+\sum_{n=1}^{\inf}a_n \cos(nx)$$. The coefficients are calculated as $$a_n=\frac{2}{\pi}\int_0^\pi f(x)\cos(nx) dx$$, resulting in $$a_0=0$$ and $$a_n=1$$ for n=1, while $$a_n=0$$ for all other n. Thus, the Fourier cosine series simplifies to cos(x). The discussion emphasizes the orthogonality of the basis functions in Fourier analysis and the uniqueness of the linear combination of these basis elements.

PREREQUISITES
  • Understanding of Fourier series and coefficients
  • Knowledge of integrable functions and inner product spaces
  • Familiarity with the properties of orthogonal functions
  • Basic calculus, specifically integration techniques
NEXT STEPS
  • Study the derivation of Fourier coefficients in detail
  • Explore the properties of orthogonal functions in vector spaces
  • Learn about the applications of Fourier series in signal processing
  • Investigate the relationship between Fourier series and the Riemann zeta function
USEFUL FOR

Mathematicians, engineers, and students in physics or applied mathematics who are interested in Fourier analysis and its applications in various fields.

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
1K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K