---
title: Solid angle and the inverse-square law
heading: How much of the sky a surface fills, and why a point source's flux never changes
eyebrow: A9 · Lesson 32 · Solid angle and the inverse-square law
xp: 40
---

::: hook
A photodiode across the room catches only a sliver of an LED's light; an antenna's gain says how tightly it squeezes its power into a narrow beam; a point charge's field lines pass through every closed surface around it in the same number. All three are measured with the **solid angle**: the size of a surface as seen from a point, the two-dimensional version of an angle. Lesson 31's flux integrals compute it, and it explains why anything that spreads out from a point weakens as $1/r^2$.
:::

::: play
- A cone of half-angle $\theta$ cuts a cap from the unit sphere. The curve is the cap's area, the solid angle $\Omega = 2\pi(1 - \cos\theta)$, against $\theta$; the dashed line is the flat-disk estimate $\pi\theta^2$.
- At small angles the two agree. At 90° the cone is a hemisphere, $2\pi$ steradians; at 180° it's the whole sphere, $4\pi$.
:::

```sim plot
view: graph
x: theta = 0..180
y: steradians = 0..13
plot: 2*pi*(1 - cos(theta°)) | label: Ω = 2π(1 − cos θ)
plot: pi*(theta*pi/180)^2 | dashed | label: πθ² (small angles)
readout: hemisphere = 2*pi | digits: 4
readout: whole sphere = 4*pi | digits: 4
```

::: predict
## A small detector is moved from 10 cm to 20 cm away from a lamp. What fraction of the light it caught before does it catch now?

- [ ] Half
- [x] A quarter
- [ ] The same
- [ ] An eighth

::: reveal
A quarter. The detector's solid angle, its area over the distance squared, drops by four when the distance doubles, and a lamp that shines evenly in all directions sends the same power into every steradian. That's the inverse-square law: the power hasn't gone anywhere, it's spread over a sphere four times larger.
:::
:::

::: nameit
## Solid angle

The solid angle of a surface seen from a point is the area of its shadow on a unit sphere around the point, measured in **steradians** (sr). For a surface at distance $r$, each piece $dA$ tilted by $\alpha$ from facing the point contributes

$$d\Omega = \frac{\cos\alpha\,dA}{r^2} \qquad \Omega = \iint_S \frac{\hat{\mathbf{r}}\cdot d\mathbf{A}}{r^2}$$

A whole sphere is $4\pi$ sr, a hemisphere $2\pi$. A small, flat patch of area $A$ facing the point from distance $r$ has $\Omega \approx A/r^2$.

## Two exact results

- A cone of half-angle $\theta$: $\Omega = \int_0^{2\pi}\!\int_0^\theta \sin\theta'\,d\theta'\,d\phi = 2\pi(1 - \cos\theta)$, using lesson 18's spherical area element.
- A disk of radius $a$ seen on its axis from distance $d$ is a cone with $\cos\theta = d/\sqrt{d^2 + a^2}$, so $\Omega = 2\pi\left(1 - d/\sqrt{d^2 + a^2}\right)$.

## Power from a point source

A source radiating power $P$ evenly in all directions sends $P/4\pi$ watts per steradian. A detector filling $\Omega$ catches

$$P_\text{det} = \frac{P}{4\pi}\,\Omega \approx \frac{P}{4\pi}\frac{A}{r^2}$$

the inverse-square law. Light sources are rated the same way: luminous intensity in candelas is lumens per steradian.

## Antennas: beam solid angle and directivity

An antenna that put all its power evenly into a beam of solid angle $\Omega_A$ would deliver $4\pi/\Omega_A$ times the power per steradian of an isotropic one. That ratio is its **directivity**:

$$D = \frac{4\pi}{\Omega_A} \approx \frac{41\,253}{\theta_E\theta_H}$$

with the beam widths in degrees: $41\,253 = 4\pi(180/\pi)^2$, the number of square degrees in a sphere.

## Why flux doesn't depend on the surface

