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