12.5 NON-PERIODIC FUNCTIONS
− 220
L
xf(x)=x^2Figure 12.5 f(x)=x^2 ,0<x≤2, with the range extended to give periodicity.the range, all the coefficientsbrwill be zero. Now we apply (12.5) and (12.6) withL=4
to determine the remaining coefficients:
ar=2
4
∫ 2
− 2x^2 cos(
2 πrx
4)
dx=4
4
∫ 2
0x^2 cos(πrx2)
dx,where the second equality holds because the function is even inx. Thus
ar=[
2
πrx^2 sin(πrx2)]^2
0−
4
πr∫ 2
0xsin(πrx2)
dx=
8
π^2 r^2[
xcos(πrx2)] 2
0−
8
π^2 r^2∫ 2
0cos(πrx2)
dx=
16
π^2 r^2cosπr=
16
π^2 r^2(−1)r.Since this expression forarhasr^2 in its denominator, to evaluatea 0 we must return to the
original definition,
ar=2
4
∫ 2
− 2f(x)cos(πrx2)
dx.From this we obtain
a 0 =2
4
∫ 2
− 2x^2 dx=4
4
∫ 2
0x^2 dx=8
3
.
The final expression forf(x)isthen
x^2 =4
3
+16
∑∞
r=1(−1)r
π^2 r^2cos(πrx2)
for 0<x≤ 2 .We note that in the above example we could have extended the range so asto make the function odd. In other words we could have setf(x)=−f(−x)and
then madef(x) periodic in such a way thatf(x+4) =f(x). In this case the
resulting Fourier series would be a series of just sine terms. However, although
this will faithfully represent the function inside the required range, it does not