Matrices Flashcards
Matrix Multiplication
Can be different sizes, but the column of A and row of B must be the same. The new size is the outside dimensions. To multiply, split first matrix into rows, split second matrix into columns, and find cross product.
Matrix Inverses
Only available in square matrices. A * A^-1 = Identity Matrix
Solving Matrix Equations
Ax = b, x = A^-1 * b
Co-Factor Equation
C(ij) = (-1)^i+j * M(ij)
Finding Minors
At a particular element’s row and column, find the determinant of the remaining values.
Determinant of any n x n matrix
Det = sum of (element * Co-Factor) across a row or down a column. Same across any row or down any column, pick the one with most 0’s.
Triangular Matrix
Either has zeros below the diagonal, or above the diagonal. In this case, the determinant is the product of values down the diagonal
Changes to determinant
- Exchanging rows multiplies the determinant by -1
- Multiplying a row by a constant changes the determinant by that constant
- Adding a multiple of a row to another row doesn’t change the determinant
Cross Product Matrix
For two vectors, the cross product is equal to the determinant of remaining values. Equation = det(i) - det(j) + det(k)
Cross Product for orthogonal vectors
u * (u x v)
Area of Triangle from two vectors
0.5 * Magnitude of Cross Product