This question was asked in Misc 2

x÷2 2÷x find local maxima and local minima

Anil Nair's image