Original
We want to maximize the function {{MATH_117}} on the interval {{MATH_118}}.
Since this is a continuous function on a closed interval, the maximum is attained either at a critical point or an end point.
By solving the equation
{{MATH_119}}
we find that the function has at {{MATH_120}} its only critical point, since {{MATH_121}} is an end point. We evaluate the function at all the critical and end points,
{{MATH_122}}