Take a typical example like Y = (X-1)(X-2)(X-3)(X-4)(X-5). First of all note that the graph has height Y = 0, i.e. it crosses the X axis, exactly when X = 1,2,3,4 and 5. I.e. the “roots” are exactly 1,2,3,4 and 5. So we just have to understand the behavior in between those points. The simplest thing would be that the graph crosses the X axis at each of these points. Hence, since there is an odd number of these points, it must start out on one side of the X axis and end up on the opposite side. Since Y is positive for very positive X, it must end up above the X axis and hence must start out below it.Now, to see that this is indeed what happens, look at the value of each factor at a given value of X, and let X move along the X axis from left to right, and ask what is the value of Y.Now if X is less than a, then the factor (X-a) is negative, while if X is greater than a then (X-a) is positive. So as X moves along the X axis from left to right, each of the 5 factors gradually changes from negative to positive. At each stage, the sign of Y depends on the number of negative factors (X-a), i.e. on how many of the roots is larger than the given value of X.I.e. for X less than 1, all 5 factors (X-1), (X-2), (X-3), (X-4), (X-5), are negative, so their product is also negative, hence Y is negative everywhere to the left of X=1. Then as X moves to the right, and passes slightly to the right of 1, the factor (X-1) becomes positive, but all 4 of the other factors are still negative. So for X between 1 and 2, there is one positive factor and 4 negative factors, so the product Y is positive and the graph is above the X axis.In this way we can see that each time X passes just to the right of another root, the number of negative factors becomes one less and the sign of Y changes, so the graph crosses the X axis. Hence with an odd number of factors, the graph styartts out on one side of the X axis and ends up on the opposite side.Now let the roots move as well, say let the first root X=1 get larger, becoming 1+e, as e grows from 0 to 1, i.e. let the first root grow from 1 to 2, so that the first two roots become equal. As X grows closer and closer to 2, the amount by which the graph rises above the X axis between the first two roots shrinks, so the the little bump between the first two roots shrinks down the meet the X axis when the first two roots become equal.When the first two roots become equal and our equation becomes
Y = (X-2)(X-2)(X-3)(X-4)(X-5) = (X-2)^2(X-3)(X-4)(X-5), we can see that now, that if we again let X grow from left to right, now Y is negative for X less than 2, but as X crosses from below 2 to above 2, both of the factors (X-2) change sign. Then there are two positive and three negative factors, so the product is still negative, forcing the graph to “bounce” when it hits the X axis and go back below it, until X reaches 3. Thus the graph bounces at X=2 but crosses the X axis at every later root, again ending up above the X axis after X passes above 5.Any combination of combined roots for a polynomial of degree 5 (and led coefficient = 1), can be visualized by pulling on this graph like a string so that various roots come together.If we keep pulling down on the graph after the first two roots come together, we can pull the first bump of the graph down below the X axis entirely. Then the product of the first two factors goes from (X-2)^2 to (X-2)^2 + e^2 = (X-2-ei)(X-2+ei). I.e. the first two roots go from the real pair 2,2 to the complex pair 2+ei, 2-ei. These two roots do not appear on the real graph, and we lose one “bump” from the real graph. We can do this once more, making another pair of real roots complex, but we then must still have one real root left. The graph of the 5th degree polynomial thus can cross the X axis only once. In fact we can even eliminate all 4 bumps from the graph by pulling on it, until the graph just goes consistently up, like that of Y = X^5 + 1 = (X+1)(X^4-X^3+X^2-X+1).