The idea

A circuit with three loops gives you three simultaneous equations. Writing them as a matrix keeps them tidy, and the determinant gives a mechanical way to solve them. You’ll use this in Mesh analysis, and it also turns up in WM1AC for vectors and robot kinematics.

Matrices

An matrix has rows and columns; is the element in row , column .

  • Add or subtract: same size only, element by element.
  • Multiply : the columns of must equal the rows of . . Each element is a row of dotted with a column of .
  • Order matters: in general .
  • There’s no division. "" means , which only exists if .

Determinants

A single number from a square matrix. If it’s zero, the matrix has no inverse and the equations have no unique solution (the rows aren’t independent).

2×2:

3×3: expand along any row or column. Each element times its minor (the 2×2 left when you cover its row and column), with signs from the chequerboard: Choose the row or column with the most zeros to save work.

2×2 inverse: swap the main diagonal, negate the other two, divide by the determinant:

Cramer’s rule

For equations :

  1. Find .
  2. For each unknown, replace its column of with and take that determinant, .
  3. .
  4. Substitute back to check.

Worked example

Find , then solve , with Cramer’s rule.

On the calculator and in MATLAB

  • Scientific calculators (e.g. Casio fx-991) have a Matrix mode for determinants and an Equation / Simul mode that solves 3×3 systems directly. Use Cramer when you need to show working.
  • MATLAB: A = [2, 3; 1, -1] (commas separate columns, semicolons rows), det(A), and x = A\b with b = [13; -1]. b must be a column, so use ;.

Common mistakes

  • Forgetting the minus sign in the middle of the pattern.
  • Multiplying matrices element by element.
  • Putting the constants in the wrong column for .

Check yourself