Equation Solver
Solve equations of all types: linear, quadratic, cubic, polynomial, systems of equations, exponential, logarithmic, and absolute value. Detailed step-by-step solutions with explanations included.
This calculator dispatches to one of nine independent solving routines based on Equation Type (lines 1168-1227): linear (isolation method), quadratic (the quadratic formula), cubic, degree-5 polynomial, 2×2 and 3×3 linear systems (Cramer's rule per the formula field), exponential, logarithmic, and absolute-value equations. Each routine reads only its own dedicated set of coefficient fields — the quadratic routine, for example, never looks at Third Number coefficients or system-of-equations inputs — so with any equation type selected, the roughly thirty coefficient fields belonging to the other eight types have zero effect on the result, a fact confirmed directly: at the default Linear type, every coefficient field belonging to the other eight equation types (Quadratic's a, Cubic's a, Absolute Value's c, and so on) shows no measurable effect on Solution 1 at all. In Linear mode, ax + b = c is solved as x = (c − b) / a (line 111); at the default coefficients (a=2, b=3, c=7), Result (c) has the largest effect on Solution 1, followed by a and then b — and since a, b, and c are all positive at these defaults, raising c raises the solution, while raising either a or b lowers it. This calculator does not use numerical approximation for linear, quadratic, or cubic equations — those have closed-form solutions — but Polynomial mode, along with root-finding elsewhere on the site's Graphing Calculator, does rely on numerical methods for degrees where no closed-form formula is used. Linear mode has its own special case: when a = 0, the equation becomes 0x + b = c, which the solver correctly recognizes as either an identity (true for every x, if b = c) or a contradiction (true for no x, if b ≠ c) rather than attempting to divide by 0 (lines 51-97).
Step 1 of 2
How to Use This Calculator
- Select the Equation Type that matches your problem — options range from Linear and Quadratic to Systems of 2 or 3 equations.
- Fill in the coefficients for your chosen type (e.g., a, b, c for a quadratic ax² + bx + c = 0).
- For systems of equations, enter each row's coefficients and the right-hand-side constant separately.
- The solver returns exact roots or solution sets; for quadratics, the discriminant tells you whether roots are real or complex.
- Use the Exponential and Logarithmic types when your equation involves e^x or log-base-a forms.
What each input means
- Equation Type
- Type of equation to solve.
- a (coefficient of x)
- The number multiplying x
- b (constant term)
- The constant added to ax
- c (right side)
- The value the expression equals
- a (x² coefficient)
- Cannot be 0 for a quadratic
- a (x³ coefficient)
- Cannot be 0 for a cubic
- Base (a)
- Must be positive and ≠ 1
- Result (b)
- Must be positive
- c (right side)
- Must be ≥ 0
How this is calculated
Formula
Linear: x = (c − b) / a | Quadratic: x = (−b ± √(b²−4ac)) / 2a | System: Cramer's ruleEngine last updated . Checked against 4 independently-derived tests — how we verify calculators.
Frequently Asked Questions
Does entering coefficients for the Quadratic equation type affect a Linear equation's solution?
No. Each equation type's routine reads only its own dedicated coefficient fields — the Linear branch (line 1170) passes exactly linearA, linearB, and linearC to its solver and nothing else — so with Equation Type set to Linear, every coefficient belonging to Quadratic, Cubic, Polynomial, the two system-of-equations types, Exponential, Logarithmic, or Absolute Value has no effect on Solution 1 whatsoever, confirmed directly against the engine.
In the default Linear mode, which coefficient moves Solution 1 the most?
Result (c), the equation's right-hand side. With ax + b = c solved as x = (c − b) / a (line 111), nudging c up or down by 10% moves Solution 1 more than the same-sized nudge to a or b at the default coefficients (a=2, b=3, c=7) — and because all three default to positive values, raising c always raises the solution, while raising either a or b lowers it.
What happens if I set a Linear equation's coefficient a to 0?
The solver does not divide by zero. Line 51 detects a = 0 and checks whether b equals c: if they're equal, it reports an identity — every real number satisfies the equation — and if they differ, it reports a contradiction with no solution, rather than attempting x = (c − b) / 0.
Does the calculator use numerical approximation to solve equations, or exact formulas?
It depends on the equation type. Linear, quadratic, and cubic equations all have closed-form algebraic solutions and are solved exactly using those formulas; the degree-5 Polynomial mode, by contrast, has no general closed-form formula available and relies on numerical root-finding instead — specifically Newton-Raphson iteration (line 999). That's a numerical approach, though not the same method the site's Graphing Calculator uses for functions with no algebraic solution: that calculator's root-finding (lib/math-expression.ts:344, `findRoots`) uses bisection instead.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Quadratic Equation Solver
Solve quadratic equations (ax² + bx + c = 0). Find roots, discriminant, vertex, and axis of symmetry with a visual graph.
Math & StatisticsMatrix Calculator
Perform matrix operations: addition, subtraction, multiplication, determinant, and transpose for 2x2 matrices.
Math & StatisticsQuadratic Formula Solver
Solve a quadratic equation ax² + bx + c = 0 for its real roots.
TutoringHomework Help Time Calculator
Estimated completion time from assignment type and grade level.
More in Math & Statistics.