Resources For Teachers For Tutors For Students & Parents Pricing
Year 12 Specialist (Unit 3 & 4) Integration techniques

Integration by parts

20 practice questions 0 video lessons Theory + worked examples

Master integration by parts for Year 12 Specialist Mathematics in Queensland (QCAA). This is the technique that reverses the product rule: when an integrand is a product such as \(x e^{x}\), \(x\sin x\) or \(x\ln x\), the formula \(\int u\,dv = uv-\int v\,du\) trades it for an easier integral.

You will learn to choose \(u\) and \(dv\) with the LIATE guide, apply the formula step by step, and handle integrals that need parts more than once or that recur — a key integration technique for areas, volumes and differential equations later in the course.

Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

Integration by parts reverses the product rule and is a core technique of Year 12 Specialist Mathematics (QCAA, Queensland). When an integrand is a product — such as \(x e^{x}\), \(x\sin x\) or \(x\ln x\) — the formula \(\int u\,dv = uv-\int v\,du\) trades it for an easier integral. This page shows how to choose \(u\) and \(dv\) with the LIATE guide, apply the formula, and handle repeated and recurring cases.

Integration by parts is the reverse of the product rule for differentiation. It is used to integrate a product of two functions where ordinary rules and substitution do not apply, for example \(x e^{x}\), \(x\sin x\), \(\ln x\) or \(\arctan x\).

