Formula: Cubic Polynomial Mathematical Identity
- coeffA: Coeff A (numeric parameter)
- coeffB: Coeff B (numeric parameter)
- coeffC: Coeff C (numeric parameter)
- coeffD: Coeff D (numeric parameter)
- evalX: Eval X (numeric parameter)
Compute P(x₀), tangent slope P′(x₀), concavity P″(x₀), and inflection x = −b/(3a).
Because x = −b/(3a) depends only on the coefficients a and b, not on where you evaluate. Every cubic has exactly one inflection point, a fixed feature of the curve. Moving Eval X changes P, P′ and P″ at that location, but the inflection line only moves if you edit Coeff A or Coeff B. When P″(x₀) shows 0, your x₀ is sitting on it.
Not in the result panel, despite the name. It lists P(x₀), P′(x₀), P″(x₀) and the inflection point. Work Δ out yourself with 18abcd − 4b³d + b²c² − 4ac³ − 27a²d², writing each of the five terms with its sign. On the default coefficients it comes to minus six hundred and seventy one, a negative number, meaning one real root.
Then the cubic has a repeated root and every root is real. Either two roots coincide, as in x³ − 3x + 2 with a double root at 1, or all three do, as in (x − 2)³. On the calculator, a repeated root shows up as an x₀ where P and P′ are both 0 at the same time.
No. A cubic with real coefficients always crosses the x-axis at least once, because it heads to opposite infinities on each side. A negative discriminant still means one real root, just with the other two complex. You can locate that real root on this calculator by finding two x₀ values where P(x₀) changes sign, as P(−1) = −1 and P(0) = 5 do on the default.
No. The sign only tells you how many real roots there are and whether any repeat. It says nothing about their location. To place them, combine it with the values this calculator gives: look for x₀ inputs where P(x₀) changes sign, then refine with a Newton step using P(x₀) and P′(x₀). The turning points also help, since real roots fall between or beyond them.
The engine substitutes 1 for a zero leading coefficient, so you get the default results back with no warning. A zero a makes the expression a quadratic, which has no inflection point and no cubic discriminant. For bx² + cx + d, use the quadratic discriminant c² − 4bd instead; the cubic formula with a = 0 reduces to b² times that value.
Solve P′(x) = 3ax² + 2bx + c = 0 with the quadratic formula. If 4b² − 12ac is positive there are two turning points, spaced evenly around the inflection point. On the default they fall near 0.423 and 1.577. You can confirm each one by entering it as Eval X and checking that the slope line reads close to 0.
The curve is concave down at x₀, bending like the top of a hill. On the default, P″(0) = −6, so the stretch left of x = 1 curves downward and contains the local maximum. A positive value, like the 6 at x₀ = 2, means concave up, the shape around a local minimum. Zero marks the switch between the two.
With b = −3 and c = 2, the derivative's discriminant 4b² − 12ac equals 36 − 24a. At a = 1.5 that is zero, so the local maximum and minimum merge into one flat point at the inflection x = 0.667. Above 1.5 the derivative never reaches zero and the cubic climbs continuously. The preset's slope of 8 at x₀ = 2 reflects that steeper shape.
Yes. Any real values work for b, c, d and x₀, and a can be any non-zero number. A negative a flips the curve so it falls to the right; with a = −1 and the other defaults, P(2) is −11 and the inflection moves to −1. Fractions should be entered as decimals, and rounding happens only in the display.
The engine computes in standard floating point and the panel rounds to three decimals, while the sentence under it shows four. For polynomial values that is plenty. If you are checking an exact root, a P(x₀) of 0 on screen may hide a tiny remainder, so substitute the value by hand when exactness matters, such as in a factoring exercise.
The default polynomial is P(x) = x³ − 3x² + 2x + 5, entered as a = 1, b = −3, c = 2 and d = 5, and it is evaluated at x₀ = 2. The headline is P(x₀) = 5. Substituting by hand shows why: 8 − 12 + 4 + 5 leaves exactly 5.
Under it sit three more lines. The first derivative slope is 2, the second derivative is 6, and the inflection point sits at x = 1. Each comes from a different formula, and each answers a different question. P(x₀) is the height of the curve. P′(x₀) = 3ax₀² + 2bx₀ + c is how steeply it is rising at that spot, here 12 − 12 + 2 = 2. P″(x₀) = 6ax₀ + 2b says which way it is bending, here 12 − 6 = 6. The inflection point does not depend on x₀ at all; it is a property of the whole curve.
So if you only change Eval X, the last line stays at 1 no matter what you type. That catches people out the first time. They move x₀ around, watch three values change, and wonder whether the fourth is broken. It is not. It only moves when a or b moves.
Running the calculator at a few points on the default cubic gives a feel for its shape. At x₀ = 0 the value is 5, the slope is 2 and P″ is −6, so the curve is climbing but bending downwards. At x₀ = 1 the value is again 5, the slope has turned negative at −1, and P″ is exactly 0. At x₀ = 2 the slope is back to +2 and P″ is +6, bending upwards.
That zero at x₀ = 1 is the inflection point showing up from the other direction. Whenever P″(x₀) reads 0, you are standing on the inflection point, and the fourth line will show the same x.
Further left, at x₀ = −1, the value drops to −1 while the slope jumps to 11. A cubic with a positive leading coefficient always runs off to minus infinity on the left and plus infinity on the right, so a negative value somewhere to the left is guaranteed. Large slopes far from the middle are normal too; the 3ax² term in the derivative grows quickly.
A sign change in P(x₀) between two inputs is the most useful thing you can spot here. P(−1) = −1 and P(0) = 5, so the curve crosses the x-axis somewhere between them. That is a real root, found without solving anything.
The inflection line, x = −b/(3a), is also the centre of symmetry of every cubic. Turn the graph half a turn about the point (1, 5) on the default and it lands on itself. That is why P(0) and P(2) are both 5: they sit one unit either side of the centre, and the default happens to have P(1) = 5 as well.
The calculator does not list turning points, but you can find them from the derivative it shows. Set P′(x) = 3ax² + 2bx + c to zero and solve the quadratic. Its discriminant is 4b² − 12ac. On the default that is 36 − 24 = 12, which is positive, so the cubic has a local maximum and a local minimum. They sit at x = 1 ± 1/√3, roughly 0.423 and 1.577, placed evenly either side of the inflection point at 1.
Plugging those back in, the local maximum is about 5.385 and the local minimum about 4.615. Both are above zero. That single fact tells you the curve crosses the axis only once, on the far left, which agrees with the sign change between −1 and 0 found above.
If 4b² − 12ac is zero, the two turning points merge into the inflection point and the curve flattens there for an instant. If it is negative, there are no turning points and the cubic rises (or falls) the whole way across.
The page title promises a discriminant, but the result panel shows no line for it, so you need to compute it yourself from the same four coefficients. The formula has five terms, and the safest way is to write each one down separately with its sign before adding.
Start with something small. For x³ − x, the coefficients are a = 1, b = 0, c = −1, d = 0. Every term containing b or d vanishes, leaving only −4ac³ = −4 × 1 × (−1) = 4. A positive result. The roots are −1, 0 and 1, three distinct real numbers, which is what a positive discriminant predicts.
Now the default, a = 1, b = −3, c = 2, d = 5. The terms are 18abcd = minus five hundred and forty, −4b³d = plus five hundred and forty, b²c² = 36, −4ac³ = −32, and −27a²d² = minus six hundred and seventy five. The first two cancel exactly, and the total is minus six hundred and seventy one. Negative.
Two habits prevent most errors. Cube negative numbers carefully: (−3)³ is −27, so −4b³d becomes positive. And square before multiplying in the last term, so 27a²d² uses d² = 25, not d = 5.
For a real cubic the sign of Δ sorts the roots into three cases. Positive means three distinct real roots. Zero means at least two roots coincide, and all roots are real. Negative means one real root and a pair of complex conjugate roots.
The default's negative discriminant matches what the turning points showed: both the local maximum and minimum sit above the axis, so the curve only crosses once. Running Eval X at −0.9 and −0.91 narrows the crossing to near −0.904. The other two roots are complex and never appear on the graph.
For the zero case try x³ − 3x + 2, which factors as (x − 1)²(x + 2). The −4ac³ term and the −27a²d² term are equal and opposite, each one hundred and eight in size, and nothing else survives, so Δ = 0. Enter it with Eval X = 1 and the calculator shows P = 0 and P′ = 0 together. A root where the slope is also zero is the repeated root, the curve touching the axis instead of crossing it.
For the negative case with no turning points at all, x³ + x gives Δ = −4. Its only real root is 0; the other two are ±i.
The two comparison scenarios keep b, c, d and x₀ fixed and only change the leading coefficient. That shifts every line, including the inflection point, because −b/(3a) has a in the denominator.
With a = 0.6 the value at x₀ = 2 falls to 1.8, the slope turns negative at −2.8, P″ drops to 1.2, and the inflection point moves right to 1.667. A negative slope at 2 tells you x₀ now sits between the two turning points, on the downhill stretch. Solving P′ = 0 puts them near 0.376 and 2.958.
With a = 1.5 the value rises to 9, the slope to 8, P″ to 12, and the inflection point moves left to 0.667. This preset sits on a boundary. The derivative 4.5x² − 6x + 2 has discriminant 36 − 36 = 0, so the two turning points have merged into the inflection point at 0.667. Any a above 1.5 with these other coefficients gives a cubic that rises the whole way, with no local maximum or minimum.
Both presets still have a negative Δ and a single real root. Shrinking a makes the dip between the turning points deeper, but on these coefficients not deep enough to reach the axis.
If you type 0 for Coeff A, the calculator quietly treats it as 1 and returns exactly the default answers, P = 5, slope 2, P″ = 6, inflection 1. Nothing on screen warns you. With a = 0 the expression is a quadratic, not a cubic, and there is no inflection point, so −b/(3a) would be a division by zero. Read any a = 0 result as invalid.
For the discriminant, setting a = 0 in the formula leaves −4b³d + b²c², which factors as b²(c² − 4bd). That is b² times the familiar quadratic discriminant for bx² + cx + d. If you really have a quadratic, use that instead.
Missing terms must be entered as zero, not left blank in your head. x³ − x has b = 0 and d = 0. Order matters too: Coeff B is always the x² coefficient, even if your equation was written with terms shuffled. Rearranging something like 2x + x³ = 7 into standard form first, as x³ + 0x² + 2x − 7, avoids sign mistakes on d.
Decimal coefficients are fine. The interpretation line rounds to four decimals, so 1.667 on the panel is shown as 1.6667 in the sentence underneath.
The two top lines are exactly what one step of Newton's method needs: x₁ = x₀ − P(x₀)/P′(x₀). On the default, start from x₀ = −1, where the calculator gives P = −1 and P′ = 11. The next guess is −1 + 1/11, about −0.909. Feed that back in and the value is already close to zero, near the true root at about −0.904.
The factor theorem works the same way in reverse. If P(x₀) comes out as exactly 0, then (x − x₀) divides the polynomial and you can reduce the cubic to a quadratic. Try integer divisors of d over divisors of a first; with d = 5 that means ±1 and ±5, none of which gives zero on the default, which fits a real root near −0.904.
Newton's method can misbehave near a turning point, where P′ is close to zero and the step shoots off. If the slope line reads near 0, pick a different starting x₀.