Like the title says, I'm a bit confused about how the smart people of past centuries figured out that the quadratic: $$ ax^2+bx+c = a(x-x_1)(x-x_2). $$ The book I have at hand shows how to do it the other way, going from $a(x-x_1)(x-x_2)$ to $ax^2+bx+c$, and their method is based on the already proven assumption, that the roots (if they exist) of a quadratic equation can be solved using the quadratic formula (acquired by completing the square), that I'm not going to spell out here because doing it in plain text is a pain. Basically they start out with $a(x-x_1)(x-x_2)$, expand it, and substitute the quadratic formula in place of $x_1$ and $x_2$.
So my question is, how does one go from the sum form of a quadratic polynomial $ax^2+bx+c$, to the factorized form $a(x-x_1)(x-x_2)$ (NOT the other way around) simply by manipulating the sentence $ax^2+bx+c$? Is this even possible, and if not, how is it done? Does completing the square have something to do with it?
I'm slightly afraid that the answer is going to be that it isn't possible, and that it is going to entail the fundamental theorem of algebra, since I don't really have any knowledge about how and why it works, but screw it. If somebody could give a detailed answer to my question, that would be great.