An accounting identity constrains quantities; it does not determine them automatically. If a company reports total sales and total variable cost for two products, can we recover the quantities sold? Linear algebra tells us whether the evidence gives a unique answer, leaves choices, or contradicts itself. In this chapter we build a model, solve it without losing information, and interpret the result in its original units. All business data below are invented teaching examples.
1 From statements to a matrix equation
Let denote quantities of two products. Suppose their prices are 30 and 50 currency units, and their unit variable costs are 12 and 20. Sales of 1,600 and variable cost of 640 give
The second equation is 0.4 times the first. Two reported numbers have supplied only one independent restriction. A solver that returns one pair without explaining the free choice has hidden a feature of the evidence.
A linear system in unknowns is a list of equations , for . Its coefficient matrix is , its unknown vector is , and its right-hand side is . The system is , where
The columns of record each unknown's contribution to every measurement. Entries within a row must have compatible units after multiplication by their unknowns. One must not add a currency quantity to a physical quantity just because both are numbers.
The augmented matrix keeps the system and the observations together. The allowable elementary row operations are exchanging two equations, multiplying an equation by a nonzero scalar, and adding a multiple of one equation to another.
Why these operations preserve the solution set
Theorem
Row-equivalent augmented matrices represent equivalent systems
If one augmented matrix is obtained from another by a sequence of elementary row operations, then the two corresponding systems are equivalent: they have exactly the same solution set.
Proof
Why each elementary row operation is safe
Each operation is just an equation operation written in matrix form.
- Swapping two rows only changes the order in which the equations are listed. A number tuple solves all equations before the swap if and only if it solves all equations after the swap.
- Multiplying a row by a nonzero scalar multiplies both sides of one equation by the same nonzero number. That produces an equivalent equation, and the move is reversible by multiplying by .
- Replacing by means replacing equation by “ equation plus equation .” Any solution of the original system still satisfies the new equation, and the move is reversible by adding times row back to row .
So every elementary row operation preserves the solution set, and therefore any finite sequence of them does the same.
Reversibility is worth remembering because it separates genuine equivalence moves from destructive shortcuts.
Never apply a row operation to alone while leaving fixed: that changes the question.
Finite elimination terminates and preserves the solution set
Let , , with positive finite integers . The permitted row operations are an exchange of two distinct rows, multiplication of a row by a nonzero scalar, and addition of a scalar multiple of one row to a different row. Their inverses are respectively the same exchange, multiplication by the reciprocal, and subtraction of that multiple. Applying an operation to the entire augmented array therefore preserves exactly the solutions of : the new equations are consequences of the old, and its inverse gives the reverse implication. Each operation is also multiplication on the left by the result of applying it to the identity matrix, an invertible elementary matrix.
Scan the coefficient columns from left to right, maintaining the next unused row. If the current column has a nonzero entry in an unused row, exchange that row into the next position, divide by its nonzero pivot, and subtract multiples of it from every other row to clear that column. Advance the unused-row index. If every unused entry in the column is zero, skip the column. Previously chosen pivot columns remain unit columns: the current unused rows have zeros in them, so the new pivot row and every subsequent subtraction preserve those zeros and earlier pivots. There are only column scans and at most pivots, each with finitely many row operations. Thus the algorithm terminates. At its end, the nonzero coefficient rows have increasing pivot columns and zeros below and above each pivot; any remaining coefficient row is zero. This proves the reduced echelon form used below, without assuming it will eventually appear.
Classification and the homogeneous freedom
Write for the number of pivots in the coefficient part. A zero coefficient row with a nonzero transformed right side is the impossible equation , so the system has no solution. Otherwise assign arbitrary real values to all nonpivot variables. In each pivot row, its pivot variable equals the transformed right side minus the displayed linear combination of these free variables; no other pivot variable occurs. These formulas both construct a solution and recover every solution. If the solution is unique. If , changing a free variable changes the vector, giving infinitely many solutions.
For the free variables can all be zero, giving the zero solution. If , set one free variable to one and the others to zero, and use the pivot formulas. This constructs a nonzero homogeneous solution. If , the formulas force every homogeneous variable to zero. For a consistent system, fixing one solution , subtraction proves that every solution has the form with , and substitution proves the converse.
For square , if every column has a pivot, the coefficient form is . The product of the finitely many elementary matrices satisfies . Since is invertible, and therefore also : is a two-sided inverse. If a pivot is missing, the nonzero homogeneous solution constructed above rules out any inverse. This also justifies applying the same row operations to to obtain in the invertible case.
2 Elimination and the three possible outcomes
A pivot is a leading nonzero entry in an echelon row. A variable in a pivot column is a pivot variable; other variables are free. Back substitution expresses pivot variables in terms of free variables. A row with is the impossible equation .
For the opening example, division and elimination give and . Thus
The algebra permits every real . If quantities must be nonnegative, then . If they must also be integers, must make divisible by 3. These are extra modelling conditions, not consequences of row reduction.
Now change product 2's unit cost to 25, and suppose total variable cost is 740. The model becomes
Subtracting 0.4 times the first equation from the second gives . Hence and . Substitution verifies both original observations. A third report that these same sales contain 50 units would contradict this model, since .
Solution classification. An echelon system is inconsistent exactly when it contains a contradictory row. Otherwise it has one solution if every unknown is a pivot variable, and infinitely many real solutions if a free variable remains.
Justification. With no contradictory row, assign the free variables arbitrarily and determine all pivot variables by back substitution. There is exactly one assignment when there are no free variables. If there is a free variable, distinct choices give distinct vectors. This classification is over ; a finite field has a different count.
3 Why a particular solution is not the whole story
The null space is . It describes changes invisible to the observations.
Theorem 2 Affine form of all solutions. If solves , then every solution is uniquely of the form with .
Proof. If , then . Conversely, if , then . Uniqueness follows from .
For , one solution is and the null space is the line spanned by . All solutions are . Increasing changes the product mix while preserving the reported totals.
4 A reciprocal cost allocation model
Two service departments have direct costs 80 and 90. Department A receives services worth 20% of B's total cost; B receives services worth 10% of A's total cost. In the stated simplified model,
Substitution gives , so and . These are gross reciprocal totals, not newly created external expenditure. Adding and calling it the original direct expenditure would count internal services twice. The matrix equation is
Checking units, signs and what is being counted is as important as elimination. If the cross-service coefficients change, the equations change; the result is conditional on that model.
5 Graded practice
E1 Foundation. Solve , and verify your answer.
E2 Interpretation. Solve , . Describe the nonnegative solutions. What changes if the second right-hand side is 25?
E3 Modelling. Two products sell for 20 and 35 per unit. Revenue is 900 and total units sold are 30. Find the quantities and state one assumption needed for this model.
E4 Structural proof. Let solve . Prove that the system has a unique solution if and only if .
E5 Extension. For , , derive the unique solution when . Give compatible and incompatible examples when .
6 Full solutions
S1. Subtract three times the first equation from the second: , so and . Checks: and .
S2. The second equation is twice the first. Put and . Nonnegativity requires . With right-hand side 25, subtraction gives , so there is no solution, including no nonnegative solution.
S3. Write and . Subtract to obtain . Thus , . This assumes all units use the stated fixed prices and that revenue contains no additional fees or discounts.
S4. By Theorem 2 every solution is for . If the null space is zero there is only . If it contains nonzero , then is a second solution. The assumption that one solution exists is essential.
S5. Substituting gives . Hence and . If and , every solves the equations. If and , adding the equations gives , so none do. Positive direct costs with 100% mutual recycling do not define finite totals in this model.
Summary
A linear model connects unknown quantities to observations through . Reversible row operations expose consistency and free choices. Null vectors identify changes the observations cannot detect. A computed answer becomes an interpretable answer only after checking the original equations, units and application constraints.