Calculating the Fourier Series of |sin x|

Click For Summary
SUMMARY

The discussion focuses on calculating the Fourier series of |sin x| over the interval from -π to π. The initial formulation of the coefficients a_n was incorrect due to a mistake in the numerator, which should be 2((-1)^{n-1} - 1) instead of including n. The correct Fourier series representation is f(x) = (2/π) + (4/π)Σ (cos(2nx)/(4n² - 1)), confirming that all terms for odd n are zero while even terms contribute to the series.

PREREQUISITES
  • Understanding of Fourier series and their coefficients
  • Knowledge of integration techniques, particularly definite integrals
  • Familiarity with trigonometric identities, specifically sin and cos products
  • Basic knowledge of series convergence and manipulation
NEXT STEPS
  • Study the derivation of Fourier series for even and odd functions
  • Learn about the properties of trigonometric integrals in Fourier analysis
  • Explore the convergence criteria for Fourier series
  • Investigate the application of Fourier series in signal processing
USEFUL FOR

Mathematicians, physicists, and engineers interested in Fourier analysis, particularly those working with periodic functions and signal processing applications.

Narcol2000
Messages
25
Reaction score
0
I'm trying to find the Fourier series of |sin x| between -pi and pi.

I've got it down to:

<br /> a_n = \frac{1}{\pi} \int^{\pi}_{-\pi} |sin x| cos (nx) dx<br />

which i wrote as:

<br /> a_n = \frac{2}{\pi}\int^{\pi}_0 sin x cos (nx) dx<br />

writing

<br /> sin x cos (nx) = \frac{1}{2} (sin (n+1)x - sin (n-1)x)<br />

I eventually get

<br /> a_n = \frac{2(n(-1)^n - 1)}{\pi(n^2 - 1)}<br />

giving

<br /> f(x) = \frac{2}{\pi} + \sum^{\infty}_{n=1} \frac{2(n(-1)^n - 1)}{\pi(n^2 - 1)} cos(nx)<br />

The answer however gives

<br /> f(x) = \frac{2}{\pi} + \frac{4}{\pi}\sum^{\infty}_{n=1} \frac{cos (2nx)}{4n^2 - 1}<br />

I don't see how they arrive at this... if anyone can let me know where I've gone wrong or if I'm missing something :S
 
Last edited:
Physics news on Phys.org
You mad a mistake in calculating an. There is no n in the numerator. It should be (-1)n-1-1. Then all the terms for odd n are 0 and the even terms remain. (I suggest you redo the calculation).
 
yeah i found the mistake,
I get the numerator to be
<br /> 2((-1)^{n-1} - 1)<br />

which does lead to the right answer.

thx for your help.:cool:
 

Similar threads

  • · Replies 33 ·
2
Replies
33
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 14 ·
Replies
14
Views
2K