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