For is a parabola. A parabola has a maximum value if and only if it is a concave-down parabola, this is: if and only if (and this already is a limitation to a).
In this case, the maximal point is at the parabola's vertex, which in this case is given by , with the y-entry being the maximal value. Well, now solve your problem.
Tonio