Single linear equation solver
Enter the three coefficients for one equation. The result isolates x when its coefficient is nonzero and reports the degenerate cases explicitly.
Result
- Solution
- 6
- Equation
- a × x + b = c
Isolate the unknown
For 4 × x + 7 = 31, subtracting 7 gives 4 × x = 24, so x equals 6. Negative and fractional coefficients follow the same operation.
Check a zero coefficient
If a is zero and b equals c, every value of x satisfies the equation. If a is zero and b differs from c, there is no solution. Coefficients accept ordinary finite decimals with magnitude at most 10^20. Division uses 50 significant digits, so a repeating quotient is a rounded decimal result.
Verify by substitution
Put the returned x back into a × x + b and compare it with c. This reverse check uses the original coefficients and exposes a sign or subtraction error.
Work through the reasoning
Checking two amounts recovered from their sum and difference