Matrices Flashcards
Scalar multiplication
multiply each element by scalar
addition, subtraction
add, subtract elements in same position. Matrices must be equal size
Multiplication
rows by columns. R1xC1 R1Xc2, underneath is R2xc1, R2xc2, etc
Not commutative
AB not = BA
To see if can be multiplied
write sizes of both, inside numbers must match, outside numbers size of new matrix 3x2 2x3 so new matrix will be 3 x 3
Matrix powers
A^ is AA, A^3 is A^2A, A^6 is A^3A^3
Network matrices
Input vector x Matrix representing network = output vector. No of columns = no of inputs, no of rows = no of outputs
Identity matrix
Multiplying by it leaves original matrix unchanged. Square matrix. Diagonal set of “1” from top left to bottom right, all other elements 0
Inverse of 2x2 matrix
top row a b, 2nd row cd. Determinant ad-bc, if not 0 then matrix invertible. Swap a and c elements, change sign on b and d ones, 1/det in front of matrix
Solve simul eq with matrices
Rewrite eq so x + y (in same order) = constant. If no x or y, then 0x or 0y. That is the coefficient matrix. That by vector (x/y) = vector (constant/constant). Find inverse of coefficient matrix including 1/determinant (A^-1). So vector (x/y) A^-1 x vector (constant/constant)
Simultaneous linear eq matrix coefficient determinant
if det is 0 then no or infinitely many solutions. If not 0 then unique solution