Shears and scalings are elementary linear transformations. They change the shape or size of vectors while keeping the origin fixed. Both are represented by simple matrices, and both are used as building blocks for more complicated transformations.
A scaling transformation multiplies selected directions by scalar factors. A shear transformation slides one coordinate direction parallel to another. In two dimensions, common shear matrices have the forms
and
These send to and , respectively. Scaling, shearing, rotation, reflection, and projection are standard examples of linear transformations represented by matrices.
41.1 Scaling Transformations
A scaling transformation multiplies coordinates by fixed numbers.
In , define
The matrix of this transformation is
The scalar scales the -direction, and the scalar scales the -direction.
If
then the scaling is uniform. All directions are stretched or compressed by the same factor.
If
then the scaling is nonuniform. Different coordinate directions are scaled by different factors.
41.2 Uniform Scaling
A uniform scaling in has the form
It sends every vector to
If
the transformation stretches space away from the origin.
If
the transformation compresses space toward the origin.
If
the transformation sends each vector to its negative:
If
the transformation collapses the whole space to the zero vector.
Uniform scaling preserves directions. It changes lengths by the factor . When is negative, it also reverses each line through the origin.
41.3 Nonuniform Scaling
A nonuniform scaling in is represented by a diagonal matrix
It sends
to
Each coordinate axis is scaled independently.
In , the matrix
doubles the -coordinate, triples the -coordinate, and leaves the -coordinate unchanged.
Scaling matrices in three dimensions commonly use one scale factor for each coordinate axis.
41.4 Scaling and Determinant
The determinant of a diagonal scaling matrix is the product of its scale factors.
For
we have
This product measures the signed volume scaling factor.
In , the matrix
scales area by
In , the matrix
scales volume by
If the determinant is zero, at least one scale factor is zero, and the transformation collapses space into a lower-dimensional subspace.
41.5 Invertibility of Scalings
A scaling transformation is invertible exactly when none of its scale factors is zero.
For
the inverse exists if and only if
for every . In that case,
The inverse undoes each coordinate scaling.
For example,
41.6 Eigenvalues of a Scaling
A diagonal scaling matrix has the coordinate axes as eigenspaces.
Let
Then
and
Thus the coordinate axes are invariant directions. The eigenvalues are the scale factors.
In , the standard basis vector is an eigenvector with eigenvalue :
Scaling transformations are therefore among the simplest diagonalizable operators.
41.7 Shear Transformations
A shear transformation slides one coordinate direction parallel to another while preserving certain parallel lines.
In , a shear parallel to the -axis has the form
Its matrix is
The -coordinate is unchanged. The -coordinate is shifted by an amount proportional to .
A shear parallel to the -axis has the form
with matrix
These are the standard coordinate shear matrices in two dimensions.
41.8 Geometry of an -Shear
Consider
It sends
to
Points on the -axis have , so
Thus the -axis is fixed pointwise.
Horizontal lines are preserved as horizontal lines because is unchanged. A point farther from the -axis is shifted more in the -direction.
The unit square with vertices
is sent to the parallelogram with vertices
Thus a shear changes right angles, but keeps area in this case.
41.9 Determinant of a Shear
The determinant of
is
Similarly,
Thus these shears preserve signed area.
In higher dimensions, elementary shear matrices have determinant . They change shape, but they do not change volume.
This distinguishes shears from general scalings. A nonuniform scaling may change volume, while a basic shear preserves volume.
41.10 Invertibility of Shears
A shear matrix is invertible.
For
the inverse is
Indeed,
The inverse shear slides in the opposite direction.
Similarly,
Thus a shear distorts shape without losing information.
41.11 Eigenvalues of a Shear
The matrix
has characteristic polynomial
Thus the only eigenvalue is
If , the eigenspace is found by solving
Now
So
Since ,
Therefore the eigenspace is the -axis:
A nontrivial shear in has only one eigendirection, even though the algebraic multiplicity of the eigenvalue is two.
41.12 Shears and Diagonalization
A nontrivial shear is not diagonalizable over .
For
the only eigenvalue is , and the eigenspace is one-dimensional. A matrix is diagonalizable only if it has a basis of eigenvectors. Here there is only one independent eigenvector.
Thus cannot be diagonalized.
It can be written as
where
The matrix is nilpotent because
Therefore a shear is a simple example of a matrix with a nilpotent part.
41.13 Powers of a Shear
Let
where
Then
for every integer .
For the shear
this gives
Repeated shearing adds the shear amount. Applying the same shear twice gives twice the horizontal displacement for each value of .
The inverse powers are
41.14 Elementary Shears in Higher Dimensions
In , an elementary shear adds a multiple of one coordinate to another.
For example, in ,
has matrix
More generally, an elementary shear has identity entries on the diagonal and a single off-diagonal entry . It has determinant and is invertible. Its inverse is obtained by replacing with .
Elementary shears are closely related to elementary row operations and elementary matrices.
41.15 Shears and Elementary Matrices
Adding a multiple of one row to another is an elementary row operation. The corresponding elementary matrix is a shear matrix.
For example, left multiplication by
adds times row to row .
This matrix is a shear in coordinate space. It is invertible, and
Thus the row operation can be undone.
This connection explains why shears appear implicitly in Gaussian elimination. Elimination uses elementary invertible transformations, many of which are shear operations.
41.16 Scaling and Elementary Matrices
Multiplying a row by a nonzero scalar is another elementary row operation.
The corresponding elementary matrix is a scaling matrix. For example,
multiplies row by .
It is invertible exactly when
Its inverse is
Thus the basic operations in row reduction include scalings and shears.
41.17 Shears as Volume-Preserving Transformations
A shear changes shape but preserves volume.
In , an -shear sends a square to a parallelogram with the same base and height. Hence the area is unchanged.
Algebraically, this is because the determinant is .
In , an elementary shear has determinant , so it preserves signed -dimensional volume.
This property is useful in geometry, mechanics, numerical methods, and matrix factorization. Shears are examples of transformations that may substantially alter angles while preserving volume.
41.18 Scaling as Volume Change
Scaling gives the simplest examples of controlled volume change.
A uniform scaling
in has determinant
Thus lengths are multiplied by , areas by , and -dimensional volumes by .
A nonuniform scaling
has determinant
The determinant records the total signed volume change, even when different directions are scaled differently.
41.19 Composition of Shears and Scalings
Shears and scalings can be composed to produce more complex transformations.
For example,
Then
But
In general,
Thus applying a shear before a scaling may differ from applying the scaling before the shear.
41.20 Shears, Scalings, and Bases
A scaling is diagonal in a basis of directions that it independently stretches.
A shear usually cannot be diagonalized, but it has a simple form in a suitable basis. It fixes one subspace and shifts vectors parallel to that subspace by an amount controlled by another coordinate.
In matrix factorization, many matrices can be reduced or decomposed using elementary operations that correspond to shears, scalings, and swaps. These elementary transformations give a constructive view of invertible matrices.
For instance, Gaussian elimination factors a matrix into products of elementary matrices. The elementary matrices include shear matrices for row addition and scaling matrices for row rescaling.
41.21 Relation to Affine Transformations
Shears and scalings discussed here are linear because they fix the origin.
A translation
with is not linear because it sends
to
In computer graphics and geometry, translations are often combined with linear transformations using homogeneous coordinates. In ordinary vector-space coordinates, however, pure translations are affine, not linear.
Shears and scalings become part of larger affine transformation systems when translation is added.
41.22 Summary
A scaling transformation multiplies directions by scalar factors. In coordinates, it is represented by a diagonal matrix
It is invertible exactly when all scale factors are nonzero. Its determinant is
which gives the signed volume scaling factor.
A shear transformation adds a multiple of one coordinate to another. In , standard shear matrices are
and
A nontrivial shear is invertible, has determinant , preserves area or volume, and is generally not diagonalizable.
Scalings change size directly. Shears change shape by sliding one direction along another. Together they form basic building blocks for matrix transformations, elimination, geometric modeling, and matrix factorizations.