4.03r, 4.03s - Solving simultaneous equations

4.03r, 4.03s - Solving simultaneous equations

Write two or three simultaneous linear equations as one matrix equation and solve a system with a unique solution by using an inverse. When no unique solution exists, use the equations themselves to distinguish an infinite set of solutions from no solutions.

Two equations as a matrix equation

The equations 2x+y=72x + y = 7 and x+y=5x + y = 5 appear to pin down one pair of numbers. Can you tell before solving whether a system has one solution, infinitely many or none? A determinant makes the first decision; if it is zero, a second check is essential.

You already know

A square matrix has an inverse exactly when its determinant is non-zero. For a non-singular matrix, AX=B\mathbf{AX} = \mathbf{B} gives X=A−1B\mathbf{X} = \mathbf{A}^{-1}\mathbf{B}, with the inverse multiplying on the left.

Collect the coefficients in the same variable order in every row. For the opening equations,

(2111)(xy)=(75)\begin{pmatrix}2 & 1 \\ 1 & 1\end{pmatrix} \begin{pmatrix}x \\ y\end{pmatrix} = \begin{pmatrix}7 \\ 5\end{pmatrix}

Multiplying the first row by the variable column gives the first equation; multiplying the second row gives the second. The matrix of coefficients is A\mathbf{A}, the unknown column is x\mathbf{x}, and the constant column is b\mathbf{b}.

A unique solution by an inverse

For Ax=b\mathbf{A}\mathbf{x} = \mathbf{b}, where A\mathbf{A} is a square coefficient matrix,

det⁡A≠0⟹x=A−1b\det\mathbf{A} \ne 0 \quad\Longrightarrow\quad \mathbf{x} = \mathbf{A}^{-1}\mathbf{b}

The solution is unique. If det⁡A=0\det\mathbf{A} = 0, there is no unique solution and this inverse method cannot be used.

Not in the formula booklet: learn it.

The multiplication fixes the side: a column b\mathbf{b} must be pre-multiplied by A−1\mathbf{A}^{-1}.

Worked example 1: solving two equations

Question. Use an inverse matrix to solve 2x+y=72x + y = 7 and x+y=5x + y = 5.

Plan. Form the coefficient matrix, find its inverse and apply it to the constant column.

A=(2111),det⁡A=2−1=1same variable order in each rowA−1=(1−1−12)inverse rule(xy)=(1−1−12)(75)multiply on the left=(7−5−7+10)=(23)row by column\begin{aligned} \mathbf{A} &= \begin{pmatrix}2 & 1 \\ 1 & 1\end{pmatrix},\qquad \det\mathbf{A} = 2 - 1 = 1 && \text{same variable order in each row} \\ \mathbf{A}^{-1} &= \begin{pmatrix}1 & -1 \\ -1 & 2\end{pmatrix} && \text{inverse rule} \\ \begin{pmatrix}x \\ y\end{pmatrix} &= \begin{pmatrix}1 & -1 \\ -1 & 2\end{pmatrix}\begin{pmatrix}7 \\ 5\end{pmatrix} && \text{multiply on the left} \\ &= \begin{pmatrix}7 - 5 \\ -7 + 10\end{pmatrix} = \begin{pmatrix}2 \\ 3\end{pmatrix} && \text{row by column} \end{aligned}

Why this step? The inverse turns the whole coefficient matrix into the identity at once, leaving the unknown column on its own.

Answer. x=2x = 2, y=3y = 3. The solution is unique because the determinant is non-zero.

Check. 2(2)+3=72(2) + 3 = 7 and 2+3=52 + 3 = 5, so both original equations hold.

Worked example 2 changes only the second constant. The coefficient matrix and its inverse remain the same, so the new solution needs just one new matrix multiplication.

Worked example 2: reusing the same inverse

Question. Use an inverse matrix to solve 2x+y=72x + y = 7 and x+y=4x + y = 4.

Plan. Apply the inverse from Worked example 1 to the new constant column.

(xy)=(1−1−12)(74)same coefficient matrix=(7−4−7+8)multiply=(31)simplify\begin{aligned} \begin{pmatrix}x \\ y\end{pmatrix} &= \begin{pmatrix}1 & -1 \\ -1 & 2\end{pmatrix}\begin{pmatrix}7 \\ 4\end{pmatrix} && \text{same coefficient matrix} \\ &= \begin{pmatrix}7 - 4 \\ -7 + 8\end{pmatrix} && \text{multiply} \\ &= \begin{pmatrix}3 \\ 1\end{pmatrix} && \text{simplify} \end{aligned}

Why this step? An inverse depends on the coefficients, not the constants. Changing a constant changes the solution but cannot change whether this matrix has an inverse.

Answer. x=3x = 3, y=1y = 1, again uniquely.

Check. 2(3)+1=72(3) + 1 = 7 and 3+1=43 + 1 = 4.

Check both equations after solving. Satisfying just one equation gives no guarantee about the other.

Exam tip

If the instruction is “Use an inverse matrix”, display the inverse and its multiplication by the constant column. Solving by elimination alone does not demonstrate the required method. In a detailed-reasoning question, a calculator's simultaneous-equation answer alone earns no method marks.

Keep the coefficients across rows, and the constants in a separate column.

Three equations as a matrix equation

For three equations, put the coefficients of xx, yy and zz, in that order, across each row. An absent variable has coefficient zero; keep its place.

For example, x+y=3x + y = 3 contributes the row (1,1,0)(1, 1, 0), not a shortened row. Swapping the order of the equations is harmless if you also swap the constants in the same way. Transposing the coefficient matrix generally changes the system.

Worked example 3: three unknowns

Question. Use an inverse matrix to solve

x+y=3y+z=5x+z=4\begin{aligned} x + y &= 3 \\ y + z &= 5 \\ x + z &= 4 \end{aligned}

Plan. Include zero coefficients, find the inverse of the coefficient matrix and multiply it by the constant column.

A(xyz)=(354),A=(110011101)\mathbf{A}\begin{pmatrix}x \\ y \\ z\end{pmatrix} = \begin{pmatrix}3 \\ 5 \\ 4\end{pmatrix},\qquad \mathbf{A} = \begin{pmatrix}1 & 1 & 0 \\ 0 & 1 & 1 \\ 1 & 0 & 1\end{pmatrix}

Using the cofactor method, or the matrix inverse operation on a calculator,

det⁡A=2,A−1=12(1−1111−1−111)\det\mathbf{A} = 2,\qquad \mathbf{A}^{-1} = \frac12\begin{pmatrix}1 & -1 & 1 \\ 1 & 1 & -1 \\ -1 & 1 & 1\end{pmatrix}

Now

(xyz)=12(1−1111−1−111)(354)apply the inverse=12(3−5+43+5−4−3+5+4)row by column=(123)divide by 2\begin{aligned} \begin{pmatrix}x \\ y \\ z\end{pmatrix} &= \frac12\begin{pmatrix}1 & -1 & 1 \\ 1 & 1 & -1 \\ -1 & 1 & 1\end{pmatrix}\begin{pmatrix}3 \\ 5 \\ 4\end{pmatrix} && \text{apply the inverse} \\ &= \frac12\begin{pmatrix}3 - 5 + 4 \\ 3 + 5 - 4 \\ -3 + 5 + 4\end{pmatrix} && \text{row by column} \\ &= \begin{pmatrix}1 \\ 2 \\ 3\end{pmatrix} && \text{divide by } 2 \end{aligned}

Why this step? The constant column follows the equation order, while the answer column follows the chosen variable order.

Answer. x=1x = 1, y=2y = 2, z=3z = 3. The non-zero determinant guarantees uniqueness.

Check. 1+2=31 + 2 = 3, 2+3=52 + 3 = 5 and 1+3=41 + 3 = 4.

Worked example 4 changes only the last constant from 44 to 66. The same inverse now produces a different value for every unknown.

Worked example 4: one new constant, three new answers

Question. Use an inverse matrix to solve

x+y=3y+z=5x+z=6\begin{aligned} x + y &= 3 \\ y + z &= 5 \\ x + z &= 6 \end{aligned}

Plan. Keep the same coefficient matrix and apply its inverse to (356)\begin{pmatrix}3 \\ 5 \\ 6\end{pmatrix}.

(xyz)=12(1−1111−1−111)(356)same inverse=12(3−5+63+5−6−3+5+6)multiply=(214)simplify\begin{aligned} \begin{pmatrix}x \\ y \\ z\end{pmatrix} &= \frac12\begin{pmatrix}1 & -1 & 1 \\ 1 & 1 & -1 \\ -1 & 1 & 1\end{pmatrix}\begin{pmatrix}3 \\ 5 \\ 6\end{pmatrix} && \text{same inverse} \\ &= \frac12\begin{pmatrix}3 - 5 + 6 \\ 3 + 5 - 6 \\ -3 + 5 + 6\end{pmatrix} && \text{multiply} \\ &= \begin{pmatrix}2 \\ 1 \\ 4\end{pmatrix} && \text{simplify} \end{aligned}

Why this step? Each unknown is a combination of all three constants. Changing one equation's constant need not change just one unknown.

Answer. x=2x = 2, y=1y = 1, z=4z = 4.

Check. 2+1=32 + 1 = 3, 1+4=51 + 4 = 5 and 2+4=62 + 4 = 6.

