Ma · Mathematics

How to Integrate Over a Solid Angle

Published By the 9to5Science editorial team

At a glance

  1. 1. Choose spherical coordinates

    Describe each direction by polar angle θ and azimuthal angle φ.

  2. 2. Use the area element

    Replace dΩ with sin(θ) dθ dφ.

  3. 3. Set angular limits

    Determine the polar and azimuthal ranges describing the region of directions.

  4. 4. Evaluate the integral

    Integrate the function over those limits, checking that a constant function gives the region’s solid angle.

A solid angle measures the size of a region on the unit sphere, just as an ordinary angle measures an arc on the unit circle. Its unit is the steradian, and the full sphere has solid angle 4π4\pi.

The usual meaning of “integrate over a solid angle” is to integrate a function of direction over a region of the unit sphere. In spherical coordinates, the essential formula is

dΩ=sin⁡θ dθ dϕ,d\Omega = \sin\theta\,d\theta\,d\phi,

where θ\theta is the polar angle measured down from the positive zz-axis and ϕ\phi is the azimuthal angle in the xyxy-plane.

The solid-angle element

A point on the unit sphere has Cartesian coordinates

(x,y,z)=(sin⁡θcos⁡ϕ, sin⁡θsin⁡ϕ, cos⁡θ).(x,y,z)=(\sin\theta\cos\phi,\,\sin\theta\sin\phi,\,\cos\theta).

A small patch bounded by dθd\theta and dϕd\phi has side lengths approximately dθd\theta and sin⁡θ dϕ\sin\theta\,d\phi. The second length contains the factor sin⁡θ\sin\theta because circles of constant θ\theta shrink near the poles. Therefore its area, and hence its solid angle, is

dΩ=sin⁡θ dθ dϕ.d\Omega=\sin\theta\,d\theta\,d\phi.

For a function f(θ,ϕ)f(\theta,\phi), the solid-angle integral over a region RR is

∫Rf dΩ=∫ϕ=ϕ1ϕ2∫θ=θ1(ϕ)θ2(ϕ)f(θ,ϕ)sin⁡θ dθ dϕ.\int_R f\,d\Omega = \int_{\phi=\phi_1}^{\phi_2} \int_{\theta=\theta_1(\phi)}^{\theta_2(\phi)} f(\theta,\phi)\sin\theta\,d\theta\,d\phi.

The limits may be reversed if the region is more naturally described using θ\theta as the outer variable.

Basic checks

For the entire sphere, use 0≤θ≤π0\leq\theta\leq\pi and 0≤ϕ≤2π0\leq\phi\leq 2\pi:

∫S2dΩ=∫02π∫0πsin⁡θ dθ dϕ=(∫02πdϕ)(∫0πsin⁡θ dθ)=2π⋅2=4π.\begin{aligned} \int_{S^2}d\Omega &=\int_0^{2\pi}\int_0^\pi \sin\theta\,d\theta\,d\phi\\ &=\left(\int_0^{2\pi}d\phi\right) \left(\int_0^\pi\sin\theta\,d\theta\right)\\ &=2\pi\cdot 2\\ &=4\pi. \end{aligned}

This also shows that integrating the constant function 11 returns the solid angle of the region:

Ω(R)=∫RdΩ.\Omega(R)=\int_Rd\Omega.

For example, a hemisphere has solid angle 2π2\pi.

Worked example: a circular cone

Consider all directions inside a cone with its vertex at the origin and its axis along the positive zz-axis. Let the cone have half-angle α\alpha. Its directions satisfy

0≤θ≤α,0≤ϕ≤2π.0\leq\theta\leq\alpha, \qquad 0\leq\phi\leq 2\pi.

Its solid angle is

Ω=∫02π∫0αsin⁡θ dθ dϕ=2π[−cos⁡θ]0α=2π(1−cos⁡α).\begin{aligned} \Omega &=\int_0^{2\pi}\int_0^\alpha \sin\theta\,d\theta\,d\phi\\ &=2\pi[-\cos\theta]_0^\alpha\\ &=2\pi(1-\cos\alpha). \end{aligned}

For a 60∘60^\circ cone, α=π/3\alpha=\pi/3, so

Ω=2π(1−12)=π.\Omega=2\pi\left(1-\frac12\right)=\pi.

Thus the cone covers a quarter of the full sphere, since π/(4π)=1/4\pi/(4\pi)=1/4.

As a second example, integrate cos⁡θ\cos\theta over the same cone:

