MHB Compute Fourier Series of f(x)=sin(x) & Parseval's Identity

Click For Summary
SUMMARY

The discussion focuses on computing the Fourier series for the piecewise function \( f(x) = \sin(x) \) when \( \sin(x) \ge 0 \) and \( f(x) = 0 \) when \( \sin(x) < 0 \). The Fourier coefficients \( a_n \) and \( b_n \) are derived, with \( a_n = \frac{1}{\pi} \frac{-1 + (-1)^{n+1}}{n^2 - 1} \) and \( b_n = \frac{1}{2} \) for \( n=1 \) and \( 0 \) for \( n \neq 1 \). Additionally, Parseval's identity is applied to the \( 2\pi \)-periodic function \( f(x) \) defined as \( 1 \) for \( 0 \le x < \pi \) and \( 0 \) for \( -\pi \le x < 0 \), leading to the conclusion that \( \sum_{n \ge 1} \frac{1}{(2n-1)^2} = \frac{\pi^2}{8} \).

PREREQUISITES
  • Understanding of Fourier series and coefficients
  • Knowledge of Parseval's identity in Fourier analysis
  • Familiarity with piecewise functions
  • Basic calculus, particularly integration techniques
NEXT STEPS
  • Study the derivation of Fourier series for piecewise continuous functions
  • Explore Parseval's identity and its applications in signal processing
  • Learn about convergence of Fourier series and conditions for uniform convergence
  • Investigate the implications of Fourier series in solving differential equations
USEFUL FOR

Mathematicians, physicists, and engineers interested in Fourier analysis, signal processing, and the application of Parseval's identity in various fields.

Markov2
Messages
149
Reaction score
0
1) Compute Fourier series of $f(x)=\left\{\begin{array}{cl}\sin x,&\sin x\ge0,\\0,&\sin x<0.\end{array}\right.$

2) Consider the $2\pi-$periodic function $f(x)=\left\{\begin{array}{cl}1,&\text{ if }\phantom{-}0\le x<\pi,\\0,&\text{ if }-\pi\le x<0.\end{array}\right.$ Use Parseval's identity to prove that $\displaystyle\sum_{n\ge1}\frac1{(2n-1)^2}=\frac{\pi^2}8.$

Attempts:

1) How can I get the bounds to compute the Fourier series?

2) I think this is straightforward, I just need t compute $a_n$ and $b_n$ by writing for example $a_n=\displaystyle\frac1\pi\int_{-\pi}^{\pi}f(x)\cos (nx)\,dx=\frac{1}{\pi }\left( {\int_{ - \pi }^0 {f(x)\cos (nx)\,dx} + \int_0^\pi {f(x)\sin (nx)\,dx} } \right),$ and the same for $b_n,$ the rest is using $\displaystyle\frac{{a_0^2}}{2} + \sum\limits_{n = 1}^\infty {\left( {a_n^2 + b_n^2} \right)} = \frac{1}{\pi }\int_{ - \pi }^\pi {f{{(x)}^2}\,dx} ,$ but I have a problem here, when calculating the integral of the last formula, I'd need to split it up into two integrals but the fact that $f(x)=1$ for $0\le x<\pi$ doesn't imply that $f(x)^2=1,$ doesn't?
 
Physics news on Phys.org
Markov said:
1) Compute Fourier series of $f(x)=\left\{\begin{array}{cl}\sin x,&\sin x\ge0,\\0,&\sin x<0.\end{array}\right.$

If f(x) is $2 \pi$ periodic You have...

$\displaystyle a_{n}= \frac{1}{\pi}\ \int_{0}^{\pi} \sin x\ \cos nx\ dx = \frac{1}{\pi} \frac{-1+(-1)^{n+1}}{n^{2}-1}$

$\displaystyle b_{n}= \frac{1}{\pi}\ \int_{0}^{\pi} \sin x\ \sin nx\ dx = \left\{\begin{array}{cl}\frac{1}{2},&n=1\\0,&n \ne 1\end{array}\right.$

Kind regards

$\chi$ $\sigma$
 
Last edited:
Okay but why $0\le x<\pi$ ?
 
Markov said:
Okay but why $0\le x<\pi$ ?

For $- \pi< x<0$ [or, that is the same, for $-1< \sin x<0$...] is $f(x)=0$...

Kind regards

$\chi$ $\sigma$
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K