I am trying to work out the reason why the integral

$$ \int_{-\infty}^{\infty}\int_{-\infty}^{\infty}{e^{-(x^2+y^2)}}\,dx\,dy $$

is, in polar coordinates,

$$ \int_{-\infty}^{\infty}{e^{-r^2}} \,r\,dr\,d\theta$$

As I understand it, a polar coordinate transformation involves the following substitution:

$$ (x,y) \rightarrow (r\cos{\theta},r\sin{\theta})$$

This would imply that

$$-(x^2+y^2) = -((r\cos{\theta})^2+(r\sin{\theta})^2) = -r^2((\cos{\theta})^2+(\sin{\theta})^2) = -r^2 $$

which gets us this far

$$ \int_{-\infty}^{\infty}\int_{-\infty}^{\infty}{e^{-r^2}}\,dx\,dy $$

To motivate why

$$ dx\,dy = r\,dr\,d\theta$$

I thought of the following argument:

$$ dx = d(x(\theta,r)) = \frac{\partial(x(\theta,r))}{\partial\theta}d\theta + \frac{\partial(x(\theta,r))}{\partial r}dr \,+ \frac{\partial^2(x(\theta,r))}{(\partial r)^2}(dr)^2 + \, ... \\ =r(-\sin{\theta})\,d\theta+ dr\cos{\theta}\, +\,...$$

$$dy = r(\cos{\theta})\,d\theta+ dr\sin{\theta} \,+\,...$$

$$ \therefore\: dx\,dy = [r(-\sin{\theta})\,d\theta+ dr\cos{\theta}\, +\,...]\,[ r(\cos{\theta})\,d\theta+ dr\sin{\theta} \,+\,...] \\ = r\,dr\,d\theta \, ((\cos{\theta})^2 -(\sin{\theta})^2)\,+\,... \\ = r\,dr\,d\theta \, ((\cos{\theta})^2 -(\sin{\theta})^2),\, \text{ ignoring }\textit{o}((dr)^2) \text{ and } \textit{o}((d\theta)^2)\text{ terms.} $$

However, I am off by a minus sign, which would enable me to argue

$$dx\,dy = r\,dr\,d\theta \, ((\cos{\theta})^2 + (\sin{\theta})^2) = r\,dr\,d\theta $$ If it were correct, I would find this line of argument would be much more analytically convincing than the typical argument involving

$$ dx\,dy = dA = r\,dr\,d\theta$$

which I find to be less mechanistically obvious than the above substitution-based argument that I considered but that I am not being able to fully justify.

Could you please tell me whether my substitution-based argument can work, potentially by correcting some mistake or another that I might have made? If not, do you have any similarly analytical or mechanistic justification as to why $ dx\,dy = r\,dr\,d\theta$ ?

  • 1
    $\begingroup$ I upvoted; interesting question, nice work shown. I am self-studying ["Calculus" : by Tom Apostol], which explores your question under the topic [change of variables in a double integral : polar coordinates]. I haven't gotten to that portion yet, so I don't know the answer. If you are not happy after others respond, you might google : "polar coordinate integration", or something like it. $\endgroup$ Apr 15, 2020 at 17:22
  • 4
    $\begingroup$ When you change the coordinates you have to add a Jacobian to the integral : en.wikipedia.org/wiki/Jacobian_matrix_and_determinant $\endgroup$
    – Tuvasbien
    Apr 15, 2020 at 17:22
  • $\begingroup$ You can perform such computations, but in that case you should have in mind that a product of differential $dx~dy$ is more like a cross product $dx\wedge dy$. In that regard, you have $d\theta\wedge dr=-dr\wedge d\theta$ (and $dr\wedge dr=0$, I mean the term in $dr^2$ is not just ignored, it really is $0$). The cross product is coherent here : remember that the cross-product of two vectors has a norm equal to the area of the corresponding parallelogram, so $dx\wedge dy = dA$. $\endgroup$
    – Roland
    Apr 15, 2020 at 19:59

1 Answer 1


