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