A cubic can have just one distinct real root. For example:
y = (x − 2)(x² + 2x + 5)
x² + 2x + 5 = (x + 1)² + 4 > 0
The only real root is 2. The quadratic factor stays positive, so the cubic has the sign of x − 2. Its y-intercept is −10 and its ends have the usual positive-cubic directions.
For y = (x + 3)(x − 1)(x² + 1), the last factor is always positive. The quartic crosses at −3 and 1, is negative between them, and positive outside. Both ends rise.
A graph window may hide a distant root. Algebra, including a quadratic discriminant when useful, checks whether the sketch accounts for every real root.