A system asks which inputs satisfy all constraints
A linear equation in unknowns has the form
with known coefficients and right-hand side. Unknowns occur only to the first power, not multiplied together, in denominators, or inside nonlinear functions. Thus is linear, while and are not. A zero coefficient may make an unknown absent from an equation.
A system requires the same unknown values to satisfy several equations simultaneously. The matrix form has two complementary readings: each row is a constraint, while the columns are vectors whose combination must produce .
The equation describes a line. Adding gives their unique intersection .
Replacing the second equation by adds no constraint; every is a solution. Replacing it by produces a contradiction and no solution.
Counting equations and unknowns therefore gives only a first indication. Independence of constraints and compatibility of right-hand sides determine the answer.
Elimination reorganizes information
Elimination does not begin by guessing every unknown. It reorganizes constraints until dependent variables, free choices, or contradictions become visible. The expressions change while the solution set must remain fixed.
We first derive a system from conservation and follow its elimination in full. Then we extract the general algorithm and explain how LU records the work for reuse.
Conservation does not determine every traffic flow
Consider junctions with the following internal roads. Each measures vehicles per common unit of time along its arrow.
| Road | Direction |
|---|---|
Assume no accumulation at a junction during the measurement period. External measurements give net outward flow at , net inward flow at , net inward flow at , and net outward flow at . These internal roads and external balances define the network we will model [1][1] X. Yang, “ENG1005 Week 2: Traffic Flow, Personal Workshop Solutions,” 2024. Personal solutions to Monash ENG1005 workshop problems; source snapshot 77ebe58de2fea53d62533d6dd23caa16108ed109. Repository access may be restricted.. https://github.com/Eryc123Y/ENG1005-2024S2/blob/77ebe58de2fea53d62533d6dd23caa16108ed109/Source%20Code/W2.tex.
Writing the balances in the order gives
Each equation is valid, but four equations do not necessarily provide four independent constraints.
Why row operations preserve solutions
Collect coefficients and right-hand sides in an augmented matrix:
Elementary row operations swap two rows, multiply a row by a nonzero scalar, or add a multiple of another row to it. Each operation has an inverse, so the solution set is unchanged.
Subtracting a row from itself has no inverse: it deletes a constraint. For example, replacing by changes a unique solution into an unrestricted variable.
Perform, in order,
This yields
Next, makes row four equal to row three. Now legitimately produces a zero row:
This is row echelon form: the first nonzero entry in each nonzero row is its pivot, pivot positions move right down the rows, and zero rows are at the bottom. Making pivots one and clearing entries above them gives reduced row echelon form.
Pivots, free variables, and the full solution set
Further elimination yields
Columns one through three contain pivots. Set the free variables :
The particular solution solves the equations, but need not satisfy physical nonnegativity. The directions obey : varying internal flows along either direction leaves the external balances unchanged.
Physical one-way traffic requires every component to be nonnegative:
For example, gives the feasible flow . The equations describe a translated plane; inequalities select its feasible region.
Rank summarizes the possibilities
Rank is the dimension of the column space and also the number of pivots in echelon form. We use pivot counting here; vector spaces and bases explains its connection to dimension.
For a real system with equations and unknowns:
| Elimination result | Solutions |
|---|---|
| A row with | None |
| No contradiction and a pivot for every unknown | Exactly one |
| No contradiction and at least one free variable | Infinitely many |
Thus consistency means . A consistent system has free variables. Our matrix has rank , leaving two.
Why is one balance redundant? The original coefficient rows satisfy , and the right-hand sides satisfy . Summing junction balances cancels every internal inflow against an internal outflow, leaving the external balance of the entire region. Matrix as Graph expresses this through the incidence matrix.
The general elimination procedure
Suppose the augmented matrix has rows and coefficient columns. Let be the next pivot row, initially one. Process coefficient columns :
- Search column in rows and below for a nonzero entry. If none exists, skip to the next column.
- If one is found in row , exchange rows , obtaining a nonzero pivot .
- For each , subtract times the pivot row from row . Include the right-hand side in every operation.
- Increase by one. Stop if no rows remain.
This produces echelon form. For reduced echelon form, work upward from the last pivot, normalize each pivot to one, and clear entries above it. Back substitution alone usually suffices to solve an invertible triangular system; reducing the entire matrix to identity is unnecessary.
An absent pivot in the current column does not mean inconsistency. It means that position supplies no new constraint. A zero coefficient column, for example, leaves its variable unconstrained. Inconsistency requires a contradictory augmented row.
Classifying a parameterized system
Consider
Subtract twice the first equation from the second:
For , the unique solution is
For , the second equation becomes an identity, giving solutions . For , it becomes a contradiction.
The cases must be separated before dividing by . Dividing immediately would discard every inconsistent or nonunique case.
Why exactly two solutions are impossible
If distinct vectors solve the same real linear system, then for every real ,
Different give different solutions. A real linear system therefore has zero, one, or infinitely many solutions. General nonlinear equations do not have this restriction.
Measurements must contribute independent information
Measuring fixes one parameter but leaves free. Identifying a general flow by additional linear measurements requires eliminating both free directions.
Measuring and works. Measuring and does not: the original equations already impose , so both readings determine only .
More generally, write new measurements as . Substitution into the parameterization shows that must be independent to determine both parameters. Counting measurements alone is insufficient. This describes identification by linear equalities for general states; nonnegativity at a particular boundary can further restrict feasibility.
LU saves elimination for new right-hand sides
The traffic matrix is rectangular and rank deficient. To develop ordinary LU for an invertible system, return to the interpolation matrix:
Perform
The resulting upper triangular matrix is
Record the elimination multipliers below the diagonal:
Then . Check directly: row two of is ; row three is , recovering the original rows. In general, a product of elementary elimination matrices gives . In standard elimination without row swaps, the inverse operations form .
Solve two triangular systems:
Forward substitution gives
Backward substitution gives
Hence . These are exactly the required interpolation coefficients [2][2] X. Yang, “ENG1005 Week 3: Interpolation and Fitting, Personal Workshop Solutions,” 2024. Personal solutions to Monash ENG1005 workshop problems; source snapshot 77ebe58de2fea53d62533d6dd23caa16108ed109. Repository access may be restricted.. https://github.com/Eryc123Y/ENG1005-2024S2/blob/77ebe58de2fea53d62533d6dd23caa16108ed109/Source%20Code/W3.tex.
For new data , reuse the same factors. Now and the coefficients are , giving . Factoring a dense square matrix typically costs arithmetic operations; the two triangular solves for each new right-hand side cost .
When rows must be exchanged
Invertibility does not make every current pivot nonzero. For example,
is invertible, but its first entry cannot be used as a divisor. Swap rows, recording the swap in a permutation matrix , to obtain . Apply the same permutation to the right-hand side:
Floating-point computation also concerns error amplification by small pivots. Partial pivoting chooses an entry of largest absolute value among the unprocessed rows in the current column. Conditioning and error analysis belong to numerical linear algebra; here the purpose is to understand the factorization.
A complete row-swap example
Solve
The current first pivot is zero, so exchange rows:
Here and . The right-hand side becomes . Back substitution gives and , so .
Swapping only coefficient rows while retaining the original right-hand side would solve a different system. A permutation records a reordering of complete equations.
General triangular substitution
For a lower triangular with unit diagonal, forward substitution is
Only previously computed values occur on the right. For an upper triangular with nonzero diagonal entries, backward substitution is
These formulas assume . For , replace the first formula’s right-hand side by the corresponding entries of .
Square elimination without swaps requires nonzero pivots at each stage to continue in this form. If the resulting has nonzero diagonal entries, both triangular systems have unique solutions for every right-hand side. Thus , and their product are invertible.
Exercises
In the traffic model, . Find all flows and check nonnegativity.
Solution
and give . Thus , with all components nonnegative.
Change only the first right-hand side of the original traffic system to . Is the system consistent?
Solution
No. The coefficient relation still holds, but its right-hand side becomes . Elimination produces : external flow no longer balances.
For and , give the conditions for a unique solution, no solution, or infinitely many solutions.
Solution
Elimination gives . If , the unique solution has . If , there are infinitely many solutions; if , none.
Use the chapter’s interpolation factorization with right-hand side . Find the coefficients.
Solution
Forward substitution gives . Back substitution gives , representing . Check its values at all three sample points.
References
- [1] X. Yang, “ENG1005 Week 2: Traffic Flow, Personal Workshop Solutions,” 2024. Personal solutions to Monash ENG1005 workshop problems; source snapshot 77ebe58de2fea53d62533d6dd23caa16108ed109. Repository access may be restricted.. https://github.com/Eryc123Y/ENG1005-2024S2/blob/77ebe58de2fea53d62533d6dd23caa16108ed109/Source%20Code/W2.tex ↩
- [2] X. Yang, “ENG1005 Week 3: Interpolation and Fitting, Personal Workshop Solutions,” 2024. Personal solutions to Monash ENG1005 workshop problems; source snapshot 77ebe58de2fea53d62533d6dd23caa16108ed109. Repository access may be restricted.. https://github.com/Eryc123Y/ENG1005-2024S2/blob/77ebe58de2fea53d62533d6dd23caa16108ed109/Source%20Code/W3.tex ↩
Comments