A point charge's field points radially with strength $q/(4\pi\varepsilon_0r^2)$, so its flux through any piece of surface is $\frac{q}{4\pi\varepsilon_0}\,d\Omega$. Any closed surface around the charge covers the whole sphere of directions, $4\pi$ sr, so the total flux is $q/\varepsilon_0$ whatever the surface's shape. That is Gauss's law, which a later lesson builds on.
:::

::: example
## An LED has a luminous intensity of 10 cd, nearly constant within 30° of its axis and dark outside. About how many lumens does it emit?

::: solution
1. **Solid angle of the cone.**
   $$\begin{aligned} \Omega &= 2\pi(1 - \cos 30°) \\ &= 2\pi(0.134) \\ &= 0.842\ \text{sr} \end{aligned}$$
2. **Luminous flux.**
   $$10 \times 0.842 = 8.4\ \text{lm}$$
3. **Compare with the flat estimate.**
   $$\begin{aligned} \pi\theta^2 &= \pi(0.524)^2 \\ &= 0.861\ \text{sr} \end{aligned}$$
   That would be 2% high; at 30° the cap is already curved enough to matter.

**Answer:** about 8.4 lm.
:::
:::

::: example
## A 1 mm² photodiode faces a lamp 10 cm away. What fraction of the lamp's power, radiated evenly in all directions, does it catch?

::: solution
1. **Solid angle of the photodiode.**
   $$\begin{aligned} \Omega &= A/r^2 \\ &= 10^{-6}/0.01 \\ &= 10^{-4}\ \text{sr} \end{aligned}$$
2. **Fraction of the whole sphere.**
   $$\frac{10^{-4}}{4\pi} = 8.0 \times 10^{-6}$$
   eight millionths, so a 1 W lamp delivers 8 µW.
3. **Compare with a lens.** This is why optical links use lenses: a 25 mm lens at the same distance would fill almost 500 times the solid angle.

**Answer:** it catches $8.0 \times 10^{-6}$ of the power, eight millionths.
:::
:::

::: example
## A dish antenna's beam is 10° wide in both planes. Estimate its directivity, and compare the flat and exact solid angles for a detector disk of radius 5 mm seen from 20 mm.

::: solution
1. **Beam solid angle.** A 10° by 10° beam fills about
   $$(0.1745)^2 = 0.0305\ \text{sr}$$
2. **Directivity.**
   $$\begin{aligned} D &\approx 4\pi/0.0305 \\ &= 412 \end{aligned}$$
   or 26.2 dBi; the square-degrees rule gives $41\,253/100 = 413$.
3. **Exact solid angle of the disk.**
   $$\begin{aligned} \Omega &= 2\pi\left(1 - \frac{20}{\sqrt{400 + 25}}\right) \\ &= 0.188\ \text{sr} \end{aligned}$$
4. **Flat estimate.**
   $$\frac{\pi a^2}{d^2} = 0.196\ \text{sr}$$
   That's 4.7% high. Close up, the disk's edges are farther away and tilted, and the flat estimate counts them as if they were neither.

**Answer:** the directivity is about 412 (26.2 dBi); for the disk the exact solid angle is 0.188 sr and the flat one 0.196 sr, 4.7% high.
:::
:::

::: check
given: th = 30 | 45 | 60 | 120 °
answer: 2*pi*(1 - cos(th°))
unit: sr
tolerance: 0.5%

## What solid angle does a cone of half-angle {th} fill?

::: right
Right. $\Omega = 2\pi(1 - \cos\theta)$ = {answer}.
:::

::: misses
- [pi*(th*pi/180)^2] That's the flat-disk estimate, which only works for small angles.
- [2*pi*(1 - cos(th°))*180/pi] The answer is already in steradians; don't convert from radians.
- [4*pi*(1 - cos(th°))] A full sphere is $4\pi$, but a cone's cap is $2\pi(1 - \cos\theta)$.
- [any] Not yet. Integrate $\sin\theta'\,d\theta'\,d\phi$ over the cap: $2\pi(1 - \cos\theta)$.
:::
:::

