Worked examples · Sheet 3
Linear systems with Cramer's rule
Theory used: Cramer's ruleLinear system in matrix formSystems of two equations in two unknownsSarrus's ruleDeterminant of a 2 × 2 matrix
Go to: Exercise 1Exercise 2Exercise 3
Exercise 1
Solve with Cramer’s rule the system
The system has two equations and two unknowns, and the determinant of the coefficient matrix is ; therefore Cramer’s rule applies and the system has one and only one solution. For we replace the first column, that of the coefficients of , with the column of the constant terms , and divide the resulting determinant by . For we replace the second column. We obtain the solution . As a check, and . In the plane the solution is the point where the two lines meet.
Exercise 2
Solve with Cramer’s rule the system
The determinant of the coefficient matrix is computed with Sarrus’s rule. The products along the descending diagonals are , and ; those along the ascending diagonals are , and . Therefore , and by Cramer’s rule the system has only one solution.
The matrix is obtained from by replacing column with the column of the constant terms . The three determinants, again computed with Sarrus, equal , and , and dividing each by we obtain the solution . Substituting into the equations we verify that , and .
Exercise 3
A firm produces three items, which pass through three departments. One unit of the first item requires hour of cutting, of assembly and of finishing; one unit of the second requires , and hours; one unit of the third requires , and hours. The hours available each week are for cutting, for assembly and for finishing. Find the quantities of the three items that use up all the hours of every department.
Denote by , , the weekly quantities of the three items. The cutting hours used are , and they must equal the available; in the same way we write the equations for assembly and finishing. We obtain a linear system of three equations in three unknowns, in which each row of the coefficient matrix corresponds to a department and each column to an item.
The determinant of the coefficient matrix is , so by Cramer’s rule the production plan that uses all the hours exists and is unique. The determinants , , equal , and , hence the firm must produce , and units of the three items. The quantities are positive, so the solution makes economic sense. As a check, the cutting hours are .