p - 2 / | | (cos(x) + 2*sin(x)) dx | / 0
Integral(cos(x) + 2*sin(x), (x, 0, p/2))
Integrate term-by-term:
The integral of a constant times a function is the constant times the integral of the function:
The integral of sine is negative cosine:
So, the result is:
The integral of cosine is sine:
The result is:
Add the constant of integration:
The answer is:
/ | | (cos(x) + 2*sin(x)) dx = C - 2*cos(x) + sin(x) | /
/p\ /p\ 2 - 2*cos|-| + sin|-| \2/ \2/
=
/p\ /p\ 2 - 2*cos|-| + sin|-| \2/ \2/
2 - 2*cos(p/2) + sin(p/2)
Use the examples entering the upper and lower limits of integration.