Systems of linear equations

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 system of linear equations can be written as AX = B, where A is the matrix of coefficients, X is the column of unknowns and B is the column of constants. If B = O the system is homogeneous; otherwise it is non-homogeneous.

When A is square and |A| ≠ 0 there is exactly one solution, found by the matrix inverse method or by Cramer's rule.

The rank of a matrix is the number of non-zero rows in its echelon form. Comparing the rank of A with the rank of the augmented matrix tells you whether a system is consistent (has a solution) or inconsistent (has none).

In simpler words

A set of linear equations can be written as one matrix equation, AX = B. If the determinant of A is not zero, there is exactly one answer. You can find it with the inverse of A or with Cramer's rule. The rank, found by tidying the matrix into echelon form, tells you if the system has no answer, one answer, or infinitely many.

An everyday comparison

Solving AX = B with an inverse is like unlocking a door with the right key: multiply by A−1 and X is revealed. If |A| = 0, the key does not exist. Rank is like counting how many truly different clues you have; repeated clues add nothing new. The comparison stops working because equations can also contradict each other, making the system inconsistent.

Rules to remember

Common mistake

In Cramer's rule students replace the wrong column. For x replace the column of x-coefficients by the constants; for y replace the column of y-coefficients. Write each equation with the constant alone on the right-hand side first.

In the exam

Write the system as AX = B with each matrix shown. Find |A| and state it is not zero. For the inverse method, write X = A−1B, find A−1 and multiply. For Cramer's rule, form A1, A2, A3 by replacing the correct column with B, and write x = |A1|/|A|. For rank, reduce to echelon form and compare ranks to state consistency.

Worked example

Use Cramer's rule to solve 3x + 2y = 12 and x − y = −1.

  1. |A| has rows [3 2] and [1 −1]: |A| = (3 × −1) − (2 × 1) = −5.
  2. |A1| has rows [12 2] and [−1 −1]: (12 × −1) − (2 × −1) = −12 + 2 = −10, so x = −10 ÷ −5 = 2.
  3. |A2| has rows [3 12] and [1 −1]: (3 × −1) − (12 × 1) = −15, so y = −15 ÷ −5 = 3.
  4. Check: 3(2) + 2(3) = 12 and 2 − 3 = −1.

Answer: x = 2, y = 3

Ask about this

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

Read the full notes

Keep going

← DeterminantsSolving quadratic and reducible equations →Take a Maths test