Unit 1: Linear Systems and Matrix Algebra
Concept 1.2: Solving via Substitution & Recognizing Algebraic Limitations
▶️ Concept Audio: Solving the System
📝 Read Transcript
"Last time, we turned real situations into systems of equations and wrote them in standard form. Today we solve them. For two variables, substitution is the quick path when a coefficient is already 1 or negative 1. When it is not, elimination lets us scale the equations and cancel a variable without dragging fractions through the work.
"We will also try that same substitution on a 3 by 3 system, so you can feel where the bookkeeping starts to pile up. In Concept 1.3, we will connect the numbers we find here to how lines behave in the plane."
Key Definitions
▶️ Audio: Unpacking the Definitions
📝 Read Transcript
"A solution of a linear system is an ordered list of numbers—an ordered pair when there are two variables, an ordered triple when there are three—that makes every equation true at the same time. The solution set is the collection of all such solutions, not just the first one you happen to find.
"Substitution and elimination are the two reduction tools here. Substitution solves one equation for one variable and replaces that variable in the remaining equations, so the problem shrinks by one unknown. Elimination multiplies equations by nonzero constants and adds them so a chosen variable cancels. If you can see a coefficient of 1 or negative 1, substitution stays tidy. When no coefficient is 1 or negative 1, elimination is usually the cleaner way to avoid fractions."
- Solution of a linear system: An ordered list of numbers—such as an ordered pair \((x, y)\) for two variables or an ordered triple \((x, y, z)\) for three variables—that makes every equation in the system a true statement simultaneously when substituted for the variables.
- Solution set: The collection of all possible solutions to a given system of equations.
- Substitution method: An algebraic procedure in which one equation is solved for one variable in terms of the others, and that expression is substituted into the remaining equations to reduce the number of unknowns by one.
- Elimination method: An algebraic procedure in which equations are multiplied by nonzero constants and added together so that a target variable with opposite coefficients cancels out.
1.2.1 Example: Two-Variable Substitution
Because \(x\) has a coefficient of \(1\) in the first equation, substitution avoids fractions. Subtracting \(3y\) from both sides of the first equation isolates \(x\) in terms of \(y\), giving \(x = 14 - 3y\). Next, replace \(x\) in the second equation with the expression \((14 - 3y)\) to produce a single equation involving only \(y\):
To find \(x\), substitute \(y = 3\) back into the isolated relationship \(x = 14 - 3y\), which gives \(x = 14 - 3 \cdot 3 = 14 - 9 = 5\). Checking \((x, y) = (5, 3)\) in both original equations confirms \(5 + 3 \cdot 3 = 14\) and \(2 \cdot 5 + 5 \cdot 3 = 25\).
1.2.2 Example: Two-Variable Elimination
▶️ Audio: Back at Euclid Square
📝 Read Dialogue Transcript
Rowan: "Hey Quinn. I still don't know what The Scalar charged me. Four spark plugs and two quarts of oil, and the receipt only says 34 dollars."
Quinn: "Same on my van. Six spark plugs and five quarts, 73 dollars. If we solve for one of those prices directly, neither coefficient is 1, so we are going to be carrying fractions the whole way."
Rowan: "Then let's not isolate yet. We can scale the two equations so the spark-plug terms cancel, and read the oil price from what is left."
Neither equation has a coefficient of \(1\), so isolating \(p\) directly would introduce fractions such as \(\frac{17 - q}{2}\) or \(\frac{73 - 5q}{6}\). Instead, we use elimination to cancel \(p\). The least common multiple of the coefficients \(4\) and \(6\) is \(12\). Multiply every term in the first equation by \(-3\) to get \(-12p - 6q = -102\), and multiply every term in the second equation by \(2\) to get \(12p + 10q = 146\). Adding these two scaled equations eliminates \(p\):
Substitute \(q = 11\) into the first original equation to obtain \(4p + 2 \cdot 11 = 34\), which simplifies to \(4p + 22 = 34\), or \(4p = 12\), giving \(p = 3\). Verifying \((p, q) = (3, 11)\) in the second equation confirms \(6 \cdot 3 + 5 \cdot 11 = 18 + 55 = 73\).
1.2.3 Example: Scaling Breakdown in Three Variables
To eliminate \(x\) via substitution, solve the first equation for \(x\) by subtracting \(3y - 2z\) and dividing every term by \(2\), yielding \(x = 7 - \frac{3}{2}y + z\). Because the system has three equations, this three-term fractional expression must be substituted into both the second and third equations:
Expanding the first substituted equation gives \(21 - \frac{9}{2}y + 3z - 2y + 4z = 9\), which combines to \(-\frac{13}{2}y + 7z = -12\), or \(13y - 14z = 24\) after clearing fractions. Expanding the second substituted equation gives \(28 - 6y + 4z + 5y + 3z = 38\), which simplifies to \(-y + 7z = 10\). Completing the solution from this reduced \(2 \times 2\) system yields \(y = 7z - 10\), then \(13(7z - 10) - 14z = 24\), or \(77z = 154\), giving \(z = 2\), \(y = 4\), and \(x = 3\).
While direct substitution eventually produces \((x, y, z) = (3, 4, 2)\), tracking why the algebra grew cumbersome reveals three structural limitations for \(3 \times 3\) and larger \(n \times n\) systems:
- Cascading multi-term substitutions. In an \(n \times n\) system, isolating the first variable creates an expression with up to \(n\) terms that must be substituted into \(n - 1\) remaining equations, requiring \(n - 1\) separate distributions just to drop from \(n\) variables to \(n - 1\).
- Compounding fractional arithmetic. Dividing by leading coefficients introduces fractions at the first stage that must be distributed, given common denominators, and re-divided at every subsequent substitution stage.
- No standardized bookkeeping structure. Because substituted expressions change shape at every step, there is no fixed grid of coefficients to track, making human arithmetic errors likely and making direct substitution impractical compared to the systematic matrix row-reduction algorithms introduced in Topic 2.
The Algebraic Reduction Habit
- Isolate or align a single target variable. Inspect the coefficients first: if an equation has a coefficient of \(1\) or \(-1\), solve for that variable to prepare for substitution; otherwise, multiply one or both equations by constants to create opposite coefficients on a shared variable for elimination.
- Collapse the system into a smaller problem. Substitute the isolated expression into the remaining equation, or add the aligned equations together, so that one variable vanishes and leaves a single equation in one unknown.
- Back-substitute and verify the ordered solution. Solve the single-variable equation, substitute that value back into an original equation to find the remaining unknown, and check the pair in every original equation.
- Audit the algebraic cost as dimension grows. Notice how each substitution step distributes across every remaining equation and variable, causing fractional coefficients and nested algebra to compound rapidly in systems of size \(3 \times 3\) and larger.
⚠️ Algebraic Solution Pitfalls
▶️ Audio: Where the Reduction Goes Wrong
📝 Read Transcript
"Most algebra errors in this concept are bookkeeping errors, and they hide inside steps that look routine. Substituting an expression back into the equation it came from produces 0 equals 0 and finds nothing. Forgetting to distribute across every term, or scaling the left side of an equation and leaving the right side alone, changes the system you meant to solve.
"The list below is the four slips that show up most often on two-variable problems. Each one names the check that would have caught it, using the print-shop substitution and the spark-plug elimination as the reference points."
- Substitute an isolated expression into a different equation. Plugging an isolated expression back into the very same equation it came from cancels every variable and yields the tautology \(0 = 0\) without finding any unknown. In Example 1.2.1, \(x = 14 - 3y\) comes from the first equation and must be substituted into the second equation \(2x + 5y = 25\).
- Distribute coefficients across every term inside parentheses. When substituting a multi-term expression or scaling an equation for elimination, multiply every term on both sides. In Example 1.2.1, writing \(2(14 - 3y)\) as \(28 - 3y\) instead of \(28 - 6y\) corrupts the coefficient of \(y\).
- Scale both sides of an equation during elimination. A frequent error is multiplying the left-hand side coefficients while leaving the right-hand side constant unchanged. In Example 1.2.2, multiplying \(4p + 2q = 34\) by \(-3\) must scale \(34\) to \(-102\) as well.
- Check the candidate solution in every original equation. Verifying a solution pair in only one equation catches back-substitution slips but misses errors made during the reduction step. Always test \((p, q) = (3, 11)\) in both \(4p + 2q = 34\) and \(6p + 5q = 73\) as shown in Example 1.2.2.
✨ Alkimi Sandbox: Verify Your Solution
A campus snack bar sells muffins and bottled juices. One order of 2 muffins and 3 juices costs $13. Another order of 4 muffins and 1 juice costs $11. Let \(m\) be the price of one muffin (in dollars) and let \(j\) be the price of one juice (in dollars). The scenario gives the system \(2m + 3j = 13\) and \(4m + j = 11\).
Your Task:
Open the Alkimi chat below. Solve the system by substitution or elimination, state the ordered pair \((m, j)\), and show the check in both original equations. Alkimi will verify your algebra step-by-step.
🔄 Alkimi Sandbox: Generate Practice Problems
Need more practice? Use this Alkimi agent to generate new two-variable systems. You can ask for a system suited to substitution, a system suited to elimination, or a prompt that asks you to explain why direct substitution becomes cumbersome in a \(3 \times 3\) system. Once it gives you a problem, reply with your algebra for feedback.