Show the worked solution\[\begin{aligned} f(x)&=2x-x^2+3 \\ f'(x)&=2-2x=0 \\ \Rightarrow \;x &=1 \;\text{is the stationary point} \\ f''(x) &=-2 \\ f''(1) &=-2 \lt 0 \end{aligned}\]So at x=1 we have a relative maxima.
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com