Back to homeMathematics · 2nd Bach. Social Sciences · Change subject
Start for free
BAC2 ss · Mathematics
Systems of linear equations · Systems

Cramer's rule

So far, to solve a system of three unknowns you have used Gauss to reduce it to triangular form. Cramer's rule gives a direct formula: each unknown is a quotient of two determinants. It does not replace Gauss —there are systems where Gauss is quicker— but it is essential when the system contains a parameter, because it lets you solve for the unknowns without going through every step of the reduction.

Before you start, make sure you know: Gaussian elimination (1st Bachillerato)
Before you start, make sure you know: Factorising polynomials (1st Bachillerato)

Cramer systems: when $|A| \ne 0$

Decision diagram: if the determinant of the coefficient matrix is non-zero the system is a Cramer system and consistent with a unique solution, and if it is zero the rule cannot be applied. |A||A| ≠ 0Cramer system→ unique solution|A| = 0cannot be applied
Practice★☆☆Not started
To start working with Cramer's rule, it is essential to identify which systems allow its direct use. Given the following system of two equations with two unknowns:…

To start working with Cramer's rule, it is essential to identify which systems allow its direct use. Given the following system of two equations with two unknowns:

$\begin{cases} 3x + 2y = 7 \\ 5x - y = 2 \end{cases}$

  1. a) Calculate the determinant of the coefficient matrix, $|A|$.
  2. b) Justify whether it is a Cramer-type system.
  3. c) Find the value of the unknown $x$ by calculating only the determinant of the matrix associated with that variable, $|A_x|$, and applying Cramer's formula.
Solve

Cramer's rule

Construction of the Cramer matrices for two unknowns by placing the constant terms in the first or second column. A = | 1 2 | Ax = | 8 2 | Ay = | 1 8 | | 2 1 | | 3 1 | | 2 3 | x = |Ax| / |A| y = |Ay| / |A| system: x + 2y = 8, 2x + y = 3
Practice★☆☆Not started
Apply Cramer's rule to solve the following $3 \times 3$ system of linear equations. Make sure you first calculate the general determinant of the system to check that it…

Apply Cramer's rule to solve the following $3 \times 3$ system of linear equations. Make sure you first calculate the general determinant of the system to check that it has a unique solution:

$$\begin{cases} x + y + z = 6 \\ x - y + z = 2 \\ x + y - z = 0 \end{cases}$$
Solve

Cramer's rule with three unknowns

The procedure is identical for a $3\times3$ system: four determinants of order $3$ ($|A|$, $|A_x|$, $|A_y|$, $|A_z|$) instead of three of order $2$. There is more work, but the logic —replace a column and divide— does not change.

Cramer's formulae for three unknowns, expressing x, y and z as quotients of determinants divided by the determinant of the coefficients. x =|Ax| / |A|y =|Ay| / |A|z =|Az| / |A| Ax, Ay, Az: A with column 1, 2 or 3replaced by the column ofconstant terms
Practice★☆☆Not started
In a Mathematics II exam, students are asked to identify Cramer-type systems without solving them. Give reasons to indicate which of the following systems cannot be…

In a Mathematics II exam, students are asked to identify Cramer-type systems without solving them. Give reasons to indicate which of the following systems cannot be solved directly using Cramer's rule:

  1. a) $\begin{cases} x + y = 5 \\ 2x + 2y = 10 \end{cases}$
  1. b) $\begin{cases} x + 2y = 3 \\ 3x - y = 1 \end{cases}$
  1. c) $\begin{cases} x + y + z = 1 \\ y + z = 2 \\ z = 3 \end{cases}$
Solve
Practice★★☆Not started
An e-sports team has participated in a tournament where points are awarded for won games ($x$), tied games ($y$), and secondary objectives completed ($z$). The system…

An e-sports team has participated in a tournament where points are awarded for won games ($x$), tied games ($y$), and secondary objectives completed ($z$). The system that describes their score is the following:

$\begin{cases} x + y + z = 10 \\ 2x - y + 3z = 13 \\ x + 2y - z = 4 \end{cases}$

Use Cramer's rule to find how many games they won, how many they tied, and how many secondary objectives they achieved.

Solve

Cramer's rule with a parameter

The strength of Cramer's rule shows when there is a parameter: you can solve for one unknown without solving the whole system. You calculate $|A(k)|$ and $|A_i(k)|$ as functions of the parameter, and the quotient gives you the unknown as a simplified algebraic fraction.

Diagram for solving a system with a parameter, distinguishing the values for which the determinant is non-zero and Cramer's rule applies from those for which it is zero and Gauss must be used. Cramer system with parameter k(|A(k)| ≠ 0)y(k) = |Ay(k)| / |A(k)|→ algebraic fraction in k
Practice★★★Not started
Consider the following system of linear equations depending on the real parameter $k$: $$\begin{cases} kx + y + z = 1 \\ x + ky + z = k \\ x + y + kz = k^2 \end{cases}$$…

Consider the following system of linear equations depending on the real parameter $k$:

$$\begin{cases} kx + y + z = 1 \\ x + ky + z = k \\ x + y + kz = k^2 \end{cases}$$
  1. a) Discuss the system using the Rouché-Frobenius theorem according to the values of $k$.
  2. b) In the case where the system is a Cramer system, solve for the unknown $y$ applying Cramer's rule. Express the result as a simplified algebraic fraction in terms of $k$.
y = Δᵧ / Δ Δ ≠ 0 (SCD) Rouché-Frobenius: rg(M) = rg(M*) = 3 ? X Y Z (x, y, z) = ? π₁ π₂ π₃ M* = k 1 1 | 1 1 k 1 | k 1 1 k | k² Δᵧ = k 1 1 1 k 1 1 k² k = ?
Solve
Practice★★★Not started
Consider the system of equations: $$\begin{cases} ax + y + z = (a-1)^2 \\ x + ay + z = (a-1) \\ x + y + az = 1 \end{cases}$$ a) Determine the values of $a$ for which…

Consider the system of equations:

$$\begin{cases} ax + y + z = (a-1)^2 \\ x + ay + z = (a-1) \\ x + y + az = 1 \end{cases}$$
  1. a) Determine the values of $a$ for which Cramer's rule cannot be applied to the system.
  2. b) For $a = 0$, solve the complete system using Cramer's rule exclusively.
  3. c) Is there any value of $a$ for which the value of the unknown $z$ is equal to $0$ while the system is consistent determined? Justify your answer.
Solve

Cramer's rule in problems and matrix equations

Cramer's rule can also be used to find a single unknown without calculating the others: if you are only asked for $z$, $|A|$ and $|A_z|$ are enough. This is especially useful within larger problems set in a context, where the question only asks about one of the variables.

Diagram showing the advantage of Cramer's rule for solving for a single variable by calculating only two determinants. Only need y?Calculate |A| and |Ay|:|Ax| and |Az| are not needed
Practice★★☆Not started
A municipal shared mobility service uses three types of vehicles: city bikes, e-bikes and scooters. It is known that weekly energy consumption (in hundreds of kWh)…

A municipal shared mobility service uses three types of vehicles: city bikes, e-bikes and scooters. It is known that weekly energy consumption (in hundreds of kWh) satisfies the following relationships:

$\begin{cases} 2x + 3y + z = 11 \\ x - 2y + 3z = 6 \\ 3x + y - 2z = -1 \end{cases}$

Where $x, y, z$ represent the fleet of each vehicle respectively. Calculate the number of units of each type using determinants.

Solve

Summary

See all the exercises in this section