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

10 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


£20 /hr

Mike W.

Degree: Mathematics (Masters) - University College London University

Subjects offered: Maths, Physics+ 3 more

Further Mathematics
-Personal Statements-

“About me Hi, I'm Mike, I am currently studying maths at UCL in my second year. I have tutored previously whilst in college at GCSE level, and now at university I'm always happy to help with any mathematical aspect of my friends course...”

MyTutor guarantee

£20 /hr

Kyle C.

Degree: Computer Science With Electronics (Bachelors) - Edinburgh University

Subjects offered: Maths, Physics+ 1 more


“Who am I?I am a student pursuing a Computer Science degree at the University of Edinburgh. I enjoy working on theatre lighting and am also a keen fencer which is where I initially started teaching by coaching younger fencers.Sessio...”

£20 /hr

Guy P.

Degree: Mathematics (Masters) - Warwick University

Subjects offered: Maths, Further Mathematics + 2 more

Further Mathematics

“About:Hi. I am a 2nd Year Mathematics student at the University of Warwick. I achieved a comfortable First in Year 1 and have continued this trend into my second year. Even from an early age, I have had a burning passion to engage m...”

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

You may also like...

Other A Level Maths questions

What is the second derivative used for?

How do you find the coordinates of stationary points on a graph?

What qualifications and experience do you have at this level?

Solve the inequality x < 4 - |2x + 1|.

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