Unfinished learning resource · TMP-SCI-132. Units 1–8 are available; whole-course validation remains unfinished. This is not a completed semester, registered course, degree credit or accreditation. The teaching has received bounded assistant review, not subject-specialist or learner validation. Workload estimates and rubrics remain unpiloted. All application data are fictional. No account, installation, purchase or private upload is needed.
How to study
Allow a provisional 10–12 hours over two weeks: three teaching sessions (about 90 minutes each), practice and corrections (about three hours), homework and quiz (about two hours), then a project (about two hours). These are design estimates, not measured learner times. Read the three sessions in order. Work each exercise before opening the explained answers. After checking, write one sentence identifying the first incorrect inference and redo the problem without the key. Written prose, typed equations, a verbal explanation with a transcript, and a tactile or drawn diagram are equally suitable response formats. Every diagram has a complete text description; colour carries no required meaning.
Outcomes and readiness
By the end you should be able to:
- Translate simultaneous linear constraints into a consistently ordered augmented matrix and a vector equation.
- Justify each elementary row operation using its inverse and solve a three-variable system.
- Distinguish inconsistency, a unique solution and infinitely many solutions using pivots, rank and free variables.
- Give a complete parameterized solution set, verify it in the original equations, and distinguish real solutions from feasible counts.
- Explain what an exact model can and cannot infer from redundant or conflicting measurements.
You need signed-number arithmetic, fractions, substitution and simple linear equations. Algebra & Functions is relevant preparation, particularly its systems lesson, but prior course completion is not assumed to establish mastery. No calculus is needed. A variable is a quantity that may vary; a parameter will describe a family of solutions.
Readiness check R1. Solve 3u−5=7.
R2. Compute −2(3−4)+1/2.
R3. Does (x,y)=(2,3) satisfy both x+y=5 and 2x−y=1?
R4. Rearrange x−2y=3 for x.
R5. State why division by a quantity that could be zero needs a separate case. If R1–R4 are difficult, first practice arithmetic and substitution using the explanations in the key. R5 prepares the row-operation safety rule.
Session A. Equations describe the same unknowns
A1. A system is an intersection of requirements
A linear equation in x,y,z has form ax+by+cz=d, where coefficients a,b,c and right side d are fixed numbers. Variables appear only to the first power and are not multiplied together. For example, 2x−y+0z=6 is linear; xy+z=6 and x²+y=6 are not. A solution of a system must satisfy every equation at once. An answer satisfying only the last equation you calculated is not enough.
For two variables, one nontrivial equation describes a line. Two linear equations may describe lines that cross once, are distinct and parallel, or coincide. In three variables, one nontrivial equation describes a plane. Counting written equations is not counting independent constraints: the same plane written twice adds no information.
Diagram A, described without relying on sight. Imagine an x-axis pointing right and y-axis pointing up. The line x+y=5 passes through (0,5) and (5,0). The line x−y=1 passes through (0,−1) and (1,0). They meet at (3,2), because 3+2=5 and 3−2=1. A parallel comparison line x+y=7 passes through (0,7) and (7,0) and never meets x+y=5. The equation 2x+2y=10 traces exactly the first line. Coordinate list: first line [(0,5),(3,2),(5,0)]; second [(0,−1),(1,0),(3,2)]. You can plot these points or use the arithmetic description alone.
A2. Compress the notation, not the meaning
Take the system x+y+z=6, 2x−y+z=3, x+2y−z=2. We order variables x,y,z and record its augmented matrix:
[ 1 1 1 | 6 ]
[ 2 −1 1 | 3 ]
[ 1 2 −1 | 2 ]
The vertical bar separates coefficients from the right side; it is not an arithmetic operation. Each row is one equation. Each coefficient column refers to the same variable in every row. A missing variable requires a zero, not a shift: x+2z=4 becomes [1 0 2 | 4]. The coefficient matrix A consists of the first three columns; b is the last column. Writing A v=b uses the column vector v=(x,y,z)ᵀ. The superscript T here means that a horizontally listed tuple is written as a column; it is not a power.
A3. Why elimination preserves solutions
Three allowed elementary operations transform a system into an equivalent one:
- Swap two rows. Undo it by swapping them back.
- Multiply one row by a nonzero constant c. Undo it by multiplying by 1/c.
- Replace row i with row i plus c times another, unchanged row j. Undo it by subtracting c times row j.
Every original solution satisfies the transformed equations by ordinary equality rules. Because each operation can be undone, every transformed solution also satisfies the originals. Both directions matter. Multiplying a row by zero is not reversible: x=2 would become 0=0 and lose its restriction. Replacing two rows simultaneously without tracking their old values may also lose information. Write one operation at a time, or explicitly state which old rows are used.
Worked example A. Solve the displayed three-variable system.
- R2←R2−2R1 produces [0 −3 −1 | −9]. R3←R3−R1 produces [0 1 −2 | −4]. R1 is unchanged in both operations.
- Swap R2 and
R3. Rows are now [1 1 1 | 6], [0 1 −2 | −4], [0 −3 −1 | −9].
- R3←R3+3R2 gives [0 0 −7 | −21]. Divide R3 by −7: [0 0 1 | 3], so z=3.
- Back-substitute in row 2: y−2(3)=−4, hence y=2. Row 1 gives x+2+3=6, hence x=1.
- Check originals: 1+2+3=6; 2−2+3=3; 1+4−3=2. All pass. The unique solution is (1,2,3).
A pivot is a leading nonzero entry in a nonzero row of an echelon-form matrix. Echelon form places any zero rows last, places each successive pivot to the right of the previous pivot, and has zeros below pivots. Reduced row echelon form also makes pivots equal to 1 with zeros above them. Back-substitution from echelon form is sufficient to solve; reducing every entry is optional.
Guided A1. Solve x+y+z=5, 2x+y−z=2, x−y+2z=5. First subtract 2R1 from R2 and R1 from
R3. Fill the two new rows. Next subtract 2 times the new R2 from the new
R3. Find z, then y, then x. Check all three originals.
Guided A2. A learner changes [2 4 | 6] to [1 2 | 6]. Explain the error and repair it. Another multiplies x+y=3 by zero and says every pair solves the original. Explain why this implication cannot be reversed.
Session B. What kind of solution set exists?
B1. A zero row is not always a contradiction
The row [0 0 0 | 0] means 0=0 and imposes no additional restriction. The row [0 0 0 | 5] means 0=5 and is impossible. One impossible row makes the entire system inconsistent, even if other rows can be satisfied.
Worked example B1. For x+2y−z=3 and 2x+4y−2z=8, subtract twice the first equation from the second. The result is 0=2. There is no real solution. It is not legitimate to announce that the zero coefficients mean arbitrary values while ignoring the right side.
B2. Free variables describe possibilities, not errors
For x+2y−z=3 and 2x+4y−2z=6, the same subtraction gives 0=0. Let y=s and z=t, where s and t independently range over all real numbers. Then x=3−2s+t. The full solution set is
(x,y,z)=(3−2s+t, s, t), with s,t real.
Check: (3−2s+t)+2s−t=3 for every s,t. The second equation is twice that equality. This proves every listed vector is a solution. Conversely, every solution has some values y=s and z=t, and the first equation forces the stated x, so none are missing. Setting free variables to zero gives just one solution, not the solution set.
After row-reducing A to echelon form, variables corresponding to pivot columns are pivot variables. A nonpivot variable can be chosen freely in a consistent system. The rank of A is the number of pivots in its echelon form, equivalently the number of independent coefficient constraints. With n variables:
- A contradiction means no solution; equivalently rank(A)<rank([A|b]).
- If consistent and rank(A)=n, there are no free variables and exactly one solution.
- If consistent and rank(A)<n, there are n−rank(A) free variables and infinitely many real solutions.
These statements concern equations over the real numbers. If variables must be nonnegative or integers, apply those restrictions afterward. Infinitely many real solutions can leave finitely many allowed counts, or none. Having more equations than unknowns does not automatically make a system inconsistent; extra equations may repeat information.
Worked example B2. The constraints x+y+z=6 and x−y+z=2 give 2y=4, so y=2 and x+z=4. Write z=t: (x,y,z)=(4−t,2,t), t real. Rank is 2 with n=3. If x,y,z count objects, nonnegative integer solutions require t∈{0,1,2,3,4}; there are five, not infinitely many feasible counts. Without knowing the counting context, it would be wrong to impose these restrictions.
Guided B1. Classify x+y=4, 2x+2y=k for (i) k=8 and (ii) k=9. Give rank(A), rank([A|b]), and the real solution set where applicable. Guided B2. Solve x+2y+z=7, y−z=1. Choose z=t, express all variables, and identify the permissible t if all three variables are nonnegative real quantities. Then list nonnegative integer solutions.
B3. More rows can strengthen a check without increasing rank
Suppose a third sensor reports twice an existing total. Its reading may check consistency, but if exact it gives no new independent constraint. Disagreement suggests transcription error, rounding, measurement noise or a wrong model. It does not identify which cause is responsible. Do not quietly delete an inconvenient row. In later units, projections and least squares will address a stated approximation criterion. Here we classify exact systems only.
Session C. Columns are building blocks
C1. The column interpretation
The system in example A can also be written
x(1,2,1) + y(1,−1,2) + z(1,1,−1) = (6,3,2).
Each tuple is a column vector described by its three coordinates. Multiplying a vector by a scalar multiplies every coordinate; adding vectors adds corresponding coordinates. The first coordinate yields x+y+z=6, the second 2x−y+z=3 and the third x+2y−z=2. Thus solving a system asks whether the target b can be made as a linear combination of the columns of A, and with which weights. The span of the columns is the set of all such combinations. Consistency means b lies in that span.
Diagram C, accessible coordinate construction. In the plane, arrow a=(1,1) starts at (0,0) and ends at (1,1). Arrow c=(1,−1) starts at (0,0) and ends at (1,−1). To construct 2a+c, draw the arrow 2a from (0,0) to (2,2), then a translated copy of c from (2,2) to (3,1). The resulting arrow from (0,0) to (3,1) is the sum. Text calculation: 2(1,1)+(1,−1)=(2+1,2−1)=(3,1). Translation does not change a vector's displacement. A picture may suggest the result; coordinate arithmetic verifies it.
C2. One solution plus directions that change nothing
The homogeneous system A v=0 always has the zero solution. Its solution set is called the null space of A. If p is a particular solution of A v=b and h solves A h=0, then A(p+h)=Ap+Ah=b+0=b. Conversely, if v and p both solve the same system, A(v−p)=b−b=0. So every solution is a particular solution plus a homogeneous solution.
In example B2,
(x,y,z)=(4,2,0)+t(−1,0,1).
The vector (−1,0,1) changes x and z in opposite directions. Both measurements x+y+z and x−y+z stay unchanged. The set is an affine line: a translated line of solutions. It is not a vector subspace because it does not contain (0,0,0). The homogeneous directions themselves do form a subspace; formal subspace proofs come later.
C3. Complete modelling case: three assembly types
A fictional workshop assembles kits A, B and C. Each kit consumes components in a fixed recipe. Kit A uses 2 red and 1 blue component; B uses 1 red and 2 blue; C uses 1 red and 1 blue. Let x,y,z be numbers of the three kits. A log reports 9 kits, 13 red components and 12 blue components, with no waste or stock change.
The model is x+y+z=9, 2x+y+z=13, x+2y+z=12, with x,y,z nonnegative integers. Order of rows: kits, red, blue; order of columns: A, B, C. Thus x(1,2,1)+y(1,1,2)+z(1,1,1)=(9,13,12).
Subtract the first equation from the second: x=4. Subtract it from the third: y=3. Then z=9−4−3=2. All counts are allowed. Check 4+3+2=9, 8+3+2=13, 4+6+2=12. In echelon form all three variable columns have pivots, so this is the only real solution, and therefore the only allowed count solution.
Now suppose the kit count is missing, leaving only component totals. Subtract the red and blue equations to obtain x−y=1. Choose y=t; x=t+1 and z=11−3t. With real quantities, t is free; with kit counts t must be an integer from 0 through 3. The feasible triples are (1,0,11), (2,1,8), (3,2,5), (4,3,2). The remaining data do not identify production uniquely. Recovering the 9-kit log selects the last triple. If a fourth line says red plus blue equals 26, it conflicts with 13+12=25; no exact solution satisfies all logs. That diagnosis does not establish whether a worker miscounted or whether waste invalidates the model.
Independent practice: new problems
Do not copy the worked numerical answers. Explain the operation or interpretation as well as calculating.
I1. Write the augmented matrix and column equation for 2u−v+3w=4 and u+2w=1, ordering u,v,w. Identify its dimensions (coefficient and augmented).
I2. Solve x+y+z=4, 2x−y+z=8, x+2y−z=−3. Show reversible operations and substitute in every original equation.
I3. Classify x−y+2z=4 and 3x−3y+6z=12. Parameterize every real solution and state both ranks.
I4. Classify the same system with the second right side changed to 13. Explain why the rank of the augmented matrix changes.
I5. An echelon form is [1 2 0 −1 | 3], [0 0 1 2 | 4], [0 0 0 0 | 0]. Identify pivot/free variables, rank and the full solution set for variables x1,x2,x3,x4.
I6. For a=(2,1), c=(1,−1), find weights α,β such that αa+βc=(7,2). Verify coordinates.
I7. For x+y+z=5 and x−y+z=1, find a particular solution and a nonzero homogeneous direction. Give all nonnegative integer solutions.
I8. Evaluate: “Three equations in two variables can never have a solution.” Supply a counterexample and explain independence.
Homework: consolidate and transfer
H1. Solve 2x+y−z=1, x−y+2z=6, 3x+2y+z=8. Record one inverse operation and all original checks.
H2. For x+2y=3 and ax+4y=6, classify by the real parameter a. Avoid dividing by an expression before considering whether it is zero.
H3. A fictional two-recipe process has output columns (2,1) and (4,2). Can it produce target (10,5)? Give all real weights and all nonnegative integer weights. Can it produce (10,6)? Explain through both equations and span.
H4. Explain, with a counterexample, why “rank(A)<n means infinitely many solutions” is incomplete.
H5. Let p=(1,2,0) solve x+y+z=3 and x−y+z=−1. Find the full homogeneous solution set and prove that p plus this set describes all solutions. Is the original solution set a subspace? Explain.
Quiz: 30 points, suggested 40 minutes
Work without the keys, then self-mark. This is a learning check, not certified assessment. Show reasoning for partial credit.
Q1 (4). Translate 3r+s=7, r−2s=0 into an augmented matrix and explain what a solution must satisfy.
Q2 (8). Solve x+y+z=6, 2x+y+z=8, x+2y+3z=14. Show elimination and check all equations.
Q3 (6). Classify [1 2 −1 | 4], [0 0 1 | 2], [0 0 0 | 0]; give rank, free variable and every solution.
Q4 (4). Replace the last row of Q3 by [0 0 0 | −1]. State the solution count and both ranks, with justification.
Q5 (4). Explain why R2←R2+3R1 is reversible and why R2←0R2 is not generally reversible.
Q6 (4). Two product columns are (1,2) and (2,4). Explain why target (3,7) is unreachable with any real weights. Suggested feedback: 24–30 with no misconception about contradiction/free variables: proceed; 18–23: revise affected session and retake changed problems; below 18: redo guided work. These are provisional self-study thresholds, not validated grades. Even a high score does not replace reading the explanations for errors.
Unit project: reconstruct an assembly log
Use only this fictional packet. Do not collect real workplace or personal data. Create a 2–3 page analysis or an equivalent accessible explanation with equations.
Three pack types P,Q,R use red, blue and green pieces. Their recipe columns (red,blue,green) are P=(2,1,1), Q=(1,2,1), R=(1,1,2). The recorded totals are (17,19,20). Stage 1: define unknowns/units/domain; form and solve the system; justify operations; verify and interpret the result. Stage 2: the green counter is unavailable. Give the entire real solution family using the two remaining totals, then list every nonnegative integer production plan. Identify one additional measurement that distinguishes the plans, and explain why a repeated red total would not. Stage 3: an extra log says red+blue+green=57. Diagnose compatibility with the original three totals and describe at least two possible explanations without claiming one is proven. Stage 4: create your own changed nonnegative integer production counts, compute all three outputs from the recipes, then recover them. Explain why generating data from a model is a useful arithmetic test but not evidence that the recipes hold in a real workshop.
Rubric, 40 points. Formulation 6 (variables/units 2, equations/order 2, domain/assumptions 2); exact solution 8 (valid operations 4, correct counts 2, all checks 2); missing-measurement analysis 12 (full real family 4, allowed parameter range 3, complete integer list 3, discriminating measurement 2); conflicting-log reasoning 6 (explicit contradiction 3, two qualified explanations 2, no invented certainty 1); changed-case transfer and communication 8 (consistent changed data and recovery 4, model limits 2, readable equations/description 2). Award method points for a clearly carried arithmetic error; do not award correctness points for its wrong consequences. Two correct approaches may have different row sequences. Compare with the model in the explained answers only after completing all stages.
Exit reflection
Explain in your own words the difference between no solution, one solution and a family. Then explain why the coefficient columns and the rows describe the same constraints from different viewpoints. Save one corrected mistake and one question. Unit 2 formalizes vectors, span and linear independence; it is available in this reader.