Change language

Learn to calculate by playing with Matrix calculator

A short game to see where the result comes from. Pick a language and start; you can stop halfway and come back.

Loading the game…

← Back to Matrix calculator

What you will practise

Add, subtract and multiply matrices, and compute determinants and transposes.

How it works

The determinant is computed by Gaussian elimination with partial pivoting, a numerically stable method even for large matrices. Addition and subtraction require identical dimensions, and the product requires the columns of A to match the rows of B.

Formula

2×2 determinant: |A| = a₁₁·a₂₂ − a₁₂·a₂₁

Product: cᵢⱼ = Σₖ aᵢₖ · bₖⱼ

Transpose: (Aᵀ)ᵢⱼ = aⱼᵢ

Worked example

A = [1 2 3 / 4 5 6 / 7 8 10]

Gaussian elimination:
|A| = −3

A non-zero determinant means the matrix is invertible.

How to play

First pick your language. Then work through the challenges one by one: each sets out a case with real numbers and, if you get stuck, you can ask for a hint. When you answer, you see whether you got it right and why. Progress is saved only in your browser, so you can stop halfway and carry on another day.