- What is the order of a matrix?
- A matrix with m rows and n columns has order m × n. Say the rows first. For M = beginpmatrix2 & -1 & 4 0 & 5 & 3endpmatrix the order is 2 × 3, and the element in row 2 and column 3 is 3. Two matrices are equal only when they have the same order and equal corresponding elements.
- How do you add, subtract or multiply a matrix by a scalar?
- Add or subtract matrices of the same order by combining corresponding elements. To multiply by a scalar k, multiply every element by k. For 2A - 3B with A = beginpmatrix3 & -2 1 & 4endpmatrix and B = beginpmatrix1 & 5 -3 & 2endpmatrix, the result is beginpmatrix3 & -19 11 & 2endpmatrix.
- How do you multiply two matrices, and does the order matter?
- Multiply the rows of the first matrix by the columns of the second, term by term, then add. An m × n matrix times an n × q matrix gives an m × q matrix. Matrix multiplication is non-commutative, so AB ≠ BA in general. For A = beginpmatrix1 & 2 0 & 1endpmatrix and B = beginpmatrix1 & 0 3 & 1endpmatrix, AB = beginpmatrix7 & 2 3 & 1endpmatrix but BA = beginpmatrix1 & 2 3 & 7endpmatrix.
- How do you find the inverse of a 2 by 2 matrix?
- Find the determinant ad - bc. The matrix has an inverse only when this is not zero. Swap a and d, change the signs of b and c, then divide by the determinant. For M = beginpmatrix4 & 3 2 & 2endpmatrix, det M = 2 and M⁻¹ = beginpmatrix1 & -1.5 -1 & 2endpmatrix. Check that MM⁻¹ = I.
- How do you solve a system of equations using an inverse matrix?
- Write the system as Ax = b, then multiply on the left by A⁻¹, so x = A⁻¹b. Order matters, so write A⁻¹ in front of b. For 2x + y = 7 and x + 3y = 11, det A = 5 and x = 1/5beginpmatrix3 & -1 -1 & 2endpmatrixbeginpmatrix7 11endpmatrix, giving x = 2 and y = 3.
- What is a common error when writing a system of equations as a matrix equation?
- Each row of A must be one equation, with each column belonging to one unknown. Putting the unknowns in a different order in each equation, or putting a feed in a row of A instead of an equation, gives the wrong system. Writing x = bA⁻¹ puts the inverse on the wrong side, since matrix multiplication is non-commutative.