pi / | | (pi - x)*cos(n*x) | ----------------- dx | 2 | / -pi
/ 2
| x
| -- for n = 0
| 2
|
|/-cos(n*x)
<|---------- for n != 0
|< n
|| // x for n = 0\ // x for n = 0\
|\ 0 otherwise || | || |
/ |----------------------- otherwise pi*|
/pi*sin(pi*n) |------------ for And(n > -oo, n < oo, n != 0) | n < | 2 | pi otherwise \
=
/pi*sin(pi*n) |------------ for And(n > -oo, n < oo, n != 0) | n < | 2 | pi otherwise \
Use the examples entering the upper and lower limits of integration.