Solution Preserving Operations
Explore how solution preserving operations such as row swaps, scaling, and row sums can transform a system of linear equations into an equivalent system. Learn to perform these operations on augmented matrices and understand why they keep the system’s solutions unchanged, facilitating easier solving methods.
We'll cover the following...
Earlier, while defining linear systems, we discussed the different possibilities of the solution of a linear system. In this chapter, we’ll describe how we can achieve those possibilities. Let’s start by learning the foundations before moving on to a systematic approach.
Augmented matrix
We’ve already learned two different representations of a system of linear equations. We started with a set of linear equations, that is,
Later, we defined the matrix representation, , where is the coefficient matrix, contains all the unknowns, and is on the right-hand side of the equations.
Let’s look at yet another representation of the system of linear equations called the augmented matrix. It’s simply a combination of our system’s coefficient matrix, , and the right-hand-side vector, , separated by a vertical line (the vertical line can be omitted if the context is clear).
Each row in the augmented matrix represents an equation from the system of linear equations. In the augmented matrix, the variables aren’t included explicitly. However, each column on the left side of the vertical separating line represents the constraints on the corresponding variable in the equation, as depicted in the figure below.
Example
To understand the concept above more clearly, have a side-by-side look at three representations of a system of linear equations below:
Elementary row operations
Elementary row operations are simple operations that allow us to transform a system of linear equations into an
There are three elementary operations:
- Row swap
- Row scaling
- Row sum
We’ll learn how these operations are performed on an augmented matrix representation of a system and why they preserve its linearity and solution.
Row swap
A row swap is simply the swapping of row () with the row () of an augmented matrix. This can be represented mathematically as follows:
Swapping rows in the augmented matrix corresponds to swapping the respective equations in the linear system, which doesn’t alter the solution. As an example, look at the following:
In Python, this can be achieved by fancy indexing as follows:
Row scaling
Row scaling multiplies both sides of the equation by the same nonzero number.
The operation equally scales the constants on both sides of an equation by a nonzero value. The points satisfying the equation remain the same. The solution and linearity of the system remain preserved.
The Python implementation of the operation is as follows:
Row sum
Row sum is the process of adding a scalar multiple of one equation to another.
Note: in row sum eliminates the effect of the operation because we’re simply adding zeros to a row.
Because the solution of the system is the common solution of the two equations used in this operation, the operation won’t affect the solution or linearity.
In Python, we can do this as follows: