Ray transfer matrix analysis (also known as ABCD matrix analysis) is a mathematical form for performing
ray tracing calculations in sufficiently simple problems which can be solved considering only paraxial rays. Each optical element (surface, interface, mirror, or beam travel) is described by a ray transfer
matrix
Matrix (: matrices or matrixes) or MATRIX may refer to:
Science and mathematics
* Matrix (mathematics), a rectangular array of numbers, symbols or expressions
* Matrix (logic), part of a formula in prenex normal form
* Matrix (biology), the m ...
which operates on a
vector
Vector most often refers to:
* Euclidean vector, a quantity with a magnitude and a direction
* Disease vector, an agent that carries and transmits an infectious pathogen into another living organism
Vector may also refer to:
Mathematics a ...
describing an incoming
light ray
In optics, a ray is an idealized geometrical model of light or other electromagnetic radiation, obtained by choosing a curve that is perpendicular to the ''wavefronts'' of the actual light, and that points in the direction of energy flow. Rays ...
to calculate the outgoing ray. Multiplication of the successive matrices thus yields a concise ray transfer matrix describing the entire optical system. The same mathematics is also used in
accelerator physics to track particles through the magnet installations of a
particle accelerator
A particle accelerator is a machine that uses electromagnetic fields to propel electric charge, charged particles to very high speeds and energies to contain them in well-defined particle beam, beams. Small accelerators are used for fundamental ...
, see
electron optics.
This technique, as described below, is derived using the ''
paraxial approximation'', which requires that all ray directions (directions normal to the wavefronts) are at small angles relative to the
optical axis
An optical axis is an imaginary line that passes through the geometrical center of an optical system such as a camera lens, microscope or telescopic sight. Lens elements often have rotational symmetry about the axis.
The optical axis defines ...
of the system, such that the approximation remains valid. A small further implies that the transverse extent of the ray bundles ( and ) is small compared to the length of the optical system (thus "paraxial"). Since a decent imaging system where this is the case for all rays must still focus the paraxial rays correctly, this matrix method will properly describe the positions of focal planes and magnifications, however
aberrations still need to be evaluated using full
ray-tracing techniques.
[Extension of matrix methods to tracing (non-paraxial) meridional rays is described by .]
Matrix definition

The ray tracing technique is based on two reference planes, called the ''input'' and ''output'' planes, each perpendicular to the optical axis of the system. At any point along the optical train an optical axis is defined corresponding to a central ray; that central ray is propagated to define the optical axis further in the optical train which need not be in the same physical direction (such as when bent by a prism or mirror). The transverse directions and (below we only consider the direction) are then defined to be orthogonal to the optical axes applying. A light ray enters a component crossing its input plane at a distance from the optical axis, traveling in a direction that makes an angle with the optical axis. After propagation to the output plane that ray is found at a distance from the optical axis and at an angle with respect to it. and are the
indices of refraction of the media in the input and output plane, respectively.
The ABCD matrix representing a component or system relates the output ray to the input according to
where the values of the 4 matrix elements are thus given by
and
This relates the ''ray vectors'' at the input and output planes by the ''ray transfer matrix'' () , which represents the optical component or system present between the two reference planes. A
thermodynamics
Thermodynamics is a branch of physics that deals with heat, Work (thermodynamics), work, and temperature, and their relation to energy, entropy, and the physical properties of matter and radiation. The behavior of these quantities is governed b ...
argument based on the
blackbody radiation can be used to show that the
determinant
In mathematics, the determinant is a Scalar (mathematics), scalar-valued function (mathematics), function of the entries of a square matrix. The determinant of a matrix is commonly denoted , , or . Its value characterizes some properties of the ...
of a RTM is the ratio of the indices of refraction:
As a result, if the input and output planes are located within the same medium, or within two different media which happen to have identical indices of refraction, then the determinant of is simply equal to 1.
A different convention for the ray vectors can be employed. Instead of using , the second element of the ray vector is , which is proportional not to the ray angle ''per se'' but to the transverse component of the
wave vector
In physics, a wave vector (or wavevector) is a vector used in describing a wave, with a typical unit being cycle per metre. It has a magnitude and direction. Its magnitude is the wavenumber of the wave (inversely proportional to the wavelength) ...
.
This alters the ABCD matrices given in the table below where refraction at an interface is involved.
The use of transfer matrices in this manner parallels the matrices describing electronic
two-port networks, particularly various so-called ABCD matrices which can similarly be multiplied to solve for cascaded systems.
Some examples
Free space example
As one example, if there is free space between the two planes, the ray transfer matrix is given by:
where is the separation distance (measured along the optical axis) between the two reference planes. The ray transfer equation thus becomes:
and this relates the parameters of the two rays as:
Thin lens example
Another simple example is that of a
thin lens. Its RTM is given by:
where is the
focal length
The focal length of an Optics, optical system is a measure of how strongly the system converges or diverges light; it is the Multiplicative inverse, inverse of the system's optical power. A positive focal length indicates that a system Converge ...
of the lens. To describe combinations of optical components, ray transfer matrices may be multiplied together to obtain an overall RTM for the compound optical system. For the example of free space of length followed by a lens of focal length :
Note that, since the multiplication of matrices is non-
commutative
In mathematics, a binary operation is commutative if changing the order of the operands does not change the result. It is a fundamental property of many binary operations, and many mathematical proofs depend on it. Perhaps most familiar as a pr ...
, this is not the same RTM as that for a lens followed by free space:
Thus the matrices must be ordered appropriately, with the last matrix premultiplying the second last, and so on until the first matrix is premultiplied by the second. Other matrices can be constructed to represent interfaces with media of different
refractive indices
In optics, the refractive index (or refraction index) of an optical medium is the ratio of the apparent speed of light in the air or vacuum to the speed in the medium. The refractive index determines how much the path of light is bent, or refrac ...
, reflection from
mirror
A mirror, also known as a looking glass, is an object that Reflection (physics), reflects an image. Light that bounces off a mirror forms an image of whatever is in front of it, which is then focused through the lens of the eye or a camera ...
s, etc.
Eigenvalues
A ray transfer matrix can be regarded as a
linear canonical transformation. According to the eigenvalues of the optical system, the system can be classified into several classes. Assume the ABCD matrix representing a system relates the output ray to the input according to
We compute the eigenvalues of the matrix
that satisfy eigenequation
by calculating the determinant
Let
, and we have eigenvalues
.
According to the values of
and
, there are several possible cases. For example:
# A pair of real eigenvalues:
and
, where
. This case represents a magnifier
#
or
. This case represents unity matrix (or with an additional coordinate reverter)
.
#
. This case occurs if but not only if the system is either a unity operator, a section of free space, or a lens
# A pair of two unimodular, complex conjugated eigenvalues
and
. This case is similar to a separable
Fractional Fourier Transform
In mathematics, in the area of harmonic analysis, the fractional Fourier transform (FRFT) is a family of linear transformations generalizing the Fourier transform. It can be thought of as the Fourier transform to the ''n''-th power, where ''n' ...
.
Matrices for simple optical components
Relation between geometrical ray optics and wave optics
The theory of
Linear canonical transformation implies the relation between ray transfer matrix (
geometrical optics
Geometrical optics, or ray optics, is a model of optics that describes light Wave propagation, propagation in terms of ''ray (optics), rays''. The ray in geometrical optics is an abstract object, abstraction useful for approximating the paths along ...
) and wave optics.
Common decomposition
There exist infinite ways to decompose a ray transfer matrix
into a concatenation of multiple transfer matrices. For example in the special case when
:
#
.
#
#
#
Resonator stability
RTM analysis is particularly useful when modeling the behavior of light in
optical resonators, such as those used in lasers. At its simplest, an optical resonator consists of two identical facing mirrors of 100%
reflectivity
The reflectance of the surface of a material is its effectiveness in Reflection (physics), reflecting radiant energy. It is the fraction of incident electromagnetic power that is reflected at the boundary. Reflectance is a component of the respon ...
and radius of
curvature
In mathematics, curvature is any of several strongly related concepts in geometry that intuitively measure the amount by which a curve deviates from being a straight line or by which a surface deviates from being a plane. If a curve or su ...
, separated by some distance . For the purposes of ray tracing, this is equivalent to a series of identical thin lenses of focal length , each separated from the next by length . This construction is known as a ''lens equivalent duct'' or ''lens equivalent
waveguide''. The of each section of the waveguide is, as above,
analysis can now be used to determine the ''stability'' of the waveguide (and equivalently, the resonator). That is, it can be determined under what conditions light traveling down the waveguide will be periodically refocused and stay within the waveguide. To do so, we can find all the "eigenrays" of the system: the input ray vector at each of the mentioned sections of the waveguide times a real or complex factor is equal to the output one. This gives:
which is an
eigenvalue
In linear algebra, an eigenvector ( ) or characteristic vector is a vector that has its direction unchanged (or reversed) by a given linear transformation. More precisely, an eigenvector \mathbf v of a linear transformation T is scaled by a ...
equation:
where