HOME

TheInfoList



OR:

In
plane geometry Euclidean geometry is a mathematical system attributed to ancient Greek mathematics, Greek mathematician Euclid, which he described in his textbook on geometry, ''Euclid's Elements, Elements''. Euclid's approach consists in assuming a small set ...
, a shear mapping is an
affine transformation In Euclidean geometry, an affine transformation or affinity (from the Latin, '' affinis'', "connected with") is a geometric transformation that preserves lines and parallelism, but not necessarily Euclidean distances and angles. More general ...
that displaces each point in a fixed direction by an amount proportional to its
signed distance In mathematics and its applications, the signed distance function or signed distance field (SDF) is the orthogonal distance of a given point ''x'' to the boundary of a set Ω in a metric space (such as the surface of a geometric shape), with t ...
from a given line parallel to that direction. 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 In mathematics, an elementary matrix is a square matrix obtained from the application of a single elementary row operation to the identity matrix. The elementary matrices generate the general linear group when is a field. Left multiplication (p ...
that represents the
addition Addition (usually signified by the Plus and minus signs#Plus sign, plus symbol, +) is one of the four basic Operation (mathematics), operations of arithmetic, the other three being subtraction, multiplication, and Division (mathematics), divis ...
of a multiple of one row or column to another. Such a
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 ...
may be derived by taking the
identity matrix In linear algebra, the identity matrix of size n is the n\times n square matrix with ones on the main diagonal and zeros elsewhere. It has unique properties, for example when the identity matrix represents a geometric transformation, the obje ...
and replacing one of the zero elements with a non-zero value. An example is the
linear map In mathematics, and more specifically in linear algebra, a linear map (also called a linear mapping, linear transformation, vector space homomorphism, or in some contexts linear function) is a mapping V \to W between two vector spaces that p ...
that takes any point with
coordinates In geometry, a coordinate system is a system that uses one or more numbers, or coordinates, to uniquely determine and standardize the Position (geometry), position of the Point (geometry), points or other geometric elements on a manifold such as ...
(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 -axis, and the signed distance is the -coordinate. Note that points on opposite sides of the reference line are displaced in opposite directions. Shear mappings must not be confused with
rotation Rotation or rotational/rotary motion is the circular movement of an object around a central line, known as an ''axis of rotation''. A plane figure can rotate in either a clockwise or counterclockwise sense around a perpendicular axis intersect ...
s. Applying a shear map to a set of points of the plane will change all
angle In Euclidean geometry, an angle can refer to a number of concepts relating to the intersection of two straight Line (geometry), lines at a Point (geometry), point. Formally, an angle is a figure lying in a Euclidean plane, plane formed by two R ...
s between them (except straight angles), and the length of any
line segment In geometry, a line segment is a part of a line (mathematics), straight line that is bounded by two distinct endpoints (its extreme points), and contains every Point (geometry), point on the line that is between its endpoints. It is a special c ...
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
parallelogram In Euclidean geometry, a parallelogram is a simple polygon, simple (non-list of self-intersecting polygons, self-intersecting) quadrilateral with two pairs of Parallel (geometry), parallel sides. The opposite or facing sides of a parallelogram a ...
s, and
circle A circle is a shape consisting of all point (geometry), points in a plane (mathematics), plane that are at a given distance from a given point, the Centre (geometry), centre. The distance between any point of the circle and the centre is cal ...
s into
ellipse In mathematics, an ellipse is a plane curve surrounding two focus (geometry), focal points, such that for all points on the curve, the sum of the two distances to the focal points is a constant. It generalizes a circle, which is the special ty ...
s. However a shearing does preserve the
area Area is the measure of a region's size on a surface. The area of a plane region or ''plane area'' refers to the area of a shape or planar lamina, while '' surface area'' refers to the area of an open surface or the boundary of a three-di ...
of geometric figures and the alignment and relative distances of
collinear In geometry, collinearity of a set of Point (geometry), points is the property of their lying on a single Line (geometry), line. A set of points with this property is said to be collinear (sometimes spelled as colinear). In greater generality, t ...
points. 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 Laminar flow () is the property of fluid particles in fluid dynamics to follow smooth paths in layers, with each layer moving smoothly past the adjacent layers with little or no mixing. At low velocities, the fluid tends to flow without lateral m ...
of a fluid between plates, one moving in a plane above and parallel to the first. In the general -dimensional Cartesian space the distance is measured from a fixed
hyperplane In geometry, a hyperplane is a generalization of a two-dimensional plane in three-dimensional space to mathematical spaces of arbitrary dimension. Like a plane in space, a hyperplane is a flat hypersurface, a subspace whose dimension is ...
parallel to the direction of displacement. This geometric transformation is a
linear transformation In mathematics, and more specifically in linear algebra, a linear map (also called a linear mapping, linear transformation, vector space homomorphism, or in some contexts linear function) is a mapping V \to W between two vector spaces that pr ...
of that preserves the -dimensional measure (hypervolume) of any set.


Definition


Horizontal and vertical shear of the plane

In the plane \R^2 = \R\times\R, a horizontal shear (or shear parallel to the -axis) is a function that takes a generic point with coordinates (x,y) to the point (x + m y,y); where 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 -coordinate. Any point above the -axis is displaced to the right (increasing ) if , and to the left if . Points below the -axis move in the opposite direction, while points on the axis stay fixed. Straight lines parallel to the -axis remain where they are, while all other lines are turned (by various angles) about the point where they cross the -axis. Vertical lines, in particular, become oblique lines with
slope In mathematics, the slope or gradient of a Line (mathematics), line is a number that describes the direction (geometry), direction of the line on a plane (geometry), plane. Often denoted by the letter ''m'', slope is calculated as the ratio of t ...
\tfrac 1 m. Therefore, the shear factor is the
cotangent In mathematics, the trigonometric functions (also called circular functions, angle functions or goniometric functions) are real functions which relate an angle of a right-angled triangle to ratios of two side lengths. They are widely used in a ...
of the shear angle \varphi between the former verticals and the -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 In linear algebra, a column vector with elements is an m \times 1 matrix consisting of a single column of entries, for example, \boldsymbol = \begin x_1 \\ x_2 \\ \vdots \\ x_m \end. Similarly, a row vector is a 1 \times n matrix for some , c ...
(a 2×1
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 ...
), the shear mapping can be written as
multiplication Multiplication is one of the four elementary mathematical operations of arithmetic, with the other ones being addition, subtraction, and division (mathematics), division. The result of a multiplication operation is called a ''Product (mathem ...
by a 2×2 matrix: : \beginx^\prime \\y^\prime \end = \beginx + m y \\y \end = \begin1 & m\\0 & 1\end \beginx \\y \end. A vertical shear (or shear parallel to the -axis) of lines is similar, except that the roles of and are swapped. It corresponds to multiplying the coordinate vector by the transposed matrix: : \beginx^\prime \\y^\prime \end = \beginx \\ m x + y \end = \begin1 & 0\\m & 1\end \beginx \\y \end. The vertical shear displaces points to the right of the -axis up or down, depending on the sign of . It leaves vertical lines invariant, but tilts all other lines about the point where they meet the -axis. Horizontal lines, in particular, get tilted by the shear angle \varphi to become lines with slope .


Composition

Two or more shear transformations can be combined. If two shear matrices are \begin 1 & \lambda \\ 0 & 1 \end and \begin 1 & 0 \\ \mu & 1 \end then their composition matrix is \begin 1 & \lambda \\ 0 & 1 \end\begin 1 & 0 \\ \mu & 1\end = \begin 1 + \lambda\mu & \lambda \\ \mu & 1 \end, which also has determinant 1, so that area is preserved. In particular, if \lambda=\mu, we have \begin 1 + \lambda^2 & \lambda \\ \lambda & 1 \end, which is a
positive definite matrix In mathematics, a symmetric matrix M with real entries is positive-definite if the real number \mathbf^\mathsf M \mathbf is positive for every nonzero real column vector \mathbf, where \mathbf^\mathsf is the row vector transpose of \mathbf. Mo ...
.


Higher dimensions

A typical shear matrix is of the form S = \begin 1 & 0 & 0 & \lambda & 0 \\ 0 & 1 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0 & 1 \end. This matrix shears parallel to the axis in the direction of the fourth dimension of the underlying vector space. A shear parallel to the axis results in x' = x + \lambda y and y' = y. In matrix form: \begin x' \\ y' \end = \begin 1 & \lambda \\ 0 & 1 \end \begin x \\ y \end. Similarly, a shear parallel to the axis has x' = x and y' = y + \lambda x. In matrix form: \beginx' \\ y' \end = \begin 1 & 0 \\ \lambda & 1 \end \begin x \\ y \end. In 3D space this matrix shear the YZ plane into the diagonal plane passing through these 3 points: (0, 0, 0) (\lambda, 1, 0) (\mu, 0, 1) S = \begin 1 & \lambda & \mu \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end. 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 ...
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 is a shear matrix with shear element , then is a shear matrix whose shear element is simply . Hence, raising a shear matrix to a power multiplies its shear factor by .


Properties

If is an shear matrix, then: * has rank and therefore is
invertible In mathematics, the concept of an inverse element generalises the concepts of opposite () and reciprocal () of numbers. Given an operation denoted here , and an identity element denoted , if , one says that is a left inverse of , and that ...
* 1 is the only
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 ...
of , so and * the
eigenspace In linear algebra, an eigenvector ( ) or characteristic vector is a Vector (mathematics and physics), vector that has its direction (geometry), direction unchanged (or reversed) by a given linear map, linear transformation. More precisely, an e ...
of (associated with the eigenvalue 1) has dimensions. * is defective * is asymmetric * may be made into a
block matrix In mathematics, a block matrix or a partitioned matrix is a matrix that is interpreted as having been broken into sections called blocks or submatrices. Intuitively, a matrix interpreted as a block matrix can be visualized as the original matrix w ...
by at most 1 column interchange and 1 row interchange operation * the
area Area is the measure of a region's size on a surface. The area of a plane region or ''plane area'' refers to the area of a shape or planar lamina, while '' surface area'' refers to the area of an open surface or the boundary of a three-di ...
,
volume Volume is a measure of regions in three-dimensional space. It is often quantified numerically using SI derived units (such as the cubic metre and litre) or by various imperial or US customary units (such as the gallon, quart, cubic inch) ...
, or any higher order interior capacity of a
polytope In elementary geometry, a polytope is a geometric object with flat sides ('' faces''). Polytopes are the generalization of three-dimensional polyhedra to any number of dimensions. Polytopes may exist in any general number of dimensions as an ...
is invariant under the shear transformation of the polytope's vertices.


General shear mappings

For a
vector space In mathematics and physics, a vector space (also called a linear space) is a set (mathematics), set whose elements, often called vector (mathematics and physics), ''vectors'', can be added together and multiplied ("scaled") by numbers called sc ...
and subspace , a shear fixing translates all vectors in a direction parallel to . To be more precise, if is the
direct sum The direct sum is an operation between structures in abstract algebra, a branch of mathematics. It is defined differently but analogously for different kinds of structures. As an example, the direct sum of two abelian groups A and B is anothe ...
of and , and we write vectors as :v=w+w' correspondingly, the typical shear fixing is :L(v) = (Lw+Lw') = (w+Mw') + w', where is a linear mapping from into . Therefore in
block matrix In mathematics, a block matrix or a partitioned matrix is a matrix that is interpreted as having been broken into sections called blocks or submatrices. Intuitively, a matrix interpreted as a block matrix can be visualized as the original matrix w ...
terms can be represented as :\begin I & M \\ 0 & I \end.


Applications

The following applications of shear mapping were noted by
William Kingdon Clifford William Kingdon Clifford (4 May 18453 March 1879) was a British mathematician and philosopher. Building on the work of Hermann Grassmann, he introduced what is now termed geometric algebra, a special case of the Clifford algebra named in his ...
: :"A succession of shears will enable us to reduce any figure bounded by straight lines to a triangle of equal area." :"... we may shear any triangle into a right-angled triangle, and this will not alter its area. Thus the area of any triangle is half the area of the rectangle on the same base and with height equal to the perpendicular on the base from the opposite angle." The area-preserving property of a shear mapping can be used for results involving area. For instance, the
Pythagorean theorem In mathematics, the Pythagorean theorem or Pythagoras' theorem is a fundamental relation in Euclidean geometry between the three sides of a right triangle. It states that the area of the square whose side is the hypotenuse (the side opposite t ...
has been illustrated with shear mapping as well as the related geometric mean theorem. Shear matrices are often used in
computer graphics Computer graphics deals with generating images and art with the aid of computers. Computer graphics is a core technology in digital photography, film, video games, digital art, cell phone and computer displays, and many specialized applications. ...
. An algorithm due to Alan W. Paeth uses a sequence of three shear mappings (horizontal, vertical, then horizontal again) to rotate a
digital image A digital image is an image composed of picture elements, also known as pixels, each with '' finite'', '' discrete quantities'' of numeric representation for its intensity or gray level that is an output from its two-dimensional functions f ...
by an arbitrary angle. The algorithm is very simple to implement, and very efficient, since each step processes only one column or one row of
pixel In digital imaging, a pixel (abbreviated px), pel, or picture element is the smallest addressable element in a Raster graphics, raster image, or the smallest addressable element in a dot matrix display device. In most digital display devices, p ...
s at a time. In
typography Typography is the art and technique of Typesetting, arranging type to make written language legibility, legible, readability, readable and beauty, appealing when displayed. The arrangement of type involves selecting typefaces, Point (typogra ...
, normal text transformed by a shear mapping results in oblique type. In pre-Einsteinian Galilean relativity, transformations between
frames of reference In physics and astronomy, a frame of reference (or reference frame) is an abstract coordinate system, whose origin, orientation, and scale have been specified in physical space. It is based on a set of reference points, defined as geometric ...
are shear mappings called Galilean transformations. These are also sometimes seen when describing moving reference frames relative to a "preferred" frame, sometimes referred to as absolute time and space.


Etymology

The term 'shear' originates from
Physics Physics is the scientific study of matter, its Elementary particle, fundamental constituents, its motion and behavior through space and time, and the related entities of energy and force. "Physical science is that department of knowledge whi ...
, used to describe a ''cutting-like'' deformation in which parallel layers of material 'slide past each other'. More formally,
shear force In solid mechanics, shearing forces are unaligned forces acting on one part of a Rigid body, body in a specific direction, and another part of the body in the opposite direction. When the forces are Collinearity, collinear (aligned with each ot ...
refers to unaligned
forces In physics, a force is an influence that can cause an object to change its velocity unless counterbalanced by other forces. In mechanics, force makes ideas like 'pushing' or 'pulling' mathematically precise. Because the magnitude and directi ...
acting on one part of a body in a specific direction, and another part of the body in the opposite direction.


See also

*
Transformation matrix In linear algebra, linear transformations can be represented by matrices. If T is a linear transformation mapping \mathbb^n to \mathbb^m and \mathbf x is a column vector with n entries, then there exists an m \times n matrix A, called the transfo ...


References


Bibliography

* {{Matrix classes Functions and mappings Linear algebra