<s>[INST] Find the maximum or minimum value of the quadratic function. Find the maximum or minimum value of the quadratic function by completing the squares. Also, state the value of $x$ at which the function is maximum or minimum.
$y=2x^2-4x+7$
$x^2$ has a coefficient of $2$, how should I complete the squares?
 [/INST] $$y=2x^2-4x+7=2\left(x^2-2\cdot x\cdot1+1^2\right)+7-2\cdot1=2(x-1)^2+5$$
or $$2y=4x^2-8x+14=(2x)^2-2\cdot2x\cdot2+2^2+14-4=(2x-2)^2+10$$
</s>