This system involves three variables: x, y, and z. Our goal is to determine the specific values of x, y, and z that simultaneously satisfy all three equations. These specific values, which make each equation true, are referred to as the solutions of the system of linear equations.
To find these solutions, we employ a systematic method known as eliminating variables. This method simplifies the system step-by-step, allowing us to isolate each variable and solve for its value.
The elimination process works by eliminating any two of the three variables and isolating the remaining variable to determine its value. To achieve this, we follow two simple rules: we can multiply any equation by any non-zero number, and we can add or subtract two equations. This process does not alter the solution of the system of linear equations but helps us in systematically eliminating the unknown variables one by one.
Let us eliminate x. To eliminate x, we multiply equation (1) by 2 in our head and subtract it from equation (2):
In Gaussian elimination, we represent the system of linear equations in matrix form. This is because, if we observe carefully, the way we solve linear equations involves manipulating the coefficients directly, without needing to repeatedly write the variables x, y, z, or the equals symbol. The Chinese mathematicians were among the first to realize and use this efficient method.
Based on our observation of solving linear equations, we then define three rules, known as elementary row operations, which help us manipulate the matrix without changing the solutions of the system.
Rule 1: Row Multiplication
We can multiply any row by any non-zero number. This is equivalent to multiplying all coefficients and the constant term of an equation by that number. This operation does not change the solution of the system.
For example, multiplying the first row by 2:
1232−31112∣∣∣243→2234−31212∣∣∣443
This is equivalent to multiplying the first equation by 2.
Rule 2: Row Addition/Subtraction
We can add or subtract the multiples of one row to/from another row. This is equivalent to adding or subtracting the corresponding equations. This operation helps eliminate variables step-by-step.
For example, subtracting twice the first row from the second row:
1232−31112∣∣∣243→1032−711−12∣∣∣203
Rule 3: Row Swapping
We can interchange two rows. This is equivalent to swapping the positions of two equations. This does not affect any solutions.
To solve a system of linear equations using Gaussian elimination, we start by applying row operations to its augmented matrix. Here's a step-by-step explanation:
Step 1: Choosing the Pivot Element
We begin with the top leftmost element of the matrix, which we call the pivot. The pivot is crucial for the elimination process.
If all elements in this column are zero, we move diagonally to the next row and column.
If the pivot (top leftmost element) is nonzero, we can use it directly.
If the pivot is zero, we interchange this row with a row below that has a nonzero element in the first column. This ensures that we have a nonzero pivot to work with.
Step 2: Eliminate Elements Below the Pivot
Once we have a nonzero pivot, the next goal is to make all elements below this pivot zero. This simplifies the system by reducing the number of variables in the subsequent rows.
To eliminate the elements below the pivot, we use row operations. Specifically, we multiply the pivot row by a suitable nonzero number and subtract it from the rows below.
This step is equivalent to eliminating the variable associated with the pivot from the other equations.
Step 3: Move to the Next Pivot
After making the elements below the pivot zero, we move diagonally to the element in the second row and second column. This becomes our new pivot.
If this new pivot is nonzero, we proceed with the next elimination step.
If the new pivot is zero, we interchange this row with a row below that has a nonzero element in the same column. If all elements below are zero as well, we move diagonally to the next row and column.
Step 4: Repeat the Process
We repeat the process of eliminating elements below the pivot and moving to the next pivot until we reach the last row. By doing this, we systematically transform the matrix into an upper triangular form.
Let us look at the following example to understand how the Gaussian elimination works.
After gaussian elimination in the above example what we have got is called the row echelon form of a matrix
A matrix is in row echelon form if it meets the following criteria:
Leading Element: The first non-zero number from the left (known as the leading element) in each row is to the right of the leading element in the row above it.
Zeros Below Leading Elements: The leading element in each row is the only non-zero entry in its column, with all elements below it being zero.
Non-zero Rows: Any row containing all zeros is at the bottom of the matrix.
From the above example:
200−32011−1∣∣∣42−27
Let's analyze why this matrix is in row echelon form:
Leading Element Position:
The first row's leading element is 2, which is the first non-zero number from the left.
The second row's leading element is 2, positioned to the right of the first row's leading element.
The third row's leading element is −1, positioned to the right of the second row's leading element.
Zeros Below Leading Elements:
In the first column, below the leading element 2 in the first row, all elements are zero.
In the second column, below the leading element 2 in the second row, all elements are zero.
In the third column, below the leading element −1 in the third row, there are no rows left.
Non-zero Rows:
There are no rows of all zeros. If there were, they would be at the bottom of the matrix.
Thus, this matrix is in row echelon form because it satisfies all the conditions.
When we apply Gaussian elimination to the augmented matrix [A∣b], we transform it into its row echelon form.The rank of a matrix is the number of nonzero rows in its row echelon form.
If we hide the last column of the augmented matrix during Gaussian elimination, we are effectively applying Gaussian elimination to the coefficient matrix A.
Simultaneous Echelon Forms:
The process of Gaussian elimination can be applied to both A and [A∣b] simultaneously, obtaining the echelon forms of both matrices.
Determining the Solution:
The relationship between the rank of A and the rank of [A∣b] helps determine the type of solution for a system of linear equations:
Unique Solution: If rank(A)=rank([A∣b])=n, then the system has a unique solution.
Explanation: Here, n represents the number of unknowns (variables). When the rank of the coefficient matrix A and the augmented matrix [A∣b] are equal to n, it means that there are n non-zero rows in the row echelon form of the augmented matrix. This implies that we have exactly enough independent equations to solve for all n variables uniquely without any free variables.
No Solution: If rank(A)=rank([A∣b]), then the system has no solution.
Explanation: When the rank of the coefficient matrix A is different from the rank of the augmented matrix [A∣b], it indicates the presence of a contradiction in the system of equations. This contradiction usually appears as a row in the augmented matrix where all the coefficients of the variables are zero, but the constant term is non-zero (e.g., 0=non-zero number). Such a row represents an inconsistent equation, making it impossible to find any solution.
Infinite Solutions: If rank(A)=rank([A∣b])<n, then the system has infinitely many solutions.
Explanation: When the rank of the coefficient matrix A and the augmented matrix [A∣b] are equal but less than n, it means that there are fewer independent equations than unknowns. This results in at least one variable being a free variable. In the row echelon form, this scenario is indicated by having one or more rows with all zero coefficients for the variables (but zero as the constant term as well). These free variables can take any value, leading to infinitely many solutions for the system.
By applying these principles to the system of equations, we can determine the nature of the solutions based on the ranks of the matrices involved.
The Gauss-Jordan elimination method is an extension of Gaussian elimination. In this method, we go beyond obtaining a row echelon form by continuing the row operations until the matrix is in reduced row echelon form (RREF). This allows us to read the solution directly from the matrix. Here are the steps involved in the Gauss-Jordan elimination method:
Form the Augmented Matrix:
Write the system of linear equations as an augmented matrix [A∣b], where A is the coefficient matrix and b is the column of constants.
Perform Gaussian elimination steps to transform the augmented matrix into row echelon form. In row echelon form:
All non-zero rows are above any rows of all zeros.
The leading entry (pivot) of each non-zero row is 1.
Each leading 1 is to the right of the leading 1 in the previous row.
All entries below the leading 1 are zeros.
Normalization and Backward Elimination (Gauss-Jordan Steps):
After obtaining the row echelon form, continue with the following steps to transform the matrix into reduced row echelon form (RREF):
Normalization: Ensure that each leading entry (pivot) in the matrix is 1. If the pivot is not 1, divide the entire row by the value of the pivot to make it 1.
Backward Elimination: Make all the entries above each pivot equal to zero by subtracting appropriate multiples of the pivot row from the rows above. This ensures that each leading 1 is the only non-zero entry in its column.
Interpret the Result:
The resulting matrix in reduced row echelon form will look like this:
If any row in the form 0,0,…,0∣c (where c=0) appears, the system has no solution. If there are rows in the form 0,0,…,0∣0, the system has infinitely many solutions, and the variables corresponding to these rows are free variables.
Let's solve the following system of linear equations using Gauss-Jordan elimination:
⎩⎨⎧x+y+z=12x−y+2z=33x+2y−z=4
Form the Augmented Matrix:
1231−1212−1∣∣∣134
Forward Elimination (Gaussian Elimination):
Perform Gaussian elimination steps to transform the augmented matrix into row echelon form: