Algebra & Equations
Linear Equation Solver
Solve a·x + b = 0 for x.
Formula
Formula
x = −ba
Variables
| Symbol | Definition | Type & range | Units | Role |
|---|---|---|---|---|
| a | coefficient of x (≠ 0) | real number (ℝ) | — | input |
| b | constant term | real number (ℝ) | — | input |
| x | solution | computed result | — | result |
Try it yourself
Interactive calculator
Worked examples
Example 1
Givena = 2, b = -8
Result4
Example 2
Givena = 5, b = 15
Result-3