How do you integrate by parts?

To integrate the product of two functions - say f(x) = xsinx, the product of g(x) = x and h(x) = sin(x) - the we use integration by parts. 

Since integration is the inverse of differentiation, we'll appeal to the Product Rule for differentiation to find a rule for integration. The Product Rule says that (fg)' = f'g + g'f. Rearranging giives:

f'g = (fg)' - g'f.

Integrating we have:

Integral(f'g) = Integral((fg)') - Integral(g'f), or:

Integral(f'g) = fg - Integral(g'f).

This is integration by parts. We designate one of the functions to be f' and one to be g. You can see on the far right we have another integral! For the method to be of use, we need to make the new integral simpler (or at least no more complicated) than the one we began with. So, we want g'f to be simpler then f'g: in other words, when we assign functions f' and g we want g to be the one that gets simpler when differentiated. Let's try an example: let's try and integrate xsinx dx. First, we will choose g to equal x, since x becomes 1 under differentiation, but sinx goes to cosx.

I = Integral(xsinx) = xIntegral(sinx) - Integral(x'Integral(sinx))

I = -xcosx - Integral(-cosx)

I = sinx - xcosx +C

So as long as we choose f' and g with some forethought, it's easy enough to integrate products of functions. Note: Ususally we denote the rule with f' = dv and g = du, so 

Integral u dv  = uv - Integral v du.

This is just a fancy way of stating what we've already established.

Patrick K. A Level Maths tutor, Mentoring Maths tutor, GCSE Maths tutor

11 months ago

Answered by Patrick, 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

Michael W.

Degree: Aerospace Engineering (Masters) - Bristol University

Subjects offered: Maths, Science+ 2 more


“I am a fourth year aerospace engineering student at the University of Bristol. I have a passion for science and mathematics as it can be applied to almost everything and enables us to solve challenging problems! I hope to share my kno...”

MyTutor guarantee

£22 /hr

Alex B.

Degree: Physics (Masters) - Durham University

Subjects offered: Maths, Physics


“About me: I’m Alex and I have just completed my first year studying physics at Durham University, with a first. I have a passion for mathematics and how it can be applied to solve problems in physics. Throughout my A levels, other stu...”

About the author

Patrick K.

Currently unavailable: for new students

Degree: Mathematics (Masters) - Edinburgh University

Subjects offered: Maths


“I am a student of mathematics at the University of Edinburgh. I'm passionate about my subject and want to help you discovera love for maths too!In my sessions we'll use extensive examples to explore the benefits and drawbacks of diff...”

You may also like...

Other A Level Maths questions

How do you solve the integral of ln(x)

How do you rationalise the denominator?

How does one find the inverse of a non-singular 3x3 matrix A?

How to prove that (from i=0 to n)Σi^2= (n/6)(n+1)(2n+1), by induction.

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