Skip to main content
Calnex LogoCalnex
Math

Equation Solver

Solve one quadratic equation or a two-variable linear system from numeric coefficients and check the roots or solution values.

Solutionx₁ = 2.0000 x₂ = 1.0000 View results

Real-time Results

System of Equations
1x² + (-3)x + (2) = 0
Coefficient Determinant D
1.0000
Solution Type
Two distinct real roots
Solution
x₁ = 2.0000 x₂ = 1.0000

Solution Steps

Step-by-step solution process

ItemValue
Step 1: Identify the quadratic equation

Identify the standard form of the quadratic equation to solve.

1x² + (-3)x + (2) = 0
Step 2: Calculate discriminant Δ = b² - 4ac

Calculate the discriminant to determine the nature of roots.

Δ = (-3)² - 4 × (1) × (2) = 9 - 8 = 1
Step 3: Calculate two distinct real roots

Since Δ > 0, the equation has two distinct real roots.

x₁ = (-(-3) + √1) / (2 × 1) = (3 + 1.0000) / 2 = 2.0000 x₂ = (-(-3) - √1) / (2 × 1) = (3 - 1.0000) / 2 = 1.0000

How it works

This solver answers two narrow questions: what are the roots of a single quadratic equation, and what is the unique solution of two linear equations in two unknowns? In quadratic mode you enter the numbers a, b and c for ax² + bx + c = 0, with a not equal to zero. In linear-system mode you enter a₁x + b₁y = c₁ and a₂x + b₂y = c₂, keeping each constant on the right side. The discriminant shows whether the quadratic has two distinct real roots, one repeated real root or a complex conjugate pair, and the determinant shows whether the linear system has a unique solution. It is not a free-form equation parser, a general polynomial solver, a matrix-rank tool or a symbolic solver, so degenerate systems and very badly scaled coefficients should be checked by hand.

Signs and the zero-form convention

Quadratic coefficients must match ax² + bx + c = 0 after all terms are on the left. If the equation is x² - 5x + 6 = 0, then b is -5, not 5. If the x term is missing, such as x² + 4 = 0, enter b = 0 rather than leaving the field blank.

Linear-system constants follow a different convention: a₁x + b₁y = c₁ keeps the constant on the right, so the equation 2x + y = 7 is entered with c₁ = 7. Do not move these constants to the left as you would for a quadratic.

What the discriminant and determinant tell you

For a quadratic, Δ = b² - 4ac. A positive Δ gives two distinct real roots, Δ = 0 gives one repeated real root, and a negative Δ gives a complex conjugate pair. A negative discriminant means no real roots, not that the equation has no solutions at all.

For the linear system, D = a₁b₂ - a₂b₁. If D is not zero, the solution is x = Dx/D and y = Dy/D using Dx = c₁b₂ - c₂b₁ and Dy = a₁c₂ - a₂c₁. If D = 0, no unique solution exists: consistent dependent equations can have infinitely many solutions, and inconsistent equations have none. The current implementation is not a general matrix-rank solver, so degenerate rows such as all-zero coefficients may be misclassified or produce an unusable parameter formula; check those cases manually.

Decimals, units and precision

The decimal-places setting formats the output from 0 to 10 decimals. Rounded values do not prove exactness, and the tool does not return symbolic fractions or exact radical forms. Zero tests for the discriminant and determinant use exact zero, so coefficients that are nearly zero or badly scaled can make results unstable. No units are attached because the inputs are pure numbers; in an applied problem the roots or solution may still need to satisfy conditions such as a positive length or whole-item quantity.

Examples and interpretation(4)

How do I solve x² - 5x + 6 = 0 from its coefficients?

Equation Type
Quadratic Equation
Coefficient a (x²)
1
Coefficient b (x)
-5
Coefficient c (constant)
6
Decimal Places
4
  1. Enter a = 1, b = -5 and c = 6 with 4 decimal places.
  2. Compute the discriminant: Δ = (-5)² - 4 × 1 × 6 = 1.
  3. Use the quadratic formula: x = (5 ± 1) / 2, giving roots 3 and 2.
Coefficient Determinant D
1.0000
Solution
x₁ = 3.0000 x₂ = 2.0000

The positive discriminant of 1 means two distinct real roots: x₁ = 3.0000 and x₂ = 2.0000. Factoring as (x - 3)(x - 2) = 0 confirms both, and substituting either value back into the original equation gives zero. The negative sign on b is essential here.

What does a zero discriminant mean for x² - 6x + 9 = 0?

Equation Type
Quadratic Equation
Coefficient a (x²)
1
Coefficient b (x)
-6
Coefficient c (constant)
9
Decimal Places
4
  1. Enter a = 1, b = -6 and c = 9.
  2. Compute Δ = 36 - 36 = 0.
  3. Apply the formula: x = -(-6) / (2 × 1) = 3.
