Introduction
A matrix is a rectangular array of numbers. Matrices represent linear maps, systems of linear equations, graphs (adjacency matrices) and transformations in graphics. Later topics in linear algebra (determinants, rank, eigenvalues, LU decomposition) build on these operations and special types. The tasks are to apply the algebra of matrix products, transposes and inverses, and to use the defining properties of special matrices such as symmetric, orthogonal and idempotent matrices.
Prerequisites
None within this subject. Familiarity with real numbers, summation notation and solving two linear equations is enough.
Core concepts
Notation
An matrix has rows and columns; is the entry in row , column . is square if ; its main diagonal is . Entries are real unless stated otherwise. Vectors are column matrices ().
Operations
- Addition requires equal matrix sizes; addition and scalar multiplication are entrywise: , .
- Product. If is and is , then is with
The inner sizes must agree. Computing directly takes scalar multiplications.
Properties of the product:
- Associative: ; distributive: .
- Not commutative in general: , and one may be defined when the other is not.
- Cancellation requires the relevant rank condition: full column rank of guarantees ; full row rank of a right factor guarantees right cancellation. For square factors these conditions are equivalent to invertibility; is possible with and .
- Because of non-commutativity, , which equals only if .
The cost depends on the bracketing even though the result does not; choosing the best order is the matrix chain multiplication problem.
Transpose and trace
The transpose has . Rules: , , , and the order reverses for products:
The trace of a square matrix is the sum of its diagonal entries, . It is linear, , and whenever both products are defined (even for non-square ). In general .
Inverse
A square is invertible (non-singular) if there is with ; then is unique. For square matrices, alone already implies . is invertible if and only if (see Determinants). Rules:
For :
Special matrices
| Type | Definition (square ) | Notes |
|---|---|---|
| Diagonal | for | products and powers act entrywise on the diagonal |
| Scalar / identity | / | commutes with every matrix |
| Upper (lower) triangular | for () | closed under products; determinant = product of diagonal |
| Symmetric | real eigenvalues; orthogonally diagonalisable | |
| Skew-symmetric | diagonal is 0; for all | |
| Orthogonal | ; ; preserves lengths | |
| Idempotent | eigenvalues in ; rank = trace | |
| Nilpotent | for some | all eigenvalues 0; trace 0; |
| Involutory | ; eigenvalues in |
Over complex numbers the analogues are Hermitian (, where is the conjugate transpose) and unitary ().

Key facts:
- Every square matrix splits uniquely as symmetric plus skew-symmetric: .
- and are always symmetric.
- If and are symmetric, is symmetric if and only if .
- A skew-symmetric matrix of odd order has determinant 0, since .
- If is idempotent, so is , and .
- If is nilpotent with , then is invertible with inverse .
Rank (preview)
The rank of is the maximum number of linearly independent rows (equivalently, columns). It is developed with row reduction in Systems of Linear Equations and Rank. Useful facts: and .
More rank facts. For matrices of compatible sizes, ; multiplying by invertible matrices does not change rank, ; for real , . A non-zero column times a non-zero row, , has rank 1, and every rank-1 matrix has this form.
Trace facts. holds even when is and is , so and have different sizes. The trace is invariant under cyclic shifts, , but not under arbitrary reorderings. One consequence: no square matrices satisfy , because the left side has trace 0 and the right side has trace .
Worked examples
Example 1: non-commuting product
, . Then (columns swapped) while (rows swapped). Both have trace 5, as predicts.
Example 2: zero divisors
, : although neither factor is zero.
Example 3: symmetric plus skew-symmetric
.
Example 4: inverse
has determinant , so its inverse is . Check by multiplying.
Example 5: powers
gives by induction. The idempotent satisfies , . The rotation is orthogonal with .
Example 6: bracketing cost
is , is , is . costs multiplications; costs .
Example 7: counting special matrices
An symmetric matrix is fixed by its entries on and above the diagonal: free entries. With entries from there are such matrices (64 for ). A skew-symmetric matrix has a zero diagonal and free entries above it; with entries from there are (27 for ).
Example 8: inverse via nilpotency
has , so .
Example 9: powers of a rank-one matrix
Let and , so has rows , , and rank 1. Since and ,
so and every entry of is 36 times the matching entry of . No matrix multiplication is needed.
Example 10: trace with rectangular factors
and . Then is and is , yet both traces are 18. For a non-cyclic reordering, take the matrix units (a single 1 in the named position): but .
Important properties and observations
- Diagonal matrices commute with each other; a general matrix commutes with all matrices only if it is scalar.
- The product of two upper triangular matrices is upper triangular, and its diagonal is the product of the diagonals.
- Orthogonal matrices have orthonormal rows and orthonormal columns.
- The only invertible idempotent matrix is ; the only nilpotent matrix that is diagonalisable is .
GATE examination perspective
- Algebra of products, transposes and inverses, especially the order reversal in and .
- Properties of special matrices: determinant, eigenvalues, trace or rank of idempotent, nilpotent, orthogonal, skew-symmetric matrices.
- Counting symmetric or skew-symmetric matrices over a finite set of entries.
- Trap: assuming , or cancelling a factor without the required full-column-rank (left) or full-row-rank (right) condition.
- Rank-one matrices. satisfies ; powers follow at once (Example 9).
- Trap: and are both false in general.
Summary
Sources
- G. Strang, Introduction to Linear Algebra, 5th ed., Wellesley-Cambridge Press, 2016: Chapter 2 (Solving Linear Equations), Sections 2.4 (Rules for Matrix Operations), 2.5 (Inverse Matrices) and 2.7 (Transposes and Permutations).
- E. Kreyszig, Advanced Engineering Mathematics, 10th ed., Wiley, 2011: Chapter 7 (Linear Algebra: Matrices, Vectors, Determinants. Linear Systems).