n / | | (x - 4)*cos(x) dx | / 0
Integral((x - 4)*cos(x), (x, 0, n))
There are multiple ways to do this integral.
Rewrite the integrand:
Integrate term-by-term:
Use integration by parts:
Let and let .
Then .
To find :
The integral of cosine is sine:
Now evaluate the sub-integral.
The integral of sine is negative cosine:
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:
The result is:
Use integration by parts:
Let and let .
Then .
To find :
The integral of cosine is sine:
Now evaluate the sub-integral.
The integral of sine is negative cosine:
Add the constant of integration:
The answer is:
/ | | (x - 4)*cos(x) dx = C - 4*sin(x) + x*sin(x) + cos(x) | /
-1 - 4*sin(n) + n*sin(n) + cos(n)
=
-1 - 4*sin(n) + n*sin(n) + cos(n)
-1 - 4*sin(n) + n*sin(n) + cos(n)
Use the examples entering the upper and lower limits of integration.