Coefficient Determinant D
0.0000
Solution
x = 3.0000

The result is a single repeated root, x = 3.0000. The expression factors as (x - 3)², so the one distinct root has multiplicity 2; reporting it as one value rather than two different values is correct.

Does x² + 4 = 0 have no solution or complex roots?

Equation Type
Quadratic Equation
Coefficient a (x²)
1
Coefficient b (x)
0
Coefficient c (constant)
4
Decimal Places
4
  1. Enter b = 0 because the x term is absent, with a = 1 and c = 4.
  2. Compute Δ = 0 - 16 = -16.
  3. Take roots x = ±√(-16) / 2 = ±2i.
Coefficient Determinant D
-16.0000
Solution
x₁ = 0.0000 + 2.0000i x₂ = 0.0000 - 2.0000i

The negative discriminant means there is no real root, but there are two complex roots: x₁ = 0.0000 + 2.0000i and x₂ = 0.0000 - 2.0000i. Substituting yields (2i)² + 4 = -4 + 4 = 0, using i² = -1.

How do I solve and verify 2x + y = 7 and x - y = 2?

Equation Type
Linear System
Equation 1: a₁ (x coefficient)
2
Equation 1: b₁ (y coefficient)
1
Equation 1: c₁ (constant)
7
Equation 2: a₂ (x coefficient)
1
Equation 2: b₂ (y coefficient)
-1
Equation 2: c₂ (constant)
2
Decimal Places
4
  1. Enter a₁ = 2, b₁ = 1, c₁ = 7 and a₂ = 1, b₂ = -1, c₂ = 2.
  2. Compute D = 2 × (-1) - 1 × 1 = -3, Dx = 7 × (-1) - 2 × 1 = -9 and Dy = 2 × 2 - 1 × 7 = -3.
  3. Divide: x = (-9) / (-3) = 3 and y = (-3) / (-3) = 1.
Coefficient Determinant D
-3.0000
Solution
x = 3.0000 y = 1.0000

The nonzero determinant of -3 confirms a unique solution: x = 3.0000 and y = 1.0000. Substitution gives 2 × 3 + 1 = 7 and 3 - 1 = 2, so both original equations hold. If D had been zero, the system would have either no solution or infinitely many, not a single answer.

Inputs

ParameterDefinition & Valid Bounds
Equation TypeSelect the equation type to solve

Quadratic Equation · Linear System

Coefficient a (x²)Coefficient a
Coefficient b (x)Coefficient b
Coefficient c (constant)Coefficient c
Equation 1: a₁ (x coefficient)Coefficient a₁
Equation 1: b₁ (y coefficient)Coefficient b₁
Equation 1: c₁ (constant)Constant term c₁
Equation 2: a₂ (x coefficient)Coefficient a₂
Equation 2: b₂ (y coefficient)Coefficient b₂
Equation 2: c₂ (constant)Constant term c₂
Decimal PlacesNumber of decimal places

Formula

Quadratic (ax² + bx + c = 0):
Discriminant Δ = b² - 4ac
Roots: x = (-b ± √Δ) / (2a)

Linear system:
D = a1*b2 - a2*b1
Dx = c1*b2 - c2*b1
Dy = a1*c2 - a2*c1
x = Dx/D, y = Dy/D

How to use

  1. Select quadratic or linear-system mode; the other mode's fields are ignored.
  2. Move every term to the left for a quadratic, or put the constants on the right for a linear system, then enter the signed coefficients.
  3. Read the discriminant or determinant and the solution, then substitute the values back into the original equations.

Frequently asked questions

Why do I enter b = 0 instead of leaving the x coefficient blank?

Because the quadratic formula needs the actual coefficient of x. When the x term is absent, as in x² + 4 = 0, that coefficient is 0, and a blank field is not a number the formula can use.

Does a zero determinant mean the linear system has no solution?

It means there is no unique solution. Consistent dependent equations can have infinitely many solutions, while inconsistent equations have none. The current implementation is not a general matrix-rank solver and may misclassify degenerate cases, so inspect those systems manually.

Why doesn't the decimal-places setting make my result exact?

The setting only formats the displayed number of decimals, from 0 to 10, and the solver does not return symbolic fractions. Rounded values can differ slightly from the exact roots, and a rounded result is not a proof that the coefficients were entered correctly.

Can I use this solver for cubic equations, inequalities or nonlinear systems?

No. It handles one quadratic equation in one variable, or a system of two linear equations in two variables. It does not cover cubic equations, inequalities, nonlinear systems or symbolic coefficient parameters.

References

Complementary Tools

Back to MathAll Calculators
Related Tags: