Ray Transfer Matrices (ABCD Formalism)

Trace a ray through a camera zoom — a dozen elements, a dozen glass-air interfaces, several air gaps — and the surface-by-surface bookkeeping becomes punishing. The ray-transfer, or ABCD, formalism collapses the whole calculation into a single matrix multiplication. Its premise is the paraxial approximation, in which sin⁡θ≈tan⁡θ≈θ\sin\theta\approx\tan\theta\approx\theta and Snell's law linearises to n1θ1=n2θ2n_1\theta_1=n_2\theta_2. Under that approximation a paraxial ray is described completely by two numbers at any reference plane — its height yy above the axis and its slope θ\theta — and every optical element transforms (y,θ)(y,\theta) linearly. A linear transformation of two numbers is a 2×22\times2 matrix, and the entire optics of the element lives in its four entries A,B,C,DA,B,C,D. The power is compositional. Because each element is a linear map, a train of elements is the ordered product of their matrices, and tracing a ray through an arbitrarily complicated system reduces to one matrix multiply. More than that, the structure of the system reads straight off the product: the condition B=0B=0 marks a pair of conjugate (imaging) planes with magnification AA; C=0C=0 marks an afocal, telescopic system; the effective focal length is −1/C-1/C and the principal planes follow from AA and DD. The zeros of the matrix are the geometry of the instrument. Historically these same results were obtained one surface at a time, through refraction at a spherical surface and the thin-lens equation. The matrix method organises that surface-by-surface labour into a single algebra, generalises without effort to thick lenses and multi-element systems, and makes the paraxial invariant manifest as the determinant det⁡M=nin/nout\det M=n_\text{in}/n_\text{out}. The very same matrices later propagate Gaussian laser beams and set optical-resonator stability — so the ABCD algebra is the shared paraxial language of classical imaging, laser physics, and beam delivery.

Key takeaways
  • A paraxial ray at any plane is two numbers, height yy and slope θ\theta; each element acts on (y,θ)T(y,\theta)^{\mathsf T} as a 2×22\times2 matrix (ABCD)\begin{pmatrix}A&B\\C&D\end{pmatrix}.
  • The building blocks are free propagation (1d01)\begin{pmatrix}1&d\\0&1\end{pmatrix}, the thin lens (10−1/f1)\begin{pmatrix}1&0\\-1/f&1\end{pmatrix}, refraction at a curved surface, and the mirror; any system is their ordered product.
  • Systems compose by multiplying matrices in reverse order of encounter: Msys=Mn⋯M2M1M_\text{sys}=M_n\cdots M_2 M_1, first element rightmost.
  • The determinant det⁡M=nin/nout\det M=n_\text{in}/n_\text{out} (equal to 11 in a single medium) is the paraxial Smith–Helmholtz invariant — conservation of étendue.
  • B=0B=0 is the imaging condition, with transverse magnification AA; C=−1/fC=-1/f is the power; C=0C=0 is afocal (telescopic).
  • The same ABCD matrix propagates a Gaussian beam's complex parameter and sets laser-cavity stability, so ray and beam optics share one algebra.
  • Key idea: represent a paraxial ray by (y,θ)T(y,\theta)^{\mathsf T}, let every element be a 2×22\times2 matrix, and cascade by multiplying in reverse order; imaging (B=0B=0), focusing, and beam propagation all become matrix algebra.
The core insight

Represent a paraxial ray by the column (y,θ)T(y,\theta)^{\mathsf T}; every optical element is a 2×22\times2 ray-transfer matrix acting on it; a system is the ordered product of its element matrices, first element rightmost. The imaging condition B=0B=0 (magnification AA), the power C=−1/fC=-1/f, and the invariant det⁡M=nin/nout\det M=n_\text{in}/n_\text{out} are then read directly off the four elements.

Where this lives today

The ABCD algebra is the daily workhorse of optical engineering. Lens and telescope design lays out a multi-element system by cascading matrices; the composite A,B,C,DA,B,C,D immediately give the effective focal length (−1/C-1/C), the principal-plane locations, and the back focal distance without tracing individual surfaces, and setting C=0C=0 designs afocal beam expanders and telescopes of angular magnification −f2/f1-f_2/f_1. Thick lenses are handled by inserting a reduced-thickness translation t/nt/n between the two surface matrices — the same product that locates their principal planes. And through a single bridge, the identical matrix reaches into wave optics: a Gaussian beam's complex parameter transforms by q′=(Aq+B)/(Cq+D)q'=(Aq+B)/(Cq+D), so the same MM that images a ray also propagates a laser beam's waist and divergence, and the eigenvalues of a round-trip matrix set a cavity's stability — the treatments developed by name in the laser-cavity article that reuses this formalism for Gaussian beams. From camera zooms to fibre mode-matching, the four numbers of the ray-transfer matrix are the shared language.

The physical picture

We keep the Hecht convention for the elements we build from: light left to right, f>0f>0 converging, real conjugates so,si>0s_o,s_i>0. Think of the ray's two numbers as a position and a momentum: yy is where it crosses a reference plane, and θ\theta (or the reduced angle nθn\theta) is its transverse "momentum." Optical elements are then linear canonical transformations of this 2-D phase space, and det⁡M=1\det M=1 (in reduced angles) is Liouville's theorem — paraxial optics conserves phase-space area, which optics calls étendue.

Figure
A paraxial ray (y₁, θ₁) crosses free space of length d — its slope is unchanged and its height grows by dθ₁ — then a thin lens kicks the slope by −y/f while leaving the height fixed; each step is one matrix acting on the column (y, θ)
axis plane 1 plane 2 lens f y₁ y₁ + dθ₁ slope θ₁ (unchanged) free space: (1, d; 0, 1) thin lens: (1, 0; −1/f, 1) kicks slope by −y/f → toward focus

Free space shears the phase space: a ray keeps its slope while its height grows by θd\theta d, so the BB element is dd. A lens does the complementary shear: it keeps the height but kicks the slope by −y/f-y/f, so the CC element is −1/f-1/f. Every complex system is just a sequence of shears in the two directions of phase space — and reading a matrix like a chart, B=0B=0 means all rays leaving a point arrive at a point (an image), while C=0C=0 means parallel stays parallel (a telescope).

Figure
Punchline — the imaging condition B = 0: for a lens f = 10 cm with an object at s_o = 15 cm, the product T(s_i)·L(f)·T(s_o) has B = s_o + s_i − s_o s_i/f, which vanishes at s_i = 30 cm (45 − 45 = 0), reproducing 1/s_o + 1/s_i = 1/f and giving magnification m = A = −2
f = 10 object image, m = A = −2 s_o = 15 s_i = 30 B = s_o + s_i − s_o s_i/f = 15 + 30 − (15·30)/10 = 45 − 45 = 0 ⇒ image

The core equations

A ray at a reference plane is a column, and each element acts on it. Context: the same two numbers (y,θ)(y,\theta) carry through the whole system, transformed at each step by a matrix; stacking the steps is matrix multiplication.

(y2θ2)=(ABCD)(y1θ1)(1)\begin{pmatrix} y_2\\ \theta_2\end{pmatrix}=\begin{pmatrix} A & B\\ C & D\end{pmatrix}\begin{pmatrix} y_1\\ \theta_1\end{pmatrix} \qquad (1)

where: y1,y2y_1,y_2 — ray heights at input and output planes; θ1,θ2\theta_1,\theta_2 — paraxial slopes (or reduced angles nθn\theta); A,DA,D dimensionless, BB a length, CC an inverse length. The three workhorse elements are:

