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