Mister Exam

Other calculators

Integral of (x-4)cosxdx dx

Limits of integration:

from to
v

The graph:

from to

Piecewise:

The solution

You have entered [src]
  n                  
  /                  
 |                   
 |  (x - 4)*cos(x) dx
 |                   
/                    
0                    
$$\int\limits_{0}^{n} \left(x - 4\right) \cos{\left(x \right)}\, dx$$
Integral((x - 4)*cos(x), (x, 0, n))
Detail solution
  1. There are multiple ways to do this integral.

    Method #1

    1. Rewrite the integrand:

    2. Integrate term-by-term:

      1. Use integration by parts:

        Let and let .

        Then .

        To find :

        1. The integral of cosine is sine:

        Now evaluate the sub-integral.

      2. The integral of sine is negative cosine:

      1. The integral of a constant times a function is the constant times the integral of the function:

        1. The integral of cosine is sine:

        So, the result is:

      The result is:

    Method #2

    1. Use integration by parts:

      Let and let .

      Then .

      To find :

      1. The integral of cosine is sine:

      Now evaluate the sub-integral.

    2. The integral of sine is negative cosine:

  2. Add the constant of integration:


The answer is:

The answer (Indefinite) [src]
  /                                                    
 |                                                     
 | (x - 4)*cos(x) dx = C - 4*sin(x) + x*sin(x) + cos(x)
 |                                                     
/                                                      
$$\int \left(x - 4\right) \cos{\left(x \right)}\, dx = C + x \sin{\left(x \right)} - 4 \sin{\left(x \right)} + \cos{\left(x \right)}$$
The answer [src]
-1 - 4*sin(n) + n*sin(n) + cos(n)
$$n \sin{\left(n \right)} - 4 \sin{\left(n \right)} + \cos{\left(n \right)} - 1$$
=
=
-1 - 4*sin(n) + n*sin(n) + cos(n)
$$n \sin{\left(n \right)} - 4 \sin{\left(n \right)} + \cos{\left(n \right)} - 1$$
-1 - 4*sin(n) + n*sin(n) + cos(n)

    Use the examples entering the upper and lower limits of integration.