Show the worked solution\[\begin{aligned} f(x)&=xe^{-x}\\ f'(x)&=e^{-x}-xe^{-x}=0\\ e^{-x}(1-x)&=0\\ x&=1\\ f''(x)&=-e^{-x}-e^{-x}+xe^{-x}\\ &=e^{-x}(x-2)\\ f''(1)&=e^{-1}(-1)=-e^{-1} \lt 0 \end{aligned}\]Hence f(x) has maximum value at x=1
\(f(1)=1\cdot e^{-1}=e^{-1}\)
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com