Background
Recently, I have been factoring quadratic equation of the form $$ x^2 + ax + b $$ into $$ (x+y) \cdot (x+z) $$
e.g. From $x^2 + 3528x + 63180$ to $(x+3510) \cdot (x+18)$
Normally, it is possible to obtain $y$ and $z$ by looking into every factor of $b$, and find 2 of them, where there product is $b$ and their sum is $a$.
However, I find this method too tedious, especially when dealing with numbers that are hard or impossible to get its factors. So, I decided to use equations to directly obtain $y$ and $z$ given $a$ and $b$.
Question
According to the scenario,
$$ y+z=a $$ $$ y \cdot z = b $$
and so, how do I solve this system of equations, so that I get
$$ y = \frac{-\sqrt{a^2 - 4 \cdot b} + a}{2} \, \text{and} \, z = \frac{\sqrt{a^2 - 4 \cdot b} + a}{2}$$ $$ \text{or} \, y = \frac{\sqrt{a^2 - 4 \cdot b} + a}{2} \, \text{and} \, z = \frac{-\sqrt{a^2 - 4 \cdot b} + a}{2}$$ ?
Note that by Vieta's formulas, $y$ and $z$ satisfy $x^2-ax+b$, where you can use then the quadratic formula. However, many quadratics can be factored efficiently using a substitution.
You can use the AC method in reverse. In your example, divide by the largest perfect square divisor of $63180$, which is $324 = 18^2$ to get:
$$\frac{x^2}{18^2} + \frac{98}{9}x + 195=0$$ $$\Rightarrow (\frac{x}{18})^2 + 98 \cdot 2 \cdot\frac{x}{18} + 195 = 0$$ $$\Rightarrow X = \frac{x}{18}: X^2+196X+195 = 0$$
which factorises as $(X+195)(X+1)$. In general, $x^2 + (k+1)x + k$ also factorises as $(x+k)(x+1)$. To find the roots of the original quadratic, find $x$ by using $X = x/18$ again.