Integrate x*cos(x)

As there are 2 x terms in the integral we will use integration by parts. Remember;  ∫u*(dv/dx)dx =  uv -  ∫v*(du/dx)dx (found by integrating the product rule). From xcos(x) we need to decide which x term will be u and which will be dv/dx. The reason the origional questoin is hard to integrate is due to it having 2 x terms, using the equation ∫u*(dv/dx)dx =  uv -  ∫v*(du/dx)dx gives us the integral  ∫v*(du/dx)dx, by picking the u and dv/dx terms correctly we can ensure this integral has only one x term. We therefor want the u term to integrate to a non-x term, so, let u=x and dv/dx = cos(x).

Now we can calculate the du/dx and v terms, firstly du/dx= 1 ( using the general rule u = axb, du/dx = (a*b)xb-1 ). And secondly our v term, found by integrating dv/dx = cos(x), hence v = sin(x) (as we know sin(x) differentiates to cos(x) ). 

Finally we can sub into  ∫u*(dv/dx)dx =  uv -  ∫v*(du/dx)dx to get  ∫xsinxdx = xsin(x) - ∫sin(x)*1 ( ∫sin(x)*1 simplifies to  ∫sin(x) ), completing the integral ∫sin(x) = -cos(x) the equation becomes  ∫xsinxdx= xsin(x) - - cos(x), which simplifies to  ∫xsinxdx = xsin(x) + cos(x).

RW
Answered by Rebecca W. Maths tutor

8813 Views

See similar Maths A Level tutors

Related Maths A Level answers

All answers ▸

A curve has equation y = f(x) and passes through the point (4, 22). Given that f'(x) = 3x^2 - 3x^(1/2) - 7, use integration to find f(x), giving each term in its simplest form


The curve C has the equation y=3x/(9+x^2 ) (a) Find the turning points of the curve C (b) Using the fact that (d^2 y)/(dx^2 )=(6x(x^2-27))/(x^2+9)^3 or otherwise, classify the nature of each turning point of C


The radius of a circular disc is increasing at a constant rate of 0.003cm/s. Find the rate at which the area is increasing when the radius is 20cm.


If y=2x+4x^3+3x^4 and z=(1+x)^2, find dy/dx and dz/dx.


We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

MyTutor is part of the IXL family of brands:

© 2026 by IXL Learning