From a Linear System to an Augmented Matrix
A system of linear equations records several equations that must be considered together. Its coefficient matrix collects the coefficients of the variables, one equation per row. To keep the right-hand sides with those coefficients, we append their values as one more column. The resulting matrix is called an augmented matrix. Constructing it accurately depends on keeping the equation order and the chosen variable order fixed throughout.
Suppose a system has \(m\) equations and uses the ordered variables \(x_1,\dots,x_n\). Write its \(i\)th equation in the form \(a_{i1}x_1+\cdots+a_{in}x_n=b_i\). The number \(a_{ij}\) is the coefficient of variable \(x_j\) in equation \(i\), and \(b_i\) is that equation’s constant on the right-hand side. If a variable is absent from an equation, its coefficient is \(0\). The coefficient matrix \(\mathbf{A}\) has \(m\) rows and \(n\) columns, and the constants form the column vector \(\mathbf{b}\).
The vertical bar is a visual divider, not an extra column of numbers. It separates the coefficient columns from the constants column. The bar does not change the entries or the order of the rows. The construction follows the same order as the original system: equation 1 gives row 1, equation 2 gives row 2, and so on.
A Reliable Construction Process
Before writing entries, record the variables in their specified order. Then process each equation separately: enter its coefficients from left to right in that order, followed by its right-hand-side constant. In particular, do not omit a slot when a variable is missing; enter \(0\). A negative coefficient remains negative, and a fraction remains a fraction. The constant is copied from the right-hand side, not inserted among the variable coefficients.
For example, if the order is \(x,y,z\), every row must list the coefficients of \(x\), then \(y\), then \(z\), even when an equation presents its terms in another order.
Use the first equation for the first row, the second equation for the second row, and continue in sequence.
After the \(n\) coefficient entries in each row, place the corresponding right-hand-side constant in the final column.
A system of \(m\) equations in \(n\) ordered variables must give an \(m\)-by-\((n+1)\) augmented matrix. Check each row against its equation.
This process is a way to record a system, not a method for solving it. At this stage, the main task is accurate placement: every coefficient belongs to a particular equation and a particular variable, while every constant belongs to a particular equation.
Worked Constructions
Worked Example: Three Equations in Three Variables
Construct the augmented matrix for the system below, using variable order \(x,y,z\) and keeping the displayed equation order.
The first equation has coefficients \(2\), \(-1\), and \(3\) in the order \(x,y,z\), followed by the constant \(7\). The second equation has coefficient \(-1\) for \(x\), coefficient \(4\) for \(y\), and no \(z\) term, so its \(z\)-coefficient is \(0\); its constant is \(0\). The third equation has coefficients \(-2\), \(1\), and \(5\), followed by \(-6\). Putting those rows together gives
Check: The matrix has three rows because there are three equations, and four columns because there are three variables and one constants column. Row 2 records \(-x+4y+0z=0\), so the zero entry is the missing \(z\)-coefficient, not a missing row entry. The constants \(7,0,-6\) appear in the same order as the equations.
Worked Example: A Nonstandard Variable Order
Construct the augmented matrix for this system using the specified variable order \(z,x,y\), not \(x,y,z\).
In the first equation, the coefficient of \(z\) is \(-2\), the coefficient of \(x\) is \(3\), and the coefficient of \(y\) is \(1\); its row is therefore \((-2,3,1\mid 5)\). In the second equation, the coefficients in the chosen order are \(0,1,4\), because \(z\) is absent. The row ends with \(-1\). In the third equation, the coefficients are \(7,0,-1\), and the constant is \(2\). Hence the augmented matrix is
Check: There are three rows for the three displayed equations and four columns for the three ordered variables plus the constants. Reading off the entries by the stipulated column order, the first row places \(-2\) under \(z\), \(3\) under \(x\), and \(1\) under \(y\), exactly as the first equation requires. The second and third rows likewise use \(z,x,y\) order, and their constants remain \(-1\) and \(2\), respectively.
Worked Example: Fractions and Missing Variables
Use the variable order \(x,y,w\) to construct the augmented matrix for
For the first equation, the \(x\)-coefficient is \(\frac12\), the \(y\)-coefficient is \(0\), and the \(w\)-coefficient is \(-3\). The constant is \(4\). For the second equation, neither \(x\) nor \(w\) appears, so the coefficients in the \(x,y,w\) order are \(0,-2,0\); the constant is \(5\). The third equation contributes coefficients \(1,\frac13,2\), with constant \(-\frac72\). Therefore the matrix is
Check: Each of the three equations gives one row, and each row has three coefficient entries followed by one constant. In particular, the \(-2\) in row 2 is the coefficient of \(y\); the \(5\) after the divider is its right-hand-side constant. The negative fraction \(-\frac72\) remains in the final column of row 3.
What the Construction Preserves
The entries are not simply a collection of numbers. Each row belongs to one equation, each coefficient column belongs to one variable in the fixed order, and the last column belongs to the right-hand sides. This organization gives a precise connection between the original system and a matrix equation.
Proof. Fix any assignment \(\mathbf{x}=(x_1,\dots,x_n)^{\top}\). By the definition of matrix multiplication, the \(i\)th entry of \(\mathbf{A}\mathbf{x}\) is \(a_{i1}x_1+\cdots+a_{in}x_n\). Thus the \(i\)th entry of \(\mathbf{A}\mathbf{x}=\mathbf{b}\) states \(a_{i1}x_1+\cdots+a_{in}x_n=b_i\), which is precisely equation \(i\) of the system. This holds for every \(i\) from \(1\) to \(m\). Therefore the matrix equation holds exactly when every equation in the system holds. \(\square\)
The theorem explains why the constants column is appended in the same row as its equation’s coefficients: the \(i\)th matrix equation must compare the expression formed from row \(i\) with the constant \(b_i\) from that same equation. Putting a constant in a different row would pair it with the wrong equation.
Proof. For each row index \(i\), the \(i\)th equation fixes its coefficient of each ordered variable \(x_j\), so it fixes every entry \(a_{ij}\) for \(1\leq j\leq n\). The same equation fixes its right-hand-side constant \(b_i\), which occupies the final entry of row \(i\). Since this determines every entry in every row, there is only one matrix formed by the stated construction. \(\square\)
The condition about order matters. Changing the variable order changes which coefficient belongs in each column. Changing the equation order changes which equation belongs in each row. Either change can produce a different displayed matrix, even though the same equations and variables are involved. In a calculation, write down the orders first rather than relying on an assumed default.
Common Pitfalls
Using a familiar variable order instead of the stipulated one. In the second worked example, the first equation is \(3x-2z+y=5\), but the specified order is \(z,x,y\). A tempting incorrect first row is \((3,-2,1\mid 5)\). That row records coefficients in the order \(x,z,y\), not \(z,x,y\). The correction is \((-2,3,1\mid 5)\): the coefficient of \(z\) comes first, followed by the coefficients of \(x\) and \(y\).
Omitting a zero coefficient. In the first example, the second equation has no \(z\)-term. Leaving that position out would give a row with too few coefficient entries and would shift the constant into the wrong position. The correct row is \((-1,4,0\mid 0)\): a zero records the absent \(z\)-term, and the final zero records the equation’s right-hand side.
Treating the constant as a variable coefficient. In the third example, the second equation is \(-2y=5\). Its coefficient row, in the order \(x,y,w\), is \((0,-2,0)\); the \(5\) is appended after the divider. It is not a coefficient of a fourth variable. For a quick audit, count \(n\) entries before the divider and exactly one constant after it in every row.
Check Your Understanding
For each question, preserve the stated equation and variable orders, and check the number of rows and columns in your result.
- Construct the augmented matrix for \(x+2y=3\), \(-4x+z=0\), using variable order \(x,y,z\).
- For the system \(2u-v=6\), \(3v+w=-2\), use variable order \(w,u,v\) and write its augmented matrix.
- In variable order \(a,b,c\), construct the augmented matrix for \(\frac13a-2c=1\), \(4b=-5\).
- A system has four equations in two ordered variables. How many rows and columns must its augmented matrix have?
- Explain why a missing variable contributes a zero entry rather than allowing the coefficient to be omitted.