Mfree=(1d01),Mlens=(10−1/f1),Mrefr=(10n1−n2n2Rn1n2)(2)M_\text{free}=\begin{pmatrix}1&d\\0&1\end{pmatrix},\quad M_\text{lens}=\begin{pmatrix}1&0\\-1/f&1\end{pmatrix},\quad M_\text{refr}=\begin{pmatrix}1&0\\ \tfrac{n_1-n_2}{n_2 R}&\tfrac{n_1}{n_2}\end{pmatrix} \qquad (2)

where: dd — propagation distance; ff — focal length (f>0f>0 converging); n1,n2n_1,n_2 — indices before/after a surface of radius RR. Free space leaves the slope, grows the height; the lens leaves the height, kicks the slope; the surface does both. A spherical mirror is Mmirror=(10−2/R1)M_\text{mirror}=\begin{pmatrix}1&0\\-2/R&1\end{pmatrix} with fmirror=R/2f_\text{mirror}=R/2. Systems compose by multiplying in the order light meets the elements — first encountered on the right. Context: applying MvMv means the first matrix touches the ray first, so it sits nearest the column.

Msys=Mn Mn−1⋯M2 M1(3)M_\text{sys}=M_n\,M_{n-1}\cdots M_2\,M_1 \qquad (3)

where: MkM_k — matrix of the kk-th element the ray meets. Reversing this order is the single most common bookkeeping error in the method. The determinant telescopes to a statement about the media, not the elements:

det⁡M=ninnout(4)\det M=\frac{n_\text{in}}{n_\text{out}} \qquad (4)

where: nin,noutn_\text{in},n_\text{out} — indices of the input and output spaces. Each element contributes its own index ratio; intermediate indices cancel in the product, leaving nin/noutn_\text{in}/n_\text{out}. In a single medium det⁡M=1\det M=1 — the paraxial Smith–Helmholtz invariant, i.e. conservation of étendue. Finally, the matrix elements label the system's geometry:

B=0 ⇒ imaging, m=A;C=−1f;C=0 ⇒ afocal(5)B=0\ \Rightarrow\ \text{imaging},\ m=A;\qquad C=-\frac1f;\qquad C=0\ \Rightarrow\ \text{afocal} \qquad (5)

where: B=0B=0 makes y2y_2 independent of θ1\theta_1 (all rays from a point reach a point); AA is the transverse magnification there; −1/f=C-1/f=C is the system power; C=0C=0 maps parallel bundles to parallel bundles. The same MM propagates a Gaussian beam's complex parameter by the bilinear law q′=(Aq+B)/(Cq+D)q'=(Aq+B)/(Cq+D) — the bridge to beam optics developed by name in the laser-cavity article.

Derivation AThe thin-lens matrix, from a slope kick and from two surfaces

This card builds the most-used element two ways, so that its single non-trivial entry C=−1/fC=-1/f is anchored both in the definition of focal length and in refraction at a spherical surface. The first route is a one-line geometric argument — a lens leaves height alone and adds a slope proportional to −y/f-y/f. The second composes the two surface-refraction matrices at zero separation and recovers the lensmaker's equation as the CC element, so the thin lens is exposed as two spherical surfaces stacked, exactly as the base optics of the lens demands.

Step 1. A thin lens has zero thickness, so a ray does not move transversely across it: y2=y1y_2=y_1, giving A=1A=1, B=0B=0. Why height is fixed: with no glass path the ray cannot drift sideways as it crosses the single plane.

Step 2. By definition of the focal length, a ray arriving parallel to the axis (θ1=0\theta_1=0) at height y1y_1 must leave aimed at the focus a distance ff away, i.e. with slope θ2=−y1/f\theta_2=-y_1/f. In general θ2=θ1−y1/f\theta_2=\theta_1-y_1/f, so C=−1/fC=-1/f, D=1D=1: the thin-lens matrix. Why −y/f-y/f: the further off-axis the ray, the harder the lens bends it toward the axis — linearly, in the paraxial regime.

