I am trying to understand each step in order to get from $x^2-4$ to $(x-2)(x+2)$
I start from here and got this far...
$x^2-4 =$
$x*x-4 =$
$x*x+x-x-4 =$
$x*x+x-2+2-x-4 =$
$x*x+x-2+2-(x+4) =$
After this I try
$x(x-2)+2-(x+4) =$
and this clearly does not even equal the other factorings. I thought the $x$ could be factored out. I'm confused.
I know I can just insert $a^2-b^2$ into the difference of squares formula like so $(a-b)(a+b)$ but I am practicing factoring. I'm just curious to see each and every step of the factoring.
\begin{align} x^2-4&=x^2-2x+2x-4\\ &=x(x-2)+2(x-2)\\ &=(x+2)(x-2) \end{align}