Integration by parts and substitution
The table of integrals stops at polynomials, sine and cosine — and ∫ x·eˣ dx already has no row in it. Two techniques close the gap, because each of them is a differentiation rule read backwards: the product rule gives integration by parts, and the chain rule gives integration by substitution.
Before you start
This topic builds on earlier ideas. Before you start, it's worth working through the lessons below — they'll make everything click:
- The integralIntegration is differentiation run backwards: we look for the function whose derivative is the one we started with. An indefinite integral gives a formula up to a constant, a definite one gives a number — and that number is the area under the curve.
- The derivativeA derivative measures how fast a function changes at a point — it is the slope of the tangent to the graph. Meet the definition through the difference quotient and the six rules that compute it without taking a limit every time.
- Composition and inverse functionsTwo functions set one behind the other, and one function run backwards. See why f(g(x)) is not g(f(x)), how the monotonicity of a composition follows from its parts, when a function can be inverted at all, and why the graph of the inverse is a reflection in the line y = x.
Where this is used
Real situations where you count exactly the way this lesson teaches:
- Work done stretching a resistance bandThe force needed to stretch a rubber band is not constant — it builds up and levels off: F(x) = 150(1 − e^(−4x)) newtons. Work is the integral of force along the distance, so stretching it by 0.5 m takes 150·(0.5 + 0.25·e^(−2) − 0.25) ≈ 42.6 joules. The exponential term has no row in the table of integrals — the linear substitution u = −4x is what handles it.
- Energy drawn by a machine on start-upAn electrician records the instantaneous power of a start-up as P(t) = 40·t·e^(−t/2) kilowatts. The energy is the area under that curve, and a variable times an exponential has no row in the table: integration by parts gives the antiderivative −2t·e^(−t/2) − 4e^(−t/2), so over the first 4 hours the machine eats 40·(4 − 12·e^(−2)) ≈ 95 kilowatt-hours.
- How much water leaves the tankFlow through an opening falls off with the pressure behind it: q(t) = 30·e^(−t/10) litres per minute. The volume that leaves over 20 minutes is the integral of that flow rate, namely 300·(1 − e^(−2)) ≈ 259 litres. The substitution u = −t/10 turns it into the exponential integral you already know.
- A patient exposure to a drugA pharmacologist computes the area under the concentration curve for the model C(t) = 8t·e^(−0.5t) milligrams per litre. Over the first 6 hours, integration by parts gives 32·(1 − 4·e^(−3)) ≈ 25.6 mg·h/l — the number compared against the exposure of a reference dose. The same variable-times-exponential product, the same technique.
All formulas
Integration by parts
the product rule, reversed
Parts, definite
the uv term is evaluated at the bounds, the rest stays an integral
Integration by substitution
the chain rule, reversed
The bounds travel
a substitution moves the limits too
Linear substitution
the commonest case: divide by a
The exponential integral
needed by the worked examples on parts
The table of integrals in the lesson on the integral stops at polynomials, sine and cosine. Yet and have no row in it — and both are integrals of functions you know how to differentiate. That is where both techniques in this lesson come from: each of them is one differentiation rule read backwards.
| differentiation rule | integration technique |
|---|---|
| product rule | integration by parts |
| chain rule | integration by substitution |
One antiderivative from outside the table will be needed along the way, straight from the lesson on exponential and logarithmic functions: since ,
Integration by substitution
The chain rule says that the derivative of a composition is . Read that equality from right to left:
In practice the inner function is given a name. Substitute , so that — and the whole integral moves over to :
What to substitute
There is one rule: substitute the inner function of a composition, provided its derivative stands in the integral as a factor. A constant multiple is fine — the missing factor moves out in front of the integral.
| integral | substitute | why |
|---|---|---|
| , and is there | ||
| , and is there | ||
| , and is there | ||
| , a bare constant |
The last row is so common that it has a shortcut of its own. When the inside is a linear expression:
Dividing by is unavoidable: the chain rule multiplies by , so integration has to take it back. Hence , not .
A definite integral: the bounds are substituted too
In a definite integral a substitution changes not only the function but the limits of integration as well — because the variable being integrated over is now a different one:
The drawings show what actually happened: the region changed shape, not size.
Integration by parts
The second technique reverses the product rule. Start from it and integrate both sides:
Move one integral across and the formula is there:
The formula does not evaluate the integral — it trades it for another one. All the effort goes into making that second one easier than the first.
Choosing u
Take as the factor that gets simpler when differentiated; as , the one you know how to integrate.
| integrand | what it buys | ||
|---|---|---|---|
| , the product disappears | |||
| as above | |||
| the logarithm turns into | |||
| the degree drops by one per step |
When it takes two rounds
If a product is still standing after the first step, the technique is applied again. A polynomial of degree against an exponential takes exactly steps — each one drops the degree by one.
The formula as a picture
For an increasing function that starts at zero, the parts formula can be drawn. Take on together with its inverse :
The area under the parabola is , the area above it is . Together they make , the area of the whole square — and that is the integration-by-parts formula written without a single letter:
Which technique to reach for
- See a composition with the derivative of its inside next to it? Substitution.
- See a product of functions of different kinds — a polynomial times an exponential, a polynomial times a sine, a lone logarithm? Parts.
- See both at once? Take the one that leaves the shorter integral on the right; if one step made things worse, go back and try the other.
- See neither? Try reshaping the integrand first — split the fraction, use a trigonometric identity, pull a constant out in front.
It is worth remembering what all this is computed for: the work done by a variable force is the integral , and its result comes out in joules — a unit the energy converter will convert for you.
Exercises
The set mixes three skills: a linear substitution (the answer is graded up to the constant, so the may be left off), integration by parts across three families (, , ), and a definite integral evaluated by substitution, where the answer is a number or a fraction. An indefinite integral is typed as a formula, e.g. (2x+1)^4/8 or x*e^x-e^x.
Practice
Work through a set of exercises — they get harder as you go. At the end you'll see your score and the mistakes worth reviewing.
What the set deliberately does not ask is the choice of technique together with its justification: the answer to that is a sentence, not a number. You practise it by reading the four points above and checking, on each integral, which one applies.
Common mistakes
- Forgetting to move the bounds in a definite integral — after a substitution the limits have to be values of , not of ; otherwise you are measuring the area over a different interval entirely.
- Substituting with no derivative inside — if does not stand in the integral as a factor, the substitution leaves two variables in the expression at once and cannot be finished.
- Skipping the division by in a linear substitution — is , not .
- Choosing the wrong way round — if the integral grew after the first step, the roles were reversed; go back and swap the factors.
- Losing the minus in the parts formula — a minus follows the term, and with the two minus signs multiply, which is where a sign error is easiest to make.
- Writing the constant mid-computation — with integration by parts, is written once, at the very end.
Formula card
Topic: Integration by parts and substitution
Integration by parts
the product rule, reversed
Parts, definite
the uv term is evaluated at the bounds, the rest stays an integral
Integration by substitution
the chain rule, reversed
The bounds travel
a substitution moves the limits too
Linear substitution
the commonest case: divide by a
The exponential integral
needed by the worked examples on parts