Step 3. Now derive CC from optics. Model the lens as surface 1 (air→glass, M1M_1) and surface 2 (glass→air, M2M_2) at zero separation, using MrefrM_\text{refr} with the right indices. The product M2M1M_2 M_1 has upper triangle (1,0; 1)(1,0;\,1) and C=−(n−1)(1/R1−1/R2)C=-(n-1)(1/R_1-1/R_2). Why the diagonal returns to (1,1)(1,1): input and output media are both air, so det⁡=1\det=1 and no net angular magnification survives.

Step 4. Identifying C=−1/fC=-1/f gives 1f=(n−1) ⁣(1R1−1R2)\dfrac1f=(n-1)\!\left(\dfrac1{R_1}-\dfrac1{R_2}\right) — the lensmaker's equation, now a corollary of matrix multiplication. Why this matters: it certifies the abstract thin-lens matrix against the concrete two-surface physics, and it is the template for building a thick lens by inserting a translation between the two surfaces. *Verified in verify_ray-transfer-matrices.py: a parallel ray through MlensM_\text{lens} leaves with slope −y/f-y/f; the two-surface product M2M1M_2 M_1 gives C=−(n−1)(1/R1−1/R2)C=-(n-1)(1/R_1-1/R_2) with det⁡=1\det=1 and diagonal (1,1)(1,1).*

Go deeper · Derivation B · 1 minThe imaging condition B = 0 and the magnification A
Derivation BThe imaging condition B = 0 and the magnification A

This is the owned headline of the method: the entire content of the thin-lens (Gaussian) imaging law is a single zero of a matrix element. We assemble the object–lens–image system matrix from three factors, then impose B=0B=0 and watch the conjugate equation appear, with the transverse magnification handed over for free as the surviving element AA. It is the cleanest statement of why an image forms — because there is a plane where the output height stops depending on the input angle.

Step 1. Trace from an object plane a distance sos_o before the lens to an image plane sis_i after it: M=T(si) L(f) T(so)M=T(s_i)\,L(f)\,T(s_o), with the first free space (object to lens) rightmost. Why this order: the ray first crosses the object-to-lens gap, so its matrix is applied first — it sits nearest the ray column.

Step 2. Multiplying out, M=(1−si/fso+si−sosi/f−1/f1−so/f)M=\begin{pmatrix}1-s_i/f & s_o+s_i-s_o s_i/f\\ -1/f & 1-s_o/f\end{pmatrix}. The element B=so+si−sosi/fB=s_o+s_i-s_o s_i/f controls whether an image forms. Why BB is the deciding element: y2=Ay1+Bθ1y_2=A y_1+B\theta_1, so y2y_2 depends on the launch angle θ1\theta_1 unless B=0B=0.

Step 3. Impose B=0B=0: so+si=sosi/fs_o+s_i=s_o s_i/f, i.e. 1so+1si=1f\dfrac1{s_o}+\dfrac1{s_i}=\dfrac1f — the conjugate equation. All rays leaving one object point, whatever their angle, land on one image point. Why B=0B=0 is imaging: it removes the θ1\theta_1 dependence of y2y_2, which is precisely the definition of a stigmatic image.

Step 4. With imaging enforced, A=1−si/fA=1-s_i/f simplifies (using the conjugate relation) to A=−si/soA=-s_i/s_o, the transverse magnification; and C=−1/fC=-1/f is the power, while det⁡=AD−BC=1\det=AD-BC=1 gives the angular magnification D=1/AD=1/A. Why the elements carry the physics: the four numbers of the product ARE the imaging law — magnification, power, and invariant, all at once. *Verified in verify_ray-transfer-matrices.py: the sympy product gives B=so+si−sosi/fB=s_o+s_i-s_o s_i/f and C=−1/fC=-1/f; B=0B=0 yields 1/so+1/si=1/f1/s_o+1/s_i=1/f and A=−si/soA=-s_i/s_o; the case f=10f=10, so=15s_o=15 gives si=30s_i=30 (B=0B=0) and m=A=−2m=A=-2.*

