$f(x) = 3 + 4x - x^2$ on $x \in [0,1]$
Ritika Verma, AIR 25, 2023
$\Rightarrow x = 2$
$x = 2 \notin [0,1]$
$\therefore f(x)$ is monotonic on $x \in [0,1]$
$f(0) = 3$
$f(1) = 3 + 4 - 1 = 6$
$\therefore f$ is monotonically increasing
$\therefore$ maximum value $= 6$ at $x = 1$
minimum value $= 3$ at $x = 0$.