# Thread: solve equation in 3 variables

1. ## solve equation in 3 variables

Solve for the set of equations :

$x+y+z=12 \\ xy+yz+zx=44 \\ xyz=48$

And...Merry Christmas & Happy new Year

2. ## Re: solve equation in 3 variables

Merry Christmas! ^^

$xyz=48\Rightarrow x\neq 0, y\neq 0, z\neq 0$, knowing this we can multiply/ divide by x, y or z.

Starting from the first relation, we have:

$x+y+z=12\Rightarrow x(x+y+z)=12x\Rightarrow x^2+xy+xz=12x\Rightarrow$
$\Rightarrow x^2+xy+xz-(xy+yz+zx)=12x-44\Rightarrow x^2-yz=12x-44$

We know that $xyz=48$, so that, yz which is kind of a problem for us, can be written as $\frac{48}{x}$:

$x^2-\frac{48}{x}=12x-44 \Rightarrow x^3-48=12x^2-44x\Rightarrow x^3-12x^2+44x-48=0$

For x=2: $2^3-12\cdot 2^2+44\cdot 2-48=8-48+88-48=0$. That means that we write our equation this way:

$x^3-12x^2+44x-48=x^3-2x^2-10x^2+20x+24x-48=$

$=x^2(x-2)-10x(x-2)+24(x-2)=(x-2)(x^2-10x+24)=0$

So we know that: $(x-2)(x-4)(x-6)=0$. x can then be 2, 4 or 6.
We can (and actually should) do the same thing for y and z, so y and z can also be 2, 4 or 6.

$(x, y, z) \in \left \{ (2, 4, 6); (2, 6, 4); (4, 2, 6); (4, 6, 2), (6, 2, 4); (6, 4, 2) \right \}$

3. ## Re: solve equation in 3 variables

Hello, earthboy!

$\text{Solve: }\;\begin{Bmatrix}x+y+z\;=\;12 \\ xy+yz+zx\;=\;44 \\ xyz\;=\;48 \end{Bmatrix}$

$\text{We note that }x,y,z\text{ are the roots of the equation:}$
. . . $u^3 - 12u^2 + 44u - 48 \:=\:0$

$\text{Factor: }\:(u-2)(u-4)(u-6) \:=\:0$

$\text{Therefore: }\:\{x,y,z\} \:=\:\{2,4,6\}\text{ in some order.}$