Sub topic 1
Linear Equations in One Variable
Prerequisites
This chapter assumes you can add, subtract, multiply, and divide fractions, decimals, and percentages. You should also know how to expand brackets and collect like terms, and how the sign rules apply to negative numbers.
Linear equations in one variable
A linear equation in one variable has the form ax + b = c, where a is not zero. The goal is to isolate x on one side.
Work in steps, and apply each operation to both sides:
- Remove brackets.
- Move x-terms to one side and constants to the other.
- Divide by the coefficient of x.
Worked example
Solve 3(x - 2) = 2x + 5.
- Expand: 3x - 6 = 2x + 5
- Subtract 2x: x - 6 = 5
- Add 6: x = 11
Turning word problems into equations
Name the unknown with a variable, write each fact as an expression, then link them with an equals sign.
A shopkeeper sells pens at Rs 5 each and pencils at Rs 2 each. He sells 3 more pens than pencils and earns Rs 61 in total. Let p be the number of pencils. Then 5(p + 3) + 2p = 61, so 7p + 15 = 61, which gives p = 6 and 9 pens.
Two linear equations in two variables
Two equations with two unknowns can be solved by elimination or substitution. The code below solves a1x + b1y = c1 and a2x + b2y = c2 using determinants.
def solve_2x2(a1, b1, c1, a2, b2, c2):
det = a1 * b2 - a2 * b1
if det == 0:
return None
x = (c1 * b2 - c2 * b1) / det
y = (a1 * c2 - a2 * c1) / det
return x, y
print(solve_2x2(1, 1, 10, 1, -1, 2))Running this prints (6.0, 4.0).
When does a system have one, none, or infinitely many solutions?
Compare the ratios a1/a2, b1/b2, and c1/c2:
| Condition | Result |
|---|---|
| a1/a2 ≠ b1/b2 | Unique solution |
| a1/a2 = b1/b2 ≠ c1/c2 | No solution (parallel lines) |
| a1/a2 = b1/b2 = c1/c2 | Infinitely many solutions |
> Note: the determinant a1·b2 − a2·b1 equals zero exactly when the first two ratios are equal.
Quadratic equations: standard form and what a root is
A quadratic equation has the form ax² + bx + c = 0, where a is not zero. A root is a value of x that makes the equation true. For example, x = 2 and x = 3 are the roots of x² − 5x + 6 = 0, because substituting either value gives zero.
Exercise
For which value of k does the system x + 2y = 3 and 2x + ky = 6 have no solution?
Show answer
k = 4, because the ratios 1/2 and 2/k must be equal, while 3/6 must differ from 1/2. Check that 2/k = 1/2 gives k = 4, and 3/6 = 1/2, so the system is actually infinite at k = 4. Therefore the answer is no real k, since the constants always match when the coefficients match.