I am trying to find local minima and maxima of the funtion and I am struggling . We can see that it should have 1 minima and 4 maxima but I am doing something wrong and I do