Formula: Quadratic Formula, Euclidean Metric & Exponential Decay
- Δ = b² − 4ac: Discriminant (>0 two real roots, =0 one repeated root, <0 complex conjugate roots)
Rounding: Rounded to 4 decimal places.
Compute real or complex quadratic roots, discriminant Δ, Cartesian slope & distance, and half-life decay.
Rounding: Rounded to 4 decimal places.
Find roots of x² − 5x + 6 = 0 and slope/distance between (1,2) and (5,10).
When b² − 4ac < 0, the parabola does not cross the real x-axis; its roots are a pair of complex conjugates a ± bi.
Because the slope uses only the four point coordinates. The page runs the quadratic solver, the slope and distance tool and the half-life tool side by side, and each reads only its own boxes. Changing a, b or c changes the roots, the discriminant and the vertex, but the slope and the decay percentage keep their own values until you edit those inputs.
x1 is computed with the plus sign in front of the square root and x2 with the minus sign. For a positive a that makes x1 the larger root, as with 3 and 2 at the defaults. For a negative a the order flips: with a = -2, b = 3 and c = 5 the page shows x1 = -1 and x2 = 2.5. The labels are positions, not rankings.
Enter b as 0. For x squared minus 2 = 0, set a = 1, b = 0 and c = -2. The discriminant is 8 and the roots are 1.4142 and -1.4142, the positive and negative square roots of 2. The vertex line shows 0, because a parabola with no linear term is symmetric about the y-axis.
No. The page rejects a = 0 with a message that the quadratic coefficient cannot be 0, because the quadratic formula divides by 2a. A linear equation bx + c = 0 has the single solution x = -c/b, which is quicker by hand. The slope and half-life tools still need a non-zero a in the form to show their results.
Mathematically it gives one repeated root, and the page shows it twice. Enter a = 1, b = -4 and c = 4 and the result reads x1 = 2 and x2 = 2 with a discriminant of 0. The parabola touches the x-axis at that single point without crossing it, and the vertex line shows the same value, 2.
It stands for the imaginary unit, the square root of -1. When the discriminant is negative, its square root is imaginary, so each root has a real part and an imaginary part. At a = 1.5 with the defaults, the page gives 1.6667 plus or minus 1.1055i. The two roots are conjugates: same real part, opposite imaginary parts.
Take the x-coordinate from the vertex line and substitute it into the original equation. At the defaults the vertex x is 2.5, and 2.5 squared minus 5 times 2.5 plus 6 equals -0.25. So the parabola's lowest point is (2.5, -0.25). If a is negative the same method gives the highest point instead of the lowest.
Divide the elapsed time by the half-life and enter the result as elapsed half-lives. If a material has a 30-year half-life and 45 years have passed, enter 1.5. The page returns 35.355%, the share of the original quantity left. Multiply that by the starting amount to get the remaining amount in whatever units you started with.
They are the same distance rounded to different precision. The supporting line rounds to three decimal places and the headline and explanation round to four. The exact value at the defaults is the square root of 80. If you need more precision for later steps, keep the four-decimal figure or carry the square root through your working.
The page rejects them with a message that identical points do not define a line or a slope, and asks for two different points. That is correct, since one point repeated twice has no direction. The quadratic and half-life results are not shown until it is fixed, so correct the coordinates rather than leaving the repeated point in place.
Yes, with two quick identities. The sum of the roots equals -b/a and the product equals c/a. At the defaults, 3 plus 2 is 5, which matches -(-5)/1, and 3 times 2 is 6, which matches 6/1. If either check fails for your own equation, recheck the signs of b and c that you entered.
This page runs three separate calculations at once, and every result line belongs to one of them. The coefficients a, b and c feed the quadratic solver and the vertex line. The two points (x1, y1) and (x2, y2) feed the slope and the distance. The elapsed half-lives box feeds the decay line on its own.
None of the three groups talks to the others. Changing b from -5 to -4 alters the roots, the discriminant and the vertex, but the slope still reads 2 and the half-life line still reads 12.5%. That is worth knowing before you start, because the headline answer strings everything together into one long sentence and it is easy to assume a connection that is not there.
So the practical way to use it is to fill in only the group you need and ignore the rest. The defaults in the other boxes do no harm. If you are only solving x squared minus 4 equals 0, the slope line will keep showing the default points, and you can simply not read it.
Each section below takes one tool, runs it with the defaults and with a few other inputs, and shows what the output means and where it can mislead.
The default equation is x squared minus 5x plus 6 = 0, so a = 1, b = -5 and c = 6. The solver computes the discriminant first: b squared minus 4ac is 25 minus 24, which is 1. Because that is positive, there are two different real roots.
It then applies the quadratic formula, x = (-b plus or minus the square root of the discriminant) divided by 2a. The square root of 1 is 1, so the roots are (5 + 1)/2 = 3 and (5 - 1)/2 = 2. The page labels them x1 = 3 and x2 = 2. You can check this by factoring: (x - 3)(x - 2) multiplies out to the original equation.
The order of the labels follows the formula, not size. x1 always uses the plus sign and x2 the minus sign. With a positive a that puts the larger root first, but try a = -2, b = 3, c = 5 and the page returns x1 = -1 and x2 = 2.5, because dividing by a negative 2a flips the order. Neither label is the bigger root by definition.
Changing a alone shows how sensitive the roots are. With a = 0.6 the discriminant grows to 10.6 and the roots spread out to 6.8798 and 1.4535. The parabola is flatter, so it crosses the axis further apart. Raise a to 1.5 and the discriminant becomes -11, which moves the equation into the complex case covered next.
A discriminant of exactly zero means the parabola just touches the x-axis. Enter a = 1, b = -4, c = 4 and the page reports a discriminant of 0 and roots x1 = 2, x2 = 2. It does not collapse them into a single value, so you will see the same number twice. That repeated root is the vertex of the parabola, and the vertex line confirms it at x = 2.
When the discriminant is negative there is no real crossing. The square root of a negative number is imaginary, so the page switches to complex form and prints the roots as a real part plus or minus an imaginary part. At a = 1.5 with the default b and c, the discriminant is -11 and the roots are 1.6667 plus or minus 1.1055i.
The real part, 1.6667, is -b divided by 2a, which is the same number the vertex line shows. The imaginary part is the square root of 11 divided by 3. A cleaner example is x squared plus 4 = 0: the page returns 0 plus or minus 2i, since the roots of that equation are exactly 2i and -2i.
If you are only interested in whether a real solution exists, the sign of the discriminant line answers it without reading the roots at all.
The fourth supporting line is the x-coordinate of the parabola's vertex, -b/(2a). At the defaults it is 2.5, exactly halfway between the two roots of 2 and 3. That is always true when the roots are real: the vertex sits on the axis of symmetry, which is the midpoint of the roots.
The page reports only the x-coordinate. To get the minimum or maximum value of the quadratic itself, substitute that x back into the equation. At the defaults, 2.5 squared minus 5 times 2.5 plus 6 gives -0.25, so the lowest point of the parabola is (2.5, -0.25). If a is negative, the vertex is the highest point instead.
Setting a to 0 makes the equation linear, and the page refuses with a message that the quadratic coefficient cannot be 0. That is correct, since the formula divides by 2a. For a linear equation bx + c = 0, the solution is simply x = -c/b, which you can work out by hand.
The second tool takes two points. At the defaults the first is (1, 2) and the second is (5, 10). The run is 5 minus 1, which is 4, and the rise is 10 minus 2, which is 8. Slope is rise over run: 8 divided by 4 gives m = 2. Distance uses the Pythagorean theorem on the same differences: the square root of 4 squared plus 8 squared, which is the square root of 80, or 8.9443.
Notice that the supporting line shows the distance to three decimal places, 8.944, while the headline and the explanation use four, 8.9443. They are the same number rounded differently, not two different answers.
Swapping the points does not change either result. Slope is (y2 - y1)/(x2 - x1), and reversing both subtractions flips both signs, so they cancel. Distance squares the differences, so the sign disappears completely. What does matter is keeping each x with its own y. Pairing x1 with y2 by mistake is the most common entry error, and it produces a slope that looks reasonable but is wrong.
Negative slopes appear when the line falls from left to right. Enter (-3, 4) and (3, -2) and the page gives m = -1 and a distance of 8.4853.
When both points share the same x-coordinate, the run is zero and slope cannot be computed by division. Set x2 to 1 while keeping the other defaults and the page shows m as the infinity symbol in the supporting line and calls the slope undefined (vertical) in the explanation. The distance still works: from (1, 2) to (1, 10) it is 8, simply the difference in y.
If both points are identical, for example (1, 2) entered twice, the page stops with a message that the two points do not define a line or a slope and asks for two different points. That is the right response: a single point repeated has no direction, so its slope is not vertical or zero but simply undefined as a question. If you see that message, check you have not copied the first point into the second row.
A horizontal line, where y1 equals y2, gives a slope of exactly 0. That is a perfectly defined slope and should not be confused with the vertical case.
The third tool is the simplest and the most often misread. It takes one number: how many half-lives have passed. It returns the percentage of the original quantity that remains, using (1/2) raised to that number. At the default of 3, that is one half times one half times one half, so 12.5% remains.
There is no box for the starting amount or the half-life duration. To use it with real quantities, divide the elapsed time by the half-life yourself and enter the ratio. A substance with an 8-day half-life observed after 12 days has gone through 1.5 half-lives, and the page returns 35.355%. Multiply that by your starting amount to get what is left.
Fractional inputs work because the formula is continuous. Large ones show how quickly decay accumulates: after 10 half-lives the page returns 0.098%, under a thousandth of the original.
Zero half-lives gives 100%, which is correct: nothing has decayed yet. A negative input is rejected with a request to enter the elapsed half-lives as zero or more. The page only projects forward, so to work out how much existed before a measurement, divide the measured amount by the decay fraction yourself.
Every result is rounded to four decimal places. For ordinary homework coefficients that is plenty. It becomes a problem when the two roots are very different in size. Take a = 1, a very large negative b and c = 1. The large root comes out close to the size of b, and the small root prints as 0. It is not really zero. The product of the roots of a quadratic equals c/a, which here is 1, so the small root is roughly one divided by the large one, and once that falls below 0.00005 it simply rounds away at four decimals.
If you need precise small roots, use that product relationship as a check. Divide c/a by the large root and you recover the small one without the loss of precision.
Rounding also affects very small discriminants. A discriminant that is genuinely tiny but positive will show two roots that look identical at four decimals. If the discriminant line shows a small non-zero number, the roots are distinct even if they print the same.