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

In summary, the Fourier series for $f(x)=\left\{\begin{array}{cl}\sin x,&\sin x\ge0,\\0,&\sin x<0.\end{array}\right.$ is zero for $- \pi< x<0$ and has the following expansions: $\displaystyle a_{n}=\frac{1}{\pi}\ \int_{0}^{\pi} \sin x\ \cos nx\ dx,$ and $\displaystyle b_{n}=\frac{1}{\pi}\ \int_{0}^{\pi} \sin x\ \sin nx\ dx.$
  • #1
Markov2
149
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
  • #2
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:
  • #3
Okay but why $0\le x<\pi$ ?
 
  • #4
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$
 

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

What is a Fourier series?

A Fourier series is a mathematical representation of a periodic function as the sum of sinusoidal functions with different amplitudes, frequencies, and phases. It is used to represent a wide range of signals, including sound, light, and electronic signals.

How do you compute a Fourier series?

To compute a Fourier series of a given function, you need to find the coefficients of the sinusoidal functions that make up the series. These coefficients can be calculated using the Fourier series formulas, which involve integrals and complex numbers. Once the coefficients are determined, they can be used to write the Fourier series representation of the function.

What is the Fourier series of f(x) = sin(x)?

The Fourier series of f(x) = sin(x) is given by f(x) = (4/pi) * Σ(n=1 to ∞) ((-1)^n+1 / (2n-1)) * sin((2n-1)x). This means that the function can be written as a sum of sine functions with different frequencies and amplitudes.

What is Parseval's identity?

Parseval's identity is a mathematical theorem that relates the energy of a function to the energy of its Fourier series. It states that the sum of the squares of the Fourier coefficients is equal to the integral of the squared function over one period. This identity is useful in signal processing and can also be used to check the accuracy of a Fourier series approximation.

How is Parseval's identity used in signal processing?

In signal processing, Parseval's identity is used to calculate the total energy or power of a signal, which is important for various applications such as noise reduction and signal analysis. By computing the energy of a signal using Parseval's identity, engineers and scientists can determine the effectiveness of different signal processing techniques and optimize them for specific purposes.

Similar threads

Replies
9
Views
3K
Replies
2
Views
1K
Replies
11
Views
1K
Replies
2
Views
2K
Replies
4
Views
1K
Replies
1
Views
2K
Back
Top