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