In this section, we will look at the change of variables rule, which helps us deal with integrals of function compositions. It is closely related to the chain rule in differential calculus, as we will show now.
Consider a function with a primitive . As we know, differentiating produces the function , so we can write:
By the chain rule, we can also write that:
Substituting (1) in the equation above, we get
Integrating both sides, we can write:
This is the change of variables rule. As in integration by parts, this technique works if we can find a primitive that is easier to calculate than the original one.
Let's compute the following integral:
There is only one function that can be composable here, so we could start by saying that and . However, in it's current form, we can't really apply the change of variables rule because and we do not have that in the integral we want to compute. Luckily, we can make use of the linearity of integration to force the appearance of in the integral:
Now we can apply the change of variables formula (4) with , and . Because the primitive of is itself , we get the following result.