Matrices Flashcards
Dimensions of a matrix
Written as x X y
No. of rows x no. of columns
Matrix vs column vector vs row vector
A matrix has 2+ rows and columns
A column vector has one column
A row vector has one row
If the value of a variable is a matrix
Use bold, capital letters
Adding/subtracting matrices
Must be the same dimensions
Add/subtract the elements in corresponding positions
Scalar multiplication
Multiply everything in the matrix by the scalar
Square matrix
Has the same amount of rows and columns
Zero matrix
A matrix where all the elements are zero
Identity matrix
A square matrix where the diagonal from the top left is filled with 1s, every other value is 0
How to find an element in a multiplied matrix?
- Take the corresponding row from the first matrix
- Take the corresponding column from the second matrix
- Multiply first in row by first in column and so on
- Sum the answers
What must be true to be able to multiply matrices
Columns in matrix 1 = rows in matrix 2
Does AB = BA
No
Dimensions of a multiplied matrix
Rows in a x columns in b
Determinant
Effectively the inverse of a function, multiplying by the determinant is the same as multiplying by the original
How to write determinant of matrix A
det(A) or |A|
If det(A) = 0
A is a singular matrix and doesn’t have an inverse