Matrices
Matrices are represented by capitial letters: . are the dimensions of a given matrix
Basic operations
Matrices can only multiply if their inner dimensions match, otherwise there will be no solution.
If a matrix is multiplied by another matrix, each element in the result matrix is the sum of it's corresponding row in the original matrix performing per-element multiplication on it's corresponding col in the applying matrix
Solving linear systems
The identity matrix of with square dimensions is the matrix with diagonal elements of 1 and others 0.
A matrix with a bottom-left or top-right triangle of 0's (excluding the diagonal) is considered to be in row-echelon form.
are both considered in row-echelon form
Augmented matrices are an important tool to solve linear equations. The number of rows is equal to the number of variables in the equation.
GE are operations by rows, performed on augmented matrices. The possible moves are:
- Addition between rows ( adds row 2 to row 1, leaving row 2 unchanged)
- Multiplication of a row by a scalar ()
- Swapping rows ()
Strict variables
Consider the following linear system. We can take the coefficients and write it into AM form as followed:
Then, we perform GE on the created augmented matrix to make the left side row-echelon.
Deriving from the AM, we know:
So the solution is:
Inconsistent systems
We say a system is inconsistent if a full row of 0 on the left is equal to a non-zero number. We can also conclude that there are no solutions to the system. The following is an example of a system with no solutions:
Free variable systems
Free variables are variables with their corresponding columns having no leading 1s before 0s in the augmented matrix. If a system has free variables, the solution exists in a space, defined by the general solution.
Consider the following system with free variables, we can derive:
We can ignore the free variables, and substitute into both equations, deriving the general solution to be:
Matrix determinant
Determinant is a property of a matrix, represented by or . Only square matrices have a determinant.
Finding the value of determinant
Choose any row or column, then for each element, ignore their corresponding row and column to give the co-factor of the element.
Where is an element from the picked row or column, and are the row and column number of a
Determinant related properties
Vectors
Vectors are matrices with a single column, represented by letters with an arrow above them.
The orthogonal projection of onto is .
The component of perpendicular to is given by

Orthonormal matrices have vector columns length 1, and which any product of two vectors is 0. For an orthonormal matrix ,
We can express a vector as the linear combination of other vectors by:
Vectors have the same span if they are linearly dependent
The dimension of is given by the number of non-zero rows after GE
Matrix inverse
Inverse is a property and function of a matrix, represented by
Matrix eigenpairs
Matrices have properties eigenvalues and eigenvectors . They must satisfy the condition , and has the following properties:
- and come in pairs (each value correspond to a vector)
- Matrices can only have where is the smallest dimension of the matrix
- An includes all vectors of its multiple, and is non-zero By convention,
Note that we can rearrange the condition to , and into . Rearrange into polynomial equation and solve for by first trial and error (if degree ) and then factorization.
The eigenvalues of can be found by
AM is the number of times the value of occur (e.g. has )
GM is the size of nullspace (line of 0s) when plugging into
Plug each into , perform GE, then let the deterministic variable(s) as 1.
For and :
From the augmented matrix: .
As is in both equations, let :
Find the other eigenvector with
For , find the two solution forms as
Then let , and solve for with
Related properties:
Matrix diagonalization
Differential equations
Given , solve for with the following steps:
- Solve for eigenpairs
- Solve c by augmented matrix
Quadratic form
A quadratic equation can be written into the form , where is a symmetric matrix.
For , considering the eigenvalues of :
- is positive definitive if
- is negative definitive if
- is indefinite if otherwise
- is p/n semi-definitive if the conditions are inclusive (i.e. )