How to integrate by parts

Sometimes while integrating, we may come across an expression that is not a polynomial, and thus we cannot use the convenient power rule to integrate. Consider the function y=xcos(x). It is not immediately clear how we should start we this one, however upon further inspection, we may introduce the technique of Integrating by Parts. Essentially we split the function into two parts, say u and v, and then employ a formula which allows us to integrate them together:

∫u·dv = u·v − ∫v·du

Applying this to our function, we obtain

∫x·cos(x) dx = u·v − ∫v·du

Here we note that integrating cos(x) is a lot simpler than integrating x, and differentiating x is also simpler than differentiating cos(x), so it would make sense to set

u = x and dv = cos(x)

This in turn gives us

du = 1 and v = sin(x)

Thus plugging these values back into our original formula, we get

∫x·cos(x)= x·sin(x) - ∫sin(x)·1

So now, all we need to do is integrate sin(x), which is definitely easier than what we started with. Thus, the end product gives us 

∫x·cos(x)= x·sin(x) + cos(x) + C

where C of course is the constant of integration.

Dennis L. IB Maths tutor, A Level Maths tutor, GCSE Maths tutor, GCSE...

8 months ago

Answered by Dennis, an A Level Maths tutor with MyTutor

Still stuck? Get one-to-one help from a personally interviewed subject specialist


Hayden M. A Level Further Mathematics  tutor, GCSE Maths tutor, A Lev...
View profile
£22 /hr

Hayden M.

Degree: Physics (Masters) - Warwick University

Subjects offered: Maths, Science+ 4 more

Further Mathematics

“My name is Hayden. I am a 2nd year Physics student at The University of Warwick. I get excited aboutall things science and I hope that I can help you not only learn your material but alsounderstand why it is a useful thing to know.A...”

David M. A Level Maths tutor, GCSE Maths tutor, A Level Further Mathe...
View profile
£20 /hr

David M.

Degree: Mathematics (Bachelors) - Warwick University

Subjects offered: Maths, Further Mathematics

Further Mathematics

“Me: I am a second year maths student at Warwick University. I have always loved maths and very much enjoy finding solutions for problems and also alternative ways to approach them.  I am a calm individual who has helped a number of s...”

MyTutor guarantee

Seb G. 11 Plus Maths tutor, 13 plus  Maths tutor, A Level Maths tutor...
View profile
£20 /hr

Seb G.

Degree: Mathematics (Masters) - Bath University

Subjects offered: Maths


“Me: I'm a second year maths student at the University of Bath. I fell in love with maths after a rocky start with the subject, so believe that I can help people regardless of whether they like maths or not.  I've been tutoring maths l...”

MyTutor guarantee

About the author

Dennis L. IB Maths tutor, A Level Maths tutor, GCSE Maths tutor, GCSE...
View profile

Dennis L.

Currently unavailable: for regular students

Degree: Mathematics (Bachelors) - Edinburgh University

Subjects offered: Maths, Physics+ 1 more


“Hi!I'm currently an undergraduate student studying Mathematics at the University of Edinburgh. I have always found mathematics to be the most interesting and thought-provoking, which is why I have chosen to study it at university and...”

You may also like...

Other A Level Maths questions

What is a parametric equation?

Given that y = 5x^2 - 4/(x^3), x not equal to 0, find dy/dx.

What are the set of values for x that satisfy the below equation?

Explain briefly the Normal Distribution

View A Level Maths tutors


We use cookies to improve our service. By continuing to use this website, we'll assume that you're OK with this. Dismiss