Limiting cases

CaseMatrix conditionMeaning
Imaging (conjugate planes)B=0B=0, m=Am=Aoutput height independent of input angle — a stigmatic image, magnification AA
Afocal / telescopicC=0C=0, angular mag DDparallel in ⇒ parallel out; a telescope or beam expander, lateral mag A=1/DA=1/D
Input focal planeA=0A=0, y2=Bθ1y_2=B\theta_1the input plane is the front focal plane; rays of common angle converge to a point
Output focal planeD=0D=0, θ2=Cy1\theta_2=C y_1the output plane is the back focal plane
Single mediumdet⁡M=1\det M=1étendue conserved (Smith–Helmholtz); reduced angles keep det⁡=1\det=1 across index jumps

Worked examples

1 · A single lens by matrix multiplication (the imaging check)

A thin lens of f=10 cmf=10\ \mathrm{cm} has an object so=15 cms_o=15\ \mathrm{cm} in front. Use the ABCD product to locate the image and its magnification.

Step 1. System matrix M=T(si) L(10) T(15)M=T(s_i)\,L(10)\,T(15). Its BB element is B=so+si−sosi/f=15+si−15 si/10B=s_o+s_i-s_o s_i/f=15+s_i-15\,s_i/10.

Step 2. Impose imaging: B=0⇒15+si−1.5 si=0⇒15−0.5 si=0⇒si=30 cmB=0\Rightarrow 15+s_i-1.5\,s_i=0\Rightarrow 15-0.5\,s_i=0\Rightarrow \boxed{s_i=30\ \mathrm{cm}}. This is exactly 1/15+1/30=1/101/15+1/30=1/10.

Step 3. Magnification is the surviving element A=1−si/f=1−30/10=−2A=1-s_i/f=1-30/10=\boxed{-2}: inverted, twice size. Equivalently A=−si/so=−30/15=−2A=-s_i/s_o=-30/15=-2.

Step 4. Check the invariant: det⁡M=AD−BC=(−2)(1−so/f)−0=(−2)(1−1.5)=1\det M=AD-BC=(-2)(1-s_o/f)-0=(-2)(1-1.5)=1. Both media are air, so det⁡M=1\det M=1, and the angular magnification is D=1/A=−12D=1/A=-\tfrac12 — the ray cone steepens by two, as it must for a doubled image.

2 · Two lenses: effective focal length of a compound system

Two thin lenses, f1=+10 cmf_1=+10\ \mathrm{cm} and f2=+15 cmf_2=+15\ \mathrm{cm}, are separated by d=5 cmd=5\ \mathrm{cm} in air. Find the effective focal length from the system matrix.

Step 1. M=L(f2) T(d) L(f1)M=L(f_2)\,T(d)\,L(f_1), first lens rightmost. Multiply the three matrices.

Step 2. The lower-left element is C=−(1f1+1f2−df1f2)=−(110+115−5150)=−0.1333 cm−1C=-\left(\dfrac1{f_1}+\dfrac1{f_2}-\dfrac{d}{f_1 f_2}\right)=-\left(\dfrac1{10}+\dfrac1{15}-\dfrac{5}{150}\right)=-0.1333\ \mathrm{cm^{-1}}.

Step 3. The effective focal length is f=−1/C=7.5 cmf=-1/C=\boxed{7.5\ \mathrm{cm}} — the pair is more powerful than either lens alone, exactly Gullstrand's result.

