Expand the expression in the equation
$$\left(y + 1\right)^{2} = 0$$
We get the quadratic equation
$$y^{2} + 2 y + 1 = 0$$
This equation is of the form
a*y^2 + b*y + c = 0
A quadratic equation can be solved
using the discriminant.
The roots of the quadratic equation:
$$y_{1} = \frac{\sqrt{D} - b}{2 a}$$
$$y_{2} = \frac{- \sqrt{D} - b}{2 a}$$
where D = b^2 - 4*a*c - it is the discriminant.
Because
$$a = 1$$
$$b = 2$$
$$c = 1$$
, then
D = b^2 - 4 * a * c =
(2)^2 - 4 * (1) * (1) = 0
Because D = 0, then the equation has one root.
y = -b/2a = -2/2/(1)
$$y_{1} = -1$$