Composition is the operation of applying one transformation after another. If
and
are transformations, then their composition is the transformation
defined by
The order matters. In , the transformation is applied first, and is applied second. Composition of linear transformations corresponds to multiplication of their representing matrices. If and , then
Thus the matrix of is . This is the standard reason matrix multiplication is defined in its usual form. It encodes composition of linear maps.
35.1 Definition of Composition
Let be vector spaces over the same field . Suppose
and
are transformations. Their composition is
where
The expression is read as “ after .” The vector first enters . The output lies in , so it can be used as an input for . The final output lies in .
Composition is defined only when the codomain of the first transformation matches the domain of the second transformation, or at least lies inside it.
35.2 Composition of Linear Transformations
If both transformations are linear, then their composition is linear.
Let
and
be linear. We prove that
is linear.
For ,
Since is linear,
Therefore
Since is linear,
Hence
For scalar multiplication, let . Then
Since is linear,
Since is linear,
Therefore
So is linear.
35.3 Order of Application
The notation
means first apply , then apply . This order can be confusing because the symbol appears on the left but acts second.
The reason is that functions act on what appears to their right:
The innermost operation is done first. This is the same convention used in ordinary function composition.
For example, let
and
Then
while
These are different functions. Composition usually depends on order.
35.4 Matrix Form
Let
have matrix , and let
have matrix . Thus
and
Then
By associativity of matrix multiplication,
Therefore the matrix of is
The order is important. The matrix for the first transformation appears on the right. The matrix for the second transformation appears on the left.
If
and
then
This matches the map
35.5 Example: Two Transformations in the Plane
Let
be scaling by in the -direction and by in the -direction:
Its matrix is
Let
be the shear
Its matrix is
The composition means scale first, then shear. Its matrix is
Thus
Now reverse the order. The composition means shear first, then scale. Its matrix is
Thus
The two results are different. Therefore
in this example.
35.6 Noncommutativity
Composition of transformations is generally not commutative.
This means
and
may both be defined but may produce different transformations.
The same fact appears in matrix algebra as
in general.
There are special cases where two transformations commute. For example, two scalings along the same coordinate axes commute. Two rotations about the origin in the plane commute. A transformation always commutes with the identity transformation. But commutativity is a special property, not the default.
Because of this, the order of transformations must be recorded carefully. In geometry, “rotate then project” may differ from “project then rotate.” In computation, “normalize then transform” may differ from “transform then normalize.”
35.7 Associativity of Composition
Composition is associative.
If
then
Both sides send to
Thus parentheses do not affect the final transformation, provided the order of the transformations remains the same.
In matrix form, if have matrices , respectively, then the matrix of
is
Associativity of composition corresponds to associativity of matrix multiplication:
This allows long chains of transformations to be grouped in convenient ways.
35.8 Identity Transformation
For every vector space , the identity transformation is the map
defined by
It is linear because
and
If
is linear, then
and
Thus identity transformations behave like multiplicative identities under composition.
In coordinates, the identity transformation on has matrix
For any compatible matrix ,
and
35.9 Inverses and Composition
A transformation is invertible if there exists a transformation
such that
and
For linear transformations, an invertible linear transformation has a linear inverse.
If , then is invertible exactly when is invertible. In that case,
The equations
and
become
and
The inverse reverses the action of the original transformation.
35.10 Composition and Bases
Let
and
be linear. Choose ordered bases for , for , and for .
Then
is the matrix of , and
is the matrix of .
The composition
has matrix
This formula is the coordinate version of composition.
The middle basis must match. The output coordinates of are expressed in basis , and these must be valid input coordinates for . If the bases do not match, a change-of-coordinates matrix is needed.
35.11 Example with Abstract Bases
Let be the vector space of polynomials of degree at most , and let be the vector space of polynomials of degree at most .
Define
by differentiation:
Define
by evaluation at :
Both transformations are linear.
Use the bases
for ,
for ,
and
for .
The matrix of differentiation is
The matrix of evaluation at is
since
The composition
sends a polynomial to the value of its derivative at :
Its matrix is
Compute:
Thus, for
we have
This agrees with direct computation:
so
35.12 Powers of a Linear Operator
When a linear transformation maps a vector space to itself,
we may compose it with itself.
Define
and in general,
Also define
If has matrix , then has matrix
Powers of transformations occur in discrete dynamics, Markov chains, recurrence relations, graph walks, and iterative numerical methods.
For example, if
then
The behavior of the system depends on the powers of .
35.13 Nilpotent Transformations
A linear operator is nilpotent if some positive power of is the zero transformation:
for some .
For example, define
by
Then
and
So
Nilpotent transformations are important in canonical forms, especially Jordan form.
35.14 Idempotent Transformations
A linear operator is idempotent if
This means applying twice gives the same result as applying it once.
Projections are the main examples. Let
be projection onto the -plane:
Then
Thus
Once a vector has been projected onto the plane, projecting it again changes nothing.
35.15 Commuting Transformations
Two linear operators
commute if
In matrix form, if has matrix and has matrix , this condition becomes
Commuting transformations can often be studied together. For example, if two diagonal matrices have the same size, they commute. If two transformations are diagonal with respect to the same basis, then they commute.
However, most pairs of matrices do not commute. The failure of commutativity is a structural feature of matrix algebra.
35.16 Composition and Kernel
Composition affects kernels in a predictable way.
Let
and
be linear. If , then
Therefore
So
The composition may have a larger kernel than . This happens when is nonzero but lies in .
More precisely,
Thus the kernel of a composition consists of all vectors that sends into the kernel of .
35.17 Composition and Image
The image of a composition is contained in the image of the second transformation.
For
every output has the form
Since , every such output lies in
Therefore
Also,
This means that the image of the composition is obtained by first taking the image of , then applying to that subspace.
Consequently,
and
Composition cannot have rank larger than either factor.
35.18 Invertible Factors
If and are both isomorphisms, then
is also an isomorphism.
Its inverse is
The order reverses. To undo , one first undoes , then undoes .
In matrix form, if and are invertible, then
Again, the order reverses.
35.19 Composition in Geometry
Many geometric operations are naturally described as compositions.
In the plane, a rigid motion fixing the origin may be built from rotations and reflections. A general linear deformation may be built from shears, scalings, rotations, and projections. In three dimensions, transformations used in graphics and robotics are often long products of elementary transformations.
For example, suppose a transformation first scales, then rotates. If the scaling matrix is and the rotation matrix is , then the total matrix is
The rightmost matrix acts first.
This convention is essential in applications. Reversing the order usually gives a different geometric result.
35.20 Composition in Computation
In numerical computation, composition appears whenever data passes through a sequence of linear stages.
A signal may be filtered, transformed, compressed, and reconstructed. A vector may be projected into a subspace, multiplied by a smaller matrix, and mapped back. An iterative method may repeatedly apply the same operator.
If each stage is linear, then the entire pipeline is linear. Its total matrix is the product of the matrices for the stages, in the reverse order of application.
This gives a compact representation of a chain of linear operations. It also allows analysis of stability, rank, null spaces, eigenvalues, and error propagation.
35.21 Summary
Composition applies transformations in sequence. If
and
then
If and are linear, then is linear.
For matrix transformations,
the composition has matrix
Thus
Composition is associative, but it is generally not commutative. The identity transformation acts as the neutral element, and invertible transformations have inverses under composition.
Kernels and images behave naturally under composition:
and
Composition is therefore not a secondary operation. It explains why matrix multiplication has its form and why linear transformations form an algebraic system under chaining.