::: check
given: A = 1 | 4 | 10; r = 5 | 10 | 50
answer: A*1e-6/(r*1e-2)^2/(4*pi)
tolerance: 0.5%

## A detector of {A} mm² faces a point source {r} cm away that radiates evenly in all directions. What fraction of the source's power does it catch?

::: right
Right. $\Omega = A/r^2$ in square meters over square meters, and the fraction is $\Omega/4\pi$ = {answer}.
:::

::: misses
- [A*1e-6/(r*1e-2)^2] That's the solid angle. Divide by $4\pi$, the whole sphere.
- [A/r^2/(4*pi)] Put the area and distance in the same units first: mm² and cm don't cancel.
- [any] Not yet. Find $\Omega = A/r^2$ in consistent units, then divide by $4\pi$.
:::
:::

::: check
kind: parts
given: a = 2 | 5 | 10; d = 5 | 10 | 20

## A detector disk of radius {a} mm sits on the axis of a point source, {d} mm away.

::: part
answer: 2*pi*(1 - d/sqrt(d^2 + a^2))
unit: sr
tolerance: 0.2%

### What is its exact solid angle?

::: misses
- [pi*a^2/d^2] That's the flat estimate. The exact result is $2\pi(1 - d/\sqrt{d^2 + a^2})$.
- [any] Not yet. The disk is the base of a cone with $\cos\theta = d/\sqrt{d^2 + a^2}$.
:::
:::

::: part
answer: (pi*a^2/d^2)/(2*pi*(1 - d/sqrt(d^2 + a^2)))
tolerance: 0.2%

### By what factor does the flat estimate $\pi a^2/d^2$ overstate it?

::: misses
- [(2*pi*(1 - d/sqrt(d^2 + a^2)))/(pi*a^2/d^2)] That's upside down: the flat estimate is the larger one.
- [any] Not yet. Divide the flat estimate by the exact value.
:::
:::

::: right
Right. The error depends only on $a/d$: a detector closer than about three times its radius needs the exact formula.
:::
:::

::: check
given: bw1 = 5 | 10 | 30; bw2 = 5 | 20 | 60
answer: 10*log(41253/(bw1*bw2))
unit: dB
tolerance: 0.05

## An antenna's beam is {bw1}° wide in one plane and {bw2}° in the other. Estimate its directivity in dBi.

::: right
Right. $D \approx 41\,253/(\theta_E\theta_H)$, which is {answer} in decibels.
:::

::: misses
- [41253/(bw1*bw2)] That's the directivity as a ratio. Convert to decibels: $10\log_{10}D$.
- [10*log(4*pi/(bw1*bw2))] The beam widths are in degrees; $4\pi$ steradians is 41 253 square degrees.
- [any] Not yet. Divide 41 253 square degrees by the beam's square degrees, then take $10\log_{10}$.
:::
:::

::: check
kind: python
given: s = 1 | 2 | 5; d = 5 | 10 | 20

## A square photodiode of side `s` = {s} mm faces a source on its axis, `d` = {d} mm away. Compute its solid angle by integrating $d\Omega = d\,dA/(x^2 + y^2 + d^2)^{3/2}$ over the square with the midpoint rule on a 400 × 400 grid, and set `omega`. Set `exact` to $4\arctan\!\left(\frac{s^2}{2d\sqrt{4d^2 + 2s^2}}\right)$ and `flat` to $s^2/d^2$.

```python starter
import numpy as np
omega = s**2 / d**2
exact = omega
flat = omega
print(omega, exact, flat)
```

```python solution
import numpy as np
n = 400
h = s / n
c = -s / 2 + h * (np.arange(n) + 0.5)
X, Y = np.meshgrid(c, c)
omega = np.sum(d / (X**2 + Y**2 + d**2)**1.5) * h * h
exact = 4 * np.arctan(s**2 / (2 * d * np.sqrt(4 * d**2 + 2 * s**2)))
flat = s**2 / d**2
print(omega, exact, flat)
```

