Enter data
Education- By the discriminant
- Completing the square
- f(x) > 0
- f(x) ≥ 0
- f(x) < 0
- f(x) ≤ 0
Result
CalcCoreWhat the quadratic equation calculator does
The calculator solves the quadratic equation ax² + bx + c = 0 and works in five modes: solving (roots by the discriminant or by completing the square), the vertex and graph of the parabola, factoring, building an equation from its roots and solving quadratic inequalities. The coefficients can be whole numbers, decimals or fractions. The roots are shown exactly: as fractions, radicals (for example (-1 + √5)/2) or complex numbers, and as a decimal approximation.
How to solve a quadratic equation with the discriminant
First compute the discriminant D = b² - 4ac. If D > 0, there are two real roots x = (-b ± √D)/(2a). If D = 0, there is one root x = -b/(2a). If D < 0, there are no real roots, and the complex roots are (-b ± i√|D|)/(2a).
Example: 2x² - 3x - 5 = 0 gives D = 9 + 40 = 49, √D = 7, so x₁ = (3 + 7)/4 = 2.5, x₂ = (3 - 7)/4 = -1. For x² + x - 1 = 0 the discriminant 5 is not a perfect square, so the roots stay in radicals: x = (-1 ± √5)/2 ≈ 0.618034 and -1.618034. For x² + 2x + 5 = 0 the discriminant is -16, with complex roots -1 ± 2i. For x² - 6x + 9 = 0 the discriminant is 0 and the root is x = 3.
Vertex, graph and factoring
The vertex of a parabola is x₀ = -b/(2a), y₀ = c - b²/(4a), and the axis of symmetry is x = x₀. For x² - 4x + 3 the vertex is (2; -1) and the roots are 1 and 3. For a > 0 the branches go up, for a < 0 down.
If the roots x₁ and x₂ are known, the trinomial factors as ax² + bx + c = a(x - x₁)(x - x₂). For example, x² - 5x + 6 = (x - 2)(x - 3). By Vieta's theorem x₁ + x₂ = -b/a and x₁·x₂ = c/a, so the equation with roots 2 and -3 is x² + x - 6 = 0.
Quadratic inequalities
To solve ax² + bx + c > 0, find the roots and look at the sign of a: outside the roots the trinomial has the sign of a, between them the opposite sign. For x² - 5x + 6 > 0 the roots are 2 and 3 and a > 0, so the solution is (-∞; 2) ∪ (3; +∞), and for x² - 5x + 6 < 0 it is (2; 3).
All calculations are exact: the coefficients are kept as rational numbers and the roots are written as fractions and radicals.
FAQ
What is a quadratic equation?
An equation of the form ax² + bx + c = 0 with a ≠ 0. The numbers a, b, c are the coefficients and c is the constant term.
How do I find the discriminant?
D = b² - 4ac. For 2x² - 3x - 5 = 0 it is (-3)² - 4·2·(-5) = 9 + 40 = 49.
How many roots does a quadratic equation have?
Two different real roots when D > 0, one (double) when D = 0 and no real roots when D < 0. Over the complex numbers there are always roots.
How do I solve an incomplete quadratic equation?
If c = 0, factor out x: x(ax + b) = 0, so x = 0 or x = -b/a. If b = 0, then x² = -c/a and the roots are ±√(-c/a) when -c/a ≥ 0.
What if the discriminant is negative?
There are no real roots. The calculator shows the complex roots (-b ± i√|D|)/(2a) where i² = -1.
How do I complete the square?
Divide by a, move c/a to the right and add (b/(2a))² to both sides so that the left side becomes (x + b/(2a))². Then take the square root. The “Completing the square” method shows these steps.
How do I find the vertex of a parabola?
x₀ = -b/(2a), y₀ = c - b²/(4a). For x² - 4x + 3 the vertex is (2; -1).
What is Vieta's theorem?
For the roots x₁, x₂ of ax² + bx + c = 0 we have x₁ + x₂ = -b/a and x₁·x₂ = c/a. It is handy for checking and for guessing whole roots.
How do I factor a quadratic trinomial?
Find the roots and write a(x - x₁)(x - x₂). For x² - 5x + 6 the roots are 2 and 3, so (x - 2)(x - 3). If D < 0, the trinomial does not factor over the reals.
How do I build a quadratic equation from its roots?
For roots x₁, x₂ and the coefficient a: a(x² - (x₁ + x₂)x + x₁x₂) = 0. For the roots 2 and -3 we get x² + x - 6 = 0.
How do I solve a quadratic inequality?
Find the roots of the related equation, take the sign of a into account and pick the intervals where the trinomial has the required sign. For x² - 5x + 6 > 0 the answer is (-∞; 2) ∪ (3; +∞).
Can I enter fractions and decimal coefficients?
Yes: 0.5, -2.5, 3/4. The calculator works exactly with rational numbers, so the roots come out as fractions and radicals rather than rounded decimals.