Historical Context & Motivation
Integration is fundamentally the reverse of differentiation, but that reversal is far from straightforward. While the chain rule and the product rule give us systematic recipes for differentiating composite and product functions, undoing those rules when integrating requires special techniques. Two of the most important methods — integration by substitution and integration by parts — were developed over centuries of mathematical innovation.
The central question these techniques answer is: How do we integrate functions that are products or compositions of simpler functions? Basic power, exponential, and trigonometric rules handle only the simplest integrands. For anything more complex — such as ∫ x·eˣ dx or ∫ 2x·cos(x²) dx — you need the tools covered in this lesson.
Core Principles & Definitions
Both substitution and integration by parts rest on differentiation rules you already know, applied in reverse. Understanding why each method works will help you decide when to use it.
Reversing the Chain Rule
Reversing the Product Rule
Choosing u and dv/du
Definite vs. Indefinite
Visual Explanation — Substitution in Action
The diagram below illustrates the idea behind u-substitution. On the left, you see the graph of f(x) = 2x·cos(x²), a product involving a composite function. By setting u = x², the right-hand graph shows the same area re-expressed as cos(u), which is straightforward to integrate.
Notice how the complicated oscillating curve on the left becomes the familiar cosine wave on the right. The "extra" factor of 2x in the original integrand is exactly the derivative of x², which is why the substitution works perfectly. If that derivative were not present, the substitution would fail or require additional algebraic manipulation.
Mathematical Framework
Integration by Substitution
The practical steps are: (1) identify a part of the integrand to call u; (2) compute du/dx and rearrange so that dx is expressed in terms of du; (3) rewrite the entire integral in terms of u; (4) integrate; (5) replace u with g(x).
Integration by Parts
Deciding Which Technique to Use
One of the biggest challenges students face is recognising which technique to apply. The decision flowchart below provides a systematic approach. Start at the top and follow the arrows based on the structure of your integrand.
| Integral Form | Technique | Why It Works |
|---|---|---|
| ∫ 2x · eˣ² dx | Substitution | 2x is the derivative of x², the inner function of eˣ² |
| ∫ sin(3x + 1) dx | Substitution | Inner function 3x + 1 has constant derivative 3 (adjust with 1/3) |
| ∫ x · eˣ dx | Parts | Product of algebraic (x) and exponential (eˣ); no chain rule link |
| ∫ x² · ln x dx | Parts | Product of algebraic and logarithmic; LIATE says u = ln x |
| ∫ ln x dx | Parts | Write as ∫ 1 · ln x dx; set u = ln x, dv/dx = 1 |
Worked Examples
Example 1: Integration by Substitution
Evaluate ∫ 3x² · cos(x³) dx.
Example 2: Integration by Parts
Evaluate ∫ x · eˣ dx.
Strengths & Limitations of Each Technique
| Feature | Substitution | Integration by Parts |
|---|---|---|
| Best for | Composite functions f(g(x)) where g′(x) appears as a factor | Products of functions from different families (e.g., polynomial × exponential) |
| Differentiation rule reversed | Chain rule | Product rule |
| Typical difficulty | Usually reduces the integral in one step | May need to be applied more than once (e.g., ∫ x² eˣ dx) |
| Common pitfall | Forgetting to change limits in definite integrals | Choosing u and dv/dx the wrong way round, making the new integral harder |
| Limitation | Fails if the derivative of the inner function is not present (even up to a constant) | Fails if neither choice of u produces a simpler integral |
Connections to Advanced Theory
Substitution and integration by parts are the building blocks for even more powerful techniques you will encounter in further study. In the IB HL course itself, these methods combine with trigonometric identities and partial fractions. At university level, they extend into multivariable calculus, differential equations, and theoretical physics.
| This Lesson (AHL 5.9) | Where It Leads |
|---|---|
| u-substitution on single-variable integrals | Change of variables in double and triple integrals (multivariable calculus) |
| Integration by parts for ∫ u dv | Solving differential equations via integrating factors and reduction formulae |
| Choosing u = ln x, dv = rest | Integral representations of special functions (Gamma function, Beta function) |
| Repeated integration by parts | Tabular (DI) method and reduction formulas for ∫ sinⁿx dx, ∫ xⁿeˣ dx |
In the IB exam, integration by parts may also appear in Paper 3 (HL) as part of proof-based or exploration-style questions. A strong grasp of these techniques is essential not only for the calculus option but also for probability distributions (e.g., finding the mean of a continuous random variable using ∫ x · f(x) dx, which often requires parts).
Practice Problems
Lesson Summary
This lesson covered two essential techniques in the IB HL calculus toolkit. Integration by substitution reverses the chain rule: you set u = g(x), replace dx with du/g′(x), and integrate a simpler function of u before substituting back. For definite integrals, you convert the limits to the u-variable, eliminating the need to convert back. The key requirement is that g′(x) (or a constant multiple of it) must appear as a factor in the integrand.
Integration by parts reverses the product rule using the formula ∫ u (dv/dx) dx = u·v − ∫ v (du/dx) dx. The LIATE mnemonic (Logarithmic → Inverse trig → Algebraic → Trigonometric → Exponential) guides your choice of u. In some problems — like ∫ eˣ sin(x) dx — you must apply parts twice and solve for the original integral algebraically, a pattern known as the boomerang technique. Mastering both methods and knowing when to deploy each one is a crucial skill for IB HL Paper 1, Paper 2, and Paper 3.