```python tests
import numpy as np
ex = 4 * np.arctan(s**2 / (2 * d * np.sqrt(4 * d**2 + 2 * s**2)))
assert abs(exact - ex) < 1e-15, "exact is 4·arctan(s²/(2d√(4d² + 2s²)))."
assert abs(omega - ex) < 1e-6 * ex, f"The integral should give {ex:.8f} sr. Each patch contributes cos α dA / r² = d·dA/(x² + y² + d²)^(3/2)."
assert abs(flat - s**2 / d**2) < 1e-15 and flat > ex, "flat is s²/d², always a bit larger."
```

::: right
Right. The $\cos\alpha$ and the $1/r^2$ together give $d/r^3$, and the numerical integral lands on the exact formula. The flat estimate overstates it by about $s^2/(2d^2)$ in relative terms, a few percent for a close detector.
:::
:::

::: check
kind: derivation
vars: t = 0.1..3

## Derive the solid angle of a cone of half-angle $\theta$, using the unit sphere's area element $\sin\theta'\,d\theta'\,d\phi$.

::: step
answer: 2*pi*sin(t)

### Integrate over $\phi$ from 0 to $2\pi$ first. What's left multiplying $d\theta'$? (Write $\theta'$ as `t`.)
:::

::: step
answer: 2*pi*(1 - cos(t))

### Now integrate that from 0 to the cone's half-angle. What is $\Omega$? (Write the half-angle as `t`.)
:::

::: right
Right. At $\theta = \pi$ it gives $4\pi$, the whole sphere, and for small $\theta$, $1 - \cos\theta \approx \theta^2/2$ gives back the flat $\pi\theta^2$.
:::
:::

::: check
kind: choice

## Why is the electric flux through any closed surface around a point charge the same, $q/\varepsilon_0$, whatever its shape?

- [x] The flux through each piece is proportional to the solid angle it fills, and any closed surface around the charge fills all $4\pi$ steradians
- [ ] Because every closed surface has the same area
- [ ] Because the field is the same everywhere on the surface
- [ ] Only spheres give $q/\varepsilon_0$; other shapes give less

::: right
Right. A farther piece of surface is larger but sees a weaker field, and the two effects cancel exactly for a $1/r^2$ field: each piece's flux depends only on its solid angle. Covering every direction once means $4\pi$ in total.
:::

::: misses
- [2] Closed surfaces can have any area. What they share is the solid angle they cover: $4\pi$.
- [3] On a cube around a charge the field is stronger at the face centers than at the corners, yet the flux is still $q/\varepsilon_0$.
- [4] Any closed surface around the charge gives $q/\varepsilon_0$; that's Gauss's law.
:::
:::

::: explain
## Why does a $1/r^2$ field make the flux through a closed surface independent of the surface's shape, while a $1/r^3$ field would not?

::: model
A patch of surface at distance $r$ filling solid angle $d\Omega$ has an effective area $r^2\,d\Omega$ facing the source. With a $1/r^2$ field the flux through it is $(k/r^2)(r^2\,d\Omega) = k\,d\Omega$, so the distance cancels and only the solid angle counts; the total over any closed surface is $4\pi k$. With a $1/r^3$ field the flux through the patch would be $k\,d\Omega/r$, which depends on how far away the patch is, so pushing part of the surface outward would lower the total. The inverse-square law is exactly the case where the spreading of area and the weakening of the field balance.
:::
:::

::: practice

::: check
given: Om = 0.5 | 1 | 2; P = 1 | 10
answer: P*Om/(4*pi)
unit: W
tolerance: 0.5%

## A {P} W isotropic source shines on a detector filling {Om} sr. How much power does the detector catch?

::: misses
- [P*Om] Divide by $4\pi$: the source spreads its power over the whole sphere.
- [any] $P\,\Omega/4\pi$.
:::
:::

::: check
given: D = 100 | 1000 | 10000
answer: 4*pi/D
unit: sr
tolerance: 0.5%

## An antenna has a directivity of {D}. What is its beam solid angle?

::: misses
- [D/(4*pi)] $D = 4\pi/\Omega_A$, so $\Omega_A = 4\pi/D$.
- [any] $\Omega_A = 4\pi/D$.
:::
:::
:::