No, this mere substitution argument cannot work, and you haven't made an algebraic mistake at all. This goes precisely to show you that these differentials $dx,dy, dr, d\theta$ are NOT real numbers. So, there is absolutely no reason you should treat them as real numbers and perform the usual arithmetic of real numbers with them. Therefore, the better question to ask yourself is why would you even expect this naive "substitution" to work? Sure, in single variable calculus, many such arguments just happen to "work", but of course this is not at all a good reason to expect it to keep working.

So, how do we treat such integrals? The key result is the multi-dimensional change of variables formula. The proof of this formula is very technical, and not easy at all, but the rough idea is I think straight forward. A very rough way of saying it is that in cartesian coordinates, the function you're integrating is $f(x,y) = e^{-(x^2+y^2)}$, so when you change to polar coordinates, you have modified your function to \begin{align} F(r, \theta) = f(r \cos \theta, r \sin \theta) = e^{-r^2}. \end{align} If we modify the function, then of course we have to modify how we measure the areas. Now, in cartesian coordinates, a little area element is described as $dx \, dy$, which you intuitively think of as a small box of size $dx$ and $dy$. But if you now want to integrate in polar coordinates, you have to think of what does a little area element look like. There are several geometrical justifications available for this on this site and others, and the correct answer is $r \, dr \, d \theta$. That factor of $r$ encodes how the area changes as you measure things in cartesian coordinates vs how you measure things in polar coordinates.

Once again, there is absolutely no reason to think the correct area element should be obtained by plugging in $dx = \cos \theta \, dr + \dots$ and likewise for $dy$, into the "product" (however it is defined) $dx \, dy$. Nor should you expect that "because $dA = dx \, dy$ in cartesian coordinates, therefore $dA = dr \, d \theta$ in polar coordinates". None of these is a proper way of determining the area element in a different coordinate system. It's not only wrong, but there's also no reason to expect it to work.

In general, the correct scale factor which accounts for the difference in area measurements in different coordinates is the absolute value of the determinant of the derivative of the coordinate transformation. This is a non-trivial issue, and there are several answers on this site which explain in more detail why this is the right "conversion factor" (and also entire chapters of textbooks devoted to this formula and its geometric significance).

Hopefully now that you're convinced that naive substitution is not at all even a reasonable thing to do, let's see how one can arrive at the answer mechanically. It's very simple, and even very memorable: \begin{align} dx \, dy &= \left| \det \dfrac{\partial (x,y)}{\partial (r, \theta)} \right| \, dr \, d \theta \end{align} Where that funny derivative is a $2 \times 2$ matrix of partial derivatives, which in this case is: \begin{align} \dfrac{\partial (x,y)}{\partial (r, \theta)} &= \begin{pmatrix} \cos \theta & -r \sin \theta \\ \sin \theta & r \cos \theta \end{pmatrix} \end{align} The absolute value of the determinant is $|r|$, but this is simply $r$, since $r \geq 0$. Therefore, $dx \, dy = r \, dr \, d \theta$.

