QED
Linear Algebra · step 1 of 13

Matrix arithmetic & inverses

Matrix multiplication combines rows with columns: entry (i,j) of AB is the dot product of row i of A with column j of B, so the inner dimensions must match. Multiplication is associative but NOT commutative — AB and BA are usually different and may not even both exist. A square matrix is invertible exactly when its determinant is non-zero, and (AB)⁻¹ = B⁻¹A⁻¹ with the order reversed.

Unlimited questions · marked criterion by criterion · no card needed

Method: how to approach it

The order below is what examiners expect to see, and each step carries its own marks.

  1. Check the dimensionsAn m×n times an n×p gives an m×p. If the inner numbers differ the product is undefined.
  2. Compute entry by entryEntry (i,j) is row i of A dotted with column j of B. Work along one row at a time.
  3. Invert a 2×2 with the formulaFor [[a,b],[c,d]] the inverse is (1/(ad−bc))·[[d,−b],[−c,a]] — swap the diagonal, negate the off-diagonal, divide by the determinant.
  4. Invert larger matrices by row reductionAugment with the identity, row reduce to [I | A⁻¹]. If the left side cannot reach I, the matrix is singular.

Worked example

Find the inverse of A = [[3, 1], [5, 2]] and verify it.

  1. det A = 3·2 − 1·5 = 6 − 5 = 1, non-zero so the inverse exists.
  2. Apply the formula: swap the diagonal to get 2 and 3, negate the off-diagonal to get −1 and −5.
  3. A⁻¹ = (1/1)·[[2, −1], [−5, 3]].
  4. Check: [[3,1],[5,2]]·[[2,−1],[−5,3]] = [[6−5, −3+3],[10−10, −5+6]] = [[1,0],[0,1]] ✓.

Answer. A⁻¹ = [[2, −1], [−5, 3]].

Where marks get dropped

These are the specific errors that cost credit on matrix arithmetic & inverses questions — QED's rubric penalises each of them separately.

Practise this until it is automatic

Unlimited fresh questions

QED generates new matrix arithmetic & inverses problems on demand at warm-up, exam and challenge level, so you can drill this one skill until it stops costing you marks.

Marked like an examiner

Every answer is scored against a point-by-point rubric with partial credit, so you see exactly which step of the method broke down — not just a tick or a cross.

Answer in real notation

A one-tap symbol palette, a visual equation editor and a truth-table builder — or photograph your handwritten working and QED converts it to LaTeX.

Saved to your library

Every question you generate is kept and re-takeable as a timed exam, and your Linear Algebra mastery is tracked so you know when this is exam-ready.

Matrix arithmetic & inverses — frequently asked questions

When is a matrix invertible?

Exactly when det ≠ 0, equivalently when the rows are linearly independent, the rank is full, and 0 is not an eigenvalue. All these conditions are equivalent.

Why does the order reverse in (AB)⁻¹?

Because (AB)(B⁻¹A⁻¹) = A(BB⁻¹)A⁻¹ = AA⁻¹ = I. Undoing a composition means undoing the last operation first.

Is AB = 0 possible with A, B ≠ 0?

Yes — matrices have zero divisors. [[1,0],[0,0]]·[[0,0],[0,1]] = 0 despite neither factor being zero.

The rest of Linear Algebra

Matrices, systems, determinants, eigenvalues. Each subtopic below has its own method, worked example and mark-losing traps.

Ready to make matrix arithmetic & inverses exam-proof?

Generate your first questions free — no card, no setup, no personal data stored. Practise until the method is second nature.

Start practising free →