Polynomial function/Degree d/Maximal number of maxima and minima/Exercise

Let

be a polynomial function of degree . Let be the number of local maxima of and the number of local minima of . Prove that if is odd then and that if is even then