Sub topic 10
The General Form \(ax + b = c\)
Assume you know how to work with integers, fractions, decimals, order of operations, and variables. This chapter gives a general method for equations that can be written as
\[ ax+b=c \]
Here, \(x\) is the variable, and \(a\), \(b\), and \(c\) are constants. A constant is a known number. The coefficient \(a\) multiplies \(x\).
Solving when \(a \ne 0\)
To isolate \(x\), undo the operations in reverse order:
- Subtract \(b\) from both sides.
- Divide both sides by \(a\).
Starting with
\[ ax+b=c \]
subtract \(b\):
\[ ax=c-b \]
Then divide by \(a\):
\[ x=\frac{c-b}{a} \]
This formula works only when \(a\) is not zero, because division by zero is undefined.
Example
Solve \(4x+7=19\).
\[ 4x+7=19 \]
\[ 4x=12 \]
\[ x=3 \]
Using the general formula gives the same result:
\[ x=\frac{19-7}{4}=\frac{12}{4}=3 \]
Check the answer in the original equation:
\[ 4(3)+7=12+7=19 \]
The solution is \(x=3\).
Why the value of \(a\) matters
The coefficient \(a\) determines whether the variable is present.
- If \(a\ne0\), there is exactly one solution.
- If \(a=0\), the equation becomes \(0x+b=c\), or simply \(b=c\).
At that point, there are two possibilities:
| Condition | Result |
|---|---|
| \(b=c\) | Infinitely many solutions |
| \(b\ne c\) | No solution |
If \(b=c\), the equation is true for every value of \(x\). For example:
\[ 0x+5=5 \]
Since \(0x=0\), this becomes \(5=5\), which is always true.
If \(b\ne c\), the equation is false for every value of \(x\). For example:
\[ 0x+5=8 \]
This becomes \(5=8\), which is never true.
from fractions import Fraction
def solve_linear(a, b, c):
"""Solve a*x + b = c exactly for x."""
a, b, c = Fraction(a), Fraction(b), Fraction(c)
if a == 0:
return "infinitely many solutions" if b == c else "no solution"
return (c - b) / a
print(solve_linear(2, 3, 11)) # 4
print(solve_linear(3, -5, 2)) # 7/3
print(solve_linear(0, 4, 4)) # infinitely many solutions
print(solve_linear(0, 4, 5)) # no solutionConnecting more complicated equations to general form
An equation may not initially look like \(ax+b=c\). Simplify it first by distributing parentheses and combining like terms. Then identify the values of \(a\), \(b\), and \(c\).
For example:
\[ 3(x-2)+4=19 \]
Distribute and combine:
\[ 3x-6+4=19 \]
\[ 3x-2=19 \]
Now \(a=3\), \(b=-2\), and \(c=19\). Therefore:
\[ x=\frac{19-(-2)}{3}=\frac{21}{3}=7 \]
Exercise
Classify and solve \(0x+9=9\).
Show answer
Since \(a=0\) and \(b=c=9\), the equation has infinitely many solutions. Every value of \(x\) makes the equation true.