For (y = ax^2 + bx + c) with (a \neq 1):
Step 1: Factor (a) out of the (x^2) and (x) terms:
Step 2: Complete the square inside the bracket. Here (p = \frac{b}{2a}) (half of (b/a)):
Step 3: Simplify to get (y = a(x + p)^2 + q).
The turning point is ((-p, q)).
Write (y = x^2 - 4x + 7) in the form ((x + p)^2 + q).
(p = \frac{-4}{2} = -2), so we need ((x - 2)^2)
(x^2 - 4x = (x - 2)^2 - 4)
(y = (x - 2)^2 - 4 + 7 = (x - 2)^2 + 3)
Turning point: (2, 3)
Write (y = 2x^2 + 12x + 5) in the form (a(x + p)^2 + q).
Factor out 2: (y = 2(x^2 + 6x) + 5)
Complete square: (x^2 + 6x = (x + 3)^2 - 9)
(y = 2[(x + 3)^2 - 9] + 5 = 2(x + 3)^2 - 18 + 5 = 2(x + 3)^2 - 13)
Turning point: (−3, −13)
A squared term is always (\geq 0). So:
This can be used to prove minimum/maximum values and inequalities.