How to write a system of equations as an augmented matrix

An augmented matrix keeps the coefficients and constants from a linear system in a compact array. Each row represents an equation, and each variable gets its own column. We’ll line up the equations first so every entry has a clear place.

Use a column for each variable and one for constants

3x+2y=7x-6y=0
[32|71-6|0]

The first column contains the coefficients of x, the second contains the coefficients of y, and the final column contains the constants. The vertical divider separates the coefficient part from the right side.

Compare coefficient and augmented matrices

For the system 3x+2y=7 and x-6y=0, use the x coefficients for the first column and the y coefficients for the second. That gives the coefficient matrix.

[321-6]

Use zero for a missing variable

-2x+y-t=7x-y+z+4t=0

Choose the order x,y,z,t. The first equation has no z term, so its coefficient in the third column is zero.

[-210-1|71-114|0]

Two equations give two rows. Four variables plus a constant column give five columns, so this augmented matrix is 2×5.

Rearrange equations before taking their coefficients

2x+3y-z=117y=6-x-4z-8z+3=y

Put the variables in the order x,y,z on the left and the constants on the right.

2x+3y-z=11x+7y+4z=60x-y-8z=-3
[23-1|11174|60-1-8|-3]

Read the matrix back as equations

The third row represents 0x-y-8z=-3. Reading each row back checks that the signs, zero coefficients, and right-side constants match the system. The matrix records the system; row operations are the next step if we want to solve it.