The whole Linear Algebra formula sheet, to print
69 formulas in 5 topics, each with when to use it. Each is explained in the topic notes.
IAE Academy: Linear Algebra formula sheet (GATE DA)
Vector spaces, subspaces, and linear dependence and independence
Read the notesSUBSPACE TEST
Applies to any subset W of a vector space V. If the zero vector is missing, W fails immediately.
SUBSPACES UNDER INTERSECTION AND SUM
W1 and W2 are finite-dimensional subspaces of a vector space V. The intersection and the sum W1+W2 (all u+v with u in W1, v in W2) are always subspaces. The union is a subspace exactly when one of the two contains the other.
SPAN
The span is always a subspace, and it is the smallest subspace containing the given vectors.
MEMBERSHIP IN A COLUMN SPACE
A is m x n real, b is in R^m. Use it to decide whether a vector lies in the span of given vectors.
DEFINITION OF LINEAR INDEPENDENCE
The vectors are independent if only the trivial combination gives the zero vector; otherwise they are dependent. For k >= 2 this is equivalent to: no vector in the set is a combination of the others. Also equivalent: the list v1, ..., vk is dependent exactly when v1 = 0 or some vj is a combination of v1, ..., v(j-1).
BASIS FACTS
V is finite-dimensional. Any independent set has at most n vectors, any spanning set has at least n, and an independent set can be extended to a basis. If W is a subspace of V, then dim W <= n, with equality only when W = V.
DIMENSIONS OF THE MATRIX SUBSPACES
A is real m x n of rank r. Row rank equals column rank, so rank(A) = rank(A^T), and r <= min(m, n). The middle result, rank plus nullity equals the number of columns n, is the rank-nullity theorem.
RANK-NULLITY THEOREM
n is the number of columns of A. Nullity is the dimension of the null space.
Projection, orthogonal, idempotent and partitioned matrices, and quadratic forms
Read the notesSYMMETRIC PLUS SKEW DECOMPOSITION
Holds for every square real matrix, and the split is unique.
ORTHOGONAL MATRIX
Square real . Columns (and rows) form an orthonormal set.
LENGTH AND ANGLE PRESERVATION
Holds for every when is orthogonal.
DETERMINANT AND EIGENVALUES OF AN ORTHOGONAL MATRIX
A real eigenvalue can only be or . Complex eigenvalues come in conjugate pairs of modulus 1.
EVERY 2×2 ORTHOGONAL MATRIX
Every real orthogonal matrix is one of these two forms. is a rotation by : , eigenvalues . is a reflection: symmetric, , eigenvalues and .
IDEMPOTENT: EIGENVALUES AND RANK
Square matrix with . The converse is false: has rank trace and is not idempotent. For a general matrix, rank and trace are unrelated.
COMPLEMENT OF AN IDEMPOTENT
If () is idempotent, then so is , and .
PROJECTION MATRIX ONTO THE COLUMN SPACE OF A
Needs the columns of linearly independent, so that the matrix is invertible. is the point of the column space nearest to .
SPECIAL CASES OF THE PROJECTION MATRIX
First: projection onto the line through . Second: is with , and need not be square.
PROPERTIES OF AN ORTHOGONAL PROJECTION
For with of size and rank . has eigenvalue on the column space (multiplicity ) and on its orthogonal complement (multiplicity ). depends only on the column space, not on which basis forms the columns of .
REFLECTION MATRIX
in , and is . , with the projection onto the line through . reflects across the hyperplane perpendicular to . Its eigenvalues are once (along ) and with multiplicity . More generally, is symmetric and orthogonal for every orthogonal projection .
BLOCK MULTIPLICATION
The column partition of the left factor must match the row partition of the right factor, so that every product such as and is defined.
TRANSPOSE OF A PARTITIONED MATRIX
Transpose each block and also swap the two off-diagonal blocks.
DETERMINANT OF A BLOCK TRIANGULAR MATRIX
and square. The same holds for block lower triangular and block diagonal matrices. The eigenvalues of the whole matrix are those of together with those of , with multiplicities.
INVERSES OF BLOCK DIAGONAL AND BLOCK TRIANGULAR MATRICES
and square. The matrix is invertible exactly when and are both invertible.
SCHUR COMPLEMENT DETERMINANT
Requires square and invertible, and square. is the Schur complement of . If instead is invertible, .
QUADRATIC FORM AND ITS SYMMETRIC MATRIX
is real symmetric. Example: has .
PRINCIPAL AXES (ORTHOGONAL DIAGONALISATION)
A real symmetric always has real eigenvalues and an orthogonal matrix whose columns are eigenvectors. . The signs of the decide the definiteness.
LEADING PRINCIPAL MINOR TEST
real symmetric. is the determinant of the top-left block. For : is positive definite exactly when and .
EXTREME VALUES OF A QUADRATIC FORM ON THE UNIT SPHERE
real symmetric. Equality holds when is an eigenvector for (or for ). It follows from with .
Systems of linear equations, Gaussian elimination, rank and nullity
Read the notesRANK AND FREE VARIABLES
Applies to any matrix after row reduction; the rank is the same in every echelon form.
ROUCHÉ-CAPELLI CONSISTENCY TEST
Equivalent statement: lies in the column space of . Always .
STRUCTURE OF THE SOLUTION SET
When the system is consistent, is any one particular solution; the general solution adds an arbitrary null-space vector.
RANK-NULLITY THEOREM
is the number of columns of (not rows). Nullity equals the number of free variables in an echelon form of .
RANK BOUNDS
For of size and any product that is defined. For real matrices also .
MORE RANK FACTS
First (Sylvester's inequality): is and is . Second: and have the same size. Third: () and () are invertible. Also, for non-zero and , the matrix has rank 1.
INVERSE BY ROW REDUCTION
For a square matrix, with the identity. If the left block cannot be reduced to (a zero row appears in it), is singular and has no inverse.
CRAMER'S RULE
For a square system with . is with its -th column replaced by .
Eigenvalues, eigenvectors and determinants
Read the notesDETERMINANT OF A 2 BY 2 MATRIX
Always valid for a 2 by 2 matrix.
COFACTOR EXPANSION ALONG ROW I
A is n by n and i is any fixed row. M_ij is the determinant of the (n-1) by (n-1) matrix left after deleting row i and column j. The same works along any column. Expand along the row or column with the most zeros.
PRODUCT, TRANSPOSE AND INVERSE
A and B are n by n. The inverse rule needs det(A) not equal to 0. Applying the product rule repeatedly gives det(A^k) = (det A)^k for every integer k >= 1.
SCALAR MULTIPLE
A is n by n. The factor c comes out of each of the n rows, so the power is n, the size of the matrix.
ADJOINT (ADJUGATE)
A is n by n with n >= 2, and adj(A) is the transpose of the cofactor matrix. If det(A) is not 0, then A^{-1} = adj(A)/det(A). Also adj(adj A) = (det A)^{n-2} A for n >= 3, and adj(adj A) = A for n = 2.
VANDERMONDE DETERMINANT
In general, the n by n matrix whose i-th row is 1, x_i, x_i^2, ..., x_i^{n-1} has determinant equal to the product of (x_j - x_i) over all i < j. It is non-zero exactly when the x_i are distinct.
CHARACTERISTIC EQUATION
A is n by n. The n roots of this equation, counted with multiplicity over the complex numbers, are the eigenvalues. For each root, solve (A - lambda I)x = 0 to find the eigenvectors.
CHARACTERISTIC EQUATION OF A 2 BY 2 MATRIX
Valid for any 2 by 2 matrix; it is det(A - lambda I) = 0 written out.
CHARACTERISTIC EQUATION OF A 3 BY 3 MATRIX
c_2 is the sum of the three principal 2 by 2 minors: for each i, delete row i and column i, take the determinant, and add the three results. This is det(A - lambda I) = 0 multiplied through by -1.
TRACE AND DETERMINANT FROM THE EIGENVALUES
A is n by n, and the eigenvalues are counted with algebraic multiplicity. Hence A is singular if and only if 0 is an eigenvalue. Applying the trace rule to A^k gives tr(A^k) = lambda_1^k + ... + lambda_n^k for every integer k >= 1.
DIAGONALISATION
A, P and D are n by n and P is invertible. The columns of P are n linearly independent eigenvectors, in the same order as the eigenvalues on the diagonal of D. This factorisation exists if and only if A has n linearly independent eigenvectors.
SPECTRAL THEOREM FOR REAL SYMMETRIC MATRICES
A is an n by n real symmetric matrix, Q is an n by n orthogonal matrix whose columns are orthonormal eigenvectors, and Lambda is the diagonal matrix of the matching eigenvalues. A real symmetric matrix has real eigenvalues, its eigenvectors for distinct eigenvalues are orthogonal, and it is always diagonalisable by an orthogonal matrix.
RAYLEIGH QUOTIENT BOUNDS
A is an n by n real symmetric matrix with smallest eigenvalue lambda_min and largest eigenvalue lambda_max. Each bound is attained at an eigenvector for that eigenvalue, so the maximum of x^T A x over unit vectors (||x|| = 1) is lambda_max and the minimum is lambda_min.
CAYLEY-HAMILTON THEOREM
A is n by n, and the constant term c of p is replaced by cI. Every square matrix satisfies its own characteristic equation. For a 2 by 2 matrix: A^2 - tr(A) A + det(A) I = 0.
Projections, LU decomposition and singular value decomposition
Read the notesPROJECTION ONTO A LINE
Line through the origin along ; and are in , is of rank , and .
PROJECTION ONTO A COLUMN SPACE
is with linearly independent columns (so is invertible); is and projects onto the column space of .
PROJECTION WITH AN ORTHONORMAL BASIS
The columns of the matrix are orthonormal (); is and no inverse is needed.
NORMAL EQUATIONS
The normal equations always have a solution; it is unique (and given by the inverse form) only when the columns of are linearly independent.
RESIDUAL IS ORTHOGONAL TO THE COLUMNS
Pythagoras applies because the projection and the residual are perpendicular.
GRAM-SCHMIDT STEP
For an matrix with linearly independent columns this gives : is with orthonormal columns and is upper triangular with entries () and positive diagonal. The span of the first vectors is preserved at every step.
LU FACTORISATION
Shown for . Elimination without row exchanges succeeds exactly when the first pivots are non-zero, equivalently when the leading principal minors are non-zero; the factorisation with unit lower is then unique. ( may be , which happens exactly when is singular.)
PIVOTS FROM LEADING PRINCIPAL MINORS
is the determinant of the top-left block of ; valid when no row exchanges are needed ().
PIVOTED FORM
When a zero pivot appears, rows are exchanged; is an permutation matrix. A factorisation exists for every square , and , where is the number of row exchanges.
DETERMINANT FROM LU
Valid when no row exchanges were used; because is unit triangular.
SYMMETRIC MATRICES: LDLᵀ AND CHOLESKY
is symmetric with ; then . is positive definite exactly when every pivot (equivalently every ), and then the Cholesky factor is lower triangular with positive diagonal.
SINGULAR VALUE DECOMPOSITION
is orthogonal (left singular vectors ), is orthogonal (right singular vectors ), is with the singular values on its diagonal and zeros elsewhere; . Equivalently .
SINGULAR VALUES FROM EIGENVALUES
() and () are symmetric positive semidefinite and have the same non-zero eigenvalues; all their other eigenvalues are . The columns of are orthonormal eigenvectors of and the columns of are orthonormal eigenvectors of .
LEFT VECTORS FROM RIGHT VECTORS
Fixes so that its sign agrees with ; choosing independently from can give a wrong sign.
RANK-ONE MATRIX
and are non-zero, so is of rank ; this follows from .
RANK AND NORMS FROM SINGULAR VALUES
is the spectral norm; is the Frobenius norm (square root of the sum of squared entries).
SQUARE MATRICES
is ; is invertible exactly when , and is the 2-norm condition number.
RANK-$K$ TRUNCATION
Keeps the largest singular values, ; has rank .
BEST LOW-RANK APPROXIMATION (ECKART-YOUNG)
ranges over matrices; the minimum is attained by in both norms; take if .