HL AA · Calculus

Integration by substitution: the pattern that finally makes it click

24 Jul 2026 · by Pete Bromfield · 7 min read

Integration by substitution: the pattern that finally makes it click

For many of my students, integration by substitution is one of those topics that seems simple enough when I demonstrate it, but then falls apart when they try it on their own. They follow the steps, make the substitution, differentiate $u$, change the limits, and then they get stuck. The integral doesn't simplify, or they can't quite see how to get rid of the remaining $x$ terms. I’ve seen this pattern for years, and it's frustrating for students and teachers alike.

Over the years, I've refined how I introduce and teach this method. It's not about memorising a sequence of steps, but about recognising a specific pattern. Once my students start to see this pattern, the method clicks. It's like a lightbulb moment, and suddenly, what seemed complicated becomes intuitive. This pattern recognition is what I want to share with you today. This method is crucial for all IB Maths AA and AI SL/HL students.

The core pattern: derivative present alongside a function

The fundamental idea behind integration by substitution is reversing the chain rule. Think back to differentiation. When you differentiate a composite function like $f(g(x))$, you get $f'(g(x)) \cdot g'(x)$. Integration by substitution works best when you see an integral that looks exactly like this. You need to identify a 'function within a function' and its derivative somewhere else in the integrand.

Let's look at the general form. You are looking for an integral of the form $\int f(g(x)) \cdot g'(x) \, dx$.

When you spot this pattern, the substitution $u = g(x)$ immediately simplifies the integral. Why? Because then $du = g'(x) \, dx$. The entire $g'(x) \, dx$ part of your integrand transforms directly into $du$. The integral becomes $\int f(u) \, du$, which is usually much simpler to integrate.

Let's try an example: $\int (x^2 + 1)^3 \cdot 2x \, dx$.

Here, I immediately spot $g(x) = x^2 + 1$. Its derivative is $g'(x) = 2x$. And $f(u)$ would be $u^3$. So, I set $u = x^2 + 1$. Then $du = 2x \, dx$. The integral transforms into $\int u^3 \, du$. This is a straightforward power rule integral. $\int u^3 \, du = \frac{u^4}{4} + C$. Substituting back $u = x^2 + 1$, we get $\frac{(x^2+1)^4}{4} + C$. See how cleanly the $2x \, dx$ was replaced by $du$? That's the pattern at work.

When the derivative isn't exact (and how to fix it)

Often, the derivative of your chosen $g(x)$ won't be perfectly present in the integrand. But crucially, it will be "present up to a constant factor." This is still a clear indicator that substitution is the way to go. You can adjust for this constant factor easily.

Consider $\int x \sqrt{x^2 + 3} \, dx$.

My eyes go straight to $x^2 + 3$ inside the square root. This looks like my $g(x)$. Let $u = x^2 + 3$. Then $du = 2x \, dx$. However, my integral only has $x \, dx$, not $2x \, dx$. This is where students sometimes get stuck. But it's a simple fix. From $du = 2x \, dx$, I can write $x \, dx = \frac{1}{2} du$. Now, I can substitute: $\int x \sqrt{x^2 + 3} \, dx = \int \sqrt{u} \cdot \frac{1}{2} du$. This simplifies to $\frac{1}{2} \int u^{1/2} \, du$. Integrating this: $\frac{1}{2} \cdot \frac{u^{3/2}}{3/2} + C = \frac{1}{2} \cdot \frac{2}{3} u^{3/2} + C = \frac{1}{3} u^{3/2} + C$. Substitute back: $\frac{1}{3} (x^2 + 3)^{3/2} + C$. The key here is that the 'variable part' of the derivative ($x$) was present, even if the constant coefficient (2) wasn't exact. If you had $x^2 \sqrt{x^2+3}$ instead, substitution wouldn't work as cleanly because the derivative of $x^2+3$ is $2x$, and you'd be left with an extra $x$ that you can't easily transform into $u$. That's a different kind of problem.

