The Spherical Coordinate Transformation and Other Common Transformations

The Spherical Coordinate Transformation

The Transformation Formula and the Jacobian

The spherical coordinate transformation

{x=rsin⁡ϕcos⁡θy=rsin⁡ϕsin⁡θz=rcos⁡ϕ\begin{cases} x = r \sin\phi \cos\theta \\ y = r \sin\phi \sin\theta \\ z = r \cos\phi \end{cases}

where r≥0r \geq 0 is the radial distance, ϕ∈[0,π]\phi \in [0, \pi] is the polar angle (the angle with the zz-axis), and θ∈[0,2π)\theta \in [0, 2\pi) is the azimuthal angle.

The Jacobian determinant:

J=∂(x,y,z)∂(r,ϕ,θ)=r2sin⁡ϕJ = \frac{\partial(x,y,z)}{\partial(r,\phi,\theta)} = r^2 \sin\phi

The volume element: dv=dx dy dz=∣J∣ dr dϕ dθ=r2sin⁡ϕ dr dϕ dθdv = dx\,dy\,dz = |J| \, dr \, d\phi \, d\theta = r^2 \sin\phi \, dr \, d\phi \, d\theta

The change of variables formula:

∭Ωf(x,y,z) dv=∭Ω′f(rsin⁡ϕcos⁡θ,rsin⁡ϕsin⁡θ,rcos⁡ϕ)⋅r2sin⁡ϕ dr dϕ dθ\iiint_\Omega f(x,y,z) \, dv = \iiint_{\Omega'} f(r\sin\phi\cos\theta, r\sin\phi\sin\theta, r\cos\phi) \cdot r^2 \sin\phi \, dr \, d\phi \, d\theta

The Applicable Scenarios

The Generalised Polar Coordinate Transformation (the Elliptical Transformation)

The generalised polar coordinate transformation

{x=aρcos⁡θy=bρsin⁡θ\begin{cases} x = a\rho \cos\theta \\ y = b\rho \sin\theta \end{cases}

The Jacobian determinant: J=abρJ = ab\rho

The area element: dσ=abρ dρ dθd\sigma = ab\rho \, d\rho \, d\theta

The applicable scenario: the region of integration is the ellipse x2a2+y2b2≤1\frac{x^2}{a^2} + \frac{y^2}{b^2} \leq 1 or an elliptical sector.

Under the generalised polar coordinates the elliptical region becomes: 0≤ρ≤1, 0≤θ≤2π0 \leq \rho \leq 1, \, 0 \leq \theta \leq 2\pi.

A Generalisation: Generalised Spherical Coordinates (the Ellipsoidal Transformation)

{x=arsin⁡ϕcos⁡θy=brsin⁡ϕsin⁡θz=crcos⁡ϕ\begin{cases} x = ar\sin\phi\cos\theta \\ y = br\sin\phi\sin\theta \\ z = cr\cos\phi \end{cases}

The Jacobian determinant: J=abcr2sin⁡ϕJ = abcr^2\sin\phi

The applicable scenario: the ellipsoidal region x2a2+y2b2+z2c2≤1\frac{x^2}{a^2} + \frac{y^2}{b^2} + \frac{z^2}{c^2} \leq 1.

The Hyperbolic Transformation

The hyperbolic transformation

{x=a⋅u2−v22y=a⋅uv\begin{cases} x = a \cdot \frac{u^2 - v^2}{2} \\ y = a \cdot uv \end{cases}

The Jacobian determinant:

J=∣au−avavau∣=a2u2+a2v2=a2(u2+v2)J = \begin{vmatrix} au & -av \\ av & au \end{vmatrix} = a^2u^2 + a^2v^2 = a^2(u^2 + v^2)

The area element: dσ=a2(u2+v2) du dvd\sigma = a^2(u^2+v^2) \, du \, dv

The applicable scenario: the region of integration is bounded by the parabolas y2=2a(x+a2)y^2 = 2a(x+\frac{a}{2}) and y2=−2a(x−a2)y^2 = -2a(x-\frac{a}{2}), or the integrand contains forms such as x+x2+y2\sqrt{x+\sqrt{x^2+y^2}}.

The Exponential Transformation (Logarithmic Polar Coordinates)

The exponential transformation

{x=aeucos⁡vy=aeusin⁡v\begin{cases} x = ae^u \cos v \\ y = ae^u \sin v \end{cases}

The Jacobian determinant: J=a2e2uJ = a^2 e^{2u}

The area element: dσ=a2e2u du dvd\sigma = a^2 e^{2u} \, du \, dv

The applicable scenario: the integrand contains 1(x2+y2)k\frac{1}{(x^2+y^2)^k} and the region of integration contains the origin (where the polar coordinates may diverge at ρ=0\rho=0; the exponential transformation maps the origin to u=−∞u=-\infty, which makes improper integrals easier to handle).

Linear Transformations

Linear transformations

{x=a11u+a12vy=a21u+a22v\begin{cases} x = a_{11}u + a_{12}v \\ y = a_{21}u + a_{22}v \end{cases}

The Jacobian determinant: J=∣a11a12a21a22∣=a11a22−a12a21J = \begin{vmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{vmatrix} = a_{11}a_{22} - a_{12}a_{21} (a constant)

The area element: dσ=∣J∣ du dvd\sigma = |J| \, du \, dv

The applicable scenario: the region of integration is a parallelogram, or the integrand is a function of a linear combination. A linear transformation turns a parallelogram into a rectangle, which greatly simplifies the limits.

Common Linear Transformations

TransformationFormulaJacobianApplicable scenario
Translationx=u+a, y=v+bx = u + a, \, y = v + bJ=1J = 1the region is not centred at the origin
Scalingx=au, y=bvx = au, \, y = bvJ=abJ = abelliptical / rectangular regions
Rotationx=ucos⁡α−vsin⁡α, y=usin⁡α+vcos⁡αx = u\cos\alpha - v\sin\alpha, \, y = u\sin\alpha + v\cos\alphaJ=1J = 1the region has an inclined axis of symmetry
Shearingx=u+cv, y=vx = u + cv, \, y = vJ=1J = 1parallelogram regions

Worked Examples

Example 1: The Area of an Elliptical Region

Use the generalised polar coordinates to find the area of the ellipse x2a2+y2b2≤1\frac{x^2}{a^2} + \frac{y^2}{b^2} \leq 1.

generalised polar coordinatesthe area of an ellipsea change of variables

Approach:

The generalised polar coordinate transformation turns the elliptical region into the unit disk.

Steps:

  1. The transformation: x=aρcos⁡θ, y=bρsin⁡θx = a\rho\cos\theta, \, y = b\rho\sin\theta, with the Jacobian J=abρJ = ab\rho
  2. The elliptical region becomes: 0≤ρ≤1, 0≤θ≤2π0 \leq \rho \leq 1, \, 0 \leq \theta \leq 2\pi
  3. The area S=∬Ddx dy=∫02πdθ∫01abρ dρ=2π⋅ab⋅12=πabS = \iint_D dx\,dy = \int_0^{2\pi} d\theta \int_0^1 ab\rho \, d\rho = 2\pi \cdot ab \cdot \frac{1}{2} = \pi ab

Answer: πab\pi ab

Example 2: A Linear Transformation for a Parallelogram Region

Compute ∬D(x+y) dx dy\iint_D (x+y) \, dx\,dy, where DD is the parallelogram bounded by x+y=0,x+y=1,x−y=0,x−y=1x+y=0, x+y=1, x-y=0, x-y=1.

a linear transformationa parallelograma change of variables

Approach:

Put u=x+y, v=x−yu = x+y, \, v = x-y; then the region becomes the rectangle 0≤u≤1, 0≤v≤10 \leq u \leq 1, \, 0 \leq v \leq 1.

Steps:

  1. The inverse transformation: x=u+v2, y=u−v2x = \frac{u+v}{2}, \, y = \frac{u-v}{2}
  2. The Jacobian: J=∂(x,y)∂(u,v)=∣1/21/21/2−1/2∣=−12J = \frac{\partial(x,y)}{\partial(u,v)} = \begin{vmatrix} 1/2 & 1/2 \\ 1/2 & -1/2 \end{vmatrix} = -\frac{1}{2}, so ∣J∣=12|J| = \frac{1}{2}
  3. The integrand: x+y=ux+y = u
  4. ∬D(x+y)dx dy=∫01∫01u⋅12du dv=12∫01dv∫01u du=12⋅1⋅12=14\iint_D (x+y) dx\,dy = \int_0^1 \int_0^1 u \cdot \frac{1}{2} du\,dv = \frac{1}{2} \int_0^1 dv \int_0^1 u \, du = \frac{1}{2} \cdot 1 \cdot \frac{1}{2} = \frac{1}{4}

Answer: 14\frac{1}{4}

Example 3: Spherical Coordinates for a Spherical Shell

Compute ∭Ω1x2+y2+z2 dv\iiint_\Omega \frac{1}{\sqrt{x^2+y^2+z^2}} \, dv, where Ω:1≤x2+y2+z2≤4\Omega: 1 \leq x^2+y^2+z^2 \leq 4.

spherical coordinatesa spherical shellthe triple integral

Approach:

A spherical shell region: use the spherical coordinate transformation.

Steps:

  1. Spherical coordinates: 1≤r≤2, 0≤ϕ≤π, 0≤θ≤2π1 \leq r \leq 2, \, 0 \leq \phi \leq \pi, \, 0 \leq \theta \leq 2\pi
  2. The integrand: 1x2+y2+z2=1r\frac{1}{\sqrt{x^2+y^2+z^2}} = \frac{1}{r}
  3. ∭Ω1r⋅r2sin⁡ϕ dr dϕ dθ=∫02πdθ∫0πsin⁡ϕ dϕ∫12r dr=2π⋅2⋅[r22]12=4π⋅32=6π\iiint_\Omega \frac{1}{r} \cdot r^2\sin\phi \, dr \, d\phi \, d\theta = \int_0^{2\pi} d\theta \int_0^\pi \sin\phi \, d\phi \int_1^2 r \, dr = 2\pi \cdot 2 \cdot \left[\frac{r^2}{2}\right]_1^2 = 4\pi \cdot \frac{3}{2} = 6\pi

Answer: 6π6\pi


Exercises

Exercise 1

Use the generalised polar coordinates to compute ∬Dx2a2+y2b2 dx dy\iint_D \sqrt{\frac{x^2}{a^2} + \frac{y^2}{b^2}} \, dx\,dy, where D:x2a2+y2b2≤1D: \frac{x^2}{a^2} + \frac{y^2}{b^2} \leq 1.

generalised polar coordinatesan elliptical regiona change of variables

Approach:

After the generalised polar coordinate transformation, the integrand becomes ρ\rho.

Steps:

  1. The transformation: x=aρcos⁡θ, y=bρsin⁡θx = a\rho\cos\theta, \, y = b\rho\sin\theta, with J=abρJ = ab\rho
  2. The region: 0≤ρ≤1, 0≤θ≤2π0 \leq \rho \leq 1, \, 0 \leq \theta \leq 2\pi
  3. The integrand: x2a2+y2b2=ρ\sqrt{\frac{x^2}{a^2}+\frac{y^2}{b^2}} = \rho
  4. ∬Dρ⋅abρ dρ dθ=ab∫02πdθ∫01ρ2dρ=ab⋅2π⋅13=2πab3\iint_D \rho \cdot ab\rho \, d\rho \, d\theta = ab \int_0^{2\pi} d\theta \int_0^1 \rho^2 d\rho = ab \cdot 2\pi \cdot \frac{1}{3} = \frac{2\pi ab}{3}

Answer: 2πab3\frac{2\pi ab}{3}

Exercise 2

Use a linear transformation to compute ∬Dex−yx+y dx dy\iint_D e^{\frac{x-y}{x+y}} \, dx\,dy, where DD is bounded by x+y=1,x=0,y=0x+y=1, x=0, y=0.

a linear transformationa triangular regiona change of variables

Approach:

Put u=x+y, v=x−yu = x+y, \, v = x-y; this simplifies the integrand.

Steps:

  1. The inverse transformation: x=u+v2, y=u−v2x = \frac{u+v}{2}, \, y = \frac{u-v}{2}, with ∣J∣=12|J| = \frac{1}{2}
  2. The transformation of the region: x≥0,y≥0⇒u+v≥0,u−v≥0⇒−u≤v≤ux \geq 0, y \geq 0 \Rightarrow u+v \geq 0, u-v \geq 0 \Rightarrow -u \leq v \leq u; and x+y≤1⇒u≤1x+y \leq 1 \Rightarrow u \leq 1
  3. The region: 0≤u≤1, −u≤v≤u0 \leq u \leq 1, \, -u \leq v \leq u
  4. The integrand: evue^{\frac{v}{u}}
  5. ∬Dev/u⋅12du dv=12∫01du∫−uuev/udv=12∫01u[ev/u]−uudu=12∫01u(e−e−1)du=e−e−12⋅12=e−e−14\iint_D e^{v/u} \cdot \frac{1}{2} du\,dv = \frac{1}{2}\int_0^1 du \int_{-u}^u e^{v/u} dv = \frac{1}{2}\int_0^1 u[e^{v/u}]_{-u}^u du = \frac{1}{2}\int_0^1 u(e - e^{-1}) du = \frac{e-e^{-1}}{2} \cdot \frac{1}{2} = \frac{e-e^{-1}}{4}

Answer: e−e−14\frac{e-e^{-1}}{4}


Summary

Symbols Used in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
rrRadial distanceradial distanceThe distance from the point to the origin in spherical coordinates
ϕ\phiPolar anglepolar angleThe angle with the zz-axis in spherical coordinates
θ\thetaAzimuthal angleazimuthal angleThe angle of the projection onto the xOyxOy plane
a,ba, bSemi-axis lengthsemi-axesThe semi-axis lengths of the ellipse / ellipsoid
u,v,wu, v, wNew coordinatesnew coordinatesThe new independent variables after the change of variables

Key Terms

English termPronunciationNote
spherical coordinate transformation/ˈsfɪrɪkəl koʊˈɔːrdɪneɪt ˌtrænsfərˈmeɪʃən/the transformation from rectangular coordinates to spherical coordinates
generalized polar coordinates/ˈdʒɛnrəlaɪzd ˈpoʊlər koʊˈɔːrdɪneɪts/the elliptical transformation, a generalisation of polar coordinates
hyperbolic transformation/ˌhaɪpərˈbɒlɪk ˌtrænsfərˈmeɪʃən/a transformation based on parabolic coordinates
linear transformation/ˈlɪniər ˌtrænsfərˈmeɪʃən/a change of variables whose formula is linear
ellipsoidal transformation/ɪˈlɪpsɔɪdl ˌtrænsfərˈmeɪʃən/generalised spherical coordinates, the transformation for ellipsoidal regions
exponential transformation/ˌɛkspəˈnɛnʃəl ˌtrænsfərˈmeɪʃən/the logarithmic polar coordinate transformation
translation/trænsˈleɪʃən/a translation of the region
rotation/roʊˈteɪʃən/a rotation of the region

Found an issue with this content?

Tell us what could be improved.