# Finding an Expression for the Difference of Roots of the Quadratic Equation

Let the equation $ax^2+bx+c=0$ have the roots $\alpha$ and $\beta$, then what is $\alpha-\beta$ in terms of $a$, $b$, and $c$?

Well, we may write $$(\alpha-\beta)^2=(\alpha+\beta)^2 -4\alpha \beta$$ $$\mbox{or}\ (\alpha-\beta)^2= \left(-\frac{b}{a}\right)^2-4\frac{c}{a}$$ $$\mbox{or}\ (\alpha-\beta)^2 = \frac{b^2}{a^2}-4\frac{c}{a}$$ $$\mbox{or}\ (\alpha-\beta)^2=\frac{b^2-4ac}{a^2}$$ $$\mbox{or}\ \alpha-\beta= \pm\sqrt{\frac{b^2-4ac}{a^2}}$$ $$\mbox{or}\ \alpha-\beta=\pm\frac{\sqrt{b^2-4ac}}{a}.$$

Now, I know that the true value of $\alpha-\beta$ is $\frac{\sqrt{b^2-4ac}}{a}$, but what about $-\frac{\sqrt{b^2-4ac}}{a}$? Should I really get this other value or have I made some mistake or should I ignore the other value?

• It just depends what order you subtract the roots in. – paw88789 Jan 28 '15 at 15:51

## 1 Answer

Who confirms the true value?

If $\alpha,\beta$ are real,

If $\alpha-\beta\ge0\iff\alpha\ge\beta ,\alpha-\beta=+\dfrac{\sqrt{b^2-4ca}}{|a|}$

Else $\alpha<\beta\implies\alpha-\beta=-\dfrac{\sqrt{b^2-4ca}}{|a|}$

If at least one of $\alpha,\beta$ is complex see

• i.e. $\pm \frac{\sqrt{b^2-4ac}}{a}$ cannot both be true at the same time? – Samama Fahim Jan 28 '15 at 16:05
• @SamamaFahim, When we will have $x=-x$ – lab bhattacharjee Jan 28 '15 at 16:06
• So we should not just write $\alpha-\beta = \frac{\sqrt{b^2-4ac}}{a}$, we should also add that $\alpha \geq \beta$, shouldn't we? – Samama Fahim Jan 28 '15 at 16:11
• @SamamaFahim, The last part is the condition and the other condition as in the answer :$\alpha,\beta$ must be real – lab bhattacharjee Jan 28 '15 at 16:13
• What I mean is that in the solution they just pick the positive value without stating that they supposed $\alpha \geq \beta$. This may confuse the reader. – Samama Fahim Jan 28 '15 at 16:17