Ekuation

purpose

Quadratic Equation Solver

Solve any quadratic equation ax^2 + bx + c = 0 with the quadratic formula, factoring, or completing the square. See step-by-step solutions and discriminant analysis.

Back to Equation Solver

Supports linear, quadratic, cubic, polynomial, and transcendental equations

Display complex (imaginary) roots when they exist

Quick Tips

Click to show tips

Try an Example

Pick a scenario to see how the calculator works, then adjust the values

Quadratic Equation

Solve a classic quadratic with two real roots.

Key values: x^2 - 5x + 6 = 0 · Two real roots

Linear Equation

Solve a simple linear equation for x.

Key values: 3x + 7 = 22 · Single root

Transcendental Equation

Find roots of sin(x) = x/3 using numerical methods.

Key values: sin(x) = x/3 · Numerical solution

Cubic with Complex Roots

Solve a cubic equation and show complex roots.

Key values: x^3 + x + 1 = 0 · Complex roots enabled

Documentation

The Quadratic Formula

For any quadratic equation ax2+bx+c=0ax^2 + bx + c = 0 with a0a \neq 0:

x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

This formula always works — even when factoring is impractical or the roots are irrational.


The Discriminant

The expression under the square root, Δ=b24ac\Delta = b^2 - 4ac, determines the nature of the roots:

DiscriminantRootsGraph crosses x-axis
Δ>0\Delta > 0Two distinct real rootsTwice
Δ=0\Delta = 0One repeated real rootOnce (tangent)
Δ<0\Delta < 0Two complex conjugate rootsNever

Three Solution Methods

Factoring

Find two numbers that multiply to acac and add to bb. Fastest when it works, but only for “nice” integer roots.

Completing the Square

Transform to (xh)2=k(x - h)^2 = k form. Shows the vertex of the parabola. This is how the quadratic formula itself is derived.

Quadratic Formula

Always works. Plug in aa, bb, cc and compute. Best for irrational or complex roots.


Vieta's Formulas

The roots r1r_1 and r2r_2 relate directly to the coefficients without solving:

r1+r2=bar1r2=car_1 + r_2 = -\frac{b}{a} \qquad r_1 \cdot r_2 = \frac{c}{a}

Useful for checking answers or solving problems that ask for the sum or product of roots without finding the roots themselves.


Frequently Asked Questions

What is the quadratic formula?

The quadratic formula solves any equation of the form ax2+bx+c=0ax^2 + bx + c = 0. It states x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}. It works for all quadratic equations, even when factoring is impractical.

What does the discriminant tell you?

The discriminant is the expression b24acb^2 - 4ac under the square root. If it is positive, there are two distinct real roots. If it equals zero, there is one repeated real root. If it is negative, there are two complex conjugate roots.

When should I factor instead of using the quadratic formula?

Factoring is fastest when the roots are small integers. Try factoring first by looking for two numbers that multiply to a×ca \times c and add to bb. If no obvious factors exist, use the quadratic formula directly.

Can a quadratic equation have no real solutions?

Yes. When the discriminant b24acb^2 - 4ac is negative, the equation has no real solutions. Instead it has two complex conjugate roots of the form p±qip \pm qi, where i=1i = \sqrt{-1}.

What are Vieta's formulas for quadratic equations?

Vieta's formulas relate the roots r1r_1 and r2r_2 to the coefficients without solving: the sum of roots equals ba-\frac{b}{a} and the product of roots equals ca\frac{c}{a}. These are useful for checking answers or solving problems that ask for the sum or product of roots.

Related purpose Variants

Explore more purpose options

More Math Calculators

Explore the category

Calculator Search

Search and find calculators