Tip: When deciding what to set as $u$, look for an expression inside parentheses, under a root, in the denominator, or in the exponent of an exponential function. Then, mentally (or quickly on scrap paper) differentiate it. If its derivative (or a multiple of it) is also present in the integrand, you've found your $u$. This skill is vital for success in IB Maths, particularly for Paper 1 questions where a calculator isn't permitted. Check out my Paper 1 study guide for AA SL/HL for more non-calculator strategies.

Changing the limits of integration (for definite integrals)

When you're dealing with definite integrals, there's an extra step that many students forget or get wrong: changing the limits of integration. If you substitute $u=g(x)$, your original limits, say from $x=a$ to $x=b$, are in terms of $x$. Once you switch to $u$, those limits no longer apply. You must convert them to $u$ values.

Let's take our first example, but as a definite integral: $\int_0^1 (x^2 + 1)^3 \cdot 2x \, dx$.

We already established $u = x^2 + 1$ and $du = 2x \, dx$. Now for the limits:

So the integral becomes $\int_1^2 u^3 \, du$. Now, integrate with respect to $u$ and apply the new limits: $[\frac{u^4}{4}]_1^2 = \frac{(2)^4}{4} - \frac{(1)^4}{4} = \frac{16}{4} - \frac{1}{4} = 4 - \frac{1}{4} = \frac{15}{4}$.

The beauty of changing the limits is that you don't have to substitute $x$ back into your final expression. You work entirely in terms of $u$. This saves time and reduces opportunities for error. It's a crucial technique for IB Maths AI SL/HL Paper 2 where such questions often appear.

When substitution doesn't work (and what to do instead)

It’s just as important to know when substitution isn't the right tool. If you can't find a $g(x)$ whose derivative (or a multiple of it) is present elsewhere in the integrand, then substitution likely won't simplify things. For instance, consider $\int x^2 \sin(x) \, dx$.

If you try $u = x^2$, then $du = 2x \, dx$. This leaves an $x$ and $\sin(x)$ in your integral, making it messy. If you try $u = \sin(x)$, then $du = \cos(x) \, dx$. You don't have $\cos(x)$ to get rid of the $dx$. In cases like this, you might be looking at integration by parts, a topic covered in IB Maths HL (both AA and AI). Or, for simpler cases, it might be a direct lookup from your formula booklet (which you should be familiar with, by the way – check out my flashcards for quick recall of key formulas).

Another common scenario where substitution might seem tempting but isn't right is with rational functions like $\int \frac{1}{x^2+1} \, dx$. If you let $u = x^2+1$, then $du = 2x \, dx$. You have no $x$ in the numerator to simplify. This integral is actually a standard result: $\arctan(x) + C$. Knowing your basic integrals is essential!

Practice, pattern recognition, and building intuition

The "click" happens not just by reading about the pattern, but by actively looking for it in problems. In my classroom, I give students a mixed bag of integration problems. Some require substitution, some are direct, some need algebraic manipulation first. Their task isn't just to solve, but to identify the most efficient method.

When a student brings me a problem they're stuck on, my first question is often: "What did you choose for $u$, and why?" If they can articulate the $g(x)$ and $g'(x)$ components, even if they made a small algebraic error, they're on the right track. If they can't identify that pattern, then we review. This approach moves beyond rote memorisation and fosters genuine mathematical intuition.

Start with simpler problems and gradually move to more complex ones. Don't just focus on getting the right answer; focus on understanding why substitution works for a particular problem and identifying the tell-tale signs. This will serve you well not only in IB Maths but in any higher-level mathematics you pursue.

Mastering integration by substitution is more than just learning a technique; it's about developing an eye for mathematical structure. By focusing on the 'function within a function' and its derivative, you can demystify this powerful integration method. Remember to identify $g(x)$, differentiate it to get $du$, adjust for any constant factors, and for definite integrals, change those limits. With consistent practice and an intentional search for these patterns, you'll find that integration by substitution becomes one of your most reliable tools in the IB Maths toolkit.

Keep practising, keep looking for those patterns, and soon you'll be solving these problems with confidence. If you need more resources, remember to check out my study notes or consider some targeted practice from my summer revision materials.

Want to actually drill this?

Every IB Maths topic on this page has a full practice engine at ibmathrevision.com — with AI grading trained on real IB mark schemes.

Get access →