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...

2 years ago

Answered by Dennis, an A Level Maths tutor with MyTutor

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


£20 /hr

Madura N.

Degree: Medicine (Other) - Imperial College London University

Subjects offered:Maths, Human Biology+ 5 more

Human Biology
.BMAT (BioMedical Admissions)
-Personal Statements-
-Medical School Preparation-

“I'm starting my 4th year of Medicine at Imperial. I have experience working with students and offer insightful tutorials!”

MyTutor guarantee

£20 /hr

Dan W.

Degree: Economics and Accounting (Bachelors) - Bristol University

Subjects offered:Maths, Economics


“I achieved top grades whilst juggling cricket at a high level. I’ve tutored for Young Einstein Tuition & been a Peer Mentor to those facing personal issues”

£26 /hr

Daniel K.

Degree: Mathematical and Theoretical Physics (Masters) - Oxford, Merton College University

Subjects offered:Maths, Science+ 5 more

Further Mathematics
-Personal Statements-

“Mathematics and Theoretical Physics, University of Oxford. I enjoy sharing my experience and enthusiasm in Maths with those who could do with some help”

About the author

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...”

MyTutor guarantee

|  1 completed tutorial

You may also like...

Other A Level Maths questions

Split the following expression into partial fractions of the form A/(x-3) + B/(4x+2) : (19x-15)/(4x+2)(x-3)

Write tan(3x) in terms of tan(x). Hence show that the roots of t^3 - 3t^2 - 3t + 1 = 0 are tan(pi/12), tan(5pi/12) and tan(3pi/4)

Find the gradient of y=6x^3+2x^2 at (1,1)

Why does the second derivative tell us something about a function?

View A Level Maths tutors

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