Shear matrix

In mathematics, a shear matrix or transvection is 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.
A typical shear matrix is shown below:
The name "shear" reflects the fact that the matrix represents a shear transformation. Geometrically, such a transformation takes pairs of points in a linear space, that are purely axially separated along the axis whose row in the matrix contains the shear element, and effectively replaces those pairs by pairs whose separation is no longer purely axial but has two vector components. Thus, the shear axis is always an eigenvector of "S".
A shear parallel to the "x" axis results in formula_2 and formula_3. In matrix form:
Similarly, a shear parallel to the "y" axis has formula_5 and formula_6. In matrix form:
Clearly 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 won't 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 formula_8, then "Sn" is a shear matrix whose shear element is simply "n"formula_8. 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: