The factors of a polynomial leave visible fingerprints at its roots.
Near a root of multiplicity m, the remaining nonzero factors keep a fixed sign. An odd power changes sign through the root; an even power does not. At coincident roots, add multiplicities. The zero polynomial is a separate case.
A graph touching the axis does not imply that the root has multiplicity exactly two.