Triangle Wave Fourier Series

Calculus Level 2

Find the Fourier series of the triangle wave which is defined by

f ( x ) = 2 x 0.5 + 1 f(x) = -2|x-0.5|+1

for 0.5 x 1.5 -0.5\leq x \leq 1.5 and is periodic outside this region.

Hint: Try plotting the given function first.

8 π 2 k odd ( 1 ) ( k 1 ) k sin π k x \frac{8}{\pi^2} \sum_{k \text{ odd}} \frac{(-1)^{(k-1)}}{k} \sin \pi k x 8 π 2 k even ( 1 ) k / 2 k sin π k x \frac{8}{\pi^2} \sum_{k \text{ even}} \frac{(-1)^{k/2}}{k} \sin \pi k x 8 π 2 k odd ( 1 ) ( k 1 ) / 2 k 2 sin π k x \frac{8}{\pi^2} \sum_{k \text{ odd}} \frac{(-1)^{(k-1)/2}}{k^2} \sin \pi k x 8 π 2 k odd ( 1 ) k k sin 2 π k x \frac{8}{\pi^2} \sum_{k \text{ odd}} \frac{(-1)^{k}}{k} \sin 2 \pi k x

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Matt DeCross
May 10, 2016

Relevant wiki: Fourier Series

The period of the given function is 2. The following plot should help elucidate the name:

One can see that the function is odd; thus all cosine terms vanish. One is left computing the sine coefficients:

b k = 2 T 0 T f ( x ) sin ( 2 π k x T ) d x . b_k = \frac{2}{T} \int_0^T f(x) \sin (\frac{2\pi k x}{T}) dx.

It helps to break up the above function into two functions and two integrals, plugging in T = 2 T=2 :

b k = . 5 . 5 2 x sin ( π k x ) d x + . 5 1.5 ( 2 2 x ) sin ( π k x ) d x . b_k = \int_{-.5}^{.5} 2x \sin (\pi k x) dx + \int_{.5}^{1.5} (2-2x)\sin (\pi k x) dx .

Evaluating the first and second using integration by parts:

. 5 . 5 2 x sin ( π k x ) d x = 2 x π k cos ( π k x ) 1 / 2 1 / 2 + 2 π k . 5 . 5 cos ( π k x ) d x = 2 x π k cos ( π k x ) 1 / 2 1 / 2 + 2 π 2 k 2 sin ( π k x ) 1 / 2 1 / 2 \begin{aligned} \int_{-.5}^{.5} 2x \sin (\pi k x) dx &= \bigl.-\frac{2x}{\pi k} \cos (\pi k x) \bigr|_{-1/2}^{1/2} + \frac{2}{\pi k} \int_{-.5}^{.5} \cos (\pi k x) dx \\ &=\bigl.-\frac{2x}{\pi k} \cos (\pi k x) \big|_{-1/2}^{1/2} + \bigl.\frac{2}{\pi^2 k^2} \sin (\pi k x)\bigr|_{-1/2}^{1/2} \end{aligned}

. 5 1.5 ( 2 2 x ) sin ( π k x ) d x = ( 2 2 x ) π k cos ( π k x ) 1 / 2 3 / 2 2 π k . 5 1.5 cos ( π k x ) d x = ( 2 2 x ) π k cos ( π k x ) 1 / 2 3 / 2 2 π 2 k 2 sin ( π k x ) 1 / 2 3 / 2 \begin{aligned} \int_{.5}^{1.5} (2-2x)\sin (\pi k x) dx &= \bigl.\frac{-(2-2x)}{\pi k} \cos (\pi k x) \bigr|_{1/2}^{3/2} - \frac{2}{\pi k} \int_{.5}^{1.5} \cos (\pi k x) dx \\ &=\bigl.\frac{-(2-2x)}{\pi k} \cos (\pi k x) \bigr|_{1/2}^{3/2} - \frac{2}{\pi^2 k^2} \bigl. \sin (\pi k x) \bigr|_{1/2}^{3/2} \end{aligned}

Combining all expressions and checking when the integer multiples of π / 2 \pi/2 give 1 -1 , 1 1 , or 0 0 gives the result (only the second term from each integral ends up contributing):

b k = 8 k 2 π 2 ( 1 ) ( k 1 ) / 2 , k odd , b_k = \frac{8}{k^2\pi ^2} (-1)^{(k-1)/2}, \qquad k \text{ odd},

and b k = 0 b_k = 0 when k k even, thus yielding the Fourier series as stated.

Do you have an example how to graph and compute the sawtooth and square waves? Thanks.

A Former Brilliant Member - 5 years, 1 month ago

Log in to reply

Hi Cedie,

The computation for the square wave can be found in the article fourier series . The computation for the sawtooth wave is a good exercise, given these two!

Matt DeCross - 5 years, 1 month ago

Log in to reply

Thanks for the details

A Former Brilliant Member - 5 years, 1 month ago

How can we say that the function is odd..?

Lakshmi Somanath Kornepati - 1 year, 2 months ago

Log in to reply

f(-x) = -f(x)

Ezra Sitorus - 1 year, 1 month ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...