Skip to content
OddsockLocal
Local

Root 12

Root 2
1
Root 1: 2Runs in this browser. Nothing is uploaded.

Ready

How to use

  1. Enter a, b, and c for ax² + bx + c. Include the signs. b is −3 for x² − 3x + 2.
  2. Keep a non-zero.
  3. Read the two roots. On a negative discriminant, read the real and imaginary parts.
  4. Sort the roots if you need the smaller one first. The page does not sort them.

What is Quadratic solver?

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.

Read more

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.

Use cases

  • A student checking x² − 3x + 2 against the factorisation (x − 1)(x − 2).
  • An algebra class moving from a positive discriminant to a negative one without switching tools.
  • Someone who keeps getting the sign of b wrong and wants the coefficients labeled a, b, and c.
  • A numerical check of a quadratic that should have used the stable formula instead of the textbook one.
  • A teacher showing a repeated root when the discriminant is exactly zero.

x squared minus 3x plus 2

a = 1, b = −3, c = 2.

Root 1 is 2. Root 2 is 1. Discriminant 1, two real roots. They are not sorted.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

Discriminant 9 − 8 = 1. The roots are 2 and 1, from the factorisation (x − 2)(x − 1) or from the quadratic formula.