It is known that the quadratic function f (x) has the maximum value f (2) = 5, and f (1) = 3

It is known that the quadratic function f (x) has the maximum value f (2) = 5, and f (1) = 3

There is a maximum f (2) = 5
So the vertex is (2,5)
So f (x) = a (X-2) & sup2; + 5
f(1)=a+5=3
a=-2
So f (x) = - 2x & sup2; + 8x-3