Find roots of a cubic through their sum and products

polynomialssystems of equations

So I have a cubic polynomial and the sum and products of roots are as follows:
$x+y+z=-3$,
$xy+yz+xz=-6$, $~xyz=18$
So i know this can be done through system of simultaneous equations but dont know how, i know the answer but can someone show me the process?

BTW, the answers are $- 3,6^{1/2},-6^{1/2}$

Best Answer

You can use Vieta's formulas. In particular, with an initial coefficient of $1$, i.e.,

$$P(s) = s^3 + a_2 s^2 + a_1 s + a_0 \tag{1}\label{eq1}$$

has $a_0 = -xyz = -18$, $a_1 = xy+yz+xz = -6$ and $a_2 = -(x + y + z) = 3$. Thus, you have

$$P(s) = s^2 + 3s^2 - 6s - 18 \tag{2}\label{eq2}$$

You could use this to solve for the individual roots using the Cubic function formula.

Update: As discussed in the question comments and the comments below, it's often easier & faster, especially for simpler type cubic equations (e.g., all coefficients are integers) to first try other methods to determine one root, e.g., by factoring by grouping (see How to Factor by Grouping for details) or using the Rational root theorem. If you do determine a root, you can then reduce your sets of equations to a quadratic, so you can then use the Quadratic formula to get the other $2$ roots. If you can't find an initial root, note the suggestion above of using the cubic function formula will always work.