This question was asked in Ex 7.10, 6
Find minima and maximam

Neeraj Gaur's image