Teleport

Main features

On this page

Topics

Arithmetic drills
Grade 7
Grade 8
Grade 9
Math I
Math A
Math II
Math B
Math C
Math III
Calculus
Linear algebra
Differential equations

Display

Theme
Linear algebra

Matrix operations

Matrix products are computed "row times column". Once products are routine, learn how to find inverses and solve matrix equations.

Basic, Standard, Advanced: University Year 1 · 1st semester

Math problem generator

Level

Sums, scalar multiples and products

Sums, differences and scalar multiples are computed entry by entry. The (i, j)(i,\ j) entry of ABAB is row ii of AA times column jj of BB:

(abcd)(pqrs)=(ap+braq+bscp+drcq+ds)\begin{pmatrix} a & b \\ c & d \end{pmatrix}\begin{pmatrix} p & q \\ r & s \end{pmatrix} = \begin{pmatrix} ap + br & aq + bs \\ cp + dr & cq + ds \end{pmatrix}
Caution

In general AB≠BAAB \neq BA. An m×nm \times n matrix times an n×ln \times l matrix is m×lm \times l; if the inner sizes differ, the product is not defined.

The transpose  tA\,{}^tA swaps rows and columns, and  t(AB)=tB tA\,{}^t(AB) = {}^tB\,{}^tA.

Finding inverses

2×2 inverse
A=(abcd),ad−bc≠0:A−1=1ad−bc(d−b−ca)A = \begin{pmatrix} a & b \\ c & d \end{pmatrix},\quad ad - bc \neq 0:\quad A^{-1} = \frac{1}{ad - bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}

For larger matrices use row reduction: reduce (A∣E)(A \mid E) until the left half is the identity EE; the right half is then A−1A^{-1}. You can also use the adjugate: A−1=1∣A∣A~A^{-1} = \frac{1}{|A|}\tilde{A}.

Solve AX=BAX = B by multiplying on the left by A−1A^{-1}: X=A−1BX = A^{-1}B. For XA=BXA = B, multiply on the right: X=BA−1X = BA^{-1}.

Cayley–Hamilton and $A^n$

Cayley–Hamilton theorem
A=(abcd):A2−(a+d)A+(ad−bc)E=OA = \begin{pmatrix} a & b \\ c & d \end{pmatrix}:\quad A^2 - (a + d)A + (ad - bc)E = O

This writes A2A^2 as a combination of AA and EE, so A3A^3 and A4A^4 can be reduced too. For AnA^n, compute A2A^2 and A3A^3 to find a pattern, or diagonalize AA using its eigenvalues.