Expert Reviewed
Prof. Emily Rodriguez, Ph.D. MathematicsUpdated June 1, 2026Our Standards →

Last updated:

Equation Solver

Solve linear, quadratic, and 2x2 system equations with step-by-step discriminant analysis and Cramers rule.

Back to Math

Equation Solver

Ad-FreeAI-Powered

Free online equation solver — solve linear, quadratic, and systems of equations with step-by-step solutions and AI insights.

Enter values above to see results.

About This Calculator

Want to learn more? Browse our calculation guides and tutorials →

📐 Equation Solver — Complete Guide

ax + b = 0
Linear equation — one solution
ax² + bx + c = 0
Quadratic — up to two solutions
Δ = b²−4ac
Discriminant determines solution type
Complex
Roots exist even when Δ < 0

Equation Types & Solutions

TypeFormSolution MethodSolutions
Linearax + b = 0x = −b/a1 solution
Quadratic (Δ>0)ax²+bx+c=0Quadratic formula2 real solutions
Quadratic (Δ=0)ax²+bx+c=0x = −b/2a1 real (double root)
Quadratic (Δ<0)ax²+bx+c=0Complex formula2 complex conjugates

Myths vs Facts

MYTH: A negative discriminant means no solution
FACT: A negative discriminant (Δ < 0) means no real solutions, but two complex (imaginary) solutions exist. Complex roots always come in conjugate pairs: a ± bi.
MYTH: The quadratic formula only works for standard form
FACT: Any quadratic can be rearranged to ax² + bx + c = 0 form before applying the formula. Completing the square and factoring are equivalent methods that yield identical solutions.

Frequently Asked Questions

What is the quadratic formula?

x = (−b ± √(b²−4ac)) / 2a. It gives the roots of any quadratic equation ax² + bx + c = 0. The ± symbol means there are two solutions: one with + and one with −.

What does the discriminant tell you?

Δ = b²−4ac. If Δ > 0: two distinct real roots. If Δ = 0: one real root (a double root). If Δ < 0: no real roots (two complex conjugate roots).

When can I factor instead of using the formula?

Factoring is faster when the quadratic has small integer roots. E.g., x²+5x+6 = (x+2)(x+3). When roots are irrational or complex, the quadratic formula is the reliable approach.

What is completing the square?

A method to rewrite ax²+bx+c into the form a(x+h)²+k. The quadratic formula is derived by completing the square on the general form.

Can linear equations have no solution?

If a=0 and b≠0, there is no solution. If a=0 and b=0, any x works (infinite solutions). A standard linear equation (a≠0) has exactly one solution.

What are simultaneous equations?

Two or more equations with two or more unknowns. Methods include substitution, elimination, and matrix (Gaussian elimination). This solver handles single-variable linear and quadratic equations.

Explore All Math Calculators

Reviewed by CalculatorApp.me Math Team

Equation Solver — Complete Guide

Linear, quadratic, polynomial, and systems of equations with step-by-step methods, formulas, and real-world applications.

ax+b=0

Linear equation

x = −b±√Δ / 2a

Quadratic formula

Cramer

Systems via determinants

Newton

Iterative root finding

Solving Equations — Foundations

An equation is a mathematical statement asserting equality: two expressions joined by an equals sign. Solving an equation means finding all values of the unknown variable(s) that make the equation true. These values are called solutions or roots.

The linear equation ax + b = 0 has exactly one solution: x = −b/a (when a ≠ 0). Linear equations model direct proportional relationships — pricing, unit conversions, simple interest, and motion at constant velocity. They're the first step in algebraic problem-solving.

More complex equations — quadratic, cubic, polynomial, transcendental — require specialized methods. The general approach follows three key principles: (1) isolate the unknown, (2) apply inverse operations, and (3) verify solutions by substitution. Understanding these principles unlocks all equation-solving.

Equation-Solving Methods

Linear: ax + b = c
Solve: 3x + 7 = 22

Step 1: Subtract 7 from both sides
  3x + 7 − 7 = 22 − 7
  3x = 15

Step 2: Divide both sides by 3
  3x/3 = 15/3
  x = 5

Verify: 3(5) + 7 = 15 + 7 = 22 ✓

General formula:
  ax + b = c
  x = (c − b) / a

Special cases:
  a = 0, b = c → identity (all x)
  a = 0, b ≠ c → no solution
  One variable, one equation → unique solution

Linear equations always have exactly one solution (when a≠0). The solution process is reversible: each step applies an inverse operation (addition↔subtraction, multiplication↔division) to both sides.

