77. Shear Matrix

A shear matrix shifts each point in one direction by an amount proportional to its coordinate in another. The result: parallelograms slide into other parallelograms, preserving area.

77.1. 2D shears

Horizontal shear (each point shifts horizontally by a multiple of its 𝑦-coordinate):

𝑆𝑥(𝑘)=[1𝑘01]𝑆𝑥(𝑘)[𝑥𝑦]=[𝑥+𝑘𝑦𝑦]

Vertical shear:

𝑆𝑦(𝑘)=[10𝑘1]𝑆𝑦(𝑘)[𝑥𝑦]=[𝑥𝑦+𝑘𝑥]
Example

Horizontal shear with 𝑘=1 applied to the unit square:

[00][00][10][10][11][21][01][11]

Square becomes a parallelogram. Area =1 — preserved.

77.2. Properties

𝑆𝑥(𝑘)1=𝑆𝑥(𝑘)=[1𝑘01]

77.3. Why det=1

Geometrically: a parallelogram slides — its base is unchanged, and its height (perpendicular distance) is unchanged. Area = base × height stays the same. The same logic generalizes to 𝑛 dimensions.

77.4. Composition of shears

The product of two shears (in the same direction) is another shear:

𝑆𝑥(𝑘1)𝑆𝑥(𝑘2)=𝑆𝑥(𝑘1+𝑘2)

Two shears in different directions can produce non-shear results (composition need not be triangular).

77.5. Application: graphics and italics

77.6. Shears in higher dimensions

A general shear in 𝑛 adds a multiple of one coordinate to another. The matrix is the identity with a single off-diagonal non-zero entry:

𝐼+𝑘𝑒𝑖𝑒𝑗𝑇,𝑖𝑗

77.7. See also