Lably
Skip to content

Shear mapping

Type of geometric transformation

  • 6 min read
  • 3 chapters

Related on Lably

Through Line (geometry), Parallel (geometry) and Matrix (mathematics)

This type of mapping is also called shear transformation, transvection, or just shearing. The transformations can be applied with a shear matrix or transvection, an elementary matrix that represents the addition of a multiple of one row or column to another. Such a matrix may be derived by taking the identity matrix and replacing one of the zero elements with a non-zero value.

An example is the linear map that takes any point with coordinates (x,y) to the point (x+2y,y). In this case, the displacement is horizontal by a factor of 2 where the fixed line is the x-axis, and the signed distance is the y-coordinate. Note that points on opposite sides of the reference line are displaced in opposite directions.

Shear mappings must not be confused with rotations. Applying a shear map to a set of points of the plane will change all angles between them (except straight angles), and the length of any line segment that is not parallel to the direction of displacement. Therefore, it will usually distort the shape of a geometric figure, for example turning squares into parallelograms, and circles into ellipses. However a shearing does preserve the area of geometric figures and the alignment and relative distances of collinear points. For fonts that do not implement true-italics, a shear mapping is the main difference between the upright and slanted (or italic) styles of letters.

The same definition is used in three-dimensional geometry, except that the distance is measured from a fixed plane. A three-dimensional shearing transformation preserves the volume of solid figures, but changes areas of plane figures (except those that are parallel to the displacement). This transformation is used to describe laminar flow of a fluid between plates, one moving in a plane above and parallel to the first.

In the general n-dimensional Cartesian space ⁠Rn,⁠ the distance is measured from a fixed hyperplane parallel to the direction of displacement. This geometric transformation is a linear transformation of ⁠Rn⁠ that preserves the n-dimensional measure (hypervolume) of any set.

Definition

Horizontal and vertical shear of the plane

In the plane R2=R×R, a horizontal shear (or shear parallel to the x-axis) is a function that takes a generic point with coordinates (x,y) to the point (x+my,y); where m is a fixed parameter, called the shear factor.

The effect of this mapping is to displace every point horizontally by an amount proportionally to its y-coordinate. Any point above the x-axis is displaced to the right (increasing x) if m > 0, and to the left if m < 0. Points below the x-axis move in the opposite direction, while points on the axis stay fixed.

Straight lines parallel to the x-axis remain where they are, while all other lines are turned (by various angles) about the point where they cross the x-axis. Vertical lines, in particular, become oblique lines with slope 1m. Therefore, the shear factor m is the cotangent of the shear angle φ between the former verticals and the x-axis. In the example on the right the square is tilted by 30°, so the shear angle is 60°.

If the coordinates of a point are written as a column vector (a 2×1 matrix), the shear mapping can be written as multiplication by a 2×2 matrix:

(x′y′)=(x+myy)=(1m01)(xy).

A vertical shear (or shear parallel to the y-axis) of lines is similar, except that the roles of x and y are swapped. It corresponds to multiplying the coordinate vector by the transposed matrix:

(x′y′)=(xmx+y)=(10m1)(xy).

The vertical shear displaces points to the right of the y-axis up or down, depending on the sign of m. It leaves vertical lines invariant, but tilts all other lines about the point where they meet the y-axis. Horizontal lines, in particular, get tilted by the shear angle φ to become lines with slope m.

Composition

Two or more shear transformations can be combined.

If two shear matrices are (1λ01) and (10μ1)

then their composition matrix is (1λ01)(10μ1)=(1+λμλμ1), which also has determinant 1, so that area is preserved.

In particular, if λ=μ, we have

(1+λ2λλ1),

which is a positive definite matrix.

Higher dimensions

A typical shear matrix is of the form S=(100λ001000001000001000001).

This matrix shears parallel to the orthogonal complement of the fourth dimension and in the direction of the x axis of the underlying vector space.

A shear parallel to the x axis results in x′=x+λy and y′=y. In matrix form: (x′y′)=(1λ01)(xy).

Similarly, a shear parallel to the y axis has x′=x and y′=y+λx. In matrix form: (x′y′)=(10λ1)(xy).

In 3D space, an elementary shear similarly changes one coordinate by a multiple of another, while leaving the third coordinate unchanged. For example, a shear parallel to the x axis has x′=x+λy, y′=y, and z′=z.

In matrix form: S=(1λ0010001).

More generally, in 3D space this matrix shears the YZ plane into the diagonal plane passing through these 3 points: (0,0,0) (λ,1,0) (μ,0,1) S=(1λμ010001).

The determinant will always be 1, as no matter where the shear element is placed, it will be a member of a skew-diagonal that also contains zero elements (as all skew-diagonals have length at least two) hence its product will remain zero and will not contribute to the determinant. Thus every shear matrix has an inverse, and the inverse is simply a shear matrix with the shear element negated, representing a shear transformation in the opposite direction. In fact, this is part of an easily derived more general result: if S is a shear matrix with shear element λ, then Sn is a shear matrix whose shear element is simply nλ. Hence, raising a shear matrix to a power n multiplies its shear factor by n.

Properties

If S is an n × n shear matrix, then:

  • S has rank n and therefore is invertible
  • 1 is the only eigenvalue of S, so det S = 1 and tr S = n
  • the eigenspace of S (associated with the eigenvalue 1) has n − 1 dimensions.
  • S is defective
  • S is asymmetric
  • S may be made into a block matrix by at most 1 column interchange and 1 row interchange operation
  • the area, volume, or any higher order interior capacity of a polytope is invariant under the shear transformation of the polytope's vertices.

General shear mappings

For a vector space V and subspace W, a shear fixing W translates all vectors in a direction parallel to W.

To be more precise, if V is the direct sum of W and W′, and we write vectors as

v=w+w′

correspondingly, the typical shear L fixing W is

L(v)=(Lw+Lw′)=(w+Mw′)+w′,

where M is a linear mapping from W′ into W. Therefore in block matrix terms L can be represented as

(IM0I).

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Geometry