Sub topic 2
Two-Variable Linear Equations and Their Lines
This chapter assumes you can work with integers, fractions, and decimals, apply order of operations, and plot points on the coordinate plane.
Two-Variable Linear Equations and Their Lines
A linear equation in two variables has the form ax + by = c, where a, b, and c are constants. Its solutions are ordered pairs (x, y). Each solution is a point, and all solutions together form a straight line.
The slope-intercept form y = mx + b makes the line easy to read. The slope m is the rise over the run, and the y-intercept b is where the line crosses the y-axis, at (0, b).
For example, y = 2x - 1 has slope 2 and y-intercept -1. The point (1, 1) lies on it because 2(1) - 1 = 1.
What a System of Equations Means
A system is two or more equations that share the same variables. A solution to the system is a pair (x, y) that satisfies every equation at once. Graphically, it is the point where the lines cross.
Solving Systems by Substitution
Substitution works when one equation already isolates a variable.
System: y = 2x - 1 and 3x + y = 14.
Substitute: 3x + (2x - 1) = 14, so 5x = 15 and x = 3. Then y = 2(3) - 1 = 5. The solution is (3, 5).
A common error is substituting back into the equation you used to find the value. That check proves nothing. Check in the other equation.
Solving Systems by Elimination
Elimination works when adding or subtracting the equations cancels a variable. Multiply one equation first if the coefficients do not match.
System: 3x + 2y = 12 and x - y = 1.
Multiply the second equation by 2: 2x - 2y = 2. Add it to the first: 5x = 14, so x = 14/5. Then y = x - 1 = 9/5.
Verify with Python using exact fractions:
from fractions import Fraction
det = 3 * (-1) - 1 * 2
x = Fraction(12 * (-1) - 1 * 2, det)
y = Fraction(3 * 1 - 1 * 12, det)
print(x, y) # 14/5 9/5Exercise
Solve 4x + y = 10 and x - y = 5 by elimination.
Show answer
Add the equations: 5x = 15, so x = 3. Then y = x - 5 = -2. Check: 4(3) + (-2) = 10 and 3 - (-2) = 5. The solution is (3, -2).