Expanding very simple process, just open round brackets and multiply each with each for example
$(x-6)(x+3) = x^2 + 3x - 6x -18 = x^2 -3x -18$
Factoring is confused me a little for example I have $x^2 -3x -18$ I try to brute force all combinations in my mind and get the result like this $(x-6)(x+3)$ Cold you please recommend some algorithm, how to find factoring in the easy way.
Thanks.
You can do this:
$$x^2-3x-18=\left(x-\frac 32 x\right)^2-\frac 94-18$$ $$=\left(x-\frac 32 \right)^2-\frac {81}4$$ $$=\left(x-\frac 32 -\sqrt{\frac{81}4}\right)\left(x-\frac 32 x+\sqrt{\frac{81}4}\right)$$ $$=\left(x-\frac 32 -\frac{9}2\right)\left(x-\frac 32 +\frac{9}2\right)$$ $$=(x-6)(x+3).$$