Find discriminant of quadratic equation:
$$D=(4)^2-4\cdot2\cdot2=16-16=0$$
Discriminant is equal to zero, so there is only one real solution of the equation:
$$x=\dfrac{4}{2\cdot2}=1$$

Solution of quadratic equations.
A quadratic equation is any equation having the form \(ax^2+bx+c=0\) where \(x\) represents an unknown, and \(a,b\) and \(c\) represent known numbers such that \(a\) is not equal to 0.
There are two stages in solving quadratic equations.
1) Find discriminant using formula \(D=b^2-4ac\)
2) Check the sign of discriminant:
2.1) If \(D>0\), then equation has two (unequal) real solutions \(x_{1,2}=\dfrac{-b\pm\sqrt{D}}{2\cdot a}\)
2.2) If \(D=0\), then equation has two (equal) real solutions \(x=\dfrac{-b}{2\cdot a}\)
2.3) If \(D<0\), then equation has no real solutions.