Matrices and matrix algebra

Maths · Matrices and determinants. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Maths topics

The idea

A matrix is a rectangular array of numbers. A matrix with m rows and n columns has order m × n (rows first). Matrices are named by their shape and entries: row, column, square, diagonal, scalar, identity, null, and so on.

Two matrices can be added or subtracted only when they have the same order. The product AB is defined only when the number of columns of A equals the number of rows of B. In general AB ≠ BA.

The transpose At is found by changing rows into columns. A square matrix has an inverse only when its determinant is not zero.

In simpler words

A matrix is a box of numbers in rows and columns. Its order is rows times columns. You can only add matrices of the same order. You can multiply AB only if A has as many columns as B has rows. Usually AB is not the same as BA. The transpose swaps rows and columns. A matrix has an inverse only when its determinant is not zero.

An everyday comparison

Multiplying matrices is like a shop bill. One row lists how many of each item you buy, one column lists each item's price. Multiply each pair and add to get the total. That is why A's columns must match B's rows: each item needs a price. The comparison stops working for inverses, which have no shopping meaning and need a non-zero determinant.

Rules to remember

Common mistake

For the adjoint of a 2 × 2 matrix students change the wrong entries. Interchange the two main diagonal entries and change the signs of the other two; do not move the other two.

In the exam

State the orders first and check the product is defined, then write the order of the answer. Show each entry as row times column. For the inverse of a 2 × 2 matrix, find |A| = ad − bc, state it is not zero, write adj A by swapping the main diagonal and changing the other signs, then A−1 = (1/|A|) adj A. Check that AA−1 = I.

Worked example

Find the inverse of the matrix A with rows [4 3] and [2 2].

  1. |A| = (4 × 2) − (3 × 2) = 8 − 6 = 2, which is not zero, so the inverse exists.
  2. adj A has rows [2 −3] and [−2 4].
  3. A−1 = (1/2) × adj A, with rows [1 −3/2] and [−1 2].
  4. Check the first row of AA−1: 4 × 1 + 3 × (−1) = 1 and 4 × (−3/2) + 3 × 2 = 0.

Answer: A−1 is the matrix with rows [1 −3/2] and [−1 2].

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Keep going

← Binary operations and groupsDeterminants →Take a Maths test