Only the leading term a·xn controls the ends. The sign of a and whether the degree n is even or odd set which way each tail points.
Try: keep a > 0 and step the degree 2 → 3 → 4: even degrees send both tails the same way, odd degrees send them opposite ways.