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