If someone asked me to summarise my memory of grade 10 maths, I would reply with a single word: Quadratics. I remember solving scores of quadratics, and by the end of the year I was pretty good at it (admittedly I was also pretty lazy, and usually just used the quadratic formula). But then I started grade 11 and my teacher threw me a curve ball with the following equation:
This equation is pretty intimidating the first time you see it! There’s an exponential in there so I wanted to use a logarithm, but I had no way to break up a logarithm over a sum! Of course, there is a very clean way to circumvent this. Instead of working in , we work with a new variable . Our equation is then … a quadratic!
Since we can solve quadratics, we see that which gives .
Now, our motivating example may seem pretty insignificant. But what is interesting to me is that the general principle we used to solve it is useful, defining a new variable which is more suited to our problem and then translating the solution back to the original variable, is useful in so many situations. In fact, the reason changing variables is on my mind is because I noticed a change of variables could help me solve a problem for my honours thesis. While the solution in my honours didn’t quite pan out the way I hoped, it excited me enough to want to list some other change of variables I’ve seen throughout university.
Change of Variables in Integration
My first example is perhaps low hanging fruit. It is the change of variables formula from integral calculus: If is a differentiable, monotone function whose derivative is continuous and is continuous then
A similar formula also holds for integrals in higher dimensions. The idea is exactly the same as in the quadratic example, the integral is easier is we choose variables that are ‘suited to the problem’.
Here is an example from the plane. Suppose we want to know the volume bounded by the paraboloid and the plane. This is given by the integral
In our usual cartesian coordinates, the region is a little awkward to describe. Indeed, if we start with then for to be in the region we need so we have
which gives the integral
While this isn’t impossible to compute, it’s definitely not ideal. Let’s try changing variables. Rather than describing our point by its distance from the x-axis and y-axis, let describe it by its distance from the origin () and its angle () with the x-axis (i.e. use polar coordinates). Then , so our region is
and in terms of we have . In these variables, our integral becomes
(the extra factor of comes from the change of variables formula, the come from the angle coordinate). In either case, the value of the integral is , but the point is that polar coordinates suit the problem better because our function and region only depend on the radial coordinate (), not on the angular coordinate.
Here is another example where polar coordinates help us solve an equation. We’ll work in the real plane again and consider the partial differential equation
This is called Laplace’s equation; If gives the density of a physical quantity (e.g. heat) then Laplace’s equation expresses the fact the quantity is in equilibrium within some region.
What’s important for us to notice is that Laplace’s equation is rotation invariant. By this I mean that if solves Laplace’s equation on the plane, and if is a rotation of the plane the the function defined by first rotating the plane using and then applying also solves Laplace’s equation. That is, if we are standing in room where the heat is in equilibrium, and we swivel on the spot then of course the heat remains in equilibrium.
This again makes us think of polar coordinates because it says that Laplace’s equation is only depending on the distance from the origin. Let us assume then that we have a function whose values depends only on the distance of to the origin. Then, and using the multivariate change rule we have
(remember that in polar coordinates). Similarly,
The calculations for the derivatives are the same as what we have done above, and upon adding them together we find that Laplace’s equation becomes
This is an ordinary differential equation! In fact, it is not difficult to verify that
is a solution to this equation so we by replacing we obtain
as a solution of Laplace’s equation! This is the so called fundamental solution of the Laplace equation. Now, in actual applications we would like to solve Laplace’s equation on some subset of the plane and prescribe the value of the solution on the boundary of this subset so we’re not done with Laplace’s equation just because we found one solution. What is amazing though is that we can ‘build’ these solutions by using the fundamental solution!
To recap, to solve Laplace’s equation we first assume our solution is slightly boring to find a solution. We can then we can use this as a stepping stone to find more interesting solutions. And the way we solve for the initial function is by applying a change of variables!
So there are two examples (three if you include my motivating example) of how a change of variables can make your mathematical life a little easier. Of course, there are many more examples out there. In fact, the more I look out for them in lectures (and in my own solutions) the more examples I seem to notice.