Consider $x^{2}-2x+1$. Use the perfect square formula, $a^{2}-2ab+b^{2}=\left(a-b\right)^{2}$, where $a=x$ and $b=1$.
$$\left(x-1\right)^{2}$$
Rewrite the complete factored expression.
$$2\left(x-1\right)^{2}$$
Steps Using Square Of Binomial
This trinomial has the form of a trinomial square, perhaps multiplied by a common factor. Trinomial squares can be factored by finding the square roots of the leading and trailing terms.
$$factor(2x^{2}-4x+2)$$
Find the greatest common factor of the coefficients.
$$gcf(2,-4,2)=2$$
Factor out $2$.
$$2\left(x^{2}-2x+1\right)$$
The trinomial square is the square of the binomial that is the sum or difference of the square roots of the leading and trailing terms, with the sign determined by the sign of the middle term of the trinomial square.
$$2\left(x-1\right)^{2}$$
Steps Using the Quadratic Formula
Quadratic polynomial can be factored using the transformation $ax^{2}+bx+c=a\left(x-x_{1}\right)\left(x-x_{2}\right)$, where $x_{1}$ and $x_{2}$ are the solutions of the quadratic equation $ax^{2}+bx+c=0$.
$$2x^{2}-4x+2=0$$
All equations of the form $ax^{2}+bx+c=0$ can be solved using the quadratic formula: $\frac{-b±\sqrt{b^{2}-4ac}}{2a}$. The quadratic formula gives two solutions, one when $±$ is addition and one when it is subtraction.