Fourier Series of the Sawtooth Wave
Greetings. As Sherlock, I'll deduce the Fourier series of the sawtooth wave with mathematical precision. We'll start by defining the function clearly, then derive the coefficients step by step.
Definition of the Sawtooth Wave
Consider the sawtooth wave ( f(t) ) defined on the interval ( (-\pi, \pi) ) as:
[
f(t) = t, \quad -\pi < t < \pi,
]
and extended periodically with period ( 2\pi ):
[
f(t + 2\pi) = f(t).
]
This produces a linear ramp from ( -\pi ) to ( \pi ), followed by a sharp drop of ( 2\pi ) at each odd multiple of ( \pi ) (the discontinuity). It's an odd function (( f(-t) = -f(t) )), so the Fourier series will contain only sine terms.
The general Fourier series for a function with period ( 2\pi ) is:
[
f(t) \sim \frac{a_0}{2} + \sum_{n=1}^\infty \left( a_n \cos(nt) + b_n \sin(nt) \right),
]
where
[
a_0 = \frac{1}{\pi} \int_{-\pi}^\pi f(t) , dt, \quad a_n = \frac{1}{\pi} \int_{-\pi}^\pi f(t) \cos(nt) , dt, \quad b_n = \frac{1}{\pi} \int_{-\pi}^\pi f(t) \sin(nt) , dt.
]
Computation of Coefficients
Since ( f(t) ) is odd:
- ( a_0 = 0 ) (integral of odd function over symmetric interval).
- ( a_n = 0 ) (product ( f(t) \cos(nt) ) is odd).
- Only ( b_n ) remain, and by symmetry:
[
b_n = \frac{2}{\pi} \int_0^\pi t \sin(nt) , dt.
]
Now, compute the integral using integration by parts. Let ( u = t ), ( dv = \sin(nt) , dt ), so ( du = dt ), ( v = -\frac{\cos(nt)}{n} ):
[
\int t \sin(nt) , dt = -\frac{t \cos(nt)}{n} + \frac{1}{n} \int \cos(nt) , dt = -\frac{t \cos(nt)}{n} + \frac{\sin(nt)}{n^2}.
]
Evaluate from 0 to ( \pi ):
[
\left[ -\frac{t \cos(nt)}{n} + \frac{\sin(nt)}{n^2} \right]_0^\pi = \left( -\frac{\pi \cos(n\pi)}{n} + \frac{\sin(n\pi)}{n^2} \right) - \left( 0 + 0 \right) = -\frac{\pi (-1)^n}{n} + 0 = -\frac{\pi (-1)^n}{n}.
]
Thus,
[
b_n = \frac{2}{\pi} \left( -\frac{\pi (-1)^n}{n} \right) = -\frac{2 (-1)^n}{n} = \frac{2 (-1)^{n+1}}{n}.
]
The Fourier Series
The series is:
[
f(t) \sim \sum_{n=1}^\infty b_n \sin(nt) = 2 \sum_{n=1}^\infty \frac{(-1)^{n+1}}{n} \sin(nt).
]
Explicit form:
[
f(t) \sim 2 \left( \sin t - \frac{\sin(2t)}{2} + \frac{\sin(3t)}{3} - \frac{\sin(4t)}{4} + \cdots \right).
]
Verification and Notes
- Convergence: The series converges pointwise to ( f(t) ) at points of continuity and to the average ( 0 ) at discontinuities (( t = (2k+1)\pi )).
- Gibbs Phenomenon: Near discontinuities, the partial sums overshoot by about 9% of the jump height (here, ( 2\pi )), a classic artifact.
- Generalization: For period ( T ), replace ( t ) with ( 2\pi t / T ) and scale amplitude accordingly. For a unit-amplitude sawtooth (range ([-1/2, 1/2])), it's ( -\frac{1}{\pi} \sum_{n=1}^\infty \frac{\sin(2\pi n t)}{n} ).
This is the precise solution, deduced from first principles. If you need partial sums, code to plot it, or a different normalization, provide more details!