The equals signs in the system of equations are represented with a vertical bar in the matrix.
The coefficients of the variables form the columns on the left-hand side of the bar.
The constants form the column on the right-hand side of the bar.
Below we demonstrate this in a generalized form.
a_(11)x+ a_(12)y= c_1 a_(21)x+ a_(22)y= c_2
⇕
[
cc|c
a_(11) & a_(12) & c_1
a_(21) & a_(22) & c_2
]
Because the variables in the given system are not in the same order, our first step will be to write each equation in the same order. It will also help us visualize the process if we leave spaces for any missing variables.
-3x+y=-7 x =2
Next, let's consider the coefficients and the constants. If there is ever a missing variable, we should treat it as though it has a coefficient of 0.
-3x+ 1y= -7 1x+ 0y= 2
Now that we've identified all of the variables and constants, we can place them in a matrix.
[
cc|c
-3 & 1 & -7
1 & 0 & 2
]