Let V = the value that we want to maximize or minimize


, where 

or






That is a parabola opening upward, so it has a minimum value but no maximum
value.
Use the vertex formula to find the x-coordinate of the minimum point:


Substituting in



So the minimum value is 8, which occurs when x=2, and y = 4-x = 4-2 = 2.
Edwin