I have $3 = -x^2 + 4x$ and I need to solve it by factoring. According to wolframalpha the solution is $x_1 = 1, x_2 = 3$. \begin{align*} 3 & = -x^2 + 4x\\ x^2-4x+3 & = 0 \end{align*}
According to wolframalpha $(x-3) (x-1) = 0$ is the equation factored, which allows me to solve it, but how do I get to this step?
You moved everything onto the same side of the equation, which is a great start!
The next step is to understand factorization of quadratic polynomials.
Suppose you have a polynomial of the form
$$x^2 + cx + d \tag{1} $$
You want something of the form
$$ (x+a)(x+b) $$
When you expand out $(x+a) (x+b)$, you get $$ (x+a)(x+b) = x^2 + (a+b)x + ab \tag{2}$$
Now, when we compare the coefficients of (2) to (1), we see that
$$ a+b = c $$ $$ ab = d $$
That is, we need to find two numbers $a$ and $b$ that add up to $c$ and multiply into $d$.
In our case, $c$ is -4 and $d$ is 3. Now we have to think about it for a bit and do a bit of guessing and checking, but you should be able to see that $a=-3$ and $b =-1$ meets this criteria.
-3+(-1) = -4, and (-3)*(-1)=3.