Solving systems by elimination
At a bake sale in Galway, Ciara buys 2 cupcakes, 1 brownie and 1 flapjack for €9, Seán buys 1, 2 and 1 for €10, and Aoife buys 1, 1 and 2 for €11. What does one of each cost? Three equations in three unknowns cannot be solved by eye. Elimination transforms it, step by step, into another equivalent system (same solution) that is much easier to handle: one where each equation has one unknown fewer than the previous one. At the end, you simply read off the result from the bottom upwards.
A stepped system is solved from the bottom upwards
Solve the following system of linear equations, which is already in echelon form, using back-substitution:…
Solve the following system of linear equations, which is already in echelon form, using back-substitution:
$\left\{ \begin{array}{rcl} x + 2y - z & = & 4 \\ 3y + z & = & 5 \\ 2z & = & 4 \end{array} \right.$
Solve the following system in which some unknowns are missing from the equations, reordering them appropriately if you consider it necessary:…
Solve the following system in which some unknowns are missing from the equations, reordering them appropriately if you consider it necessary:
$\left\{ \begin{array}{rcl} x + y & = & 3 \\ y + z & = & 5 \\ x + z & = & 4 \end{array} \right.$
Transformations that do not change the solution
These are exactly the "elimination" operations you already knew, applied in a fixed order: they are used to create zeros below the diagonal, equation by equation.
Find the value of the coefficient $a$ knowing that the triple $(1, -1, 2)$ is a solution to the following system:…
Find the value of the coefficient $a$ knowing that the triple $(1, -1, 2)$ is a solution to the following system:
$\left\{ \begin{array}{rcl} x + y + z & = & 2 \\ 2x - y - z & = & 1 \\ x + ay + 2z & = & 8 \end{array} \right.$
Triangulating a 3x3 system step by step
Apply Gaussian elimination to triangularise and solve the following system of equations:…
Apply Gaussian elimination to triangularise and solve the following system of equations:
$\left\{ \begin{array}{rcl} x + y + z & = & 6 \\ x - y + 2z & = & 5 \\ x + y - z & = & 0 \end{array} \right.$
Solve the following system using Gaussian elimination, eliminating the variable $x$ from the second and third equations first:…
Solve the following system using Gaussian elimination, eliminating the variable $x$ from the second and third equations first:
$\left\{ \begin{array}{rcl} x + 2y + z & = & 7 \\ 2x - y + 3z & = & 11 \\ -x + y - z & = & -4 \end{array} \right.$
Aoife tries to put the following system of linear equations into row echelon form using the Gaussian elimination method: $$\left\{ \begin{array}{rcl} x - y + 2z & = & 3…
Aoife tries to put the following system of linear equations into row echelon form using the Gaussian elimination method:
$$\left\{ \begin{array}{rcl} x - y + 2z & = & 3 \\ 2x + y - z & = & 1 \\ 3x + 2y + z & = & 8 \end{array} \right.$$In the first step, she eliminates the variable $x$ from the second and third equations by doing $E_2 \leftarrow E_2 - 2E_1$ and $E_3 \leftarrow E_3 - 3E_1$, correctly obtaining:
$$\left\{ \begin{array}{rcl} x - y + 2z & = & 3 \\ 3y - 5z & = & -5 \\ 5y - 5z & = & -1 \end{array} \right.$$For the second step, in order to eliminate the variable $y$ from the third row, Aoife decides to replace $E_3$ with the combination $E_3 \leftarrow 3E_3 - 5E_1$.
- a) Explain in detail why the operation proposed by Aoife is a conceptual error in the Gaussian elimination method, and indicate what unwanted effect it produces on the row echelon form of the system.
- b) Write the correct elementary row operation that Aoife should have applied to $E_3$ using the second equation.
- c) Apply this correction, complete the row echelon form, and classify the system according to its number of solutions.
Tidying up before you start
Real systems are rarely in perfect shape. A few checks first make the elimination much easier.
Known solution. If you are told that a triple such as $(1, -1, 2)$ is a solution, substitute it into an equation that contains the unknown coefficient and solve for that coefficient.
Fractions. Multiply each equation by the lowest common denominator of its fractions to get integer coefficients. Multiply every term, including the right-hand side.
Missing unknowns. A missing unknown simply has coefficient $0$. Reorder the equations so that the first one contains $x$, ideally with coefficient $1$, and write the missing terms as $0y$ if it helps. If no equation starts with $1$, you can swap two equations, or cross-multiply so the $x$ terms match.
More equations than unknowns. With four equations in three unknowns, triangulate as usual. The extra equation becomes $0=0$ (it was redundant) or $0=k$ with $k\ne0$ (the system is inconsistent).
Change of variables. If the unknowns appear as $\frac1x$, $\frac1y$, $\frac1z$, let $u=\frac1x$, $v=\frac1y$, $w=\frac1z$. Solve the linear system in $u$, $v$, $w$, then go back with $x=\frac1u$ and so on.
Imagine you are faced with the following system of three equations with three unknowns: $$\left\{ \begin{array}{rcl} 3x - 6y + 9z & = & 12 \\ 2x + 5y - z & = & 10 \\ x +…
Imagine you are faced with the following system of three equations with three unknowns:
$$\left\{ \begin{array}{rcl} 3x - 6y + 9z & = & 12 \\ 2x + 5y - z & = & 10 \\ x + y + 2z & = & 5 \end{array} \right.$$To apply the Gaussian elimination method, the first objective is to set a pivot in the first position of the first row. You are presented with three starting alternatives:
-
Strategy 1: Keep the order of the equations and operate with cross-multiples ($E_2 \leftarrow 3E_2 - 2E_1$ and $E_3 \leftarrow 3E_3 - E_1$).
-
Strategy 2: Swap the first and third rows ($E_1 \leftrightarrow E_3$) so that the coefficient of $x$ is $1$.
-
Strategy 3: Multiply the first row by $\frac{1}{3}$ ($E_1 \leftarrow \frac{1}{3}E_1$) to simplify it before pivoting.
- a) Compare the three strategies, reasoning which one is the most advantageous for minimising arithmetic operations and avoiding large numbers or awkward fractions.
- b) Choose the strategy you considered optimal and solve the system by putting it into row echelon form using Gauss and applying back-substitution.
Solve the following system of linear equations, operating first with the fractions to obtain an equivalent system with integer coefficients:…
Solve the following system of linear equations, operating first with the fractions to obtain an equivalent system with integer coefficients:
$\left\{ \begin{array}{rcl} \frac{x}{2} + \frac{y}{3} - z & = & 1 \\ x - \frac{y}{2} + \frac{z}{3} & = & 2 \\ \frac{x}{3} + y - \frac{z}{2} & = & 3 \end{array} \right.$
Find the solutions to the following non-linear system of equations by applying a suitable change of variables beforehand ($u = \frac{1}{x}$, $v = \frac{1}{y}$,…
Find the solutions to the following non-linear system of equations by applying a suitable change of variables beforehand ($u = \frac{1}{x}$, $v = \frac{1}{y}$, $w = \frac{1}{z}$):
$\left\{ \begin{array}{rcl} \frac{1}{x} + \frac{2}{y} - \frac{1}{z} & = & 2 \\ \frac{2}{x} - \frac{1}{y} + \frac{3}{z} & = & 9 \\ \frac{3}{x} + \frac{3}{y} - \frac{2}{z} & = & 3 \end{array} \right.$
Classifying the system without finishing solving it
When putting the system into triangular form, something unexpected can happen in the last equation: all the unknowns may disappear.
Without solving it completely, classify the following echelon system (as a consistent independent system, consistent dependent system, or inconsistent system) and…
Without solving it completely, classify the following echelon system (as a consistent independent system, consistent dependent system, or inconsistent system) and justify your answer:
$\left\{ \begin{array}{rcl} x - 3y + 2z & = & 1 \\ 2y - z & = & 4 \\ 0z & = & 7 \end{array} \right.$
Write the solution to the following echelon system in terms of a parameter $\lambda$:…
Write the solution to the following echelon system in terms of a parameter $\lambda$:
$\left\{ \begin{array}{rcl} x + y + z & = & 3 \\ y - 2z & = & 2 \\ 0z & = & 0 \end{array} \right.$
Solve the following system containing four equations and three unknowns. State whether any equation is redundant or if the system is inconsistent:…
Solve the following system containing four equations and three unknowns. State whether any equation is redundant or if the system is inconsistent:
$\left\{ \begin{array}{rcl} x - y + z & = & 2 \\ 2x + y - z & = & 1 \\ x + 2y - 2z & = & -1 \\ 3x + y + z & = & 5 \end{array} \right.$
Discussing a system with a parameter
Discuss the consistency of the following system of linear equations depending on the parameter $k$ and solve it for the case in which it is a consistent dependent…
Discuss the consistency of the following system of linear equations depending on the parameter $k$ and solve it for the case in which it is a consistent dependent system:
$\left\{ \begin{array}{rcl} x + y - z & = & 1 \\ 2x - y + z & = & 2 \\ x - 2y + 2z & = & k \end{array} \right.$
Study and discuss the following system of linear equations depending on the values of the parameter $m$. Solve it for $m = 2$.…
Study and discuss the following system of linear equations depending on the values of the parameter $m$. Solve it for $m = 2$.
$\left\{ \begin{array}{rcl} x + y + z & = & 1 \\ 2x + my + z & = & 2 \\ x + y + mz & = & 3 \end{array} \right.$
Discuss the following system and find the value or values of $a$ for which the system is consistent dependent. Write the general solution for that case.…
Discuss the following system and find the value or values of $a$ for which the system is consistent dependent. Write the general solution for that case.
$\left\{ \begin{array}{rcl} x + y - z & = & 10 \\ 2x - y + 3z & = & 20 \\ 5x - y + 5z & = & a \end{array} \right.$
Two parameters
Sometimes both the coefficient and the right-hand side contain letters. Triangulate as before and look at the last row, for example $(a-3)z=b-2$. Check three cases.
To build a system where a whole row vanishes, choose the coefficients so that the third equation is a combination of the first two. Then match the right-hand sides as well.
You want to design an exam task about the Gaussian elimination method with discussion of solutions. To do this, you start from two fixed equations: $$\left\{…
You want to design an exam task about the Gaussian elimination method with discussion of solutions. To do this, you start from two fixed equations:
$$\left\{ \begin{array}{rcl} x + y - z & = & 2 \\ 2x - y + z & = & 1 \end{array} \right.$$You want to add a third equation of the form $3x + k\times y - z = c$ (where $k$ and $c$ are real numbers) such that, when triangulating the system using standard linear combinations, the coefficients of all three unknowns in the third equation vanish simultaneously ($0x + 0y + 0z$).
- a) Apply the transformations of the Gaussian elimination method treating $k$ and $c$ as constants, and determine the unique numerical value that $k$ must take so that the coefficients of $y$ and $z$ vanish at the same time in the third row.
- b) Find the expression left in the constant term after this step, and deduce what value $c$ must have for the system to be consistent dependent.
- c) Write the general solution of the consistent dependent system in terms of a parameter $\lambda \in \mathbb{R}$, and justify what would happen geometrically to the three planes represented by the equations if $c$ took any value other than the one obtained.
Consider the following system of linear equations depending on two real parameters $a$ and $b$, where each equation represents a plane in three-dimensional space:…
Consider the following system of linear equations depending on two real parameters $a$ and $b$, where each equation represents a plane in three-dimensional space:
$$\left\{ \begin{array}{rcl} x + y + z & = & 2 \\ 2x + 3y + z & = & 3 \\ 3x + 4y + a\times z & = & b \end{array} \right.$$- a) Triangulate the system using the Gaussian elimination method keeping the parameters $a$ and $b$. From the resulting echelon equation in the last row, classify the system with reasoning (consistent independent, consistent dependent, or inconsistent) according to the different values that $a$ and $b$ can take.
- b) For the case in which the system is consistent dependent, solve it by expressing the general solution in terms of a parameter $\lambda \in \mathbb{R}$, and geometrically interpret the relative position of the three planes.
- c) A student states: “If we set $a = 2$ and $b = 7$, the system is inconsistent, which necessarily proves that the third plane is parallel to one of the first two.” Analyse the truth or falsity of this statement by examining the coefficients of the original equations, and describe the actual geometric configuration of the three planes in that case.
Geometric interpretation: three planes
Geometrically, a linear equation with three unknowns represents a plane in space. Solve the system formed by the planes $\pi_1$, $\pi_2$ and $\pi_3$, interpret the…
Geometrically, a linear equation with three unknowns represents a plane in space. Solve the system formed by the planes $\pi_1$, $\pi_2$ and $\pi_3$, interpret the result you obtain and state what geometric figure they form at their intersection.
$\left\{ \begin{array}{rcl} x + y + z & = & 3 \\ 2x - y + z & = & 2 \\ 3x + 2z & = & 5 \end{array} \right.$
Prove, using Gaussian elimination, that the system of equations:…
Prove, using Gaussian elimination, that the system of equations:
$\left\{ \begin{array}{rcl} x + y + z & = & a \\ x - y + z & = & b \\ 2x + 2z & = & c \end{array} \right.$
is consistent only if the relation $a + b = c$ holds. Explain the algebraic meaning of this condition.
From words to a system
Many problems give you three unknowns in words. Follow the same steps every time.
-
Name the unknowns and say what they stand for, with units.
-
Turn each sentence into one equation.
-
Three unknowns need three equations (a total, a ratio, a difference...).
-
Solve by elimination.
-
Check the answer against the words of the problem.
That answers the question from the start of the page.
Set up a system of three equations in three unknowns and solve it using Gaussian elimination: "Kenia has three times as much money as Berta. Berta has twice as much…
Set up a system of three equations in three unknowns and solve it using Gaussian elimination: "Kenia has three times as much money as Berta. Berta has twice as much money as Ionut. Together, the three of them have $27$ euros. How much money does each person have?"
In a sports equipment shop, three types of balls are sold: footballs, basketballs, and volleyballs. One school buys $2$ footballs, $1$ basketballs, and $1$ volleyballs…
In a sports equipment shop, three types of balls are sold: footballs, basketballs, and volleyballs. One school buys $2$ footballs, $1$ basketballs, and $1$ volleyballs for $80$ euros. Another school buys $1$ footballs, $2$ basketballs, and $1$ volleyballs for $85$ euros. A third school buys $1$ footballs, $1$ basketballs, and $2$ volleyballs for $75$ euros. Set up a system of equations and solve it using Gaussian elimination to calculate the price of each type of ball.
The sum of the ages of a grandfather, his son, and his grandson is $190$ years. The grandfather is three times as old as the grandson. Furthermore, in $10$ years' time,…
The sum of the ages of a grandfather, his son, and his grandson is $190$ years. The grandfather is three times as old as the grandson. Furthermore, in $10$ years' time, the father's age will be twice the age the grandson will have at that time. Set up a system of equations and find the current ages of all three.
Mixtures, money and rates
Some quantities multiply two things: the amount of acid is concentration $\times$ volume, interest is rate $\times$ amount, and points scored are value $\times$ number of baskets. Write one equation for the totals and one for the quantity being counted. A condition such as "one fourth of the sum of the other two" becomes $c=\frac{a+b}{4}$. For work rates, let each unknown be the fraction of the job done in one hour, so if $A$ and $B$ together take $12$ hours, then $a+b=\frac1{12}$.
In a chemistry laboratory, three solutions of the same acid with concentrations of $10\%$, $20\%$, and $50\%$ are available. We wish to obtain a mixture of $100$ litres…
In a chemistry laboratory, three solutions of the same acid with concentrations of $10\%$, $20\%$, and $50\%$ are available. We wish to obtain a mixture of $100$ litres with a concentration of $30\%$. Knowing that the volume used of the solution at $10\%$ must equal the volume of the solution at $50\%$, set up and solve a system using Gaussian elimination to determine how many litres of each solution must be mixed.
A company invests a total of $20000$ euros in three different investment funds, which offer annual returns of $4\%$, $5\%$, and $6\%$. After one year, the total interest…
A company invests a total of $20000$ euros in three different investment funds, which offer annual returns of $4\%$, $5\%$, and $6\%$. After one year, the total interest generated amounts to $980$ euros. If the money invested in the fund at $5\%$ is double the money invested in the fund at $6\%$, calculate how much money was allocated to each fund using Gaussian elimination.
In a basketball game, a team scored a total of $80$ points through $42$ baskets (some worth $1$ point, some $2$ points, and some $3$ points). Knowing that the number of…
In a basketball game, a team scored a total of $80$ points through $42$ baskets (some worth $1$ point, some $2$ points, and some $3$ points). Knowing that the number of $2$-point baskets is equal to the sum of the $1$- and $3$-point baskets plus $6$, find the number of baskets of each type.
Curves, digits and rates
A polynomial through given points: substitute each point $(x, y)$ into $y=ax^2+bx+c$. Each point gives one equation in $a$, $b$, $c$.
For digits, a number with hundreds digit $h$, tens digit $t$ and units digit $u$ is $100h+10t+u$, and reversed it is $100u+10t+h$. "The tens digit is the mean of the other two" means $2t=h+u$.
Find the coefficients $a$, $b$, and $c$ of the polynomial $P(x) = ax^2 + bx + c$ knowing that its graph passes through the points $A(-1, 4)$, $B(1, 2)$, and $C(2, 7)$.
Find the coefficients $a$, $b$, and $c$ of the polynomial $P(x) = ax^2 + bx + c$ knowing that its graph passes through the points $A(-1, 4)$, $B(1, 2)$, and $C(2, 7)$.
The sum of the three digits of a number is $15$. If the order of the digits is reversed, the number obtained is $198$ units greater than the original number.…
The sum of the three digits of a number is $15$. If the order of the digits is reversed, the number obtained is $198$ units greater than the original number. Furthermore, the tens digit is known to be the arithmetic mean of the hundreds digit and the units digit. Set up a system of equations and find the original number.
Three machines, $A$, $B$, and $C$, work on production in a factory. If $A$ and $B$ work together, they complete a batch in $12$ hours. If $B$ and $C$ work together, they…
Three machines, $A$, $B$, and $C$, work on production in a factory. If $A$ and $B$ work together, they complete a batch in $12$ hours. If $B$ and $C$ work together, they complete it in $20$ hours. If $A$ and $C$ work together, they complete it in $15$ hours. Set up a system of linear equations (hint: use as unknowns the fraction of work each machine completes in one hour) and calculate how long each machine would take to complete the batch working alone.
Prices, tickets and budgets
For tickets or ingredients with different prices, one equation counts the items ($x+y+z=\text{total}$) and another adds up the money ($30x+45y+70z=\text{revenue}$). The third equation comes from the relationship in the text, such as "double the sum of the other two", written as $x=2(y+z)$. Rewrite it with all unknowns on the left before you triangulate. Always check that your answers are non-negative whole numbers if you are counting people.
On an Irish Rail intercity train between Dublin and Cork, $60$ people are travelling in a fully occupied passenger car, divided across three ticket types: Basic ($x$),…
On an Irish Rail intercity train between Dublin and Cork, $60$ people are travelling in a fully occupied passenger car, divided across three ticket types: Basic ($x$), Standard ($y$), and Premium ($z$).
The total revenue from the car amounts to €$2,550$. The prices of each ticket type are: €$30$ for the Basic ticket, €$45$ for the Standard ticket, and €$70$ for the Premium ticket.
Furthermore, the company reports that the number of passengers travelling with a Basic ticket is exactly double the sum of those travelling with the other two tickets combined.
- a) Model the situation by setting up a system of three linear equations with three unknowns.
- b) Triangulate the system using the Gaussian elimination method, clearly detailing each of the row operations performed.
- c) Solve the row echelon system and check whether the values obtained are non-negative integers consistent with the real-world context of the problem.
A pharmaceutical laboratory in Ireland must prepare exactly $100\text{ ml}$ of a compound by mixing three liquid substances: $A$, $B$, and $C$. Three conditions must be…
A pharmaceutical laboratory in Ireland must prepare exactly $100\text{ ml}$ of a compound by mixing three liquid substances: $A$, $B$, and $C$. Three conditions must be satisfied:
-
The combined volume of the three substances must be $100\text{ ml}$.
-
The cost per millilitre of each substance is €$1.50$ for $A$, €$2.00$ for $B$, and €$4.50$ for $C$. The exact total budget allocated to the mixture is €$230$ (which represents an overall average cost of €$2.30$/ml).
-
For chemical stability, the volume of substance $C$ must be exactly one fourth of the sum of the volumes of $A$ and $B$.
- a) Prior estimation phase: Algebraically deduce the exact volume that substance $C$ must have by directly relating conditions 1 and 3 without yet needing to set up the Gaussian elimination method. Knowing that the average cost of the mixture is €$2.30$/ml and that $C$ is the most expensive component (€$4.50$/ml), reasonably estimate whether the rest of the mixture must contain a greater volume of substance $A$ (€$1.50$/ml) or of substance $B$ (€$2.00$/ml).
- b) Calculation phase: Model the problem using a $3 \times 3$ linear system, formally triangulate it using the Gaussian elimination method specifying each row operation, and obtain the exact volumes of each liquid.
- c) Verification phase: Compare the result of the system with your estimates from part a) and assess the practical consistency of the solution found.