A quadratic equation can be rewritten as
[tex]ax^2+bx+c=a(x-x_1)(x-x_2)[/tex]where x1 and x2 represents the roots of the quadratic equation.
To find those roots we can use the quadratic equation. Given a quadratic equation with the following form
[tex]ax^2+bx+c=0[/tex]its roots are given by
[tex]x_{\pm}=\frac{-b\pm\sqrt{b^2-4ac}}{2a}[/tex]In our first quadratic equation, we have
[tex]x^2+5x-14[/tex]therefore, its roots are
[tex]\begin{gathered} x_{\pm}=\frac{-(5)\pm\sqrt{(5)^2-4(1)(-14)}}{2(1)} \\ =\frac{-5\pm\sqrt{25+56}}{2} \\ =\frac{-5\pm9}{2} \\ \implies\begin{cases}x_-={-7} \\ x_+={2}\end{cases} \end{gathered}[/tex]Then, this quadratic expression can be factorized as
[tex]x^2+5x-14=(x+7)(x-2)[/tex]Using the same process for the other expression, we have
[tex]x^2+7x+6=(x+1)(x+6)[/tex]