Solving simultaneous equations with matrices

Solving simultaneous equations with matrices

Spec C7–C8 · AQA A-Level Further Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Write three equations as Ax=b\mathbf{A}\mathbf{x}=\mathbf{b}; if det⁡A≠0\det\mathbf{A}\neq0 then x=A−1b\mathbf{x}=\mathbf{A}^{-1}\mathbf{b} (inverse on the left).
  • If det⁡A=0\det\mathbf{A}=0 there is no unique solution: the system is either consistent (infinitely many) or inconsistent (none).
  • Decide which by elimination: a true statement like 0=00=0 means consistent; a false one like 5=75=7 means inconsistent.
  • Each equation is a plane; a unique solution is one point where three planes meet.
  • Name the arrangement: a point, a line (sheaf), a triangular prism or parallel planes.

Matrix form and the inverse

Write the equations as Ax=b\mathbf{A}\mathbf{x}=\mathbf{b} and multiply on the left by A−1\mathbf{A}^{-1} when det⁡A≠0\det\mathbf{A}\neq0.

In Ax=b\mathbf{A}\mathbf{x}=\mathbf{b} the rows of the coefficient matrix A\mathbf{A} are the coefficients, x=(xyz)\mathbf{x}=\begin{pmatrix}x\\y\\z\end{pmatrix} and b\mathbf{b} holds the right-hand sides in the same order.

If det⁡A≠0\det\mathbf{A}\neq0 then A−1\mathbf{A}^{-1} exists and there is a unique solution.

State clearly which side the inverse multiplies. Use a calculator for inverses only when the question allows it; otherwise use elimination.

  • Ax=b\mathbf{A}\mathbf{x}=\mathbf{b}x=A−1b\mathbf{x}=\mathbf{A}^{-1}\mathbf{b}

Worked example

Solve x+y+z=6x+y+z=6, 2x−y+z=62x-y+z=6, x+3y−z=2x+3y-z=2, given A−1=18(−2423−217−2−3)\mathbf{A}^{-1}=\frac18\begin{pmatrix}-2&4&2\\3&-2&1\\7&-2&-3\end{pmatrix}.

Which is correct for Ax=b\mathbf{A}\mathbf{x}=\mathbf{b} with det⁡A≠0\det\mathbf{A}\neq0?

No unique solution

With det⁡A=0\det\mathbf{A}=0 the system has either infinitely many solutions or none; use elimination to decide.

If det⁡A=0\det\mathbf{A}=0 the matrix is singular, there is no inverse, and there is not exactly one solution. Two possibilities:

  • Consistent: infinitely many solutions.
  • Inconsistent: no solutions.

Combine equations. If you get a true statement for every value (such as 0=00=0) the system is consistent; if a false statement (such as 5=75=7), it is inconsistent.

Consistent

  • Infinitely many solutions
  • Elimination gives a true statement, e.g. 0=00=0

Inconsistent

  • No solution
  • Elimination gives a false statement, e.g. 5=75=7

Worked example

Discuss the solutions of x+2y+z=4x+2y+z=4, 2x+y−z=12x+y-z=1, 3x+3y=k3x+3y=k.

A system has det⁡A=0\det\mathbf{A}=0. Which is true?

Geometry of the planes

Each equation is a plane, and the way three planes meet decides the number of solutions.

Each equation px+qy+rz=spx+qy+rz=s is a plane. A solution is a point on all three.

Unique solution (det⁡≠0\det\neq0): the three planes meet at a single point.

For det⁡=0\det=0, check whether any two left-hand sides are proportional. If none are, an inconsistent system is a triangular prism.

Parametrise infinite solutions with tt, and give all three coordinates in terms of tt. Name the arrangement.

One solution

  • det⁡≠0\det\neq0
  • Three planes meet at one point

Infinitely many

  • det⁡=0\det=0, consistent
  • A sheaf: three planes share a line
  • Or two planes coincide and the third crosses them
  • Or all three coincide

No solution

  • det⁡=0\det=0, inconsistent
  • A triangular prism: three parallel lines
  • Or parallel planes with a third crossing

Three planes, no two parallel, meet pairwise in three parallel lines. How many solutions are there?

Parameters in the equations

Find the determinant in terms of the letters, then treat the zero case with elimination.

Consider x+y+z=1x+y+z=1, x+2y+3z=3x+2y+3z=3, 2x+3y+az=b2x+3y+az=b. The determinant is a−4a-4.

If a≠4a\neq4 the solution is unique. For a=4a=4 the first two equations add to 2x+3y+4z=42x+3y+4z=4, so the third equation is redundant if b=4b=4, and a contradiction otherwise.

Spot the combination first: when the third left-hand side equals the sum of the first two, the right-hand sides decide everything.

a≠4a\neq4

  • Unique solution
  • Three planes meet at a point

a=4a=4, b=4b=4

  • Infinitely many
  • A line of solutions (sheaf)

a=4a=4, b≠4b\neq4

  • No solution
  • Triangular prism

Worked example

Discuss the solutions for different aa and bb.

In the example, a=4a=4 and b=7b=7. How many solutions are there?

Try an exam question

The equations x+2y+z=4x+2y+z=4, 2x+y−z=12x+y-z=1 and 3x+3y=k3x+3y=k are given. Find the values of kk for which there is a solution, and describe the geometrical arrangement of the three planes when there is not.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which of the following is the matrix form of the three equations?

1 mark, marked against the mark scheme

Revision notes