Back to homeMathematics · 1st Bach. Social Sciences · Change subject
Start for free
BAC1 ss · Mathematics
Algebra · Algebra

Gaussian elimination

A young investor splits $12.000$ € between three financial products with different rates of return. Three unknowns, three conditions: by hand, by eye, there is nowhere to start. Gaussian elimination transforms the system, step by step, into an equivalent one (same solution) but much easier: one where each equation has one unknown fewer than the one before. At the end, you just read off the result from the bottom up.

Before you start, make sure you know: Systems of linear equations (4th ESO)

An echelon-form system is solved from the bottom up

Echelon structure of a linear system of three equations with unknowns x, y, z arranged in a staircase. x + 2y − z = 4 3y + z = 5 2z = 4
Practice★☆☆Not started
In Gaussian elimination, the objective is to transform a system of equations into a row-echelon (triangular) form so that it is much easier to solve. Observe the…

In Gaussian elimination, the objective is to transform a system of equations into a row-echelon (triangular) form so that it is much easier to solve. Observe the following system, which is already in row-echelon form, and find the value of the unknowns $x$, $y$ and $z$ using back-substitution (from bottom to top):

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

x + y + z = 9 0 2y - z = 5 0 0 3z = 9 1st Find z 2nd Substitute z, find y 3rd Substitute y, z, find x
Solve
Practice★☆☆Not started
At the end of Gaussian elimination, a student arrives at the following coefficient matrix (where the last column is the constant term):…

At the end of Gaussian elimination, a student arrives at the following coefficient matrix (where the last column is the constant term):

$\left(\begin{array}{ccc|c} 1 & 2 & -1 & 4 \\ 0 & 1 & 3 & 5 \\ 0 & 0 & 0 & 0 \end{array}\right)$

  1. a) Write down the system of equations associated with this matrix.
  2. b) Based on the last row, indicate whether the system is Consistent with a unique solution, Consistent with infinitely many solutions, or Inconsistent. Reason your answer.
x y z 1 2 −1 4 0 1 3 5 0 0 0 0 0x + 0y + 0z = 0 0 = 0 What does this equality mean?
Solve

Transformations that do not change the solution

Diagram of the three permitted operations between equations to preserve the solutions of the system. E2 → E2 − 2·E1 E3 → E3 + E1 the aim: E2 and E3 lose the x
Practice★☆☆Not started
Sometimes, to apply Gaussian elimination more efficiently, it is useful to swap the rows of the system. Given the following system:…

Sometimes, to apply Gaussian elimination more efficiently, it is useful to swap the rows of the system. Given the following system:

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

  1. a) Explain why it would be convenient to swap the first equation ($E_1$) with the second ($E_2$) before starting operations.
  2. b) Write down the resulting system after the swap and perform the first step of Gaussian elimination to eliminate $x$ from the new second equation.
Solve

Triangularising a 3x3 system step by step

Step-by-step triangularisation of a three-by-three system by subtracting the first equation from the lower rows. x + y + z = 6 x − y + 2z = 5 x + y − z = 0 E2 − E1 y E3 − E1 x + y + z = 6 − 2y + z = −1 − 2z = −6
Practice★☆☆Not started
Solve the following system of linear equations using Gaussian elimination. To make your work easier, notice that the variable $x$ has already been eliminated from the…

Solve the following system of linear equations using Gaussian elimination. To make your work easier, notice that the variable $x$ has already been eliminated from the second equation:

$\begin{cases} x - y + z = 2 \\ y + 2z = 8 \\ 2x + y - z = 1 \end{cases}$

Solve
Practice★☆☆Not started
Solve the following system of equations step by step using Gaussian elimination: $\begin{cases} x + y + z = 6 \\ x - y + z = 2 \\ x + y - z = 0 \end{cases}$ Hint:…

Solve the following system of equations step by step using Gaussian elimination:

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

Hint: Subtract the first equation from the second and third equations to eliminate $x$ in a single step.

Solve
Practice★★☆Not started
Solve the following system of linear equations using Gaussian elimination. Remember to organise the steps to obtain a triangular structure before calculating the values…

Solve the following system of linear equations using Gaussian elimination. Remember to organise the steps to obtain a triangular structure before calculating the values of the unknowns:

$$\begin{cases} x + 2y - z = 3 \\ 2x - y + z = 7 \\ x + y - 2z = -2 \end{cases}$$ R₁ R₂ R₃ 1 2 −1 3 2 −1 1 7 1 1 −2 −2 Gauss 1 2 −1 3 0 −5 3 1 0 0 −8 −26
Solve

