---
title: Arrays of sources
heading: The array factor of a line of equal sources, on-axis gain, beamwidth and nulls, steering a beam with time delays, grating lobes when the spacing is too large, directivity of a half-wavelength array, and line sources that fall off 3 dB per doubling of distance
eyebrow: S16 · Lesson 17 · Arrays of sources
xp: 50
---

::: hook
Concert sound systems hang tall columns of identical loudspeakers, sonar ships and medical ultrasound probes steer beams without moving parts, and a smartphone's two microphones pick out a voice from noise. All rely on arrays: groups of identical sources (or receivers) whose outputs add with controlled delays. Lesson 15's pair is the simplest case; with N elements the beam narrows, sidelobes form, and a progressive delay swings the beam across the room, exactly like S5's phased antenna arrays.
:::

::: play
- The far-field pattern of N equal sources spaced d apart, with an electronic delay that steers the beam to angle $\theta_0$ from broadside: $|\sin(N\psi/2)/(N\sin(\psi/2))|$ with $\psi = kd(\sin\theta - \sin\theta_0)$.
- More elements narrow the main beam; larger spacing in wavelengths narrows it too, until grating lobes, full-strength copies of the main beam, appear.
- Steering far off broadside brings grating lobes in sooner.
:::

```sim plot
view: complex
range: 1.2
slider: N = 2..16 step 1 = 8
slider: k = 0.5..8 step 0.1 = 3.14
slider: s = 0..60 step 1 = 0
curve: abs(sin(N*k*(sin(u) - sin(s*pi/180))/2 + 1e-9)/(N*sin(k*(sin(u) - sin(s*pi/180))/2 + 1e-9)))*exp(j*(u + pi/2)) | over: u = -1.5708..1.5708
readout: spacing in wavelengths = k/(2*pi) | digits: 3
readout: largest spacing without grating lobes, wavelengths = 1/(1 + sin(s*pi/180)) | digits: 3
```

::: predict
## Eight identical loudspeakers in a line, driven in phase, all produce the same pressure at a distant point on the broadside axis. How much louder is the array there than one speaker?

- [ ] 9 dB
- [x] About 18 dB
- [ ] 8 dB
- [ ] 3 dB

::: reveal
On the broadside axis all eight pressures arrive in phase and add: eight times the pressure is 20 log 8 = 18.1 dB. The total radiated power grows only about eightfold (9 dB), so the extra 9 dB on axis is borrowed from other directions: that's directivity.
:::
:::

::: nameit
## The array factor

N equal point sources spaced d apart along a line, each delayed so that its phase advances by $kd\sin\theta_0$ from one to the next, give a far-field pressure equal to one source's times

$$AF(\theta) = \frac{\sin(N\psi/2)}{N\sin(\psi/2)}, \qquad \psi = kd(\sin\theta - \sin\theta_0)$$

with θ measured from broadside. The main lobe points at $\theta_0$, where all N pressures add: a gain of 20 log N on axis.

## Beamwidth and nulls

For an unsteered array the first nulls are at $\sin\theta = \lambda/(Nd)$: the beam's width is set by the array's total length in wavelengths. Sidelobes of a uniform array peak about 13 dB below the main lobe; tapering the drive toward the ends lowers them at the cost of a wider beam.

## Steering and grating lobes

A time delay $\tau = d\sin\theta_0/c$ between neighbors steers the beam to $\theta_0$ at every frequency (a phase shift steers only at one). If the spacing is too large, the pattern repeats: a **grating lobe** appears unless

$$d < \frac{\lambda}{1 + |\sin\theta_0|}$$

so arrays that steer widely need elements less than half a wavelength apart at the highest frequency.

## Directivity and line sources

A line array with half-wavelength spacing has directivity factor about N: DI ≈ 10 log N. Close to a long line array (within about its length squared over twice the wavelength) the sound spreads cylindrically, falling 3 dB per doubling of distance instead of 6, which lets tall arrays carry sound to the back of a hall.
:::

::: example
## Eight speakers 10 cm apart radiate 1715 Hz (λ = 20 cm). Where are the first nulls? What delay steers the beam 30°, and does steering that far create a grating lobe?