Quadratic: ax² + bx + c = 0
The Quadratic Formula:

        −b ± √(b² − 4ac)
  x = ─────────────────────
              2a

Discriminant Δ = b² − 4ac
  Δ > 0 → Two distinct real roots
  Δ = 0 → One repeated real root
  Δ < 0 → Two complex conjugate roots

Example: 2x² − 7x + 3 = 0
  a=2, b=−7, c=3
  Δ = 49 − 24 = 25
  x = (7 ± 5) / 4
  x₁ = 12/4 = 3
  x₂ = 2/4 = 0.5

Alternative methods:
  • Factoring: (2x−1)(x−3) = 0
  • Completing the square
  • Graphing (x-intercepts)

The quadratic formula was essentially known to Babylonians (~2000 BC) and formally derived by al-Khwarizmi (820 AD). It works for ALL quadratics — factoring only works when roots are rational.

Systems: Elimination & Substitution
System of 2 equations:
  2x + 3y = 12
  4x − y  = 5

Method 1: Substitution
  From eq.2: y = 4x − 5
  Substitute into eq.1:
    2x + 3(4x − 5) = 12
    2x + 12x − 15 = 12
    14x = 27
    x = 27/14 ≈ 1.929
    y = 4(27/14) − 5 = 38/14 ≈ 2.714

Method 2: Elimination
  Multiply eq.2 by 3:
    12x − 3y = 15
  Add to eq.1:
    2x + 3y = 12
    14x = 27 → same result

Method 3: Cramer's Rule
  |A| = 2(−1)−3(4) = −14
  x = |Ax|/|A| = (12(−1)−3(5))/(−14)
  x = −27/(−14) = 27/14 ✓

For 2×2 systems, any method works. For larger systems (3+ variables), Gaussian elimination or matrix methods (LU decomposition) are more systematic. Cramer's Rule is elegant but computationally expensive for large systems.

Newton-Raphson Method
Iterative root-finding for f(x) = 0:

  x_{n+1} = x_n − f(x_n) / f'(x_n)

Example: Find √2 (solve x² − 2 = 0)
  f(x) = x² − 2, f'(x) = 2x
  Start: x₀ = 1.5

  x₁ = 1.5 − (2.25−2)/(3)
     = 1.5 − 0.0833 = 1.41667

  x₂ = 1.41667 − (2.00694−2)/(2.83333)
     = 1.41667 − 0.00245 = 1.41422

  x₃ = 1.41421 (6 correct digits!)

Convergence: Quadratic
  Digits of accuracy roughly double
  each iteration near the root.

Warnings:
  • Needs good initial guess
  • Fails if f'(x_n) = 0
  • May diverge for poor starts
  • Multiple roots → different starts

Newton-Raphson converges extremely fast (quadratic convergence) when it works. Most scientific calculators and computer algebra systems use it internally. For guaranteed convergence, bisection method is slower but always works on continuous functions.

Equation Types & Solutions

Equation TypeGeneral FormMax RootsSolution MethodExample Application
Linearax + b = 01Direct algebraPricing, break-even
Quadraticax² + bx + c = 02Quadratic formulaProjectile motion, area
Cubicax³ + bx² + cx + d = 03Cardano's formulaVolume optimization
Quarticax⁴ + ... = 04Ferrari's methodOptics, engineering
Polynomial (n)aₙxⁿ + ... = 0nNumerical methodsSignal processing
RationalP(x)/Q(x) = 0VariesSet P(x)=0, Q(x)≠0Economics, rates
Radical√f(x) = g(x)VariesSquare both sidesDistance, geometry
Exponentialaˣ = b1x = log_a(b)Growth, decay, finance
Logarithmiclog_a(x) = b1x = aᵇpH, sound, earthquakes
Trigonometricsin(x) = ax = arcsin(a) ± nπWave mechanics, cycles

Numerical Methods Comparison

MethodConvergenceRequiresProsCons
BisectionLinear O(log(1/ε))Bracketing intervalAlways convergesSlow, needs sign change
Newton-RaphsonQuadraticf(x), f'(x), initial guessVery fast near rootMay diverge, needs derivative
SecantSuperlinear (~1.618)f(x), two initial pointsNo derivative neededCan fail to converge
Fixed-PointLinearx = g(x) formSimple to implementConvergence not guaranteed
Brent's MethodSuperlinearBracketing intervalRobust + fast hybridMore complex to implement
Müller's MethodOrder ~1.84Three initial pointsFinds complex rootsMay jump to wrong root

Real-World Equation Applications

