notesonly.in

One notebook for every subject — open it anywhere.

Log in

Cartesian, Spherical, and Cylindrical Coordinates

Physics problems come with natural symmetries, and the smart move is to choose coordinates that match. Cartesian coordinates (x, y, z) suit boxes and flat planes; cylindrical coordinates (ρ, φ, z) suit anything with an axis, like wires and pipes; spherical coordinates (r, θ, φ) suit anything with a centre, like planets and atoms. Each system labels every point in space uniquely — they are just different languages for the same locations.

The choice matters because it can collapse a nightmare integral into a one-line calculation. The electric field of a point charge is a mess in Cartesian coordinates but trivial in spherical ones; the field of a long straight wire begs for cylindrical coordinates. Knowing the conversions and the volume elements (ρ dρ dφ dz, r² sinθ dr dθ dφ) is a core survival skill in electromagnetism, quantum mechanics, and fluid dynamics.

Key Concepts

  • Cartesian (x, y, z): three perpendicular distances from the coordinate planes, each from −∞ to ∞. Volume element dV = dx dy dz.
  • Cylindrical (ρ, φ, z): ρ ≥ 0 is the distance from the z-axis, φ ∈ [0, 2π) the angle around it, z the height. Volume element dV = ρ dρ dφ dz.
  • Spherical (r, θ, φ): r ≥ 0 is the distance from the origin, θ ∈ [0, π] the polar angle down from the positive z-axis, φ ∈ [0, 2π) the azimuth around z. This is the physics convention — mathematicians often swap θ and φ, so check. Volume element dV = r² sinθ dr dθ dφ.
  • Jacobian factors: the extra ρ and r² sinθ in the volume elements account for how much real volume a unit change in each coordinate sweeps out — rings get bigger with ρ, shells with r².
  • Coordinate singularities: at ρ = 0 or r = 0 (and θ = 0, π) the angles become undefined, though the point itself is perfectly fine.

Formulas

  • Cylindrical from Cartesian: x = ρ cosφ, y = ρ sinφ, z = z; inversely ρ = √(x² + y²), φ = atan2(y, x).
  • Spherical from Cartesian: x = r sinθ cosφ, y = r sinθ sinφ, z = r cosθ; inversely r = √(x² + y² + z²), θ = arccos(z/r), φ = atan2(y, x).
  • Volume elements: dV = dx dy dz = ρ dρ dφ dz = r² sinθ dr dθ dφ.
  • Spherical gradient: ∇f = (∂f/∂r)r̂ + (1/r)(∂f/∂θ)θ̂ + (1/r sinθ)(∂f/∂φ)φ̂.

Worked Example

Convert the point (1, 1, 1) to spherical coordinates. The radius is r = √(1 + 1 + 1) = √3 ≈ 1.732. The polar angle is θ = arccos(z/r) = arccos(1/1.732) = arccos(0.5774) = 54.74°. The azimuth is φ = atan2(1, 1) = 45°. Check by converting back: x = 1.732 × sin(54.74°) × cos(45°) = 1.732 × 0.8165 × 0.7071 = 1.000, and similarly y = 1.000, z = 1.732 × cos(54.74°) = 1.732 × 0.5774 = 1.000. As a second exercise, find the volume of a sphere of radius R by integrating the spherical volume element: V = ∫₀ᴿ r² dr ∫₀^π sinθ dθ ∫₀^{2π} dφ = (R³/3) × 2 × 2π = 4πR³/3 — the familiar formula, derived in three lines because the coordinates match the symmetry.

Common Misconceptions

  1. "θ is measured from the xy-plane." In the physics convention θ is the polar angle measured down from the positive z-axis (0 at the north pole). The mathematics convention often uses θ for the azimuthal angle instead — always confirm.
  2. "You can integrate r dr dθ dφ for volume." Forgetting the Jacobian r² sinθ is the classic error; without it you are not computing volume at all.
  3. "φ can be anything." φ is periodic with period 2π: φ and φ + 2π name the same direction, so integrals over all angles run φ from 0 to 2π exactly once.
  4. Real-World Applications

    • Electrostatics and gravity: point charges and spherical masses are solved in spherical coordinates; line charges and solenoids in cylindrical.
    • Quantum hydrogen atom: the Schrödinger equation separates in spherical coordinates, giving the famous s, p, d orbitals.
    • Antenna patterns: radiation intensity is naturally a function of (θ, φ), plotted as spherical lobes.
    • Medical imaging: CT and MRI reconstructions routinely shuttle between Cartesian voxel grids and cylindrical/spherical acquisition geometries.

    Coordinates are tools, not truths: pick Cartesian for boxes, cylindrical for axes, spherical for centres, and let the symmetry do half the mathematics for you.