Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem
Linear AlgebraLinear AlgebraCollege

Matrices

Matrix operations, determinants and inverses.

A matrix is a rectangular array of numbers that represents a linear transformation or a system of equations. Matrices of the same size add entry by entry. Multiplying ABAB takes dot products of rows of AA with columns of BB, so the number of columns of AA must equal the number of rows of BB, and in general AB≠BAAB \ne BA.

The determinant of a square matrix measures how the transformation scales area or volume; a determinant of zero means the matrix squashes space flat and has no inverse. When the inverse exists, the system Ax=bA\mathbf{x} = \mathbf{b} has the unique solution x=A−1b\mathbf{x} = A^{-1}\mathbf{b}.

Key ideas

  • For 2×22 \times 2: det⁡(abcd)=ad−bc\det\begin{pmatrix} a & b \\ c & d \end{pmatrix} = ad - bc.
  • 2×22 \times 2 inverse: 1ad−bc(d−b−ca)\frac{1}{ad - bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}.
  • Row reduction solves systems of any size and finds rank and inverses.
  • The identity matrix II satisfies AI=IA=AAI = IA = A.

Worked example

Solve (2153)x=(411)\begin{pmatrix} 2 & 1 \\ 5 & 3 \end{pmatrix}\mathbf{x} = \begin{pmatrix} 4 \\ 11 \end{pmatrix}.

  1. det⁡=2⋅3−1⋅5=1\det = 2 \cdot 3 - 1 \cdot 5 = 1.
  2. A−1=(3−1−52)A^{-1} = \begin{pmatrix} 3 & -1 \\ -5 & 2 \end{pmatrix}.
  3. x=A−1b=(12−11−20+22)\mathbf{x} = A^{-1}\mathbf{b} = \begin{pmatrix} 12 - 11 \\ -20 + 22 \end{pmatrix}.
  4. x=(12)\mathbf{x} = \begin{pmatrix} 1 \\ 2 \end{pmatrix}.

Answer: x=1x = 1, y=2y = 2

Common mistakes

  • Multiplying matrices entry by entry.
  • Assuming AB=BAAB = BA.
  • Swapping the wrong entries in the 2×22 \times 2 inverse formula.

Practice questions

Try each one, then open the answer. Numerical answers on this page are verified by an automated calculation check.

  1. 1.Find det⁡(4325)\det\begin{pmatrix} 4 & 3 \\ 2 & 5 \end{pmatrix}.

    Show answer

    1414

  2. 2.Find the top-left entry of (1234)2\begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}^2.

    Show answer

    77

  3. 3.For which kk is (2k36)\begin{pmatrix} 2 & k \\ 3 & 6 \end{pmatrix} not invertible?

    Show answer

    k=4k = 4

Keep practising

More in Linear Algebra