pi / | | / /x\ \ | |cos|-| - x + pi| dx | \ \2/ / | / 0
Integral(cos(x/2) - x + pi, (x, 0, pi))
Integrate term-by-term:
Integrate term-by-term:
The integral of a constant times a function is the constant times the integral of the function:
The integral of is when :
So, the result is:
Let .
Then let and substitute :
The integral of a constant times a function is the constant times the integral of the function:
The integral of cosine is sine:
So, the result is:
Now substitute back in:
The result is:
The integral of a constant is the constant times the variable of integration:
The result is:
Now simplify:
Add the constant of integration:
The answer is:
/ | 2 | / /x\ \ /x\ x | |cos|-| - x + pi| dx = C + 2*sin|-| - -- + pi*x | \ \2/ / \2/ 2 | /
2 pi 2 + --- 2
=
2 pi 2 + --- 2
2 + pi^2/2
Use the examples entering the upper and lower limits of integration.