Linear Equation Solver (ax+b=0)
Enter coefficients a and b to solve the linear equation ax+b=0. Get x=−b/a instantly, including the special cases when a is zero.
Input
Enter the coefficients a and b of the linear equation ax+b=0 to find the solution x=−b/a.
x +
= 0
Both a and b can be any real number. Setting a to 0 triggers the no-solution or infinite-solution case.
Result
Solution
x = 3
Because a is not zero, the solution is uniquely determined.
Coefficient a
2
Coefficient b
-6
Formula
x = −b ÷ a
How it works
- A linear equation ax+b=0 is solved by subtracting b from both sides and dividing by a, giving x=−b/a.
- When the coefficient a is not zero, there is exactly one solution, x=−b/a.
- When a is zero and b is also zero, every real number satisfies the equation, so there are infinitely many solutions.
- When a is zero and b is not zero, no value of x can satisfy the equation, so there is no solution.
- The number line is a visual aid that shows where the solution x lies.
Reviews
Tell us what you think of this calculator.
Write a review
- Home
Linear Equation Solver (ax+b=0)