Modeling with
Linear Systems
Learn how to translate networks, balancing constraints, and flows into systems of linear equations: the foundation of real-world problem solving.
What Is a Linear System?
A linear system is a collection of linear equations that share the same set of unknowns. In matrix form we write:
When these equations come from a real situation: traffic at intersections, chemicals in a reaction, money in accounts: we call it modeling with linear systems.
Three Key Modeling Scenarios
Why Model This Way?
The Conservation Principle
At every node (junction, account, species) in a model, the fundamental rule is:
Network Flow Diagram
Consider a traffic network with three intersections. Known flows enter and exit; unknown flows \(x_1, x_2, x_3\) travel between nodes.
Building Equations from the Network
Apply conservation at each node: flow in = flow out.
Determined vs Underdetermined
Balancing: Chemical Equations
Consider balancing the reaction: \(x_1\,\text{CH}_4 + x_2\,\text{O}_2 \to x_3\,\text{CO}_2 + x_4\,\text{H}_2\text{O}\)
Step-by-Step Modeling Process
Example 1: Solving the Traffic Network
From slide 6, our augmented matrix is:
Row reduce: \(R_2 \leftarrow R_2 - R_1\):
Example 1: Parametric Solution
Let \(x_3 = t\) (free variable). Back-substituting:
Since traffic flows must be non-negative (\(x_i \geq 0\)):
Example 2: Electrical Circuit
For a circuit with currents \(I_1, I_2, I_3\), applying Kirchhoff's laws gives the following system:
This is a determined system: 3 equations, 3 unknowns. In augmented form:
Example 2: Solving the Circuit
Row reduce: \(R_2 \leftarrow R_2 - 2R_1\):
\(R_3 \leftarrow 5R_3 - 3R_2\):
Common Mistakes
Comparison of Model Types
| Feature | Networks | Balancing | Flows |
|---|---|---|---|
| Principle | In = Out per node | Atoms conserved | Conservation laws |
| Typical system | \(A\mathbf{x} = \mathbf{b}\) | \(A\mathbf{x} = \mathbf{0}\) | \(A\mathbf{x} = \mathbf{b}\) |
| Usually | Underdetermined | Underdetermined | Determined or under |
| Extra constraint | \(x_i \geq 0\) | Smallest integers | Capacity limits |
Question 1 of 5
At a network node, 40 units flow in from the left and \(x\) units flow in from the top. 25 units exit to the right and 30 units exit downward. Which equation models this node?
Question 2 of 5
A system of 2 equations in 4 unknowns (with both equations independent) will generally have:
Question 3 of 5
To balance \(a\,\text{Fe} + b\,\text{O}_2 \to c\,\text{Fe}_2\text{O}_3\), which system of equations is correct?
Question 4 of 5
In a network flow model, the solution is \(x_1 = 50 - t,\; x_2 = t,\; x_3 = 30 + t\) with all flows non-negative. What is the maximum value of \(t\)?
Question 5 of 5
A chemical balancing problem produces the system \(A\mathbf{x} = \mathbf{0}\). After row reduction, there are 2 pivots and 5 unknowns. How many free variables are there?