Step 4. The principal planes come from AA and DD: with A=1−d/f1=0.5A=1-d/f_1=0.5 and D=1−d/f2=0.667D=1-d/f_2=0.667, the back plane sits at xH′=f(1−A)=7.5(0.5)=3.75 cmx_{H'}=f(1-A)=7.5(0.5)=3.75\ \mathrm{cm} before lens 2. One matrix product has delivered focal length and both cardinal planes without tracing a single surface by hand.

Physics of the portrait

The protagonist here is a mathematical object — the 2×22\times2 ray-transfer matrix — and its deep identity is that of a linear canonical transformation. That is why the same four numbers govern rays, Gaussian beams, and even the quantum harmonic oscillator's phase space: they are all linear maps that preserve area.

Origins · 1 minray transfer matrix and how this was discovered
RT
ray transfer matrix
the linear canonical map of paraxial optics · matrix optics

The ray-transfer matrix is the statement that paraxial optics is linear algebra. Carry a ray as the column (y,nθ)(y,n\theta) — a point in a two-dimensional phase space of position and reduced angle — and every optical element is a linear map with unit determinant: a shear (free space), a shear in the other direction (a lens), or a boundary rescaling (a refracting surface). Unit determinant is Liouville's theorem: the phase-space area a bundle of rays occupies, its étendue, is conserved through any lossless system. This is the same structure that governs the linear canonical transformations of classical mechanics and the propagation of Gaussian beams, where the identical matrix advances the complex beam parameter by a Möbius transformation. So "ray transfer matrix" names not just a computational trick but the recognition that imaging, focusing, telescoping, and beam delivery are one algebra — the linear, area-preserving maps of a two-dimensional phase space — with the geometry of any instrument encoded in four numbers.

History
1841
— Gauss founds first-order optics on the cardinal points, the physical content the matrix method later organises
1850
— Sylvester coins the term "matrix"; matrix algebra will formalise paraxial ray tracing
1911
— Gullstrand is awarded the Nobel Prize for the dioptrics of the eye, including the combined-power (two-element) equation
1966
— Kogelnik & Li extend the ABCD matrix to Gaussian beams and derive the optical-resonator stability condition

Going further

Texts. Hecht, Optics, 5th ed., §6.2 (matrix methods in paraxial optics) · Saleh & Teich, Fundamentals of Photonics, 3rd ed., Ch. 1 (ray optics) and Ch. 3 (Gaussian beams, the ABCD law) · Born & Wolf, Principles of Optics, §4.6 (matrix treatment) · Kogelnik & Li, "Laser Beams and Resonators," Appl. Opt. 5, 1550 (1966).

Provenance. All element matrices are standard (Hecht §6.2; Saleh & Teich Ch. 1). verify_ray-transfer-matrices.py reproduces: the free/lens/refraction/mirror matrices with det⁡Mrefr=n1/n2\det M_\text{refr}=n_1/n_2; the thin-lens slope kick −y/f-y/f; the two-surface product giving C=−(n−1)(1/R1−1/R2)C=-(n-1)(1/R_1-1/R_2); the object–lens–image product with B=so+si−sosi/fB=s_o+s_i-s_o s_i/f, C=−1/fC=-1/f, and B=0⇒1/so+1/si=1/fB=0\Rightarrow1/s_o+1/s_i=1/f, m=A=−si/som=A=-s_i/s_o; the real case f=10f=10, so=15⇒si=30s_o=15\Rightarrow s_i=30, m=−2m=-2; and the two-lens effective focal length f=−1/C=7.5 cmf=-1/C=7.5\ \mathrm{cm}. The Gaussian-beam ABCD law and resonator-stability condition are recalled by name from the laser-cavity article (Kogelnik & Li 1966), where they are developed in full — this article owns the ray matrices.

Builds on: Ray Model of Light · Snell's Law of Refraction · Refraction at a Spherical Surface · Thin Lens Equation and Lensmaker's Equation. Leads to: Thick Lenses and Principal Planes · Image Formation and Magnification · Plane and Spherical Mirrors.

Why represent a ray by height AND slope — isn't one number enough?

No — a ray at a plane needs both where it is and where it is going, because optics changes those two things differently. Free space leaves the slope alone but moves the height; a lens leaves the height alone but changes the slope. With only one number you could not distinguish a ray that is high and level from one that is low and climbing, yet they end up in completely different places. The pair (y,θ)(y,\theta) is the minimal complete description of a paraxial ray, and because every element transforms the pair linearly, that description is exactly what a 2×22\times2 matrix acts on. Two numbers in, two numbers out, one matrix between — that is the whole method.

Where does the imaging condition B = 0 actually come from?

From the output equation y2=Ay1+Bθ1y_2=A y_1+B\theta_1. An image forms when every ray leaving a single object point — that is, every ray with the same y1y_1 but different launch angles θ1\theta_1 — arrives at a single output height y2y_2. That happens if and only if y2y_2 does not depend on θ1\theta_1, which requires the coefficient of θ1\theta_1 to vanish: B=0B=0. Then y2=Ay1y_2=A y_1 for all rays from the point, so AA is exactly the ratio of image height to object height — the magnification. The zeros of the matrix are the geometry: B=0B=0 images, C=0C=0 collimates, A=0A=0 marks a front focal plane.

Why is the first element written on the right of the product?

Because matrices act on the ray from the left, in the order they are applied. The first element the ray meets transforms the initial column v1v_1 first: v2=M1v1v_2=M_1 v_1. The second acts on that result: v3=M2v2=M2M1v1v_3=M_2 v_2=M_2 M_1 v_1. Continuing, vn+1=Mn⋯M2M1v1v_{n+1}=M_n\cdots M_2 M_1 v_1, so M1M_1 — the first element encountered — ends up rightmost, nearest the ray column. Writing the product in physical left-to-right order instead would trace the system backwards. It feels counterintuitive, so it is the classic first mistake; when in doubt, apply the matrices to a test ray one at a time and watch which one touches it first.

What does det M = n_in/n_out mean physically?

It is the paraxial conservation of étendue — optical throughput. Each element's determinant equals its own index ratio (11 for free space and a thin lens, n1/n2n_1/n_2 for a surface), and in a product the intermediate indices cancel, leaving det⁡M=nin/nout\det M=n_\text{in}/n_\text{out}. If you carry reduced angles nθn\theta instead of bare angles, every determinant becomes 11 and the statement reads det⁡M=1\det M=1 — Liouville's theorem for the ray phase space. The content is the Smith–Helmholtz (Lagrange) invariant: you cannot shrink a beam's size without steepening its angles in compensation, so no passive optical system can increase brightness. It is the ray-optics ancestor of the second law's constraint on radiative concentration.

How can the same matrix handle a geometric ray and a Gaussian laser beam?

Because both are governed by the paraxial (parabolic) wave equation, which preserves the same linear-canonical structure. A ray transforms as (y,θ)T→M(y,θ)T(y,\theta)^{\mathsf T}\to M(y,\theta)^{\mathsf T}; a Gaussian beam is summarised by a single complex number qq, where 1/q=1/R−iλ/(πw2)1/q=1/R-i\lambda/(\pi w^2) packs the wavefront radius RR and spot size ww, and it transforms by the bilinear (Möbius) law q′=(Aq+B)/(Cq+D)q'=(Aq+B)/(Cq+D) with the same A,B,C,DA,B,C,D. So one matrix propagates a laser waist through lenses and gaps, and the eigenvalues of a round-trip matrix decide whether a cavity is stable. This article owns the ray matrices; the beam and resonator applications are carried by the laser-cavity article that reuses them.

Do I still need the thin-lens and single-surface equations if I have matrices?

They are not separate physics — the matrices contain them. The lensmaker's equation is the CC element of the two-surface product; the thin-lens conjugate relation is the B=0B=0 condition of the object–lens–image product; the single-surface relation is the refraction matrix itself. What the matrix method adds is organisation: instead of chaining several 1/s1/s-type equations by hand and tracking signs at each surface, you multiply matrices and read the answers off the four elements. For one or two surfaces the closed-form equations are quicker; for a ten-element zoom the matrix product is the only sane route, which is why every lens-design program is built on it.

Before this

Where this leads