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