::: solution
1. **First nulls.**
   $$\begin{aligned} \sin\theta &= \frac{0.2}{8 \times 0.1} \\ &= 0.25 \end{aligned}$$
   so θ = ±14.5°.
2. **Steering delay.** Between neighbors:
   $$\begin{aligned} \tau &= \frac{0.1 \times \sin 30^\circ}{343} \\ &= 146\ \mu\text{s} \end{aligned}$$
3. **Grating lobes.** The largest spacing without grating lobes is
   $$\begin{aligned} d_\text{max} &= \frac{0.2}{1 + 0.5} \\ &= 13.3\ \text{cm} \end{aligned}$$
   so 10 cm is safe.

**Answer:** the first nulls are at ±14.5°, steering to 30° needs 146 µs between neighbors, and it creates no grating lobe.
:::
:::

::: example
## A long line array is 5 m from a listener, who moves back to 20 m. How much quieter is it, if the listener is still in the cylindrical region?

::: solution
1. **Cylindrical spreading.**
   $$10\log(20/5) = 6.0\ \text{dB}$$
2. **Compare with a point source.** Over the same move it would lose
   $$20\log(20/5) = 12\ \text{dB}$$

**Answer:** the line array is 6.0 dB quieter, against 12 dB for a point source.
:::
:::

::: example
## Sixteen microphones are summed to pick a talker out of noise. What array gain do they give if the noise at each is independent, and if every pair of noise signals is correlated by 0.2, as in a reverberant room at low frequency?

::: solution
1. **Independent noise.** The signal adds coherently (16 times the amplitude) while independent noise adds in power (16 times), so the gain is
   $$10\log 16 = 12.0\ \text{dB}$$
2. **Correlated noise.** With pairwise correlation ρ the noise power grows as $N[1 + (N - 1)\rho]$, and the gain becomes
   $$\begin{aligned} G &= 10\log\frac{N}{1 + (N - 1)\rho} \\ &= 10\log(16/4) \\ &= 6.0\ \text{dB} \end{aligned}$$
3. **What limits real arrays.** Correlated noise, from a dominant noise source or the room's low-frequency modes, is what limits real arrays.

**Answer:** 12.0 dB with independent noise and 6.0 dB with a pairwise correlation of 0.2.
:::
:::

::: check
given: N = 2 | 4 | 12 | 24
answer: 20*log(N)
unit: dB
tolerance: 0.5%

## {N} identical sources are driven in phase. How much louder are they than one source on the broadside axis, far away?

::: right
Right. $20\log N$ = {answer} dB.
:::

::: misses
- [10*log(N)] On axis the pressures add coherently: 20 log N.
- [any] Not yet. N times the pressure.
:::
:::

::: check
given: N = 8 | 16; d = 10 | 20; f = 1000 | 2500
answer: asin(343/f/(N*d/100))*180/pi
unit: °
tolerance: 0.5%

## An unsteered line of {N} sources {d} cm apart radiates {f} Hz. At what angle from broadside are its first nulls?

::: right
Right. $\sin^{-1}(\lambda/Nd)$ = {answer}°.
:::

::: misses
- [any] Not yet. The array factor's first zero.
:::
:::

::: check
given: d = 2 | 5 | 15; t = 10 | 30 | 60; c = 343 | 1500
answer: d/100*sin(t*pi/180)/c*1e6
unit: µs
tolerance: 0.5%

## Elements {d} cm apart in a medium with c = {c} m/s must steer a beam {t}° from broadside. What delay goes between neighbors?

::: right
Right. $d\sin\theta_0/c$ = {answer} µs.
:::

::: misses
- [d/100*cos(t*pi/180)/c*1e6] The extra path is $d\sin\theta_0$ when θ is measured from broadside.
- [any] Not yet. The path difference over the speed of sound.
:::
:::

::: check
given: f = 1000 | 4000 | 10000; t = 0 | 30 | 60
answer: 343/f/(1 + sin(t*pi/180))*100
unit: cm
tolerance: 0.5%