∫Rcos⁡θ dΩ=∫02π∫0αcos⁡θsin⁡θ dθ dϕ=2π[12sin⁡2θ]0α=πsin⁡2α.\begin{aligned} \int_R\cos\theta\,d\Omega &=\int_0^{2\pi}\int_0^\alpha \cos\theta\sin\theta\,d\theta\,d\phi\\ &=2\pi\left[\frac12\sin^2\theta\right]_0^\alpha\\ &=\pi\sin^2\alpha. \end{aligned}

For α=π/3\alpha=\pi/3, this is 3π/43\pi/4.

Integrating a direction-dependent function

If a function is given in Cartesian coordinates as f(x,y,z)f(x,y,z) but is intended to depend only on direction, restrict it to the unit sphere:

x=sin⁡θcos⁡ϕ,y=sin⁡θsin⁡ϕ,z=cos⁡θ.x=\sin\theta\cos\phi,\qquad y=\sin\theta\sin\phi,\qquad z=\cos\theta.

For example, let f(x,y,z)=z2f(x,y,z)=z^2. Over the full sphere,

∫S2z2 dΩ=∫02π∫0πcos⁡2θsin⁡θ dθ dϕ=2π[−13cos⁡3θ]0π=4π3.\begin{aligned} \int_{S^2}z^2\,d\Omega &=\int_0^{2\pi}\int_0^\pi \cos^2\theta\sin\theta\,d\theta\,d\phi\\ &=2\pi\left[-\frac13\cos^3\theta\right]_0^\pi\\ &=\frac{4\pi}{3}. \end{aligned}

This agrees with symmetry: on the unit sphere, the integrals of x2x^2, y2y^2, and z2z^2 are equal, and x2+y2+z2=1x^2+y^2+z^2=1, whose integral is 4π4\pi.

Solid angle from an ordinary surface

If a surface patch SS is viewed from a point, its oriented (signed) differential solid angle is

dΩsigned=r⋅n∥r∥3 dS,d\Omega_{\text{signed}}=\frac{\mathbf r\cdot\mathbf n}{\lVert\mathbf r\rVert^3}\,dS,

where r\mathbf r points from the observation point to the surface element, n\mathbf n is a chosen unit normal, and dSdS is the ordinary surface-area element. The dot product accounts for foreshortening. The ordinary nonnegative solid angle subtended by the patch is obtained by taking the absolute value:

dΩ=∣r⋅n∣∥r∥3 dS.d\Omega=\frac{|\mathbf r\cdot\mathbf n|}{\lVert\mathbf r\rVert^3}\,dS.

For a flat surface with normal making angle γ\gamma with r\mathbf r, this becomes, for the ordinary solid angle,

dΩ=∣cos⁡γ∣r2 dS.d\Omega=\frac{|\cos\gamma|}{r^2}\,dS.

For an oriented solid angle, omit the absolute value and retain the sign. The sign depends on the orientation of the normal. If only the size of the visible solid angle is wanted, take the appropriate absolute value. For a surface that is not star-shaped relative to the observation point, split it into suitable patches and handle visibility and orientation carefully.

Common mistakes

  • Omitting sin⁡θ\sin\theta. The expression dθ dϕd\theta\,d\phi is not the solid-angle element. The factor sin⁡θ\sin\theta is required.
  • Using the wrong polar range. A full sphere uses 00 to π\pi for θ\theta, not 00 to 2π2\pi.
  • Confusing θ\theta and ϕ\phi. In the convention used here, θ\theta is measured from the zz-axis and ϕ\phi rotates around that axis. Some fields swap these names, so always check the convention.
  • Adding a radial factor. A solid-angle integral is over directions and has no r2r^2 factor. A volume integral uses r2sin⁡θ dr dθ dϕr^2\sin\theta\,dr\,d\theta\,d\phi instead.
  • Forgetting units or normalization. Solid angle is measured in steradians, but radians and steradians are dimensionless in formulas. A normalized average over a region is Ω(R)−1∫Rf dΩ\Omega(R)^{-1}\int_R f\,d\Omega, not simply ∫Rf dΩ\int_R f\,d\Omega.

For a region described by a boundary curve on the unit sphere, the practical procedure is therefore: convert the boundary to angular limits, insert sin⁡θ\sin\theta, and verify the result by testing the constant function $1.

References

  1. Mathematical Methods for Physicists, George B. Arfken, Hans J. Weber, and Frank E. Harris
  2. Classical Electrodynamics, 3rd ed., John David Jackson

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.