Hello,

you've got the 2 zeros of the quadratic function. That means the vertex of the corresponding parabola is at .

If I understand your problem correctly the maximum is 2 and that is only possible if this is the y-value of the vertex. Thus:

The complete equation of the quadratic function is now: