1 Solving two equations in two unknowns
If we have one linear equation
in which the unknown is and and are constants then there are just three possibilities:
- then . In this case the equation has a unique solution for .
- , then the equation becomes and any value of will do. In this case the equation has infinitely many solutions .
- and then becomes which is a contradiction. In this case the equation has no solution for .
What happens if we have more than one equation and more than one unknown? We shall find that the solutions to such systems can be characterised in a manner similar to that occurring for a single equation; that is, a system may have a unique solution, an infinity of solutions or no solution at all.
In this Section we examine a method, known as Cramer’s rule and employing determinants, for solving systems of linear equations.
Consider the equations
(1)
(2)
where are given numbers. The variables and are unknowns we wish to find. The pairs of values of and which simultaneously satisfy both equations are called solutions. Simple algebra will eliminate the variable between these equations. We multiply equation (1) by , equation (2) by and subtract:
(we multiplied in this way to make the coefficients of equal.)
Now subtract to obtain
(3)
Task!
Starting with equations (1) and (2) above, eliminate .
Multiply equation (1) by and equation (2) by to obtain
Now subtract to obtain
If we multiply this last equation in the Task above by we obtain
(4)
Dividing equations (3) and (4) by we obtain the solutions
(5)
There is of course one proviso: if then neither nor has a defined value.
If we choose to express these solutions in terms of determinants we have the formulation for the solution of simultaneous equations known as Cramer’s rule .
If we define as the determinant and provided then the unique solution of the equations
is by (5) given by
Now is the determinant of coefficients on the left-hand sides of the equations. In the expression the coefficients of (i.e. which is column 1 of ) are replaced by the terms on the right-hand sides of the equations (i.e. by ). Similarly in the coefficients of (column 2 of ) are replaced by the terms on the right-hand sides of the equations.
Key Point 1
Cramer’s Rule for Two Equations
The unique solution to the equations:
If this method of solution cannot be used.
Task!
Use Cramer’s rule to solve the simultaneous equations
Calculating . Since we can proceed with Cramer’s solution.
i.e. implying:
You can check by direct substitution that these are the exact solutions to the equations.
Task!
Use Cramer’s rule to solve the equations
You should have checked first, since
. Hence there is no unique solution in either case.
In the system
- the second equation is twice the first so there are infinitely many solutions. (Here we can give any value we wish, say; but then the value is always . So for each value of there are values for and which simultaneously satisfy both equations. There is an infinite number of possible solutions). In
- the equations are inconsistent (since the first is and the second is which is not possible). Hence there are no solutions.
Notation
For ease of generalisation to larger systems we write the two-equation system in a different notation:
Here the unknowns are and , the right-hand sides are and and the coefficients are where, for example, is the coefficient of in equation two. In general, is the coefficient of in equation .
Cramer’s rule can then be stated as follows:
If , then the equations
have solution