Matrix Equations for Systems
Learn how to translate systems of linear equations into the compact form \( A\mathbf{x} = \mathbf{b} \) and solve them using matrix methods.
What Is a System of Linear Equations?
A system of linear equations is a collection of two or more linear equations involving the same set of variables. A solution is any assignment of values to the variables that satisfies every equation simultaneously.
In Finite Mathematics, systems model resource allocation, network flows, and economic equilibria: any situation with multiple constraints on multiple unknowns.
The Three Pieces: \(A\), \(\mathbf{x}\), \(\mathbf{b}\)
Visualizing \( A\mathbf{x} = \mathbf{b} \)
The system \( 2x + 3y = 7,\; x - y = 1 \) becomes the single matrix equation shown above. Multiplying \(A\) by \(\mathbf{x}\) and setting the result equal to \(\mathbf{b}\) recovers every original equation.
Core Rule: Matrix Multiplication
When you multiply \( A\mathbf{x} \), you take the dot product of each row of \( A \) with the column vector \( \mathbf{x} \). Each dot product produces one equation of the original system.
The Matrix Equation Theorem
This means the system has a solution if and only if \( \mathbf{b} \) can be written as a linear combination of the columns of \( A \).
Solving via \( A^{-1} \)
When \( A \) is a square matrix and \( \det(A) \neq 0 \), the inverse \( A^{-1} \) exists and provides a direct formula for the solution:
\( A\mathbf{x} = \mathbf{b} \) vs. Augmented Matrix
| \( A\mathbf{x} = \mathbf{b} \) | \( [A \mid \mathbf{b}] \) | |
|---|---|---|
| Form | Matrix equation | Single augmented matrix |
| Solving method | Multiply by \( A^{-1} \) | Row reduction (Gauss-Jordan) |
| Requires \( A \) square? | Yes (for inverse method) | No: works for any \( m \times n \) |
| Best when | Solving many systems with same \( A \) | One-off system or non-square |
How to Set Up \( A\mathbf{x} = \mathbf{b} \)
Example 1: \( 2 \times 2 \) System
Problem: Solve the following system using a matrix equation.
$$ \begin{cases} 2x + 3y = 7 \\ x - y = 1 \end{cases} $$Example 2: \( 3 \times 3 \) System
Problem: A company makes products \( P_1 \), \( P_2 \), \( P_3 \). Given the constraints below, write the matrix equation.
Example 3: Missing Variables
Problem: Write the matrix equation for: $$ 5x + z = 12 $$ $$ -2y + 3z = 7 $$ $$ x + y = 4 $$
The \( 2 \times 2 \) Inverse Formula
This formula works only for \( 2 \times 2 \) matrices. For larger matrices, use row reduction or technology.
When Does a Solution Exist?
Common Mistakes
Summary of Approaches
| Matrix Inverse | Row Reduction | Cramer's Rule | |
|---|---|---|---|
| Equation form | \( \mathbf{x} = A^{-1}\mathbf{b} \) | \( [A \mid \mathbf{b}] \to \text{RREF} \) | \( x_i = \frac{\det(A_i)}{\det(A)} \) |
| Requires square \( A \)? | Yes | No | Yes |
| Requires \( \det(A) \neq 0 \)? | Yes | No | Yes |
| Best for | Multiple \( \mathbf{b} \) vectors | General systems | Small systems (2-3 vars) |
Question 1 of 5
Which matrix equation represents the system
\( 3x + 2y = 5 \) and \( x - 4y = 9 \)?
Question 2 of 5
Given \( A = \begin{bmatrix} 4 & 1 \\ 2 & 3 \end{bmatrix} \), what is \( \det(A) \)?
Question 3 of 5
If the system \( 4x + y = 6 \) and \( 2x + 3y = 8 \) is written as \( A\mathbf{x} = \mathbf{b} \), what is \( \mathbf{x} = A^{-1}\mathbf{b} \)?
Question 4 of 5
A system has three equations and three unknowns, but \( \det(A) = 0 \). What can you conclude?
Question 5 of 5
The system \( 2x + z = 5,\; y - 3z = 1,\; x + y = 4 \) is written as \( A\mathbf{x} = \mathbf{b} \). What is the second row of \( A \)?