Number of solutions
A linear system has 0, 1 or infinitely many solutions, never exactly two. With no solution it is inconsistent.
Formula sheet
Definitions, matrix rules, determinants, eigenvalues and projections.
A linear system has 0, 1 or infinitely many solutions, never exactly two. With no solution it is inconsistent.
Each keeps the solution set because each can be undone.
| Operation | Example | Undone by |
|---|---|---|
| swap two rows | the same swap | |
| scale a row by | ||
| add a multiple of another row |
Careful: Scaling by 0, multiplying rows together or adding a constant to every entry isn't allowed. An operation acts on the whole row, right side included.
A row with means no solution. A row of all zeros gives no information. Otherwise back-substitute, last row first. RREF has every pivot 1 with zeros above and below, and each matrix has exactly one.
In a consistent system, a variable whose column has no pivot is free. equations give at most pivots, so unknowns leave at least free.
Careful: Count columns without a pivot, not zero rows.
Definition.
Careful: needs one entry per column of .
The span is the set of all linear combinations. Count directions, not vectors.
| Vectors | Span |
|---|---|
| only | the origin |
| one nonzero vector | a line through 0 |
| two, neither a multiple of the other | a plane through 0 |
| two, one a multiple of the other | a line through 0 |
has a solution exactly when is in the span of the columns. It is solvable for every in exactly when has a pivot in every row.
Careful: Count pivots in , not in .
Applies: is consistent. If has only , the solution is unique.
Definition.
Careful: No two parallel isn't enough. Test with a pivot in every column of the matrix of the vectors.
| Count | Independent? | Span ? |
|---|---|---|
| maybe | never | |
| both or neither | both or neither | |
| never | maybe |
Definition.
Careful: A map that moves isn't linear, but alone proves nothing.
Applies: is linear.
is one-to-one exactly when the columns are independent (a pivot in every column), and onto exactly when they span (a pivot in every row).
"Do , then " is the matrix ; the factor next to acts first. Sizes multiply as .
Careful: usually differs from ; .
Applies: . For larger matrices, row-reduce .
Careful: If , there is no inverse.
Applies: Both factors are invertible and square.
Careful: is usually a different matrix.
For an matrix, these are equivalent; is invertible; it has pivots; has only ; the columns are independent; is solvable for every ; the columns span .
Careful: It needs a square matrix.
Eliminate using only "add a multiple of a higher row". is the echelon form and has 1s on the diagonal with each multiplier below. Solve forward, then back.
Definition.
Careful: Its sign is orientation; an area is .
Applies: Any row or column; pick the one with the most zeros. A triangular matrix's determinant is the product of its diagonal.
| Operation | Effect on |
|---|---|
| none | |
Applies: Square matrices. Also . is invertible exactly when .
Careful: There is no rule for sums.
Applies: ; good for one unknown of a small system.
A set is a subspace when , it is closed under addition, and it is closed under scaling by every real . One failing example says no; yes needs all three with arbitrary vectors.
| Space | Is | Basis |
|---|---|---|
| span of the columns, in | pivot columns of itself | |
| solutions of , in | one vector per free variable |
Careful: Row operations change ; use 's columns, not the RREF's.
(polynomials of degree at most ), matrices and functions are vector spaces. Polynomials of degree exactly are not.
Applies: is a basis of .
| Space | Dimension |
|---|---|
| number of pivot columns | |
| number of free variables |
Applies: Any matrix.
Careful: Count free variables by columns, never by zero rows.
Applies: Read right to left; column is .
Careful: and don't cancel, because sits between them.
Definition.
Careful: is never an eigenvector, but is allowed.
Applies: Always. For , .
Careful: Row operations change eigenvalues; read them off the diagonal only for triangular matrices.
Definition.
Careful: Its dimension is , at least 1.
Applies: A real matrix with negative discriminant: it rotates and scales.
Applies: has independent eigenvectors ( distinct eigenvalues is enough). Check with .
Careful: A repeated eigenvalue is a reason to count eigenvectors, not a verdict.
Applies: Parts with die out; the largest wins.
Applies: Every start converges when some power of is all positive. The gap shrinks by each step.
Applies: diagonalizable. Everything decays exactly when every eigenvalue (real part) is negative.
Applies: Any ; .
Applies: The error is orthogonal to .
With an orthogonal basis of , add the projections onto each .
Careful: With a non-orthogonal basis the sum is wrong; orthogonalize first or use the normal equations.
Applies: For square , , lengths are kept and .
Careful: Orthogonal columns that aren't length 1 don't count.
Set , and make each by subtracting from its projections onto the new vectors . Normalize at the end. Then with .
Careful: Project onto the new vectors, not the old ones.
Applies: has no solution; unique when the columns of are independent.
Applies: Each coefficient is a projection, computed on its own. A ±1 square wave has for odd .
Applies: . Eigenvectors for different eigenvalues are perpendicular.
Careful: Without symmetry the eigenvectors needn't be perpendicular.
For symmetric , is in eigenvector coordinates. All λ > 0 is positive definite, all < 0 negative definite, mixed signs indefinite.
Careful: A positive diagonal isn't enough.
Applies: Every real matrix. .
Careful: Singular values aren't eigenvalues (the shear has λ = 1, 1 but σ ≈ 1.618, 0.618).
Keeping terms of gives the closest rank- matrix (Eckart–Young). PCA's first direction is of the centered data.
Unfried · getunfried.com/formulas/linalg