Find the Fourier series of the triangle wave which is defined by
f ( x ) = − 2 ∣ x − 0 . 5 ∣ + 1
for − 0 . 5 ≤ x ≤ 1 . 5 and is periodic outside this region.
Hint: Try plotting the given function first.
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.
Do you have an example how to graph and compute the sawtooth and square waves? Thanks.
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!
How can we say that the function is odd..?
Problem Loading...
Note Loading...
Set Loading...
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 = T 2 ∫ 0 T f ( x ) sin ( T 2 π k x ) d x .
It helps to break up the above function into two functions and two integrals, plugging in T = 2 :
b k = ∫ − . 5 . 5 2 x sin ( π k x ) d x + ∫ . 5 1 . 5 ( 2 − 2 x ) sin ( π k x ) d x .
Evaluating the first and second using integration by parts:
∫ − . 5 . 5 2 x sin ( π k x ) d x = − π k 2 x cos ( π k x ) ∣ ∣ − 1 / 2 1 / 2 + π k 2 ∫ − . 5 . 5 cos ( π k x ) d x = − π k 2 x cos ( π k x ) ∣ ∣ − 1 / 2 1 / 2 + π 2 k 2 2 sin ( π k x ) ∣ ∣ − 1 / 2 1 / 2
∫ . 5 1 . 5 ( 2 − 2 x ) sin ( π k x ) d x = π k − ( 2 − 2 x ) cos ( π k x ) ∣ ∣ 1 / 2 3 / 2 − π k 2 ∫ . 5 1 . 5 cos ( π k x ) d x = π k − ( 2 − 2 x ) cos ( π k x ) ∣ ∣ 1 / 2 3 / 2 − π 2 k 2 2 sin ( π k x ) ∣ ∣ 1 / 2 3 / 2
Combining all expressions and checking when the integer multiples of π / 2 give − 1 , 1 , or 0 gives the result (only the second term from each integral ends up contributing):
b k = k 2 π 2 8 ( − 1 ) ( k − 1 ) / 2 , k odd ,
and b k = 0 when k even, thus yielding the Fourier series as stated.