Inputs
Root 12
Ready
The equation x² − 3x + 2 = 0 factors as (x − 2)(x − 1) = 0, so the roots are 2 and 1. The page solves ax² + bx + c = 0 from the coefficients. Here a is 1, b is −3, and c is 2. The discriminant is b² − 4ac, which is 9 − 8, so 1. A positive discriminant means two real roots. Zero would mean a repeated real root. A negative discriminant means a complex pair.
The roots are computed with the stable form, not the schoolbook version that subtracts two close numbers and loses digits. That is why Root 1 can be the larger one: the sample prints 2 and then 1, not sorted small to large. If you need them in order, sort them yourself. The coefficient a cannot be 0, because then the equation is a straight line, not a quadratic.
When the discriminant is negative the page prints a real part and an imaginary part, as p ± qi. It does not stop at "no real solution". Complex roots still satisfy the equation if you allow i, where i squared is −1.
a = 1, b = −3, c = 2.
Root 1 is 2. Root 2 is 1. Discriminant 1, two real roots. They are not sorted.
Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.
Discriminant 9 − 8 = 1. The roots are 2 and 1, from the factorisation (x − 2)(x − 1) or from the quadratic formula.
The roots are complex. The page prints them as a real part plus or minus an imaginary part. There is no real number that satisfies the equation in that case.
The solver uses a numerically stable arrangement of the quadratic formula. It does not sort. For this equation, 2 is reported before 1.
The equation is no longer quadratic. The page rejects a = 0 rather than silently solving a linear equation.
Yes. For x² − 3x + 2 the linear coefficient is −3, not 3. A flipped sign gives the roots of a different equation.