Per ora questa sezione è disponibile solo in spagnolo e inglese.
The rows of A become the columns of Aᵗ: row i of A is column i of Aᵗ. Move the pointer over Aᵗ to see where each number comes from.
a₁₂ = 4 sits in row 1, column 2 of A and moves to row 2, column 1 of Aᵗ.
- Square m = n YesIt has 2 rows and 2 columns: the same number.
- Zero aij = 0 Noa₁₁ = 1, which is not 0.
- Identity aii = 1, aij = 0 (i ≠ j) Noa₁₂ = 4 is off the diagonal and is not 0.
- Diagonal aij = 0 (i ≠ j) Noa₁₂ = 4 is off the diagonal and is not 0.
- Symmetric A = Aᵗ Noa₁₂ = 4 but a₂₁ = 2.
- Antisymmetric Aᵗ = −A Noa₁₁ = 1 is on the diagonal and would have to be 0 (aᵢᵢ = −aᵢᵢ only holds for 0).
- Upper triangular aij = 0 (i > j) Noa₂₁ = 2 is below the diagonal and is not 0.
- Lower triangular aij = 0 (i < j) Noa₁₂ = 4 is above the diagonal and is not 0.
One matrix can be of several types at once: the identity is square, diagonal, symmetric and triangular.
S = (A + At) / 2 K = (A − At) / 2
Checked: S + K gives exactly A, entry by entry.
S is symmetric and K is antisymmetric. Every square matrix is the sum of one of each type.
What is a matrix?
A matrix is a rectangular table of numbers arranged in rows (horizontal) and columns (vertical). It stores many data together and lets you operate on them all at once.
- 1Worked example. This matrix has 2 rows and 3 columns: its size is 2 × 3.
- 2The entry a₁₂ is in row 1, column 2.
- 3The entry a₂₃ is in row 2, column 3.
What it is for. A matrix is the tidy way to store a table of data, the coefficients of a system of equations or a transformation of the plane. Everything that follows classifies matrices by the shape of their table and by their symmetries, because each type satisfies properties that save work.
Square matrices
They are called square because of their shape: they have as many rows as columns. Two very important types live inside them.
- 1Worked example. A square matrix of order 3 (3 rows, 3 columns):
- 2The identity of order 3: ones on the diagonal, zeros elsewhere.
- 3A diagonal matrix: only the entries 2, −1 and 5 on the diagonal can be non-zero.
What it is for. Square matrices describe transformations of a space into itself and are the only ones that can have an inverse. The identity plays the role of "1" in the matrix product, and diagonal matrices are the easiest to use: they are multiplied and raised to powers entry by entry on the diagonal.
The transpose Aᵗ
The transpose of a matrix is obtained by swapping its rows for its columns. It works for any matrix, rectangular (non-square) ones included.
If A = [aij], then At = [aji]: the entry in row i, column j moves to row j, column i. The diagonal stays put and the rest swap in pairs (each pair has its own colour). If A is m × n, At is n × m.
- 1Worked example with a rectangular 2 × 3 matrix.
- 2The rows of A (1, 2, 3 and 4, 5, 6) are written as columns. The transpose is 3 × 2.
Properties
Transposing twice: (Aᵗ)ᵗ = A
Swapping rows and columns twice gives back the original matrix.
See proofTranspose of a product: (AB)ᵗ = BᵗAᵗ
Transposing a product transposes each factor and reverses their order.
See proofWhat it is for. The transpose lets you go from rows to columns, and it is used to define symmetric and antisymmetric matrices. It also appears when computing dot products and in the least squares method.
Symmetric matrices
A square matrix is symmetric when it equals its transpose. It is as if the diagonal were a mirror: what is on one side is repeated on the other.
- 1Worked example. The entries 2 and 2, 5 and 5, 7 and 7 are at the same distance from the diagonal and are equal.
- 2A matrix like ((1, 4), (2, 3)) is not symmetric: a₁₂ = 4 but a₂₁ = 2.
Properties
The inverse of a symmetric matrix is symmetric
If A = Aᵗ and A has an inverse, then A⁻¹ is symmetric too.
See proofSum of symmetric and sum of antisymmetric matrices
Adding two symmetric matrices gives a symmetric one; adding two antisymmetric matrices gives an antisymmetric one.
See proofThe product of symmetric matrices is symmetric only if AB = BA
Two symmetric matrices do not always give a symmetric product: it depends on whether they commute.
See proofAAᵗ and AᵗA are always symmetric
Multiplying a matrix by its transpose, in either order, gives a symmetric matrix.
See proofWhat it is for. Symmetric matrices appear whenever something is measured between pairs of items: distances between cities, covariances between variables or undirected networks of contacts. Symmetry lets you store only half of the data and simplifies many computations.
Antisymmetric matrices
It is the "sign-changed" version of the symmetric matrix: mirrored entries are equal in value but have opposite sign.
- 1Worked example. The diagonal is all 0 and each entry has its opposite across from it: 1 and −1, 2 and −2, 3 and −3.
- 2Its transpose is −A: every entry changes sign.
Properties
An antisymmetric matrix has a diagonal of zeros
If Aᵗ = −A, then A is square and all its entries a_ii are 0.
See proofAntisymmetric of odd order: determinant 0
An n × n antisymmetric matrix with n odd never has an inverse.
See proofThe square of an antisymmetric matrix is symmetric
If Aᵗ = −A, then A² is symmetric (and the powers alternate: symmetric, antisymmetric...).
See proofWhat it is for. They describe rotations and imbalances: the cross product is written with an antisymmetric matrix, and so is the rotation of a solid. The rule about the determinant of odd order is a shortcut to rule out an inverse without computing anything.
Triangular matrices
They have zeros on one side of the main diagonal. They are the matrices you aim for when solving systems, because with them the equations can be solved one at a time.
On the left, an upper triangular matrix: zeros below the diagonal (∗ is any number). On the right, a lower triangular matrix: zeros above the diagonal.
- 1Worked example. An upper triangular and a lower triangular matrix.
- 2A non-square upper triangular matrix (2 × 3): zeros below the diagonal.
Properties
Product of upper triangular matrices
The product of two upper triangular matrices is upper triangular and its diagonal is the product of the diagonals.
See proofThe inverse of an upper triangular matrix is upper triangular
An upper triangular matrix that has an inverse has an inverse that is still upper triangular.
See proofWhat it is for. A system with a triangular matrix is solved by working from the bottom up (or from the top down), with no further computation. That is why the aim of Gaussian elimination is to turn any matrix into a triangular or echelon one.
Symmetric + antisymmetric
Every square matrix splits in exactly one way as the sum of a symmetric matrix and an antisymmetric matrix.
Every square matrix = symmetric + antisymmetric
Any square matrix can be written in exactly one way as the sum of a symmetric and an antisymmetric matrix.
See proof- 1Worked example with the matrix A. First its transpose, swapping rows and columns.
- 2Symmetric part: add A and Aᵗ and divide by 2.
- 3Antisymmetric part: subtract Aᵗ from A and divide by 2.
- 4Check: the sum gives A back.
What it is for. It lets you separate any matrix into its "mirror" part and its "twist" part. It is used, for example, in materials physics: the deformation of a solid is the symmetric part and its rotation the antisymmetric part.