## An array must steer up to {t}° at frequencies up to {f} Hz in air. What's the largest element spacing that avoids grating lobes?

::: right
Right. $\lambda/(1 + \sin\theta_0)$ = {answer} cm.
:::

::: misses
- [343/f/2*100] The half-wavelength rule is safe for any steering; the exact limit depends on the steering angle.
- [any] Not yet. $d < \lambda/(1 + |\sin\theta_0|)$.
:::
:::

::: check
given: N = 4 | 16 | 64
answer: 10*log(N)
unit: dB
tolerance: 0.5%

## About what directivity index does a line of {N} sources at half-wavelength spacing have?

::: right
Right. DI ≈ 10 log N = {answer} dB.
:::

::: misses
- [20*log(N)] That's the on-axis pressure gain; directivity compares with the average over all directions.
- [any] Not yet. D ≈ N.
:::
:::

::: check
given: a = 2 | 5; b = 10 | 40
answer: 10*log(b/a)
unit: dB
tolerance: 0.5%

## Within its cylindrical region, how much does a long line source's level fall from {a} m to {b} m?

::: right
Right. $10\log(r_2/r_1)$ = {answer} dB.
:::

::: misses
- [20*log(b/a)] That's a point source; a line spreads cylindrically.
- [any] Not yet. Intensity falls as 1/r.
:::
:::

::: check
kind: parts
given: N = 4 | 16 | 64; r = 0.05 | 0.3

## {N} sensors are summed; the signal is identical at each, and the noise is correlated by {r} between every pair.

::: part
answer: 10*log(N)
unit: dB
tolerance: 0.5%

### What would the array gain be with independent noise?

::: misses
- [20*log(N)] The signal gains 20 log N, but the noise power grows too.
- [any] 10 log N.
:::
:::

::: part
answer: 10*log(N/(1 + (N - 1)*r))
unit: dB
tolerance: 0.5%

### What is it with the correlated noise?

::: misses
- [any] $10\log[N/(1 + (N - 1)\rho)]$.
:::
:::
:::

::: check
kind: derivation
vars: N = 2..32, k = 0.1..5, t = -1.5..1.5

## A line of N equal sources spaced so that kd = k radiates in phase; consider angle θ (radians) from broadside.

::: step
answer: k*sin(t)

### What is the phase difference u between neighbors' contributions?
:::

::: step
answer: sin(N*k*sin(t)/2)/(N*sin(k*sin(t)/2))

### What is the normalized array factor?
:::

::: right
Right. Nulls fall where N·u/2 is a multiple of π.
:::
:::

::: explain
## Why do grating lobes appear when array elements are too far apart?

::: model
The array's beam forms where the contributions from all elements arrive in phase. With a spacing d, the phase step between neighbors in direction θ is kd(sin θ − sin θ₀), and the elements add in phase whenever that step is any whole multiple of 2π, zero or otherwise. If d is small compared with the wavelength, only the zero case falls within the real range of angles. Once d grows to around a wavelength, a second direction exists where neighbors are exactly a full wavelength apart in path, and there the elements add in phase as strongly as on the main beam. Steering moves the main beam and drags these copies with it, so wide steering needs closer spacing.
:::
:::

::: practice

::: check
given: N = 2 | 4 | 8 | 10 | 16 | 32 | 64
answer: 20*log(N)
unit: dB
tolerance: 0.5%

## On-axis gain of {N} in-phase sources?

::: misses
- [any] $20\log N$.
:::
:::

::: check
given: d = 1 | 30; t = 5 | 70; c = 343 | 1500
answer: d/100*sin(t*pi/180)/c*1e6
unit: µs
tolerance: 0.5%

## Steering delay: {d} cm, {t}°, c = {c}?

::: misses
- [any] $d\sin\theta_0/c$.
:::
:::

::: check
given: f = 500 | 20000; t = 0 | 70
answer: 343/f/(1 + sin(t*pi/180))*100
unit: cm
tolerance: 0.5%

## Max spacing: {f} Hz, steer {t}°?

::: misses
- [any] $\lambda/(1 + \sin\theta_0)$.
:::
:::
:::
