Back to homeMathematics · 2nd Bach. Science · Change subject
Start for free
BAC2 tech · Mathematics
Systems of linear equations · Systems

Gauss's method

You already know Gauss's method from 1st Bachillerato: triangularising a system by combining rows until it is in echelon form. Now that you have the language of matrices and rank, Gauss's method becomes something more powerful: it is, in fact, the procedure you use to calculate the rank of any matrix, and therefore the one that lets you apply the Rouché-Frobenius theorem in practice, even with more equations than unknowns.

Before you start, make sure you know: Gauss's method (1st Bachillerato)
Before you start, make sure you know: Discussing systems with one parameter (1st Bachillerato)

Triangularising is calculating the rank

Augmented matrix in echelon form by Gauss's method with a zero row, showing rank 2 for both the coefficients and the augmented matrix, corresponding to a consistent underdetermined system. 1 1 1 | 2 0 1 −1 | 1 0 0 0 | 0 rg(A) = 2 rg(A*) = 2 row 0=0 → SCI
Practice★☆☆Not started
Classify the following system according to its number of solutions after applying Gaussian elimination. State whether it is consistent with a unique solution, consistent…

Classify the following system according to its number of solutions after applying Gaussian elimination. State whether it is consistent with a unique solution, consistent with infinitely many solutions, or inconsistent, based on the last row obtained:

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

Systems with a parameter: triangularising with a letter

Augmented matrix in echelon form by Gauss's method with a parameter in the last pivot, showing the branching depending on whether that value vanishes or not, to determine the rank and the consistency of the system. … 0 = k − 1 … k = 1 0 = 0: rank does not increase SCI k ≠ 1 rg(A*) increases SI the parameter decides between SCI and SI
Practice★★★Not started
Consider the following system of linear equations depending on the real parameter $k$: $\begin{cases} kx + y + z = k^2 \\ x + ky + z = k \\ x + y + kz = 1 \end{cases}$…

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

$\begin{cases} kx + y + z = k^2 \\ x + ky + z = k \\ x + y + kz = 1 \end{cases}$

  1. a) Discuss the system using the Gaussian elimination method according to the different values of $k$.
  2. b) In the case where the system is consistent dependent (underdetermined), determine the general solution and find a particular solution such that the sum of its components is equal to 1.
  3. c) Is there any value of $k$ for which the system represents three planes intersecting in a line? Justify your answer.
Solve
Practice★★★Not started
Consider the system of equations: $\begin{cases} x + ay + z = a \\ ax + y + z = 1 \\ x + y + az = a^2 \end{cases}$ a) Discuss the system for the different real values of…

Consider the system of equations:

$\begin{cases} x + ay + z = a \\ ax + y + z = 1 \\ x + y + az = a^2 \end{cases}$

  1. a) Discuss the system for the different real values of $a$.
  1. b) If $a = 1$, describe the solution geometrically.
  1. c) If $a = -2$, show using Gaussian elimination that the system is inconsistent. What geometric configuration do the three planes form in this case? Justify your answer with the relative positions of the planes (for example, by studying their normal vectors) and use a sketch drawn by yourself to help.
Solve

More equations than unknowns

Overdetermined system of four equations with three unknowns and a parameter a, where the fourth row usually increases the rank of the augmented matrix, producing inconsistency. x + y + z = 2 2x + 3y + z = 3 ax + 10y + 4z = 11 3x + 4y + 2z = a 4 equations, 3 unknowns: the 4th row almost always raises rg(A*)
Practice★★★Not started
Study the following system of 4 equations in 3 unknowns using Gaussian elimination:…

Study the following system of 4 equations in 3 unknowns using Gaussian elimination:

$\begin{cases} x + y + z = 2 \\ 2x + 3y + z = 3 \\ ax + 10y + 4z = 11 \\ 3x + 4y + 2z = a \end{cases}$

  1. a) Determine for which value of $a$ the system is consistent.
  2. b) For this value of $a$, solve the system and indicate whether the solution is unique.
  3. c) What relative position do the four planes defined by the equations occupy when the system is consistent?
X Y Z π₁ π₂ π₃ π₄ P(x,y,z) = ? x + y + z = 2 2x + 3y + z = 3 ax + 10y + 4z = 11 3x + 4y + 2z = a a = ? Relative position of π₁, π₂, π₃, π₄ = ?
Solve

Gauss-Jordan: zeros on both sides

Diagram of the Gauss-Jordan method showing the elimination of entries below and above the diagonal until the identity matrix is reached. 1 0 0 | x 0 1 0 | y 0 0 1 | z zeros above and below: direct solution
Practice★★★Not started
In a smart power grid, the current intensities $I_1, I_2, I_3$ and $I_4$ at four nodes satisfy the following Kirchhoff's laws, scaled by a resistance factor $R$:…

In a smart power grid, the current intensities $I_1, I_2, I_3$ and $I_4$ at four nodes satisfy the following Kirchhoff's laws, scaled by a resistance factor $R$:

$\begin{cases} I_1 + I_2 - I_3 + I_4 = 0 \\ 2I_1 - I_2 + I_3 = 5 \\ I_1 + I_3 - 2I_4 = 1 \\ 3I_1 + I_4 = 6 \end{cases}$

  1. a) Solve the system using the Gauss–Jordan elimination method (achieving the maximum possible number of zeros in the matrix).
  2. b) Is the system consistent with a unique solution? Justify whether it is possible to remove one of the measurements without losing information about the currents.
Solve

Designing and checking an elimination algorithm

The algorithm must also work if the first candidate for a pivot is zero. Before dividing, look for a lower row with a non-zero entry in that column and swap it in. If the whole remaining column is zero, move on to the next column without increasing the number of pivots.

fila_pivote ← 0

para cada columna de coeficientes:

    buscar desde fila_pivote una fila con entrada no nula

    si no existe: continuar con la siguiente columna

    intercambiar esa fila con fila_pivote

    para cada fila inferior:

        factor ← entrada / pivote

        restar factor * fila_pivote a toda la fila (incluido B)

    fila_pivote ← fila_pivote + 1

examinar filas nulas y términos independientes

Choose between these outcomes after eliminating:

Classification of the three possible outcomes after reducing the augmented matrix to echelon form: unique solution with n pivots, redundant row of zeros, or contradictory inconsistent row. After reducing the augmented matrix Pivots: n Unique solution* 0 = 0 Redundant row 0 = c, c ≠ 0 Inconsistent

*Unique solution if there are n pivots in the coefficients and no inconsistent row. With fewer than n pivots and no inconsistency there are free variables.

Modify the pseudocode so that each pivot is turned into 1 and the entries above it are also eliminated: you obtain Gauss-Jordan. Run it by hand or program it, compare the number of operations and check the three tests with a matrix calculation tool. Hand in the intermediate matrices and check the solutions in the original equations. With decimal data, preferably select the available pivot with the largest absolute value and state a tolerance for deciding what counts as approximately zero; exact ranks with parameters require separate algebraic cases.

Reviewing the process as a team

Rotate the tasks of designing, carrying out, checking and explaining. Each member predicts the type of solution before calculating. If a discrepancy appears, find the first row that differs and reconstruct the operation without blaming anyone's ability. If you get stuck, write down what you know, set aside a simple case and ask for a specific hint. Hand in one corrected error, the strategy that helped you overcome it and an alternative proposed by another member. Compare methods with arguments, not by who finishes first.

Summary

See all the exercises in this section