When a calculator is allowed to supply the inverse, still write the coefficient matrix and x=A−1b\mathbf{x} = \mathbf{A}^{-1}\mathbf{b}. This records the mathematical operation and makes an entry error easier to trace.

Watch out

Wrong: putting one equation's coefficients down a column. Right: one equation occupies one row, in a fixed variable order. Put a zero in every missing variable's position before entering the matrix.

The next system changes only the coefficient of zz in the last equation from Worked example 4, so its inverse must be recalculated.

A zero determinant and consistency

A zero determinant says there is no unique solution. It does not tell you whether the equations agree with one another. That distinction comes from their constants as well as their coefficients.

Consider x+2y=5x + 2y = 5 and 2x+4y=102x + 4y = 10. The second equation is exactly twice the first, so it adds no new restriction. Change its right-hand side to 1111, however, and the equations contradict one another: twice the first left-hand side cannot equal both 1010 and 1111.

[DIAGRAM: asset_name: Consistent and inconsistent singular systems; asset_slug: singular-system-consistency; caption: The same singular coefficient matrix can describe coincident lines or distinct parallel lines.; description: Left panel shows the coincident lines x + 2y = 5 and 2x + 4y = 10, giving infinitely many common points. Right panel shows the distinct parallel lines x + 2y = 5 and 2x + 4y = 11, giving no common point.]
The same singular coefficient matrix can describe coincident lines or distinct parallel lines.

Consistent and inconsistent equations

A system is consistent if at least one set of values satisfies all its equations. It is inconsistent if no set of values does. For a square linear system with zero determinant, consistency gives infinitely many solutions; inconsistency gives no solutions.

Eliminate a variable and see what remains. A statement such as 0=00 = 0 is an identity: it imposes no extra restriction. A statement such as 0=10 = 1 is a contradiction: no values can satisfy it. These consistency criteria are not in the formula booklet: learn them.

Worked example 5: an infinite set of solutions

Question. Determine whether the equations x+2y=5x + 2y = 5 and 2x+4y=102x + 4y = 10 have a unique solution, infinitely many solutions or no solutions.

Plan. Test the determinant, then subtract twice the first equation from the second.

det⁡(1224)=4−4=0no unique solution(2x+4y)−2(x+2y)=10−2(5)eliminate0=0an identity\begin{aligned} \det\begin{pmatrix}1 & 2 \\ 2 & 4\end{pmatrix} &= 4 - 4 = 0 && \text{no unique solution} \\ (2x + 4y) - 2(x + 2y) &= 10 - 2(5) && \text{eliminate} \\ 0 &= 0 && \text{an identity} \end{aligned}

Why this step? The determinant concerns only the left-hand sides. The subtraction checks whether the right-hand sides obey the same relationship.

Answer. The equations are consistent and have infinitely many solutions, because the second is exactly twice the first.

Check. (5,0)(5, 0) and (3,1)(3, 1) both satisfy both equations, and the two equations describe the same line.

Worked example 6 changes only the second constant. The determinant stays zero, but the consistency conclusion changes completely.

Worked example 6: no solution

Question. Determine whether x+2y=5x + 2y = 5 and 2x+4y=112x + 4y = 11 are consistent.

Plan. Use the same elimination and compare the constants.

det⁡(1224)=0same coefficient matrix(2x+4y)−2(x+2y)=11−2(5)subtract twice the first0=1a contradiction\begin{aligned} \det\begin{pmatrix}1 & 2 \\ 2 & 4\end{pmatrix} &= 0 && \text{same coefficient matrix} \\ (2x + 4y) - 2(x + 2y) &= 11 - 2(5) && \text{subtract twice the first} \\ 0 &= 1 && \text{a contradiction} \end{aligned}

Why this step? An impossible constant statement rules out every possible pair (x,y)(x, y), not just a trial pair.

Answer. The equations are inconsistent and have no solutions.

Check. The first equation requires 2x+4y=102x + 4y = 10, whereas the second requires 1111, so both cannot hold.

This is the important surprise: the very same zero determinant can accompany infinitely many solutions or no solutions. Its zero value is a prompt to investigate, not the final answer.

Watch out

Wrong: “The determinant is zero, therefore there are no solutions.” Right: “There is no unique solution; check the equations for consistency.” A zero determinant alone cannot distinguish the two remaining cases.

State both the classification and the equation relationship that proves it.

Classifying a system with a parameter

For three equations, first identify the parameter values that make the coefficient matrix singular. In each singular case, compare whole equations, including their constants, and eliminate far enough to expose any contradiction.

