2 Solving three equations in three unknowns

Cramer’s rule can be extended to larger systems of simultaneous equations but the calculational effort increases rapidly as the size of the system increases. We quote Cramer’s rule for a system of three equations.

Key Point 2

Cramer’s Rule for Three Equations The unique solution to the system of equations:

a 11 x 1 + a 12 x 2 + a 13 x 3 = b 1 a 21 x 1 + a 22 x 2 + a 23 x 3 = b 2 a 31 x 1 + a 32 x 2 + a 33 x 3 = b 3

is

x 1 = Δ x 1 Δ , x 2 = Δ x 2 Δ , x 3 = Δ x 3 Δ
in which
Δ = a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33
and
Δ x 1 = b 1 a 12 a 13 b 2 a 22 a 23 b 3 a 32 a 33 Δ x 2 = a 11 b 1 a 13 a 21 b 2 a 23 a 31 b 3 a 33 Δ x 3 = a 11 a 12 b 1 a 21 a 22 b 2 a 31 a 32 b 3

If Δ = 0 this method of solution cannot be used.

Notice that the structure of the fractions is similar to that for the two-equation case. For example, the determinant forming the numerator of x 1 is obtained from the determinant of coefficients, Δ , by replacing the first column by the right-hand sides of the equations.

Notice too the increase in calculation: in the two-equation case we had to evaluate three 2 × 2 determinants, whereas in the three-equation case we have to evaluate four 3 × 3 determinants. Hence Cramer’s rule is not really practicable for larger systems.

Task!

Use Cramer’s rule to solve the system

x 1 2 x 2 + x 3 = 3 2 x 1 + x 2 x 3 = 5 3 x 1 x 2 + 2 x 3 = 12 .

First check that Δ 0 :

Δ = 1 2 1 2 1 1 3 1 2 .

Expanding along the top row,

Δ = 1 × 1 1 1 2 ( 2 ) × 2 1 3 2 + 1 × 2 1 3 1 = 1 × ( 2 1 ) + 2 × ( 4 + 3 ) + 1 × ( 2 3 ) = 1 + 14 5 = 10

Now find the value of x 1 . First write down the expression for x 1 in terms of determinants:

x 1 = 3 2 1 5 1 1 12 1 2 ÷ Δ

Now calculate x 1 explicitly:

The numerator is found by expanding along the top row to be

3 × 1 1 1 2 ( 2 ) × 5 1 12 2 + 1 × 5 1 12 1 = 3 × 1 + 2 × 22 + 1 × ( 17 ) = 30

Hence x 1 = 1 10 × 30 = 3

In a similar way find the values of x 2 and x 3 :

x 2 = 1 10 1 3 1 2 5 1 3 12 2 = 1 10 1 × 5 1 12 2 3 × 2 1 3 2 + 1 × 2 5 3 12 = 1 10 { 22 3 × 7 + 9 } = 1 x 3 = 1 10 1 × 1 5 1 12 ( 2 ) × 2 5 3 12 + 3 × 2 1 3 1 = 1 10 17 + 2 × 9 + 3 × ( 5 ) = 2