Integration by parts and substitution - two methods, step by step
· 13 min read
In short
Integration by parts reverses the product rule, and integration by substitution reverses the chain rule. Integration by parts trades the integral of a product for another, often simpler one; substitution names the inner function as a new variable u. In a definite integral the limits must be converted to the new variable, and the value of the integral stays the same.
Words to know
- Integration by parts
- The rule ∫u dv = uv − ∫v du, which comes from the product rule.
- Integration by substitution
- Replacing the inner function of a composite function by a new variable u, so that the integral gets simpler.
- Differential du
- For u = g(x) we write du = g′(x) dx. This is what lets you swap dx for du when you substitute.
- Limits of integration
- The numbers a and b of a definite integral. After a substitution they must be converted to the new variable.
What do you think?
Which of these functions has the derivative ?
Differentiate with the chain rule: the outer function gives , and the inner one, , gives the factor . Together: . So is an antiderivative of . Integration by substitution is the same reasoning run in reverse.
The idea: run the derivative rules in reverse
The product rule and the chain rule give you the derivative of a product and of a composite function. Integration has no such rules: the integral of a product is not the product of the integrals. Instead, two methods take those derivative rules and read them backwards:
- the product rule gives integration by parts,
- the chain rule gives integration by substitution.
So when you meet an integral of a product, ask whether one factor gets simpler when you differentiate it. When you meet a composite function, ask whether the derivative of its inner function (up to a constant) sits next to it.
Integration by substitution: the same area in a new variable
Go through the animation step by step with the buttons or the arrow keys. We find the area under from to .
area = ?
We want the area under the graph of x·e^(−x²) from x = 0 to x = 2. The antiderivative is not obvious, so we try a change of variable.
Notice the limits: and have become and , and the graph of the integrand is different too. The value we were after has not changed.
Integration by parts: the product rule in reverse
The product rule, , gives . Integrate both sides and write as and as . That is the formula for integration by parts:
The method pays off when the integral on the right is simpler than the one you started with.
Try it yourself: the two terms of the formula
Pick a function and move the upper limit . Below the graph you see three numbers: the first term of the formula, between the limits; the second term, ; and the integral itself. The integral is always the first number minus the second.
Our choice: u = x, dv = eˣ dx → du = dx, v = eˣ
- the first term, [u·v] from a to b
- 2.718
- the second term, ∫ v du from a to b
- 1.718
- the integral: first term − second term
- 1
What to notice:
- in all three cases, is the factor that gets simpler when differentiated: the derivative of is , and the derivative of is ,
- is the rest of the integrand, and it has to be something we can integrate,
- in there is no visible product at all. So we write as and take .
How to choose and
There is no rule that always works, but there is a simple guideline: choose them so that is no harder than the original integral. In practice:
- take as the factor that gets simpler when differentiated, such as or ,
- take as a factor you can integrate.
For the choice , gives and , and the new integral is just . The opposite choice, , , gives and the integral , which is harder than the original.
For take and . Then , , and the second integral is . The result is .
The rules
Integration by parts. For a definite integral the first term is evaluated between the limits:
Integration by substitution. If , then and
Why does it work? Let be an antiderivative of . By the chain rule, , so the integral on the left equals . That is exactly the integral of from to .
There are two ways to handle the limits of a definite integral:
- convert them to and and finish in - as the animation did,
- or find the indefinite integral in first, go back to , and use the original limits and .
Do not mix the two: the old limits belong to , and the new ones to .
Both methods reverse rules for taking derivatives, and they help you compute a definite integral when the antiderivative is not obvious.
Example 1: integration by parts - the integral of
We want . The integrand is times an exponential function, so we try integration by parts.
Step 1. Choose u and dv
The factor gets simpler when differentiated, and is easy to integrate.
Step 2. Find du and v
We differentiate and integrate .
Step 3. Put the pieces into the formula
The first term is , and from it we subtract the integral of .
Step 4. Finish the remaining integral
What is left is the integral of , and its antiderivative is again.
Step 5. Use the limits
We subtract the value of the antiderivative at from its value at .
Answer
. This means the area under between and is exactly .
Example 2: integration by substitution - the integral of
We want , the area from the animation.
Step 1. Choose u
The exponent contains , and its derivative, , differs from the factor in front only by a constant.
Step 2. Find du
We differentiate and solve for , because that is what appears in the integral.
Step 3. Convert the limits
The old limits belong to , so we turn them into values of .
Step 4. Rewrite the integral
The new integral has no and no left - only .
Step 5. Integrate and use the limits
An antiderivative of is .
Answer
- the same area the animation shaded.
Your turn
Work out . Which factor should be ?
Hintshow
Take , because it gets simpler when differentiated. Then and .
Solutiontry it on your own first
Step 1. Choose u and dv
The factor gets simpler when differentiated, and is easy to integrate.
Step 2. Find du and v
We differentiate and integrate .
Step 3. Put the pieces into the formula
The first term is evaluated between the limits.
Step 4. Evaluate the first term
Put the limits into : at , , so the term is ; at it is .
Step 5. Evaluate the second term
The remaining integral is a basic one: an antiderivative of is .
Answer
.
Common mistakes
- The old limits after a substitution. If you write , you get instead of . The limits and belonged to , not to .
- A leftover in the integral. After a substitution, nothing in may remain, and that includes the . If a factor does not cancel, the substitution is probably not the right one. For example, cannot be done this way, because the factor is missing.
- A lost constant factor. From you get , not .
- A lost minus sign in integration by parts. The formula is . It is easy to drop this minus, or the sign inside itself, as in .
- A bad choice of and . If the new integral is harder than the old one, swap the roles. If no split helps, the method may simply not fit this integral.
At school and at university
In England, both methods are part of A-level Mathematics, though not of the AS: the national subject content asks for simple cases of each and describes them as the chain and product rules run in reverse. In the United States, integration by parts belongs to AP Calculus BC, not AB. At university, both methods are a standard part of a first calculus course, and textbooks such as Active Calculus introduce them soon after the fundamental theorem of calculus.
Sometimes one integral needs integration by parts twice, as with . Some functions, such as , have no antiderivative that can be written with elementary functions, so neither method helps there.
Check yourself
Test yourself
Integration by substitution is the reverse of which rule of differentiation?
In you take and . What is ?
You compute with . What are the limits of the new integral?
What is ?
Which choice is better for ?
Flashcards for review
Flip a card and say whether you knew the answer. The ones you did not know come back at the end of the deck. Why it pays to come back to them in a few days is explained in the guide Spaced repetition.
Flashcards
Question
Answer
Which derivative rule does integration by parts reverse?
The product rule, .Which derivative rule does integration by substitution reverse?
The chain rule.What is the formula for integration by parts?
What does a definite integral become after the substitution ?
What happens to the limits when you substitute?
You convert them to : and . Or you keep the old limits and go back to at the end - but do not mix the two.How do you choose and in integration by parts?
So that is no harder than the original. gets simpler when differentiated (like or ), and is something you can integrate.What is ?
What is ?
, with and .What is ?
, with and new limits and .
Sources
We checked the facts on this page against these sources. All of them may be reused freely: they carry an open licence or are not covered by copyright.
- Active Calculus (Matthew Boelkins) - 5.3 Integration by Substitution (the chain rule reversed, du, changing the limits, why e^(x²) cannot be done this way) · CC BY-SA 4.0
- Active Calculus (Matthew Boelkins) - 5.4 Integration by Parts (the formula from the product rule, how to choose u and dv, definite integrals) · CC BY-SA 4.0
- Business Calculus (Calaway, Hoffman, Lippman) - 3.5 Substitution (translate every x and the dx, the limits) · CC BY 3.0
- Business Calculus (Calaway, Hoffman, Lippman) - 3.6 Additional Integration Techniques (the formula, x·e^x, choosing u) · CC BY 3.0
- Wikibooks - Calculus/Integration techniques/Integration by Parts (choosing u, x·sin x) · CC BY-SA 4.0
- Silvanus P. Thompson - Calculus Made Easy, 2nd edition (1914), Project Gutenberg (integration by parts from the product, x·e^x, w·sin w, ln x) · public domain
- Wikipedia - Integration by parts · CC BY-SA 4.0
- Wikipedia - Integration by substitution · CC BY-SA 4.0
- Wikipedia - AP Calculus (BC covers all AB topics plus integration by parts) · CC BY-SA 4.0