To complete the square for the quadratic function \( y = -x^2 + 8x + 7 \), we will follow these steps:
-
Factor out the coefficient of \(x^2\) (which is \(-1\)) from the first two terms: \[ y = -1(x^2 - 8x) + 7 \]
-
Complete the square for the expression inside the parentheses \(x^2 - 8x\). To do this, we take half of the coefficient of \(x\) (which is \(-8\)), square it, and then add and subtract it:
- Half of \(-8\) is \(-4\), and squaring it gives \(16\).
Now we add and subtract \(16\) inside the parentheses: \[ y = -1(x^2 - 8x + 16 - 16) + 7 \] Simplifying the expression inside the parentheses gives: \[ y = -1((x - 4)^2 - 16) + 7 \]
-
Distribute the \(-1\): \[ y = -1(x - 4)^2 + 16 + 7 \] \[ y = -1(x - 4)^2 + 23 \]
Now, the function is in the vertex form \(y = a(x - h)^2 + k\), where \((h, k)\) is the vertex.
From the completed square form:
- The vertex \((h, k)\) is \((4, 23)\).
The axis of symmetry can be found using the \(x\)-coordinate of the vertex:
- The axis of symmetry is \(x = 4\).
Thus, the vertex is \((4, 23)\) and the axis of symmetry is \(x = 4\).