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

1 year 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

Georgiana P.

Degree: Mathematics (Bachelors) - Bristol University

Subjects offered: Maths


“I am a Maths student at the University of Bristol and hope to share my love of maths with you. I believe that Maths is learnt in 3 steps:    1) I will explain and we will discuss the main principles of what we are working on, assis...”

£20 /hr

Zhen X.

Degree: BSc Mathematics and Economics (Bachelors) - LSE University

Subjects offered: Maths, Mandarin+ 2 more

Further Mathematics

“About Me: I am a first year student at the London School of Economics studying BSc.Mathematics and Economics. I have always been interested in Mathematics and its application towards Economics. I am very patient and friendly. I have be...”

MyTutor guarantee

£20 /hr

Harry R.

Degree: Mathematics (Bachelors) - Bristol University

Subjects offered: Maths, Physics+ 2 more


“Hello, My name is Harry Read and I am a second year mathematics student at the University of Bristol. Prior to joining Bristol University, I studied maths, physics, chemistry and economics at A Level and achieved A*AAA respectively. I ...”

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

Differentiate y = (3x − 2)^4

The quadratic equation 2x^2 + 6x + 7 = 0 has roots A and B. Write down the value of A + B and the value of AB

Differentiate y = 2x^3 + 6x^2 + 4x + 3 with respect to x.

How do I differentiate a quadratic to the power n?

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