Change of variables
Algebraic substitution
One of the standard contexts in which the term “change of variables” is used is that of algebraic substitution. That is, we have some equation defined using a known set of variables (say for example in the univariate case) along with a new variable defined as a function of the existing variable . This transformation must be invertible so that we can solve for , and substitute the form in for the instances of . Note, however, when the form is available directly in the target equation, we can replace it directly with ; no point in applying the inverse and then reapplying the transformation to get back.
The context for this substitution is often to simplify the equation and make it easier to deal with for the desired task.
Coordinate transformations
In some cases we might want to rephrase a given problem in a new coordinate system, either to reveal insights about the problem’s structure or make it less tedious to solve. Here we have a known diffeomorphism from the new coordinate system to our original one. This mapping provides the necessary information to transform points to and from either coordinate system.
Just like was described in substitution, we can phrase the equation under the new coordinate system as by replacing instances of and in with and , respectively. That is, we have , but we only have access to the terms and . Instead of having to compute these values and plug them into , implements these transformations internally and takes only the values and . (This has always been particularly confusing for me with all the notation swapping and overloading.)
The resulting equation in terms of the new coordinates will look the same in the original coordinate system after the known coordinate transformation is applied. However it will likely look significantly different under the transformed coordinate system, and it is in this context that we can operate to solve our problem from a new perspective.
Example
From the example given in the Wikipedia article, suppose we have the function
and we want to apply a transformation to polar coordinate space. With the known mapping , we can replace instances of and with their representations in terms of and :
is a new function that effectively maps and through the coordinate transformation and subsequently queries . wraps this intuitive procedure up into a single closed form.
Integration
Integrals have the intuitive interpretation of summing up area under curves. There are many instances where an integral can be drastically simplified with a simple change of coordinate system, e.g. from regular Cartesian coordinates to polar coordinates. Like we’ve seen above, we can substitute values according the transformation mapping to yield an equation defined in terms of and . However, we’re not done after this step (in the context of integration). Because the notion of size (see Measure theory) can warp under a transformation, we must track how area changes at all locations between the two coordinate systems. So while we might actually carry out the integral computation in the transformed coordinate system (because it simplifies the structure of the problem), our original question still wants us to compute the area under that form in the original coordinate system. As a result, we must account for the way in which area has changed between spaces. Here we use the determinant of the Jacobian matrix, which when evaluated at a point reveals the factor by which the transformation in question expands or shrinks volume (generalized length) near that point. Thus, we have the general change of variables theorem
where is our transformation mapping from one coordinate space to the other. Note that some formulations of the change of variables theorem replace with , depending on which direction the mapping is assumed to be defined.