Lably
Skip to content

Square matrix

Matrix with the same number of rows and columns

  • 6 min read
  • 3 chapters
  • 1 lab on Lably

Learn it on Lably

Square matrices are often used to represent simple linear transformations, such as shearing or rotation. For example, if R is a square matrix representing a rotation (rotation matrix) and v is a column vector describing the position of a point in space, the product Rv yields another column vector describing the position of that point after that rotation. If v is a row vector, the same transformation can be obtained using vRT, where RT is the transpose of R.

Main diagonal

The entries aii (i = 1, ..., n) form the main diagonal of a square matrix. They lie on the imaginary line which runs from the top left corner to the bottom right corner of the matrix. For instance, the main diagonal of the 4×4 matrix above contains the elements a11 = 9, a22 = 11, a33 = 4, a44 = 10.

The diagonal of a square matrix from the top right to the bottom left corner is called antidiagonal or counterdiagonal.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Topics in mathematics