In this guide
← Maths AA guides

Calculus · AA HL

Integration by parts

Integrate products by choosing one factor to differentiate and another to integrate, including repeated and improper cases.

Course focus: AA HL: this guide develops additional higher-level content; it is not required for AA SL.

Before you start: Product rule, basic integration and limits.

Start with a small example

Build it from the beginning

HL content

The product rule describes how two changing factors contribute to a derivative. Rearranging it gives a way to integrate a product when one factor becomes simpler after differentiation. Write down the choices explicitly so the remaining integral is easier, not harder.

A first walkthrough

Find \(\int xe^x\,dx\).

  1. Choose \(u=x\) and \(dv=e^x dx\), so \(du=dx\) and \(v=e^x\).
  2. Use \(\int u\,dv=uv-\int v\,du\).
  3. The result is \(xe^x-e^x+C\). Differentiation gives \(e^x+xe^x-e^x=xe^x\).
Try the practice ladder after learning the methods ↓

The foundations behind the method

Understand what the symbols mean

Integration by parts is the product rule read backwards. It is useful when an integrand is a product whose one factor becomes simpler after differentiation and whose other factor can be integrated. The choice is strategic; merely labelling the left-hand factor u does not ensure progress.

How the ideas connect

Rearrange \((uv)'=u'v+uv'\) and integrate to obtain \(\int u\,dv=uv-\int v\,du\). Some products require repeated applications; others produce the original integral again, which can then be isolated algebraically. For definite integrals, evaluate the boundary term and retain the same bounds on the remaining integral.

01

Start with the idea

Build your understanding

Integration by parts reverses the product rule. It transfers a derivative from one factor to another while introducing an integral that should be simpler. The choice of factors is strategic, not an arbitrary label assignment.

Choose u to simplify

A polynomial often simplifies when differentiated; a logarithm can simplify to a reciprocal. The other factor must have an accessible antiderivative.

Cyclic integrals

Some choices bring back the original integral. Treat it as an unknown and solve the resulting algebraic equation rather than repeating indefinitely.

Compare the approaches

Choose by the information in the question, rather than the formula you recognise first.

One-step parts

When it helpsUse when the remaining integral becomes easier immediately.

Check before using itInclude the derivative and antiderivative of the selected factors.

Repeated or cyclic parts

When it helpsUse when simplification takes more than one step.

Check before using itRetain signs and identify the returned original integral.

Your method plan

  1. Choose u and dv with a simpler remainder in mind.
  2. Apply the product-rule rearrangement explicitly.
  3. Integrate the remainder or solve the cyclic equation, then differentiate to check.
02

Learn the methods

Learn step by step

1. Reverse the product rule

The product derivative \((uv)'=u'v+uv'\) rearranges into integration by parts. Choose u to become simpler under differentiation, and choose dv so that it can be integrated. Writing u, du, dv and v explicitly helps avoid mixing them.

Integration by parts

Why this formula works

Integrate the product-rule identity \((uv)'=u'v+uv'\) and rearrange. Moving the u′v integral to the other side explains the minus sign; choosing u to simplify under differentiation makes the new integral useful.

The formula

\(\int u\,dv=uv-\int v\,du\).

Quick example

For \(\int xe^x\,dx\), take \(u=x\) and \(dv=e^x\,dx\). Then \(\int xe^x\,dx=xe^x-\int e^x\,dx=e^x(x-1)+C\).

2. Choice matters

A polynomial times an exponential or trig function often becomes simpler if the polynomial is u. A logarithm can be treated as ln x times 1, taking \(dv=dx\). A mnemonic can suggest a choice, but the real test is whether the remaining integral is easier.

Worked example: Polynomial times exponential

Find ∫x\(e^x\) dx.

  1. Take \(u=x\), \(du=dx\), \(dv=e^x\,dx\) and \(v=e^x\).
  2. Parts gives x\(e^x\)−∫\(e^x\)dx.
  3. The result is \(e^x\)\((x-1)+C\). Differentiating confirms x\(e^x\).

3. Repeated and cyclic cases

A higher-degree polynomial may need several repetitions. Integrating an exponential times sine or cosine can bring the original integral back; then solve the resulting linear equation for that integral. Keep signs and constants consistent through both rounds.

4. Definite integration

Use the boundary term [uv]ₐᵇ and the remaining definite integral. You can also find an indefinite antiderivative first, then substitute the boundaries. Do not drop a lower-end boundary term just because the upper term looks simple.

Definite form

Why this formula works

The same product-rule argument over fixed endpoints uses the antiderivative difference [uv]ₐᵇ. Both endpoints contribute to the boundary term, and the remaining integral keeps the original limits.

The formula

\(\int_a^bu v' dx=[uv]_a^b-\int_a^bu'v dx\).

Quick example

\(\int_0^1xe^xdx=[xe^x]_0^1-\int_0^1e^xdx=e-(e-1)=1\).

Worked example: A logarithm

Evaluate ∫₁ᵉlnx dx.

  1. Use \(u=\ln x\), \(du=dx/x\), \(dv=dx\), \(v=x\).
  2. An antiderivative is xlnx−x.
  3. At e the value is 0; at 1 it is −1. Subtracting gives 1.

5. Improper integrals

If an endpoint is infinite or an integrand has a singularity, replace that endpoint by a finite variable and take a limit. State whether the limit is finite. Apparent cancellation of divergent pieces is not a valid convergence argument without a properly defined limiting expression.

Improper upper endpoint

Why this formula works

Infinity is not an input at which an antiderivative can be directly evaluated. Integrating to a finite R first gives a well-defined number; taking its limit decides whether the unbounded accumulation converges.

The formula

\(\int_a^\infty f(x)dx=\lim_{R\to\infty}\int_a^Rf(x)dx\), when the limit exists finitely.

Quick example

\(\int_0^Re^{-x}dx=1-e^{-R}\). Taking R→∞ gives 1, so the improper integral converges.

Worked example: An improper integral

Evaluate \(\int_0^\infty xe^{-x}dx\).

  1. Use parts to obtain the antiderivative \(-(x+1)e^{-x}\).
  2. First integrate to a finite R: \(\int_0^Rxe^{-x}dx=1-(R+1)e^{-R}\).
  3. As R tends to infinity, \((R+1)e^{-R}\to0\), because exponential decay dominates linear growth. The integral converges to 1.
Quick formula reference

For revision once you understand the methods above. Check the conditions before using a formula.

Integration by parts

\(\int u\,dv=uv-\int v\,du\).

Return to the explanation →

Definite form

\(\int_a^bu v' dx=[uv]_a^b-\int_a^bu'v dx\).

Return to the explanation →

Improper upper endpoint

\(\int_a^\infty f(x)dx=\lim_{R\to\infty}\int_a^Rf(x)dx\), when the limit exists finitely.

Return to the explanation →

Learn to diagnose an error

Spot the mistake

The statement below is incorrect. Identify the missing condition or reasoning before opening the explanation.

Incorrect reasoning

For \(\int xe^x\,dx\), choose u=e^x because exponentials look harder.

Explain and repair the mistake

Choosing u=x makes its derivative 1, simplifying the remaining integral. With \(dv=e^x dx\), the result is \(xe^x-e^x+C\). Differentiate it to verify both terms.

03

Connect and apply

Put the ideas together

A more demanding application of this guide’s methods. This is a learning stage; any additional HL content is labelled separately.

Worked application

A logarithm is a product with one

Find \(\int\ln x\,dx\) for \(x>0\).

  1. Write the integrand as \((\ln x)\cdot1\). Choose \(u=\ln x\), \(dv=dx\), giving \(du=dx/x\) and \(v=x\).
  2. Parts gives \(x\ln x-\int x(1/x)dx=x\ln x-x+C\).
  3. Differentiate the result: \(\ln x+1-1=\ln x\). This checks the cancellation and the sign.
  4. The real logarithm domain remains \(x>0\). A formula involving \(\ln|x|\) concerns a differently stated integrand on other intervals.
Pause and explain

Why would choosing u=1 be unhelpful?

Check your reasoning

Its derivative vanishes, but dv would be the logarithm itself, whose antiderivative is the unknown you are trying to find. That makes the method circular rather than simpler.

Common mistakes and how to avoid them

  • The subtraction in the parts formula is easy to lose.
  • dv must include the differential and v must be its antiderivative.
  • Infinite endpoints require limits, not direct substitution.
04

Practise independently

Build confidence, then apply it

Try each question before opening its hint or solution. If a method is new, return to the walkthrough, then try again. These learning stages describe the practice sequence; additional HL content is labelled separately.

  1. 1

    Build confidence

    HL extension

    Find \(\int2xe^x\,dx\).

    Need a starting point?

    A constant multiple can stay outside.

    Show the worked solution
    1. It is twice the worked integral.
    2. The result is \(2xe^x-2e^x+C\).
  2. 2

    Apply and explain

    HL extension

    Evaluate \(\int_0^1 xe^x\,dx\).

    Need a starting point?

    Apply the bounds to the complete antiderivative.

    Show the worked solution
    1. Use \(F(x)=(x-1)e^x\).
    2. Then \(F(1)-F(0)=0-(-1)=1\).
  3. 3

    Check your understanding

    Why can \(\int\ln x\,dx\) use integration by parts?

    Show the worked solution

    Write it as \(\int 1\cdot\ln x\,dx\). Taking u=ln x and dv=dx gives \(x\ln x-x+C\) on x>0.

  4. 4

    Use the method

    Find ∫x cosx dx.

    Show the worked solution

    Choose \(u=x\) and \(dv=\cos x\) dx. The result is x \(\sin x+\cos x+C\); differentiating gives x cosx.

Finished? Use the linked question bank below to practise selecting the method without a guide telling you which rule to use.

Using these methods in exam questions

AA Paper 1

No calculator

Practise the algebra and exact values by hand. Keep fractions, surds and multiples of π exact where required. Show the steps that justify the result.

AA Paper 2

GDC required

Use graphing, numerical solving or statistical tools when appropriate. Write the setup before giving the output, and keep extra precision until the final answer.

For this topic: Distinguish a function value from a derivative value. For a tangent give both the point and slope; for an integral show the integrand and limits, then interpret the sign and units.

HL only · GDC required

Paper 3: build a connected argument

Both AA HL and AI HL Paper 3 contain two extended problem-solving questions. A question develops a theme, so keep useful earlier results, test small cases and explain any proposed general rule. A calculator pattern can suggest a result; your mathematical reasoning must support it.

  1. Identify what the first part establishes and record the conditions under which it holds.
  2. When a later part introduces a new definition or model, connect it to methods you already know rather than assuming a new formula must have been memorised.
  3. Check the conclusion against an earlier numerical case and explain its meaning or limitation.

For the first-assessment-2021 courses. IB assessment reference ↗

Find a specific method or formula

Now practise the method

If you opened this guide from a question, return to that tab and try the method without looking at the example. Your answer stays in the question tab.

Practise this subtopic →

Want a broader practice session? Explore IB Maths AA HL practice questions →Try free IB Maths exam-style questions and worked solutions →

Original Arc Practice teaching notes for Maths AA. Core and HL sections are distinguished above. These notes follow the first-assessment-2021 course and are not an official IB publication or a complete syllabus checklist. IB course reference. Report a correction.