Skip to content
EN
  • Español
  • English
Advertisement

Equation solver: quadratic, cubic and systems of equations

Solve quadratic equations (with complex roots), cubic equations and systems of two equations in two unknowns, with the discriminant, the vertex and the graph.

Enter the data: the results are calculated instantly.

—
—
—
Real root x₁—
Real root x₂—
Real root x₃—
Complex roots: real part—
Complex roots: ± imaginary part (i)—
Discriminant (b² − 4ac)—
Vertex of the parabola: x—
Vertex of the parabola: y—
Solution x—
Solution y—
Determinant (a₁b₂ − a₂b₁)—
Coefficient b of the equation—
Coefficient c of the equation—

Use this calculator for reference only, as we cannot guarantee that the results are free of errors.

Disclaimer

https://dyaii.es/en/equation-solver/

Advertisement

Choose the type of equation and type its coefficients: you get the roots (real or complex), the discriminant, the vertex and the graph. It also solves systems of two equations in two unknowns and, the other way round, gives you the quadratic equation that has the roots you choose.

Quadratic equation

ax² + bx + c = 0 → x = (−b ± √(b² − 4ac)) / 2a

The discriminant Δ = b² − 4ac tells the kind of roots: Δ > 0, two different real roots; Δ = 0, one double root; Δ < 0, two complex conjugate roots, re ± im·i. The parabola has its vertex at x = −b / 2a.

Cubic equation

ax³ + bx² + cx + d = 0 always has at least one real root. The calculator reduces it to the form t³ + pt + q = 0 and uses the trigonometric method when there are three real roots and Cardano's formula when there is one real and two complex roots.

Advertisement

System of two equations

x = (c₁b₂ − c₂b₁) / Δ · y = (a₁c₂ − a₂c₁) / Δ · Δ = a₁b₂ − a₂b₁

This is Cramer's rule. If the determinant Δ is zero, the lines are parallel (no solution) or the same line (infinitely many solutions).

Several ways to solve them

  • Quadratic: the general formula; factoring by finding two numbers that add up to −b/a and multiply to c/a (x² − 5x + 6 = (x − 2)(x − 3)); completing the square, (x + b/2a)² = Δ / 4a²; or, when b or c is missing, solving directly (x² = −c/a, or x(ax + b) = 0).
  • Checking the roots (Vieta): x₁ + x₂ = −b/a and x₁ · x₂ = c/a. For a cubic, the three roots add up to −b/a and multiply to −d/a.
  • Cubic: try the divisors of d/a (synthetic division) to find an integer root and drop to a quadratic; if there is none, Cardano or the trigonometric method.
  • Systems: Cramer (determinants), substitution (solve one unknown and plug it into the other equation), equalization (solve the same unknown in both and equate) or elimination (add the equations, multiplied so that one unknown cancels). Graphically, the solution is where the two lines cross.

Worked examples

  1. x² − 5x + 6 = 0: Δ = 25 − 24 = 1; x = (5 ± 1) / 2 → x₁ = 2, x₂ = 3. Vertex at (2.5, −0.25).
  2. x² + 2x + 5 = 0: Δ = 4 − 20 = −16; x = (−2 ± 4i) / 2 → −1 ± 2i.
  3. x³ − 6x² + 11x − 6 = 0: roots 1, 2 and 3.
  4. System 2x + 3y = 13, x − y = −1: Δ = 2·(−1) − 1·3 = −5; x = (13·(−1) − (−1)·3) / −5 = 2; y = (2·(−1) − 1·13) / −5 = 3.

Where they show up in industry

ProblemEquation
Projectile motion, fall with initial speedQuadratic in time
Liquid level in a tank of a given cross-sectionQuadratic or cubic in height
Real-gas equation of state (Van der Waals)Cubic in volume
Blending two products for a concentration and a volume2 × 2 system

Common mistakes

  • Forgetting the sign of b. In x² − 5x + 6, b = −5, and −b = +5.
  • Dividing only by 2. The denominator is 2a, not 2.
  • Zero coefficient. In x² − 9 = 0 there is no x term, so b = 0: do not leave it blank.
Advertisement

Frequently asked questions

What is the quadratic formula?

x = (−b ± √(b² − 4ac)) / (2a). For x² − 5x + 6 = 0: x = (5 ± √1) / 2, that is, 2 and 3.

What does the discriminant tell you?

If b² − 4ac is positive there are two different real roots; if zero, a double root; if negative, two complex conjugate roots.

How do you solve a system of two equations?

By substitution, elimination or determinants (Cramer’s rule): x = (c₁b₂ − c₂b₁) / (a₁b₂ − a₂b₁).

Does a cubic equation always have a real solution?

Yes: with real coefficients it has at least one real root; the other two are real or complex conjugates.

Related calculators

Share

WhatsApp X LinkedIn Telegram Email
Advertisement

Install Diseño y automatización de instalaciones industriales on your phone

All the calculators one tap away, full screen, like an app. It takes no space and is always up to date.