If difference of roots of the equation $\displaystyle x^{2}+px+8= 0$ is $2$, then $p$ is equal to
Reveal answer
Fill a bubble to check yourself
If difference of roots of the equation $\displaystyle x^{2}+px+8= 0$ is $2$, then $p$ is equal to
Let roots be alpha and beta. alpha + beta = -p, alpha * beta = 8. (alpha - beta)^2 = (alpha + beta)^2 - 4*alpha*beta. 2^2 = (-p)^2 - 4(8). 4 = p^2 - 32. p^2 = 36, so p = +/- 6.
Let the roots be alpha and beta. By Vieta's formulas, the sum of the roots is alpha + beta = -p and the product is alpha*beta = 8. The difference of the roots formula is given by |alpha - beta| = sqrt(Discriminant) = sqrt(p^2 - 4ac). Substituting the values gives sqrt(p^2 - 32) = 2. Squaring both sides results in p^2 - 32 = 4, so p^2 = 36, which means p is equal to plus or minus 6.