Help help help help help help help help please please please please help help

We are given the following function:
[tex]y=x^2+2x-8[/tex]This is a quadratic equation since the greater exponent of the independent variable "x" is 2.
Every quadratic equation follows the general form:
[tex]y=ax^2+bx+c[/tex]To put it in the form:
[tex]y=(x-h)^2+k[/tex]We will use a technique called "completing the square". This consist in adding and subtracting the following term:
[tex](\frac{b}{2a})^2[/tex]In the given equation these terms are:
[tex]\begin{gathered} a=1 \\ b=2 \end{gathered}[/tex]Therefore, the term we need to use is:
[tex](\frac{2}{2(1)})^2=1[/tex]Therefore, we need to add and subtract 1 to the given function:
[tex]y=x^2+2x-8+1-1[/tex]Associating terms terms we get:
[tex]\begin{gathered} y=x^2+2x+1+(-8-1) \\ y=(x^2+2x+1)-9 \end{gathered}[/tex]Now we factor the expression inside the parenthesis using trinomial factoring. We take the square roots of the first and third term, we add them and we square them, like this:
[tex]y=(x+1)^2-9[/tex]And thus we have put the function in the desired form where:
[tex]\begin{gathered} h=-1 \\ k=-9 \end{gathered}[/tex]