Solving a system of linear equations with three variables is a fundamental skill in algebra that extends the logic of two-variable systems into three-dimensional space. While the concept might initially seem intimidating due to the increased number of terms, the underlying principles remain consistent: we are looking for a single ordered triple $(x, y, z)$ that satisfies all equations simultaneously. Geometrically, each equation represents a plane in three-dimensional space, and the solution represents the unique point where all three planes intersect. Mastering the elimination method, substitution method, and matrix approaches provides a solid toolkit for tackling these problems efficiently.
Understanding the Structure of Three-Variable Systems
A linear equation in three variables typically takes the standard form $Ax + By + Cz = D$, where $A$, $B$, $C$, and $D$ are real numbers and $A$, $B$, and $C$ are not all zero. A system consists of three such equations:
$ \begin{cases} A_1x + B_1y + C_1z = D_1 \ A_2x + B_2y + C_2z = D_2 \ A_3x + B_3y + C_3z = D_3 \end{cases} $
Before diving into calculations, it is helpful to classify the potential outcomes. Just like with two variables, a system of three linear equations can have one unique solution (the planes intersect at a single point), infinitely many solutions (the planes intersect along a common line or coincide entirely), or no solution (the planes are parallel or form a triangular prism with no common intersection). Recognizing these possibilities early can save significant calculation time.
The Elimination Method: A Step-by-Step Approach
The elimination method (often called the addition method) is generally the most systematic and error-resistant technique for solving linear equations with three variables. The strategy involves reducing the system from three equations with three unknowns down to two equations with two unknowns, and finally to a single equation with one unknown.
Phase 1: Eliminate One Variable
Choose a variable to eliminate first. Look for coefficients that are already opposites or easily made opposites through multiplication. Here's one way to look at it: consider the system:
- $x + 2y - z = 4$
- $2x - y + 3z = 9$
- $3x + y - 2z = 0$
Notice that the $y$-terms in equations (2) and (3) are $-y$ and $+y$. Adding these two equations immediately eliminates $y$:
$(2x - y + 3z) + (3x + y - 2z) = 9 + 0$ $5x + z = 9$ $\rightarrow$ Equation (4)
Now, eliminate $y$ using a different pair, such as equations (1) and (2). Multiply equation (2) by 2 to align the $y$-coefficients with equation (1):
$2(2x - y + 3z) = 2(9) \rightarrow 4x - 2y + 6z = 18$
Add this to equation (1): $(x + 2y - z) + (4x - 2y + 6z) = 4 + 18$ $5x + 5z = 22$ $\rightarrow$ Equation (5)
Phase 2: Solve the Resulting Two-Variable System
You now have a system of two equations with two variables ($x$ and $z$):
- $5x + z = 9$
- $5x + 5z = 22$
Subtract Equation (4) from Equation (5) to eliminate $x$: $(5x + 5z) - (5x + z) = 22 - 9$ $4z = 13$ $z = \frac{13}{4}$ or $3.25$
Substitute $z = \frac{13}{4}$ back into Equation (4): $5x + \frac{13}{4} = 9$ $5x = 9 - \frac{13}{4} = \frac{36}{4} - \frac{13}{4} = \frac{23}{4}$ $x = \frac{23}{20}$ or $1.15$
Phase 3: Back-Substitution
Substitute the values of $x$ and $z$ into any of the original three equations to find $y$. Using Equation (1): $\frac{23}{20} + 2y - \frac{13}{4} = 4$ $\frac{23}{20} + 2y - \frac{65}{20} = 4$ $2y - \frac{42}{20} = 4$ $2y = 4 + \frac{21}{10} = \frac{40}{10} + \frac{21}{10} = \frac{61}{10}$ $y = \frac{61}{20}$ or $3.05$
The solution set is $\left(\frac{23}{20}, \frac{61}{20}, \frac{13}{4}\right)$. Always verify the solution by plugging the ordered triple into all three original equations.
The Substitution Method: When to Use It
The substitution method is highly effective when one of the equations has a variable with a coefficient of $1$ or $-1$, making it easy to isolate that variable without introducing fractions early in the process.
Using the same system:
- Here's the thing — $x + 2y - z = 4$
- $2x - y + 3z = 9$
Equation (1) allows for easy isolation of $x$: $x = 4 - 2y + z$
Substitute this expression for $x$ into Equations (2) and (3):
Into Eq (2): $2(4 - 2y + z) - y + 3z = 9$ $8 - 4y + 2z - y + 3z = 9$ $-5y + 5z = 1$ $\rightarrow$ Equation (A)
Into Eq (3): $3(4 - 2y + z) + y - 2z = 0$ $12 - 6y + 3z + y - 2z = 0$ $-5y + z = -12$ $\rightarrow$ Equation (B)
Now solve the two-variable system (A and B). Subtract (B) from (A): $(-5y + 5z) - (-5y + z) = 1 - (-12)$ $4z = 13 \rightarrow z = \frac{13}{4}$
Substitute $z$ into Equation (B): $-5y + \frac{13}{4} = -12$ $-5y = -12 - \frac{13}{4} = -\frac{61}{4}$ $y = \frac{61}{20}$
Finally, substitute $y$ and $z$ into the isolated $x$ expression: $x = 4 - 2\left(\frac{61}{20}\right) + \frac{13}{4} = \frac{23}{20}$
Both methods yield the identical result. The choice between elimination and substitution often comes down to personal preference and the specific coefficient structure of the problem The details matter here. Which is the point..
Matrices and Gaussian Elimination: The Algorithmic Approach
For larger systems or for implementation in computer algorithms
For larger systems or for implementation in computer algorithms, the matrix method—specifically Gaussian Elimination—is the standard. It formalizes the elimination process into a systematic series of row operations on an augmented matrix, reducing the chance of algebraic error and scaling efficiently to $n \times n$ systems.
Constructing the Augmented Matrix
The system:
- $x + 2y - z = 4$
- $2x - y + 3z = 9$
is represented as the augmented matrix $[A | \mathbf{b}]$:
$ \left[\begin{array}{ccc|c} 1 & 2 & -1 & 4 \ 2 & -1 & 3 & 9 \ 3 & 1 & -2 & 0 \end{array}\right] $
The goal is to transform the left side (the coefficient matrix $A$) into Row Echelon Form (upper triangular) using three elementary row operations:
- Swap two rows ($R_i \leftrightarrow R_j$).
- Multiply a row by a non-zero scalar ($kR_i \rightarrow R_i$).
- Add a multiple of one row to another ($R_i + kR_j \rightarrow R_i$).
Forward Elimination (Achieving Row Echelon Form)
Step 1: Clear the first column below the pivot (Row 1, Col 1). The pivot is already $1$. Eliminate the $2$ in $R_2$ and $3$ in $R_3$.
- $R_2 \leftarrow R_2 - 2R_1$
- $R_3 \leftarrow R_3 - 3R_1$
$ \left[\begin{array}{ccc|c} 1 & 2 & -1 & 4 \ 0 & -5 & 5 & 1 \ 0 & -5 & 1 & -12 \end{array}\right] $
Step 2: Clear the second column below the pivot (Row 2, Col 2). The pivot is $-5$. To simplify, we can scale $R_2$ first (optional, but keeps numbers manageable): $R_2 \leftarrow -\frac{1}{5}R_2$
$ \left[\begin{array}{ccc|c} 1 & 2 & -1 & 4 \ 0 & 1 & -1 & -\frac{1}{5} \ 0 & -5 & 1 & -12 \end{array}\right] $
Now eliminate the $-5$ in $R_3$: $R_3 \leftarrow R_3 + 5R_2$
$ \left[\begin{array}{ccc|c} 1 & 2 & -1 & 4 \ 0 & 1 & -1 & -\frac{1}{5} \ 0 & 0 & -4 & -13 \end{array}\right] $
The matrix is now in Row Echelon Form (upper triangular). We can solve via back-substitution from the bottom up, or continue to Reduced Row Echelon Form (RREF) to read the answer directly That's the whole idea..
Gauss-Jordan Elimination (Achieving RREF)
Step 3: Normalize the bottom pivot and clear above. Scale $R_3$ to make the pivot $1$: $R_3 \leftarrow -\frac{1}{4}R_3$
$ \left[\begin{array}{ccc|c} 1 & 2 & -1 & 4 \ 0 & 1 & -1 & -\frac{1}{5} \ 0 & 0 & 1 & \frac{13}{4} \end{array}\right] $
Clear the third column entries in $R_1$ and $R_2$:
- $R_2 \leftarrow R_2 + R_3$
- $R_1 \leftarrow R_1 + R_3$
$ \left[\begin{array}{ccc|c} 1 & 2 & 0 & \frac{29}{4} \ 0 & 1 & 0 & \frac{61}{20} \ 0 & 0 & 1 & \frac{13}{4} \end{array}\right] $
Step 4: Clear the second column in $R_1$. $R_1 \leftarrow R_1 - 2R_2$
$ \left[\begin{array}{ccc|c} 1 & 0 & 0 & \frac{23}{20} \ 0 & 1 & 0 & \frac{61}{20} \ 0 & 0 & 1 & \frac{13}{4} \end{array}\right] $
The solution is read directly from the augmented column: $x = \frac{23}{20},\quad y = \frac{61}{20},\quad z = \frac{13}{4}$