FieldEquationVariablesWhat It Solves
PhysicsF = maForce, mass, accelerationNewton's second law of motion
FinanceA = P(1+r/n)^(nt)Compound interest variablesFuture value of investment
ChemistrypH = −log₁₀[H⁺]Hydrogen ion concentrationAcidity/basicity of solution
EngineeringV = IRVoltage, current, resistanceOhm's law for circuits
Statisticsz = (x−μ)/σStandard scoreHow far from the mean
EconomicsP = MCPrice = marginal costProfit maximization
GeometryA = πr²Area, radiusCircle area calculation
MedicineC(t) = C₀e^(−kt)Drug concentration, timePharmacokinetics decay

History of Equation Solving

~2000 BC

Babylonians — Quadratic Equations

Babylonian mathematicians solved quadratic equations using geometric methods on clay tablets. They found positive roots of x² + bx = c by completing the square — essentially the quadratic formula without algebraic notation. Their methods were algorithmic and remarkably sophisticated.

~250 AD

Diophantus — Arithmetica

Diophantus of Alexandria wrote Arithmetica, introducing symbolic notation for unknowns and systematically solving polynomial equations. He worked with what we now call Diophantine equations (integer solutions). He's often called 'the father of algebra,' though his work was largely lost until rediscovered in the Renaissance.

820 AD

Al-Khwarizmi — Al-Jabr

Muhammad al-Khwarizmi wrote 'Al-Kitab al-Mukhtasar fi Hisab al-Jabr wal-Muqabala' — the book that gave algebra its name. He systematically classified and solved all forms of linear and quadratic equations, providing geometric proofs. The word 'algorithm' also derives from his name.

1545

Cardano & Ferrari — Cubic & Quartic Solutions

Gerolamo Cardano published Ars Magna containing general solutions for cubic (discovered by Tartaglia/del Ferro) and quartic equations (solved by his student Ferrari). These formulas proved that polynomials of degree 3 and 4 always have closed-form solutions. The cubic formula involves complex numbers even for real roots.

1824

Abel & Galois — Quintic Impossibility

Niels Henrik Abel proved that no general algebraic formula exists for polynomial equations of degree 5 or higher. Évariste Galois (at age 20, before his death in a duel) developed group theory to explain exactly which equations are solvable by radicals. This was one of the most profound results in mathematics.

1669

Newton — Numerical Root-Finding

Isaac Newton developed the Newton-Raphson method for finding approximate roots of equations. Using tangent-line approximations (x_{n+1} = x_n − f(x_n)/f'(x_n)), the method converges quadratically near a root. It remains the most widely used numerical root-finding algorithm in science and engineering.

Key Research & Data

Abel (1824) — Impossibility Theorem

No General Quintic Formula Exists

Abel proved that polynomial equations of degree ≥ 5 cannot be solved by radicals (using only +, −, ×, ÷, and nth roots). This settled a 300-year quest and motivated the development of group theory, Galois theory, and numerical methods. Specific quintics can still be solved, but no universal formula exists.

Galois (1832) — Group Theory

Solvability of Polynomial Equations

Galois theory provides a complete criterion for when a polynomial is solvable by radicals: its Galois group must be a solvable group. For degree 5+, the symmetric group S₅ is not solvable, explaining Abel's result. Galois theory is now a cornerstone of abstract algebra and number theory.

Brent (1973) — Algorithms for Minimization

Brent's Method: Robust Root-Finding

Brent's method combines bisection (guaranteed convergence) with inverse quadratic interpolation (fast convergence) to create a robust root-finding algorithm. It never fails on continuous functions with sign changes and converges superlinearly. It's the default solver in MATLAB's fzero and Python's scipy.optimize.brentq.

Wilkinson (1963) — Rounding Errors in Algebraic Processes

Numerical Instability in Polynomial Roots

James Wilkinson showed that polynomial root-finding is inherently ill-conditioned: tiny changes in coefficients can cause massive changes in roots. His example (Wilkinson's polynomial) has integer roots 1-20, but perturbing one coefficient by 10⁻⁷ causes roots to jump by up to 2.8. This fundamentally influenced numerical analysis.

Myths vs. Facts

Every equation has a solution.

Not all equations have real solutions. x² + 1 = 0 has no real roots (only complex: ±i). |x| = −3 has no solution at all. Some equations are contradictions (0x = 5), while others are identities true for all values (x + x = 2x). The existence and nature of solutions depends entirely on the equation type.

The quadratic formula is the only way to solve quadratics.

Quadratics can also be solved by factoring (fastest when possible), completing the square (always works, reveals vertex form), graphing (visual, approximate), and numerical methods. The quadratic formula is universal but not always the most efficient. Many textbook problems are designed to factor neatly.

Higher-degree polynomials can always be solved with a formula.

Abel (1824) and Galois (1832) proved this is impossible for degree ≥ 5. While specific quintics may have closed-form solutions, no general formula using radicals exists. This was one of the most important results in mathematical history and led to the creation of abstract algebra.

Numerical methods always give the correct answer.

Numerical methods can fail: Newton's method diverges for bad initial guesses, polynomials are ill-conditioned (Wilkinson's example), and floating-point rounding accumulates errors. Bisection always converges but is slow. No single method is universally optimal — choosing the right algorithm matters.

Frequently Asked Questions

How do I solve a linear equation?
Isolate the variable using inverse operations. For ax + b = c: subtract b from both sides (ax = c − b), then divide by a (x = (c−b)/a). Always verify by substituting back. Example: 5x − 3 = 12 → 5x = 15 → x = 3. Check: 5(3) − 3 = 12 ✓
What is the quadratic formula?
For ax² + bx + c = 0: x = (−b ± √(b²−4ac)) / (2a). The discriminant Δ = b²−4ac determines roots: Δ>0 gives two real roots, Δ=0 gives one repeated root, Δ<0 gives two complex conjugate roots. The formula works for ALL quadratic equations.
What is 'completing the square'?
A technique to rewrite ax² + bx + c as a(x−h)² + k. Steps: (1) factor out a from x-terms, (2) add and subtract (b/2a)² inside, (3) simplify. This reveals the vertex (h,k) of the parabola and is actually how the quadratic formula is derived.
How do I solve a system of equations?
Three main methods: Substitution (solve one equation for a variable, substitute into the other), Elimination (add/subtract equations to eliminate a variable), or Matrices (Gaussian elimination, Cramer's rule). For 2 variables: 2 equations needed. For n variables: n independent equations.
What is Newton's method?
An iterative formula for finding roots: x_{n+1} = x_n − f(x_n)/f'(x_n). Starting from an initial guess, each step uses the tangent line to approximate the root. It converges quadratically (doubles accuracy each step) near the root but may diverge for poor initial guesses.
What does 'no solution' mean?
Some equations are contradictions — no value satisfies them. Example: 2x + 1 = 2x + 3 simplifies to 1 = 3, which is false. Graphically, parallel lines (same slope, different intercepts) never intersect. A system with no solution is called 'inconsistent.'
What are extraneous solutions?
False solutions introduced by algebraic operations. When you square both sides of √x = −3, you get x = 9, but √9 = 3 ≠ −3. The solution is extraneous. Always verify solutions in the ORIGINAL equation, especially after squaring, clearing denominators, or applying logarithms.
Can all polynomial equations be solved?
Not with a formula. Abel's impossibility theorem (1824) proves no general radical formula exists for degree ≥ 5. But all polynomials of degree n have exactly n roots (counting multiplicity and complex roots) by the Fundamental Theorem of Algebra. Numerical methods can approximate all roots.
What is Cramer's Rule?
A method for solving n×n linear systems using determinants. For 2 equations: x = det(A_x)/det(A), y = det(A_y)/det(A), where A_x replaces the x-column with constants. Elegant but computationally expensive (O(n!)) for large systems. Gaussian elimination (O(n³)) is faster in practice.
How do I solve absolute value equations?
For |f(x)| = a (where a ≥ 0): solve both f(x) = a and f(x) = −a. Example: |2x − 5| = 7 → 2x−5=7 or 2x−5=−7 → x=6 or x=−1. If a < 0, there's no solution since absolute values are never negative. Always check solutions in the original equation.
What is polynomial long division?
A method to divide polynomials, similar to numerical long division. Used to reduce polynomial degree or find factors. If p(a) = 0, then (x−a) is a factor (Factor Theorem). Synthetic division is a shortcut for dividing by (x−a). Used in partial fraction decomposition and root finding.
How does equation solving relate to graphing?
Solutions of f(x) = 0 are x-intercepts of y = f(x). Solutions of f(x) = g(x) are intersection points of y = f(x) and y = g(x). Graphing provides visual intuition: the number, location, and approximate value of roots. Graphing calculators let you solve equations visually when algebraic methods are difficult.

References

Related Calculators

Explore All Math Calculators

Linear to polynomial equation solving — step-by-step methods at CalculatorApp.me.

Browse Math Calculators →