Another way to approach the subject is by the means of differential forms. The differential forms machinery pretty much encodes in its definition the determinant of the Jacobian matrix. Now, I won't detail the entire theory of differential forms, but here's the "rules" (again if you want to know more, there's entire books on the subject).

Here, things like $dx, dy, dr \, d \phi, d \theta$ etc are no longer real numbers/infinitesimally small but non-zero numbers (whatever that is supposed to mean in typical analysis). What are they? They're the section of the cotangent bundle. Ok, that's probably just some mumbo jumbo right now, but here's how we calculate with them.

For the purposes of integration, we no longer write $dx \, dy$. Instead, we put a little $\wedge$, like $dx \wedge dy$; this is called the wedge product. The key property it has is that $dx \wedge dy = - dy \wedge dx$; so it alternates sign whenever you flip two of them. In particular, $dx \wedge dx = - dx \wedge dx$ (I flipped them) and therefore $dx \wedge dx = 0$. In other words whenever you wedge the same thing, it vanishes. Finally, all the other rules, like associativity, distributivity "expanding brackets" etc all work as normal. Now we can compute: \begin{align} dx \wedge dy &= \left( \cos \theta dr - r \sin \theta \, d \theta\right)\wedge \left( \sin \theta dr + r \cos \theta \, d \theta\right) \\ &= \left( \cos \theta \sin \theta \right) \underbrace{dr \wedge dr}_{=0} + \left(r \cos^2 \theta \right) dr \wedge d \theta + \left( - r \sin^2 \theta\right) \underbrace{d \theta \wedge dr}_{ = -dr \wedge d \theta} + \left( -r^2 \sin \theta \cos \theta\right)\underbrace{d \theta \wedge d \theta}_{=0} \\ &= r \, dr \wedge d \theta. \end{align}

It is a general fact that the factor you get in front will always be the determinant of the Jacobian matrix of the coordinate change. The main reason for this is that there is a deep connection between determinants, alternating objects like differential forms, and volumes of parallelepiped (which you may have learnt in linear algebra).

These relations are very general, and work for any coordinate system. For exmaple, if you consider parabolic coordinates $\xi, \eta$, whose relation to cartesian coordinates is $x = \xi \eta$ and $y = \dfrac{1}{2}(\eta^2 - \xi^2)$, you can work through a similar mechanical procedure to find \begin{align} dx \wedge dy &= (\xi^2 + \eta^2) \, d\xi \wedge d \eta. \end{align}

Final Remarks.

There are several subtleties which I have had to gloss over, like the concept of orientation, why differential forms are "suitable objects to integrate", etc. But hopefully this gives you an idea for why naive substitution doesn't (and shouldn't be expected to) work, and that one needs an appropriate scale factor to treat the areas; also hopefully there have been enough "mechanical" rules to help (of course you should eventually try to understand them at a deeper level).

One more thing I'd like to highlight is that while the differential forms approach gives a very quick and easy mechanical approach to the change of volume factor, and while computing determinants algebraically is very straight forward, it is very important to keep in mind the geometry behind these formulas. These Riemann integrals are all about areas of various (simple) figures, so it is absolutely essential to atleast somewhat connect the algebraic significance of the determinant to its geometric significance regarding areas/volumes.

  • $\begingroup$ Could you please point me towards a book that could explain at a deeper-level why $\det{J}$ is the right "conversion factor"? Otherwise, I have found this answer connecting volume-based arguments justifying the use of $\det{J}$ with the differential forms approach to be original and insightful $\endgroup$ Apr 16, 2020 at 10:57
  • 1
    $\begingroup$ @MartinGeller I can't suggest one specific source, because along the way I've gathered bits and pieces from several sources; the main places I learnt from though is Michael Spivak's Calculus on Manifolds (see end of Chapter 3), and Loomis and Sternberg's Advanced Calculus (available freely online, but a fairly difficult text). I recently glossed over Hubbard and Hubbard's Calculus and Differential Forms book (I forgot what exactly it's called), they have a fairly geometric development of the theorem. $\endgroup$
    – peek-a-boo
    Apr 16, 2020 at 11:39
  • 1
    $\begingroup$ Also, I wrote an answer a while back which heuristically highlights why (pretty much a summary of the things I had gathered at that point of my study): math.stackexchange.com/a/3239222/568204 $\endgroup$
    – peek-a-boo
    Apr 16, 2020 at 11:39
  • 1
    $\begingroup$ @peek-a-boo if $dxdy$=$-dydx$ then what's wrong with $ $$\iint_S f(x,y) \,dx\,dy$$=$$-\iint_S f(x,y) \,dy\,dx$$ $ ? $\endgroup$
    – pioneer
    May 7, 2020 at 23:37
  • 1
    $\begingroup$ @pioneer you're confusing different notation. Up until you learn about differential forms, you should only treat $dx, dy,dz, dr$ etc as symbols which you put at the end of integrals because it is tradition. By themselves, they have no meaning. In writing something like $\int_a^b f(x)\, dx$, the $dx$ should be thought of as a period at the end of a sentence; it's just there because that's the way people like to indicate the end of a sentence. Because of this, a more proper notation would be $\int_a^b f$. $\endgroup$
    – peek-a-boo
    May 8, 2020 at 0:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .