How do You Solve Quadratic Equations?

Consider the quadratic equation like x^2 + 4x + 4 , this can be solved to find the values of x.So x^2 +2x+2x+4 , x(x+2)+2(x+2) = (x+2)(x+2) , so x=-2,-2 are values of x.