Show the worked solutionOn a closed interval the maximum is at a critical point or an end point.\(f(x)=x(x-1)(x-2)=x^3-3x^2+2x\), so \(f'(x)=3x^2-6x+2=0\Rightarrow x=1\pm\dfrac{1}{\sqrt3}\). Only \(x=1+\dfrac1{\sqrt3}\approx1.577\) lies in \([1,2]\), and there \(f\approx-0.385\) (a local minimum).End points: \(f(1)=0\) and \(f(2)=0\). In fact for \(1\le x\le2\), \(x>0\), \(x-1\ge0\) and \(x-2\le0\), so \(f(x)\le0\) throughout.Maximum value \(=0\) (at \(x=1\) and \(x=2\)).Answer: 0
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com