A real-coefficient cubic polynomial has degree three and consequently has three complex roots when counted with algebraic multiplicity. The fundamental theorem of algebra guarantees that count. Because complex nonreal roots occur in conjugate pairs for polynomials with real coefficients, at least one of the three roots must be real.
The number of distinct real roots depends on the coefficients. A cubic may have three distinct real roots, one distinct real root together with two nonreal roots, or two distinct real roots when one real root has multiplicity two. A triple root is also possible.
Repeated roots are therefore a central part of a complete classification. The derivative supplies a useful geometric interpretation. For f(x) = a*x^3 + b*x^2 + c*x + d, the derivative is f'(x) = 3*a*x^2 + 2*b*x + c.
A repeated root r satisfies both f(r) = 0 and f'(r) = 0. The converse also holds: a common zero of a polynomial and its derivative is a multiple root. A cubic with three distinct real roots has two distinct stationary points, with the local maximum and local minimum lying on opposite sides of the horizontal axis. When a stationary point falls exactly on the axis, a repeated root is present.
However, a cubic can have stationary points without possessing three distinct real roots; their heights relative to zero matter. A particularly effective mathematical transformation removes the squared term. It preserves the root relationships while producing a simpler equation.
The resulting depressed cubic has the form y^3 + p*y + q = 0. Its parameters p and q determine a quantity often called the Cardano discriminant or Cardano radicand. Care is required with terminology.
The conventional polynomial discriminant and Cardano's quantity have opposite signs for a real cubic with nonzero leading coefficient. Therefore, a statement about a positive discriminant is ambiguous unless the convention is specified. Numerical computation adds another layer of difficulty near repeated roots.
When distinct roots are extremely close, floating-point rounding may make it difficult to classify the exact multiplicity using ordinary numerical comparisons. Symbolic factorization can establish exact multiplicity when the coefficients permit exact arithmetic. Approximate methods require tolerance choices and error analysis.
These principles characterize cubic equations generally. They do not establish which algorithms, precision settings or result formats are implemented by an unverified calculator engine.