Classifying the system without finishing solving it

When reducing to echelon form, something unexpected can happen in the last equation: all the unknowns may disappear.

Diagram classifying echelon-form systems as consistent with a unique solution, consistent with infinitely many solutions and inconsistent, according to the form of the last row. 2z = 8unique: CUS 0z = 0infinite: CIS 0z = 7none: INC
Practice★☆☆Not started
Determine whether the following system has a solution or not, applying the Gauss method until you obtain the last row:…

Determine whether the following system has a solution or not, applying the Gauss method until you obtain the last row:

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

Justify your answer by analyzing the relationship between the first and the second equation.

Solve
Practice★★☆Not started
Analyse and solve the following system. If the system turns out to have infinitely many solutions, express the general solution using a parameter $\lambda$ (or $t$):…

Analyse and solve the following system. If the system turns out to have infinitely many solutions, express the general solution using a parameter $\lambda$ (or $t$):

$$\begin{cases} x - 3y + 2z = 4 \\ 2x + y - 3z = 1 \\ 5x - 8y + 3z = 13 \end{cases}$$
Solve

Discussing a system with a parameter

Decision tree for discussing a system according to whether the parameter k makes the constant term zero or not. 0 = k − 1 k = 1 0 = 0 → CIS k ≠ 1 0 = k−1 ≠ 0 → INC
Practice★★☆Not started
Find the value of the parameter $k$ for which the following system of equations is inconsistent (that is, has no solution): $$\begin{cases} x + y + z = 2 \\ 2x + 3y + z…

Find the value of the parameter $k$ for which the following system of equations is inconsistent (that is, has no solution):

$$\begin{cases} x + y + z = 2 \\ 2x + 3y + z = 3 \\ 3x + 4y + kz = 10 \end{cases}$$
Solve
Practice★★★Not started
A small technology company is managing three artificial intelligence projects: Alpha, Beta, and Gamma. The total budget allocated for the three is $450.000$ €. It is…

A small technology company is managing three artificial intelligence projects: Alpha, Beta, and Gamma. The total budget allocated for the three is $450.000$ €. It is known that the cost of project Gamma is equal to the sum of the cost of Alpha plus twice Beta. Furthermore, if we subtract the cost of Gamma from three times the cost of Alpha, we get exactly the cost of Beta plus $30.000$ €.

Set up a system of linear equations and use Gaussian elimination to determine the exact investment required for each project.

Budget (€) Alpha x Beta y Gamma z Total = 450 000 € x + y + z = 450 000 z = x + 2y 3x - z = y + 30 000
Solve

Problems with three unknowns

Investment splits, mixtures, tariffs with three products: any situation with three unknown quantities and three conditions is solved in the same way, by setting up the system and triangularising it.

Stages for solving problems with systems of equations: define the unknowns, set up the equations, triangularise by Gaussian elimination and interpret the solution. x + y + z = 12.000 (total) y = 2x (fund = 2·account) 0,02x + 0,05y + 0,08z = 690
Practice★★☆Not started
A young investor decides to diversify her savings of $12.000$ € into three different financial products: a savings account yielding $2\%$, an investment fund yielding…

A young investor decides to diversify her savings of $12.000$ € into three different financial products: a savings account yielding $2\%$, an investment fund yielding $5\%$, and tech stocks with a return of $8\%$.

It is known that:

  • The total annual interest earned is $600$ €.

  • The amount invested in tech stocks is half the sum of the other two investments.

Set up a system of three equations with three unknowns and solve it using Gaussian elimination to find how much money she invested in each product.

Solve
Practice★★☆Not started
An artisan workshop manufactures three types of lamps: model Alpha, model Beta and model Gamma. To manufacture an Alpha lamp, 20 minutes of assembly, 10 of painting and…

An artisan workshop manufactures three types of lamps: model Alpha, model Beta and model Gamma.

  • To manufacture an Alpha lamp, 20 minutes of assembly, 10 of painting and 10 of packaging are needed.

  • For a Beta lamp, 10 minutes of assembly, 20 of painting and 10 of packaging.

  • For a Gamma lamp, 10 minutes of assembly, 10 of painting and 20 of packaging.

If the workshop dedicated a total of $100$ hours today to assembly, $100$ hours to painting and $100$ hours to packaging, how many lamps of each type did they manufacture?

Note: Remember to convert all time units to the same measure (minutes or hours) before setting up the system.

Solve

Summary

See all the exercises in this section