Integration by parts: formula, choices and worked examples
Integration by parts reverses the product rule for differentiation. It is mainly used when an integrand is a product and differentiating one factor makes it simpler.
The formula is
It is often written more compactly as
The aim is not merely to apply the formula. It is to choose and so that the new integral is easier than the original one.
Before you begin
Section titled “Before you begin”You should be able to:
- differentiate products using the product rule
- differentiate and integrate powers, exponentials and trigonometric functions
- differentiate and recognise that
- evaluate definite integrals
- distinguish integration by parts from integration by substitution
Where the formula comes from
Section titled “Where the formula comes from”For functions and , the product rule says
Integrate every term with respect to :
Rearranging gives
This derivation explains the minus sign. It also explains why one factor is differentiated while the other is integrated.
The practical method
Section titled “The practical method”Given an integral that can be regarded as a product:
- Choose , the factor to differentiate.
- Let the rest of the integrand, including , be .
- Find by differentiating and find by integrating .
- Substitute into .
- Simplify and check whether the remaining integral is easier.
A small table keeps the roles clear:
Only is an antiderivative. Do not include an arbitrary constant when finding inside the method. Any such constant cancels, and the final supplies the full family of antiderivatives.
Choosing and
Section titled “Choosing uuu and dvdvdv”A good choice usually has both of these features:
- differentiating simplifies it
- integrating is possible immediately
For a polynomial multiplied by , or , choose the polynomial as . Each differentiation lowers its degree.
For or an inverse trigonometric function, choose that function as and treat the integrand as a product with . These functions are easy to differentiate but do not have immediate standard antiderivatives at this stage.
The mnemonic LIATE can help choose :
- logarithmic functions
- inverse trigonometric functions
- algebraic functions, such as polynomials
- trigonometric functions
- exponential functions
Choose as the type appearing earliest in this list. LIATE is a guide, not a theorem. The decisive test is whether the new integral is simpler.
Parts or substitution?
Section titled “Parts or substitution?”Not every product requires integration by parts. First look for a composite function accompanied by its derivative.
is best handled by substitution because is the derivative of . In contrast,
has no inner function whose derivative is the other factor, and differentiating simplifies it. Integration by parts is natural.
A polynomial times an exponential
Section titled “A polynomial times an exponential”Worked example 1:
Section titled “Worked example 1: ∫xex dx\int xe^x\,dx∫xexdx”Choose because differentiating it gives . Let because is easy to integrate.
Apply the formula:
Differentiate to check:
Worked example 2: a non-unit coefficient
Section titled “Worked example 2: a non-unit coefficient”Find
Use and . Take care when integrating the exponential:
Therefore
The factor appears once when finding and again when integrating in the remaining integral.
A polynomial times a trigonometric function
Section titled “A polynomial times a trigonometric function”Worked example 3:
Section titled “Worked example 3: ∫xcosx dx\int x\cos x\,dx∫xcosxdx”Let
Then
Hence
The final sign is positive because , and the formula already contains a subtraction.
Worked example 4: signs and coefficients
Section titled “Worked example 4: signs and coefficients”Find
Choose and . Then
Thus
Repeated integration by parts
Section titled “Repeated integration by parts”If is a polynomial of degree or more, one application usually leaves another product requiring integration by parts. Keep differentiating the polynomial until it becomes zero.
Worked example 5: two applications
Section titled “Worked example 5: two applications”Find
First use and :
The remaining integral is Example 1, or can be handled by parts again:
Therefore
There is only one arbitrary constant, written after the whole calculation.
The tabular shortcut
Section titled “The tabular shortcut”For repeated products of a polynomial with a repeatedly integrable function, the same work can be organised as follows:
Multiply diagonally and add:
The tabular method is compressed repeated integration by parts. It should not replace understanding of the formula.
Integrating logarithms
Section titled “Integrating logarithms”An expression such as is secretly a product:
Choose , since it becomes the simpler function when differentiated, and choose .
Worked example 6:
Section titled “Worked example 6: ∫lnx dx\int\ln x\,dx∫lnxdx”For ,
Then
More generally, on any interval not crossing ,
Worked example 7: an algebraic factor with a logarithm
Section titled “Worked example 7: an algebraic factor with a logarithm”Find
LIATE suggests choosing . Put the remaining factor into :
Therefore
Choosing would force you to integrate before you had solved that problem, so it does not simplify the work.
Definite integrals
Section titled “Definite integrals”For limits and , integration by parts becomes
Keep the limits on the remaining integral and evaluate the boundary term at both endpoints. An alternative is to find an indefinite antiderivative first and then apply the limits. Do not mix the two approaches halfway through.
Worked example 8: definite integration by parts
Section titled “Worked example 8: definite integration by parts”Evaluate
Let and . Then and .
The value is positive, as expected because on .
Worked example 9: logarithm with an endpoint
Section titled “Worked example 9: logarithm with an endpoint”Evaluate
Using ,
When the original integral returns
Section titled “When the original integral returns”For some products, applying integration by parts twice produces the original integral. This is useful: collect that integral algebraically and solve for it.
Worked example 10:
Section titled “Worked example 10: ∫excosx dx\int e^x\cos x\,dx∫excosxdx”Let
Choose and :
Apply integration by parts to the new integral, choosing and :
Substitute this back:
Now solve for :
so
Do not continue applying integration by parts in a loop. As soon as the original integral reappears, treat it as an algebraic unknown.
Common misconceptions
Section titled “Common misconceptions”Choosing that cannot be integrated
Section titled “Choosing dvdvdv that cannot be integrated”For , choosing and is unhelpful because finding is already the main problem. Choose instead.
Forgetting the minus sign
Section titled “Forgetting the minus sign”The formula is
not . Derive it quickly from the product rule if uncertain.
Differentiating both factors
Section titled “Differentiating both factors”Integration by parts does not replace with . One chosen part is differentiated and the other is integrated.
Dropping chain rule factors
Section titled “Dropping chain rule factors”If , then . If , then . Differentiate mentally to check it returns .
Assuming every product needs parts
Section titled “Assuming every product needs parts”The integral is better handled by substitution because the derivative of is proportional to .
Mishandling definite limits
Section titled “Mishandling definite limits”In , both and are evaluated at both limits. The remaining integral also retains the limits and .
Self-check
Section titled “Self-check”Try each question before opening its answer.
1. One application
Section titled “1. One application”Find
Answer
Take and . Then and .
2. Repeated use
Section titled “2. Repeated use”Find
Answer
First choose and :
3. Logarithmic function
Section titled “3. Logarithmic function”Find, for ,
Answer
Choose and . Then and .
4. Definite integral
Section titled “4. Definite integral”Evaluate
Answer
Take and , so and .
5. Choose the method
Section titled “5. Choose the method”State the best main method for each integral.
Answer
- (a) Substitution, because is proportional to the derivative of the exponent .
- (b) Repeated integration by parts, choosing .
- (c) Integration by parts, writing the integrand as and choosing .
Summary
Section titled “Summary”The essential facts are:
- choose so that differentiating it simplifies the expression
- choose so that it can be integrated immediately
- expect repeated applications when is a polynomial of degree greater than
- write logarithms as products with
- preserve limits throughout a definite integral
- if the original integral returns, collect it algebraically
- verify an indefinite answer by differentiation
Next, compare this technique with integration by substitution and learn how partial fractions prepare rational functions for integration. For mixed questions, practise choosing an appropriate method.