Linear Systems
as Matrices
Transform systems of linear equations into compact matrix equations using the form \( A\mathbf{x} = \mathbf{b} \).
What is a Matrix?
A matrix is a rectangular array of numbers arranged in rows and columns. We describe its size as \( m \times n \), where \( m \) is the number of rows and \( n \) is the number of columns.
Why Use Matrices for Systems?
A system of linear equations can have many variables and many equations. Writing them out fully becomes cluttered. Matrices give us a compact, organized representation that makes patterns visible and enables powerful solution methods.
The Three Pieces of a System
Every system of linear equations contains three distinct components. Identifying them is the first step to writing the matrix equation.
The Core Rule: \( A\mathbf{x} = \mathbf{b} \)
Any system of \( m \) linear equations in \( n \) unknowns can be written as a single matrix equation:
From Equations to Matrix Form
Matrix Equation vs. Augmented Matrix
Students often confuse two related representations. Both encode the same system, but they are structurally different.
| Matrix Equation | Augmented Matrix | |
|---|---|---|
| Form | \( A\mathbf{x} = \mathbf{b} \) | \( [A \mid \mathbf{b}] \) |
| Variables | Explicitly shown in \( \mathbf{x} \) | Implied by column position |
| Pieces | Three separate objects | One combined matrix |
| Best for | Inverse methods, theory | Row reduction, elimination |
How to Convert a System
Example 1: A \( 2 \times 2 \) System
Example 2: A \( 3 \times 3 \) System
Example 3: Missing Variables
Notice that equation 1 has no \( y \) term and equation 2 has no \( x \) term. We insert zero coefficients for the missing variables:
Verifying with Multiplication
You can check your work by multiplying \( A\mathbf{x} \) to recover the original equations. Each row of \( A \) dotted with \( \mathbf{x} \) should give the corresponding entry of \( \mathbf{b} \).
Non-Square Systems
The matrix \( A \) does not have to be square. A system can have more equations than variables, or more variables than equations.
Why This Matters
The matrix equation \( A\mathbf{x} = \mathbf{b} \) unlocks solution methods that are impossible with raw equations:
Common Mistakes
Summary of Key Concepts
| Concept | Details |
|---|---|
| Matrix equation form | \( A\mathbf{x} = \mathbf{b} \) |
| Coefficient matrix \( A \) | Size \( m \times n \): rows = equations, columns = variables |
| Variable vector \( \mathbf{x} \) | Size \( n \times 1 \): one entry per variable |
| Constant vector \( \mathbf{b} \) | Size \( m \times 1 \): right-hand side values |
| Missing variable rule | Insert \( 0 \) as the coefficient |
| Verification | Multiply \( A\mathbf{x} \) to recover original equations |
Question 1 of 5
Which matrix is the coefficient matrix \( A \) for the system
\( 2x + y = 5 \)
\( 3x - 4y = 1 \)?
Question 2 of 5
For the system \( x - z = 2 \), \( 3y + z = 7 \), what are the dimensions of the coefficient matrix \( A \)?
Question 3 of 5
If \( A = \begin{bmatrix} 1 & 0 & -2 \\ 0 & 3 & 1 \end{bmatrix} \), \( \mathbf{x} = \begin{bmatrix} x \\ y \\ z \end{bmatrix} \), and \( \mathbf{b} = \begin{bmatrix} 2 \\ 7 \end{bmatrix} \), what is the first equation of the system?
Question 4 of 5
A student writes the matrix equation for \( 5x + 2y = 8 \), \( x - y = 3 \) as
\( \begin{bmatrix} 5 & 1 \\ 2 & -1 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 8 \\ 3 \end{bmatrix} \).
What mistake was made?
Question 5 of 5
Which system of equations corresponds to the matrix equation
\( \begin{bmatrix} 4 & -1 \\ 0 & 6 \\ 2 & 3 \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} = \begin{bmatrix} 10 \\ -3 \\ 8 \end{bmatrix} \)?