Integration by Parts: A-level Maths Revision Guide
Learn integration by parts for A-level Maths with the formula, clear worked examples, common mistakes, revision advice and exam questions with answers.

Integration by parts is an A-level integration method used mainly for products of functions, including expressions involving polynomials, exponentials, logarithms and trigonometric functions. It reverses the product rule for differentiation and replaces an awkward integral with one that should be easier to evaluate.
This integration by parts A-level Maths guide explains how the formula is obtained, how to choose uuu and dvdx\frac{dv}{dx}dxdv, and when the method needs to be repeated. It also includes step-by-step worked examples, common mistakes and integration by parts exam questions with answers.
The integration by parts formula
The formula is
∫udvdx dx=uv−∫vdudx dx.\int u\frac{dv}{dx}\,dx=uv-\int v\frac{du}{dx}\,dx.∫udxdvdx=uv−∫vdxdudx.It is often written more compactly as
∫u dv=uv−∫v du.\int u\,dv=uv-\int v\,du.∫udv=uv−∫vdu.Both forms mean the same thing. The first version makes the differentiation and integration operations more explicit, which can be helpful when learning the method.
Where the formula comes from
Start with the product rule:
ddx(uv)=udvdx+vdudx.\frac{d}{dx}(uv)=u\frac{dv}{dx}+v\frac{du}{dx}.dxd(uv)=udxdv+vdxdu.Integrating both sides gives
uv=∫udvdx dx+∫vdudx dx.uv=\int u\frac{dv}{dx}\,dx+\int v\frac{du}{dx}\,dx.uv=∫udxdvdx+∫vdxdudx.Rearranging produces the integration by parts formula:
∫udvdx dx=uv−∫vdudx dx.\int u\frac{dv}{dx}\,dx=uv-\int v\frac{du}{dx}\,dx.∫udxdvdx=uv−∫vdxdudx.This derivation matters because it explains the minus sign. Integration by parts is not an isolated rule to memorise; it is the inverse process of applying the product rule.
What the method is designed to achieve
Integration by parts does not immediately remove an integral. Instead, it transforms the original problem into a product, uvuvuv, and a new integral. The method is useful only when that new integral is simpler or can eventually be related back to the original one.
For a polynomial multiplied by an exponential or trigonometric function, differentiating the polynomial usually reduces its degree. For logarithmic functions, differentiation changes lnx\ln xlnx into the simpler algebraic expression 1x\frac{1}{x}x1. Thinking about this transformation is more reliable than applying the formula without considering what the remaining integral will contain.
When to use integration by parts
Integration by parts is particularly useful when the integrand is a product of two different types of function. Common forms include:
- xexx e^xxex
- xsinxx\sin xxsinx
- x2cosxx^2\cos xx2cosx
- xlnxx\ln xxlnx
- exsinxe^x\sin xexsinx
It is also required for ∫lnx dx\int \ln x\,dx∫lnxdx, even though the integrand does not initially appear to be a product. Write it as
∫1×lnx dx.\int 1\times\ln x\,dx.∫1×lnxdx.Do not assume that every product requires integration by parts. For example, 2x(x2+1)52x(x^2+1)^52x(x2+1)5 is better handled by substitution because 2x2x2x is the derivative of x2+1x^2+1x2+1.
UK A-level specifications commonly include simple applications, repeated integration by parts and the integral of lnx\ln xlnx. Reduction formulae are generally treated separately and are not part of the standard integration by parts requirement in the AQA and Pearson Edexcel specifications.
Comparing integration methods
Before committing to integration by parts, inspect the structure of the integrand.
| Structure of the integrand | Likely method |
|---|---|
| A function and a multiple of its derivative | Substitution |
| A product that simplifies when one factor is differentiated | Integration by parts |
| A rational expression with factorisable denominators | Partial fractions, then integration |
| A standard exponential, power or trigonometric form | Apply the relevant standard integral |
These are guides rather than absolute rules. Some questions require more than one method, such as partial fractions followed by standard integration. In an examination, identifying the structure first prevents unnecessary algebra and makes the intended method easier to recognise.
How to choose uuu and dvdx\frac{dv}{dx}dxdv
A successful choice should make dudx\frac{du}{dx}dxdu simpler while leaving dvdx\frac{dv}{dx}dxdv easy to integrate.
The mnemonic LIATE is sometimes used as a guide:
- Logarithmic functions
- Inverse trigonometric functions
- Algebraic functions
- Trigonometric functions
- Exponential functions
Choose uuu from the function type appearing earliest in the list. The remaining factor becomes dvdx\frac{dv}{dx}dxdv.
For ∫xex dx\int x e^x\,dx∫xexdx, this suggests u=xu=xu=x and dvdx=ex\frac{dv}{dx}=e^xdxdv=ex. For ∫xlnx dx\int x\ln x\,dx∫xlnxdx, it suggests u=lnxu=\ln xu=lnx and dvdx=x\frac{dv}{dx}=xdxdv=x.
LIATE is revision advice, not an official mathematical rule. The real test is whether differentiating uuu simplifies the expression and integrating dvdx\frac{dv}{dx}dxdv is manageable.
A reliable step-by-step method
Use the following process whenever integration by parts is required:
- Identify the two factors in the integrand.
- Choose uuu and dvdx\frac{dv}{dx}dxdv.
- Differentiate uuu to find dudx\frac{du}{dx}dxdu.
- Integrate dvdx\frac{dv}{dx}dxdv to find vvv.
- Substitute into the formula.
- Simplify the remaining integral.
- Repeat the method if necessary.
- Add +C+C+C for an indefinite integral.
- Differentiate the final answer to check it.
A small setup table can reduce errors:
| Chosen part | Result |
|---|---|
| uuu | Differentiate to obtain dudx\frac{du}{dx}dxdu |
| dvdx\frac{dv}{dx}dxdv | Integrate to obtain vvv |
Integration by parts worked examples
Example 1: A polynomial multiplied by an exponential
Find
∫xe2x dx.\int xe^{2x}\,dx.∫xe2xdx.Choose
u=x,dvdx=e2x.u=x,\qquad \frac{dv}{dx}=e^{2x}.u=x,dxdv=e2x.Then
dudx=1,v=12e2x.\frac{du}{dx}=1,\qquad v=\frac{1}{2}e^{2x}.dxdu=1,v=21e2x.Substitute into the formula:
∫xe2x dx=x(12e2x)−∫12e2x dx.\int xe^{2x}\,dx=x\left(\frac{1}{2}e^{2x}\right)-\int \frac{1}{2}e^{2x}\,dx.∫xe2xdx=x(21e2x)−∫21e2xdx.Therefore,
∫xe2x dx=x2e2x−14e2x+C.\int xe^{2x}\,dx=\frac{x}{2}e^{2x}-\frac{1}{4}e^{2x}+C.∫xe2xdx=2xe2x−41e2x+C.This can also be factorised as
e2x4(2x−1)+C.\frac{e^{2x}}{4}(2x-1)+C.4e2x(2x−1)+C.The factor of 12\frac{1}{2}21 in vvv is essential because ∫e2x dx=12e2x\int e^{2x}\,dx=\frac{1}{2}e^{2x}∫e2xdx=21e2x.
Example 2: Integrating lnx\ln xlnx
Find
∫lnx dx.\int \ln x\,dx.∫lnxdx.Insert a factor of 111 and choose
u=lnx,dvdx=1.u=\ln x,\qquad \frac{dv}{dx}=1.u=lnx,dxdv=1.Then
dudx=1x,v=x.\frac{du}{dx}=\frac{1}{x},\qquad v=x.dxdu=x1,v=x.Applying the formula gives
∫lnx dx=xlnx−∫x(1x)dx.\int \ln x\,dx=x\ln x-\int x\left(\frac{1}{x}\right)dx.∫lnxdx=xlnx−∫x(x1)dx.Hence
∫lnx dx=xlnx−x+C.\int \ln x\,dx=x\ln x-x+C.∫lnxdx=xlnx−x+C.For real-valued logarithms, this example assumes x>0x>0x>0.
Example 3: Repeated integration by parts
Find
∫x2sinx dx.\int x^2\sin x\,dx.∫x2sinxdx.First choose
u=x2,dvdx=sinx.u=x^2,\qquad \frac{dv}{dx}=\sin x.u=x2,dxdv=sinx.Therefore,
dudx=2x,v=−cosx.\frac{du}{dx}=2x,\qquad v=-\cos x.dxdu=2x,v=−cosx.Apply the formula:
∫x2sinx dx=−x2cosx+∫2xcosx dx.\int x^2\sin x\,dx=-x^2\cos x+\int 2x\cos x\,dx.∫x2sinxdx=−x2cosx+∫2xcosxdx.The remaining integral still contains a product, so integration by parts is needed again. For ∫2xcosx dx\int 2x\cos x\,dx∫2xcosxdx, take
u=2x,dvdx=cosx.u=2x,\qquad \frac{dv}{dx}=\cos x.u=2x,dxdv=cosx.Then
dudx=2,v=sinx.\frac{du}{dx}=2,\qquad v=\sin x.dxdu=2,v=sinx.It follows that
∫2xcosx dx=2xsinx−∫2sinx dx=2xsinx+2cosx.\int 2x\cos x\,dx=2x\sin x-\int 2\sin x\,dx=2x\sin x+2\cos x.∫2xcosxdx=2xsinx−∫2sinxdx=2xsinx+2cosx.The final answer is
∫x2sinx dx=−x2cosx+2xsinx+2cosx+C.\int x^2\sin x\,dx=-x^2\cos x+2x\sin x+2\cos x+C.∫x2sinxdx=−x2cosx+2xsinx+2cosx+C.When the algebraic factor has degree 222 or more, repeated application is often necessary because each differentiation lowers its degree by one.
Definite integrals by parts
Use the same formula, but apply the limits to the complete antiderivative:
∫abudvdx dx=[uv]ab−∫abvdudx dx.\int_a^b u\frac{dv}{dx}\,dx=\left[uv\right]_a^b-\int_a^b v\frac{du}{dx}\,dx.∫abudxdvdx=[uv]ab−∫abvdxdudx.There is no +C+C+C in a final definite-integral answer because the constants cancel when the limits are applied.
Embedded exam-style question
Evaluate exactly
∫01xe2x dx.\int_0^1 xe^{2x}\,dx.∫01xe2xdx.From Example 1,
∫xe2x dx=x2e2x−14e2x.\int xe^{2x}\,dx=\frac{x}{2}e^{2x}-\frac{1}{4}e^{2x}.∫xe2xdx=2xe2x−41e2x.Apply the limits:
∫01xe2x dx=[x2e2x−14e2x]01.\int_0^1 xe^{2x}\,dx=\left[\frac{x}{2}e^{2x}-\frac{1}{4}e^{2x}\right]_0^1.∫01xe2xdx=[2xe2x−41e2x]01.At x=1x=1x=1, the expression equals 14e2\frac{1}{4}e^241e2. At x=0x=0x=0, it equals −14-\frac{1}{4}−41. Therefore,
∫01xe2x dx=e2+14.\int_0^1 xe^{2x}\,dx=\frac{e^2+1}{4}.∫01xe2xdx=4e2+1.Try 4 more integration by parts exam questions.
Integration by parts exam questions
Attempt these without looking at the answers. Show your choices for uuu, dvdx\frac{dv}{dx}dxdv, dudx\frac{du}{dx}dxdu and vvv, as method marks may be available even if the final expression is incorrect.
- Find ∫xcos(3x) dx\int x\cos(3x)\,dx∫xcos(3x)dx.
- Find ∫x2ex dx\int x^2e^x\,dx∫x2exdx.
- Evaluate exactly ∫1elnx dx\int_1^e \ln x\,dx∫1elnxdx.
- Find ∫exsinx dx\int e^x\sin x\,dx∫exsinxdx.
Answers
- x3sin(3x)+19cos(3x)+C\frac{x}{3}\sin(3x)+\frac{1}{9}\cos(3x)+C3xsin(3x)+91cos(3x)+C
- ex(x2−2x+2)+Ce^x(x^2-2x+2)+Cex(x2−2x+2)+C
- 111
- ex2(sinx−cosx)+C\frac{e^x}{2}(\sin x-\cos x)+C2ex(sinx−cosx)+C
Question 4 requires a cyclic method. After applying integration by parts twice, the original integral reappears on the right-hand side. Move that integral to the left and solve the resulting equation.
Understanding the cyclic method
Let
I=∫exsinx dx.I=\int e^x\sin x\,dx.I=∫exsinxdx.After applying integration by parts twice and simplifying, the result is
I=exsinx−excosx−I.I=e^x\sin x-e^x\cos x-I.I=exsinx−excosx−I.The reappearance of III is useful rather than a sign that the method has failed. Add III to both sides:
2I=ex(sinx−cosx).2I=e^x(\sin x-\cos x).2I=ex(sinx−cosx).Dividing by 222 gives
I=ex2(sinx−cosx)+C.I=\frac{e^x}{2}(\sin x-\cos x)+C.I=2ex(sinx−cosx)+C.Cyclic examples occur because repeated differentiation and integration of sine, cosine and exponential functions return related functions. When the original integral reappears, collect all occurrences of it on one side and solve algebraically. Do not continue applying integration by parts indefinitely.
For further structured teaching and worked solutions, use the MathsGenie integration by parts lesson and practice questions. Students following Cambridge International A Level can use the corresponding CIE integration by parts resource.
Common mistakes
Losing the minus sign
The formula contains
uv−∫vdudx dx.uv-\int v\frac{du}{dx}\,dx.uv−∫vdxdudx.If vvv is already negative, subtracting the new integral can create a positive sign. Write the substitution line before simplifying to make the signs visible.
Integrating exponential or trigonometric functions incorrectly
For example,
∫e3x dx=13e3x+C\int e^{3x}\,dx=\frac{1}{3}e^{3x}+C∫e3xdx=31e3x+Cand
∫sin(2x) dx=−12cos(2x)+C.\int \sin(2x)\,dx=-\frac{1}{2}\cos(2x)+C.∫sin(2x)dx=−21cos(2x)+C.Missing these scale factors leads to an incorrect answer even when the integration by parts structure is sound.
Choosing uuu badly
For ∫xex dx\int xe^x\,dx∫xexdx, choosing u=exu=e^xu=ex leaves another integral involving xexxe^xxex, so no progress is made. Choosing u=xu=xu=x reduces the algebraic factor to 111.
Stopping too early
An expression such as
−x2cosx+∫2xcosx dx-x^2\cos x+\int 2x\cos x\,dx−x2cosx+∫2xcosxdxis not a completed answer. The remaining integral must also be evaluated.
Adding +C+C+C to intermediate lines repeatedly
For an indefinite integral, one constant at the end is sufficient. Multiple arbitrary constants combine into a single constant.
Applying limits to only one term
In a definite integral, substitute each limit into the entire antiderivative. Brackets are useful because they show exactly what the limits apply to.
Exam technique and revision advice
Before using integration by parts, check whether substitution, partial fractions or a standard integral would be more direct. If the question explicitly says use integration by parts, your working must demonstrate that method.
Differentiate your final expression whenever time permits. If differentiating it does not reproduce the original integrand, inspect the minus sign and any scale factors first.
Revise integration by parts alongside differentiation using the product rule. The connection between the two methods makes the formula easier to reconstruct under exam pressure.
Use topic questions before moving to mixed papers. The Edexcel A-level Maths revision page provides topic resources, past papers and mark schemes, while the International A Level integration question set gives broader integration practice.
If algebraic manipulation, indices or trigonometric notation still cause difficulty, repair those gaps before attempting longer calculus questions. The GCSE Maths topics by exam board and tier guide can help identify the relevant Higher-tier foundations.
Conclusion
Integration by parts reverses the product rule and is most useful when differentiating one factor simplifies it. Choose uuu carefully, calculate vvv accurately, retain the minus sign and repeat the process when the remaining integral is still a product.
Strong revision should combine direct skills practice with definite integrals, repeated applications and cyclic examples. Use the MathsGenie integration by parts lesson and practice questions first, then test the method in mixed past papers and check your work against the mark schemes.
Sources and referenced URLs
- https://mathsgenie.co.uk/a-level/maths/edexcel/a-level-pure-mathematics-11-6-integration-by-parts
- https://mathsgenie.co.uk/international-a-level/maths/cie/a-level-pure-mathematics-11-6-integration-by-parts
- https://mathsgenie.co.uk/a-level/maths/edexcel
- https://mathsgenie.co.uk/international-a-level/maths/edexcel/a-level-pure-mathematics-question-set-11-integration
- https://mathsgenie.co.uk/blog/gcse-maths-topics-by-exam-board-and-tier