Label the equations [1][1], [2][2] and [3][3]. Writing [3]=[1]+[2][3] = [1] + [2] is precise evidence of redundancy only when both coefficients and constants match. If two independent equations remain in three unknowns and the third is redundant, there are infinitely many solutions. You need not find that infinite solution set to classify the system.

Worked example 7: a parameter with one consistent singular case

Question. Classify the solutions of the following system for all real values of pp:

x+y+z=6[1]2x−y+z=3[2]3x+py+2z=9[3]\begin{aligned} x + y + z &= 6 && [1] \\ 2x - y + z &= 3 && [2] \\ 3x + py + 2z &= 9 && [3] \end{aligned}

Plan. Find the coefficient determinant, then inspect the singular value by comparing [3][3] with [1]+[2][1] + [2].

det⁡(1112−113p2)=(−2−p)−(4−3)+(2p+3)first-row expansion=psimplify\begin{aligned} \det\begin{pmatrix}1 & 1 & 1 \\ 2 & -1 & 1 \\ 3 & p & 2\end{pmatrix} &= (-2 - p) - (4 - 3) + (2p + 3) && \text{first-row expansion} \\ &= p && \text{simplify} \end{aligned}

For p≠0p \ne 0, the determinant is non-zero, so there is a unique solution. For p=0p = 0,

[1]+[2]:3x+2z=9[1] + [2]:\qquad 3x + 2z = 9

This is exactly [3][3]. To check the remaining restrictions explicitly,

[2]−2[1]:−3y−z=−9[3]−3[1]:−3y−z=−9\begin{aligned} [2] - 2[1]:\qquad -3y - z &= -9 \\ [3] - 3[1]:\qquad -3y - z &= -9 \end{aligned}

Only two independent equations remain, with no contradiction.

Why this step? Testing the singular value separately avoids using an inverse where none exists, and the whole-equation comparison establishes consistency.

Answer. If p≠0p \ne 0, the solution is unique. If p=0p = 0, the equations are consistent with infinitely many solutions.

Check. At p=0p = 0, both (1,2,3)(1, 2, 3) and (3,3,0)(3, 3, 0) satisfy all three equations, agreeing with the redundancy calculation.

Worked example 8 changes only the last constant from 99 to 1010. The exceptional parameter value is unchanged, but the equations there are now inconsistent.

Worked example 8: the same singular value, a contradiction

Question. Classify the solutions of

x+y+z=6[1]2x−y+z=3[2]3x+py+2z=10[3]\begin{aligned} x + y + z &= 6 && [1] \\ 2x - y + z &= 3 && [2] \\ 3x + py + 2z &= 10 && [3] \end{aligned}

Plan. Reuse the determinant pp, then check whether the new third equation agrees with the sum of the first two when p=0p = 0.

For p≠0p \ne 0, the determinant is non-zero, so there is a unique solution. For p=0p = 0,

[1]+[2]:3x+2z=9add the first two equations[3]:3x+2z=10set p=0[3]−[1]−[2]:0=1contradiction\begin{aligned} [1] + [2]:\qquad 3x + 2z &= 9 && \text{add the first two equations} \\ [3]:\qquad 3x + 2z &= 10 && \text{set } p = 0 \\ [3] - [1] - [2]:\qquad 0 &= 1 && \text{contradiction} \end{aligned}

Why this step? The coefficient relationship is unchanged, but the constants fail it. That is exactly how a singular system becomes inconsistent.

Answer. If p≠0p \ne 0, the solution is unique. If p=0p = 0, the equations are inconsistent and have no solutions.

Check. Any solution of the first two equations would force 3x+2z=93x + 2z = 9, so it cannot satisfy the third when p=0p = 0.

One redundant equation does not by itself establish consistency of an entire system. For instance, x+y+z=1x + y + z = 1, 2x+2y+2z=22x + 2y + 2z = 2 and 3x+3y+3z=43x + 3y + 3z = 4 contain a redundant second equation but a contradictory third. Check every equation.

Exam tip

For a singular system, show the actual linear combination, such as [3]−[1]−[2][3] - [1] - [2], and its resulting constants. “The equations are consistent” without that evidence leaves the decisive reasoning unstated.

The opening question now has a complete answer: a non-zero determinant gives one solution; a zero determinant requires a compatibility check to separate an infinite set from none.

Quick Recap

  • Put one equation's coefficients in each row, with a fixed variable order and zeros for absent variables.
  • For a non-zero coefficient determinant, the unique solution is x=A−1b\mathbf{x} = \mathbf{A}^{-1}\mathbf{b}.
  • A zero determinant means no unique solution; it does not by itself mean no solution.
  • In a singular case, compare complete equations: compatible restrictions give infinitely many solutions, while a contradiction gives none.

The opening system has determinant 11 and the unique solution (2,3)(2, 3); singular systems need the extra consistency check.