You split the integrand into two parts: a factor \(u\) that you will differentiate, and a factor \(dv\) that you will integrate. From these, \(du=u'\,dx\) and \(v=\int dv\). The formula \(\int u\,dv = uv-\int v\,du\) then swaps the original integral for the usually simpler \(\int v\,du\).

The choice of \(u\) is guided by LIATELogarithmic, Inverse trig, Algebraic, Trigonometric, Exponential. Whichever type comes earlier in this list is chosen as \(u\), because differentiating it tends to simplify the problem; the other factor becomes \(dv\).

Some integrals need parts applied more than once (for example \(x^{2}e^{x}\)), and a few — such as \(e^{x}\cos x\) — return to the original integral, so you solve for it algebraically. For a definite integral, apply the same formula and evaluate \(\big[uv\big]_a^b\) at the limits.

By-parts bookkeeping table for the integral of x times e to the x A two by two table. Top row: u = x and dv = e to the x dx. Bottom row: du = dx and v = e to the x. Below it the by-parts formula gives x e to the x minus the integral of e to the x dx. u = x dv = eₓ dx du = dx v = eₓ ∫u dv = uv − ∫v du = x eₓ − ∫eₓ dx
By-parts bookkeeping for \(\int x e^{x}\,dx\): choose \(u=x\), \(dv=e^{x}\,dx\); then \(du=dx\), \(v=e^{x}\), and apply \(uv-\int v\,du\).
The LIATE ladder for choosing u Five stacked bands in priority order: Logarithmic, Inverse trig, Algebraic, Trigonometric, Exponential. Whichever type appears earlier in this list is chosen as u; the other becomes dv. L Logarithmic e.g. ln x I Inverse trig e.g. arctan x A Algebraic e.g. x, x² T Trigonometric e.g. sin x, cos x E Exponential e.g. eˣ earlier = u
The LIATE ladder: the factor whose type appears earlier in the list is chosen as \(u\); the other becomes \(dv\).

Integration by parts, from the product rule \((uv)'=u'v+uv'\) rearranged and integrated:

\[ \int u\,dv = uv-\int v\,du \]
udv=uvvdu

Written with derivatives, exactly as the QCAA syllabus states it:

\[ \int u\,\dfrac{dv}{dx}\,dx = uv-\int v\,\dfrac{du}{dx}\,dx \]
udvdxdx=uvvdudxdx

For a definite integral the boundary term is evaluated at the limits:

\[ \int_a^b u\,dv = \big[uv\big]_a^b-\int_a^b v\,du \]
abudv=[uv]ababvdu
Choose \(u\) by LIATE. Take \(u\) as the factor whose type comes first in Log, Inverse trig, Algebraic, Trig, Exponential; the rest is \(dv\). A good choice makes \(\int v\,du\) simpler than what you started with.

How to integrate by parts

  1. Choose \(u\) and \(dv\): use LIATE to pick \(u\) (the factor that gets simpler when differentiated); everything else, including \(dx\), is \(dv\).
  2. Differentiate and integrate: find \(du=u'\,dx\) and \(v=\int dv\) (no \(+c\) needed for \(v\) here).
  3. Apply the formula: substitute into \(\int u\,dv = uv-\int v\,du\).
  4. Finish the new integral: evaluate \(\int v\,du\) — if it is still a product, apply parts again; if the original integral reappears, solve for it. Add \(+c\), or evaluate the limits for a definite integral.
Example 1 — Algebraic × exponential
Find \(\displaystyle\int x e^{3x}\,dx\).
Solution

LIATE: \(x\) is Algebraic and \(e^{3x}\) is Exponential, so \(u=x\), \(dv=e^{3x}\,dx\):

\(u\)\(=\)\(x\)
\(dv\)\(=\)\(e^{3x}\,dx\)
\(du\)\(=\)\(dx\)
\(v\)\(=\)\(\dfrac{1}{3}e^{3x}\)

Apply \(\int u\,dv = uv-\int v\,du\), then integrate what remains:

\(\int x e^{3x}\,dx\)\(=\)\(\dfrac{1}{3}x e^{3x}-\int \dfrac{1}{3}e^{3x}\,dx\)
\(=\)\(\dfrac{1}{3}x e^{3x}-\dfrac{1}{9}e^{3x}+c\)

\(\displaystyle\int x e^{3x}\,dx=\dfrac{1}{9}e^{3x}(3x-1)+c\).

Example 2 — Algebraic × trig
Find \(\displaystyle\int x\cos 2x\,dx\).
Solution

LIATE picks the Algebraic factor as \(u\); the trig factor is \(dv\):

\(u\)\(=\)\(x\)
\(dv\)\(=\)\(\cos 2x\,dx\)
\(du\)\(=\)\(dx\)
\(v\)\(=\)\(\dfrac{1}{2}\sin 2x\)

Apply the by-parts formula, then integrate the remaining term:

\(\int x\cos 2x\,dx\)\(=\)\(\dfrac{1}{2}x\sin 2x-\int \dfrac{1}{2}\sin 2x\,dx\)
\(=\)\(\dfrac{1}{2}x\sin 2x+\dfrac{1}{4}\cos 2x+c\)

\(\displaystyle\int x\cos 2x\,dx=\dfrac{1}{2}x\sin 2x+\dfrac{1}{4}\cos 2x+c\).

Example 3 — Logarithm first (\(u=\ln x\))
Find \(\displaystyle\int x^{3}\ln x\,dx\).
Solution

LIATE puts Logarithmic before Algebraic, so \(u=\ln x\), \(dv=x^{3}\,dx\):

\(u\)\(=\)\(\ln x\)
\(dv\)\(=\)\(x^{3}\,dx\)
\(du\)\(=\)\(\dfrac{1}{x}\,dx\)
\(v\)\(=\)\(\dfrac{x^{4}}{4}\)

Apply the formula; the \(\tfrac{1}{x}\) cancels a power in the new integral:

\(\int x^{3}\ln x\,dx\)\(=\)\(\dfrac{x^{4}}{4}\ln x-\int \dfrac{x^{4}}{4}\cdot\dfrac{1}{x}\,dx\)
\(=\)\(\dfrac{x^{4}}{4}\ln x-\int \dfrac{x^{3}}{4}\,dx\)
\(=\)\(\dfrac{x^{4}}{4}\ln x-\dfrac{x^{4}}{16}+c\)

\(\displaystyle\int x^{3}\ln x\,dx=\dfrac{x^{4}}{4}\ln x-\dfrac{x^{4}}{16}+c\).

Example 4 — Parts applied twice
Find \(\displaystyle\int x^{2}\cos x\,dx\).
Solution

Take \(u=x^{2}\), \(dv=\cos x\,dx\); one application leaves a product still:

\(u\)\(=\)\(x^{2}\)
\(dv\)\(=\)\(\cos x\,dx\)
\(du\)\(=\)\(2x\,dx\)
\(v\)\(=\)\(\sin x\)

Apply parts; then reuse \(\int x\sin x\,dx=-x\cos x+\sin x\):

\(\int x^{2}\cos x\,dx\)\(=\)\(x^{2}\sin x-\int 2x\sin x\,dx\)
\(=\)\(x^{2}\sin x-2(-x\cos x+\sin x)\)
\(=\)\(x^{2}\sin x+2x\cos x-2\sin x+c\)

\(\displaystyle\int x^{2}\cos x\,dx=x^{2}\sin x+2x\cos x-2\sin x+c\).

Common pitfalls

Choosing \(u\) the wrong way round. If \(\int v\,du\) comes out harder than the original, you have swapped \(u\) and \(dv\). Let LIATE decide: the earlier type in Log–Inverse–Algebraic–Trig–Exp is \(u\).
Sign slips with trig. Integrating \(dv=\sin x\,dx\) gives \(v=-\cos x\); the minus sign then flows through \(uv\) and \(\int v\,du\). Track every sign.
Stopping at \(uv\). The answer is \(uv-\int v\,du\), not just \(uv\). You must still integrate the new \(\int v\,du\) term before finishing.
Looping forever on the recurring case. For \(\int e^{x}\cos x\,dx\) the original integral \(I\) reappears after two applications. Do not keep going — collect the \(I\) terms and solve \(2I=\dots\) algebraically.

Frequently asked questions

What is integration by parts?

It is the integration rule that reverses the product rule: \(\int u\,dv = uv-\int v\,du\). It lets you integrate a product by differentiating one factor (\(u\)) and integrating the other (\(dv\)).

How do I choose \(u\) and \(dv\)?

Use the LIATE guide: pick \(u\) as the factor whose type comes first in Logarithmic, Inverse trig, Algebraic, Trigonometric, Exponential. The remaining factor, together with \(dx\), is \(dv\). A good choice makes \(\int v\,du\) simpler.

Why does \(\int \ln x\,dx\) need integration by parts?

There is no direct rule for \(\int\ln x\,dx\), so write it as a product with \(dv=dx\). Then \(u=\ln x\), \(v=x\), and parts gives \(x\ln x-\int 1\,dx = x\ln x-x+c\).

When do you apply integration by parts more than once?

When the new integral \(\int v\,du\) is still a product, such as after the first step of \(\int x^{2}e^{x}\,dx\). Apply parts again to reduce the power until an ordinary integral remains.

What is the recurring or \(\text{loop}\) case?

For integrals like \(\int e^{x}\cos x\,dx\), two applications of parts bring back the original integral \(I\). Instead of looping, collect the \(I\) terms and solve algebraically, giving \(I=\tfrac{1}{2}e^{x}(\sin x+\cos x)+c\).

How do you do a definite integral by parts?

Use \(\int_a^b u\,dv=\big[uv\big]_a^b-\int_a^b v\,du\): evaluate the \(uv\) boundary term at the limits, then subtract the remaining integral evaluated over the same limits.