Solve
for the values of where , using completing the square.
Factor the leading coefficient out of the first two terms.
Only the and terms go inside the bracket; the constant stays outside, which is what keeps the bookkeeping straight.
Complete the square inside the bracket. Half the linear coefficient is , and its square is :
Distribute the leading coefficient back.
This is vertex form: the parabola peaks at . Because the maximum is positive and the parabola opens downward, two real roots must exist.
Solve the vertex form for .
Evaluate and check.
Vieta confirms both: the sum should equal , and ; the product should equal , and . The roots are symmetric about the vertex abscissa , exactly as vertex form predicts.
Need to solve a different problem like this? Open the solver →