What a Matrix Means and How It Connects to Equations

A matrix is more than a grid of numbers. See how any system of linear equations becomes AX = B, why matrix multiplication is defined the way it is, and how the augmented matrix turns solving into a fixed procedure.

--
What a Matrix Means and How It Connects to Equations — Moosa Academy

A matrix is a rectangular arrangement of numbers in rows and columns. On its own that sounds like nothing more than tidy bookkeeping — but the moment you write a system of equations as a matrix, the arrangement starts doing real mathematical work.

Concept What a matrix is

A matrix is written inside brackets, with its entries lined up in rows (across) and columns (down):

 A = \begin{bmatrix} 2 & 3 \\ 1 & -1 \end{bmatrix}

The order (or size) of a matrix is stated as rows × columns — always in that order. The matrix above is 2 × 2. A matrix with 3 rows and 4 columns is 3 × 4, regardless of what the numbers inside it are.

Each entry has an address. We write  a_{ij} for the entry in row  i , column  j . In the matrix above,  a_{21} = 1 — second row, first column. Row first, column second, every time.

Concept Where the connection to equations begins

Consider an ordinary system of two equations:

 \begin{array}{rcl} 2x + 3y &=& 12 \\ x - y &=& 1 \end{array}

Notice what actually varies from one system to another: only the numbers. The letters  x and  y , the plus signs and the equals signs appear in every such system and carry no information. Strip them away and keep the numbers in position:

 \begin{bmatrix} 2 & 3 \\ 1 & -1 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 12 \\ 1 \end{bmatrix}

This is the same system written as  AX = B . The coefficient matrix  A holds the numbers multiplying the unknowns, the variable matrix  X holds the unknowns, and the constant matrix  B holds the right-hand sides. Nothing has been lost — only the repetitive notation.

Note Why the multiplication rule is what it is

Matrix multiplication can look arbitrary until you see it recovering the original equations. Multiplying row 1 of  A against the column  X means: take each entry of the row with the matching entry of the column, multiply, and add.

Row 1:  2 \cdot x + 3 \cdot y = 12 — the first equation.
Row 2:  1 \cdot x + (-1) \cdot y = 1 — the second equation.

The rule is designed precisely so that each row of the product reproduces one equation. That is also why the number of columns in  A must equal the number of rows in  X : every coefficient needs an unknown to pair with.

Concept The augmented matrix

There is a second, even more compact way to record the same system — push the constants into the coefficient matrix and separate them with a bar:

\[ \left[\begin{array}{cc|c} 2 & 3 & 12 \\ 1 & -1 & 1 \end{array}\right] \]

This is the augmented matrix. Each row is one whole equation; each column to the left of the bar belongs to one unknown. Working with it is exactly like working with the equations — adding a multiple of one row to another is the same as adding a multiple of one equation to another. The matrix simply spares you rewriting the variables at every step.

Example Writing a system in matrix form

Write  2x + 3y = 12 and  x - y = 1 as  AX = B , then verify that  x = 3,\ y = 2 is the solution.

Coefficients of  x and  y in order: row 1 gives 2 and 3; row 2 gives 1 and −1.
 A = \begin{bmatrix} 2 & 3 \\ 1 & -1 \end{bmatrix},\quad X = \begin{bmatrix} x \\ y \end{bmatrix},\quad B = \begin{bmatrix} 12 \\ 1 \end{bmatrix}
Substituting  X = \begin{bmatrix} 3 \\ 2 \end{bmatrix} : row 1 gives  2(3) + 3(2) = 12
Row 2 gives  1(3) + (-1)(2) = 1
⟹ the product AX equals B, so (3, 2) solves the system
Example A missing term is a zero, not a gap

Write this system as an augmented matrix:

 \begin{array}{rcl} x + y + z &=& 6 \\ 2y + 5z &=& -4 \\ 2x + 5y - z &=& 27 \end{array}

The second equation has no  x term. That is a coefficient of 0, and the column must still be filled.
 \left[\begin{array}{ccc|c} 1 & 1 & 1 & 6 \\ 0 & 2 & 5 & -4 \\ 2 & 5 & -1 & 27 \end{array}\right]
⟹ every column stays aligned with its own unknown

Leaving that zero out would shift the whole row and silently change the system. The solution here is  x = 5,\ y = 3,\ z = -2 — check it in the first equation:  5 + 3 + (-2) = 6

Note Why bother

For two equations in two unknowns, matrix notation saves little. Its value shows once systems grow:

Scale — a system with twenty unknowns is unreadable written out, but perfectly organised as a matrix.
Procedure — row operations turn solving into a fixed sequence of steps rather than ad-hoc rearranging.
Computation — a computer stores and manipulates a grid of numbers directly; this is how engineering and graphics software solves systems.
Structure — writing  AX = B makes a system look like the single equation  ax = b , which suggests solving it by a kind of division. That idea leads to the inverse matrix.
Note Mistakes to avoid
Giving the order as columns × rows — it is always rows first.
Omitting a zero when a variable is missing from an equation, which shifts every later column.
Dropping a minus sign: in  x - y = 1 the coefficient is  -1 , not  1 .
Listing the variables in a different order in different rows — fix one order and keep it.
Reading  a_{ij} as column  i , row  j .
Summary
  1. A matrix is a rectangular array of numbers; its order is rows × columns, and the entry aij sits in row i, column j.
  2. Any linear system can be written as AX = B, with the coefficients, unknowns and constants in three separate matrices.
  3. Matrix multiplication is defined so that each row of the product reproduces one of the original equations.
  4. The augmented matrix packs coefficients and constants together, one row per equation, so row operations replace equation manipulation.
  5. A missing variable contributes a coefficient of 0 — the column must never be skipped.