Why does look impossible, when every piece of it, and , is something you already know how to integrate?
You know . You know . But multiply and together and none of your rules seem to apply anymore. The trapped inside the cosine breaks everything.
Here's the good news. This integral isn't a new kind of problem. It's a rule you already know, the chain rule, hiding in reverse.
This "impossible" integral is just the chain rule wearing a disguise
Remember the chain rule for derivatives. If and are functions, then:
Now let and . Then , so:
Look at that closely. It's exactly , our original integrand. The function we couldn't integrate is the derivative of , we just didn't recognize it yet.
The Chain Rule, Run Backward
The white curve is sin(x²). Its slope at every point equals 2x·cos(x²), the integrand we started with. Drag x and watch the orange tangent line track the integrand exactly.
Drag the point and watch the tangent line. At every single value of , the slope of matches exactly. That's the whole secret behind u-substitution: it's a way to spot a disguised derivative and undo it.
So what do we actually substitute?
Once we see the pattern , we give the inner function a new name. We write:
Differentiating both sides with respect to gives , which we usually rearrange into:
For our example, , so . Now look at the original integral again:
Every is gone. What's left is trivial: . Swap back for and we get , exactly the antiderivative we already guessed above.
Why are we even allowed to swap dx for du?
It looks like we just deleted and wrote in its place, which feels a little too easy. But and aren't interchangeable by fiat. They're connected by a stretch factor, and that stretch factor is .
Picture the -axis as a rubber ruler. The function grabs that ruler and stretches it, unevenly, into a new ruler marked in units of . A tiny step of width on the original ruler doesn't land as a step of the same width on the new one. It stretches or compresses by however fast is changing at that point, which is exactly .
Stretching the Ruler
The same width dx on the x-ruler lands as a wider or narrower slice on the u-ruler below it, because u = x² stretches unevenly. That stretch factor is g'(x), and du = g'(x)·dx is just its name.
Slide the window along the x-ruler and watch the matching window on the u-ruler below it. Near , where is barely changing, the two windows are almost the same size. Near , where is climbing fast, the u-window balloons. That difference in size is , and it's the reason isn't a trick. It's just unit conversion between two rulers.
How do you know which piece to call u?
Look for a function trapped inside another function, a composition. Then check whether its derivative, or something close to it, is sitting elsewhere in the integrand, ready to cancel.
A few patterns to watch for:
- Trig function wrapped around a polynomial, like : let be the polynomial.
- Something raised to a power, like : let be the base.
- An exponent that's itself a function, like : let be the exponent.
The test is always the same. After you substitute, does every remaining disappear, replaced entirely by ? If yes, you picked well. If stray 's are still hanging around, you picked the wrong piece.
Pick Your u for ∫ 3x² e^(x³) dx
Three ways to name u. Only one leaves the integral fully rewritten in terms of u with nothing left over.
Try all three buttons. Only leaves nothing behind. leaves a stray with nowhere to go. And technically "works," but it just renames the entire integrand as without simplifying anything, so you learn nothing from it.
Definite integrals need new boundaries too
Substitution changes more than the function inside the integral. If you're integrating from to , those bounds were measured on the -ruler. Once you switch to the -ruler, you need bounds measured on that ruler instead.
The rule is simple: convert the bounds using the same substitution you already picked.
For our running example, , so an integral from to becomes an integral from to .
Bounds Have to Move Too
Same area, two different rulers. When x runs from 0 to b, u = x² runs from 0 to b². Swap the bounds along with the variable and the two shaded regions stay equal.
Move the slider and watch both shaded regions. The orange area is computed entirely in , the green area entirely in , with completely different bounds and a completely different curve underneath. They still come out equal every time, because they're measuring the exact same accumulated quantity, just on two different rulers.
Two quick examples to lock it in
Example 1:
Let , so , which means . The integral becomes .
Example 2:
Let , so . The integral becomes .
Notice the shape both times: something composed inside a function, and its derivative sitting right next to it, just waiting to become .
The mistakes that actually trip people up
Forgetting to convert all the way is the biggest one. If a stray survives after substitution, the integral isn't done, it's stuck, and no amount of algebra rescues it. Go back and pick a different .
For definite integrals, forgetting to swap the bounds is the second biggest. If you substitute the function but leave the original -bounds in place, you'll compute a number that has nothing to do with the actual area. Either convert the bounds to , or substitute back to before plugging in the original bounds. Just don't mix the two.
And don't forget the . Once you swap back from to , that constant of integration comes along for the ride just like always.
U-substitution isn't a separate topic from differentiation. It's the chain rule, read from right to left. Whenever you see a function tangled inside another function, with the inner function's derivative loitering nearby, rename the inner function , rewrite in terms of , and let the composition collapse into something you already know how to integrate. Convert the bounds if you're working with a definite integral, and you're done.