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