I'm having trouble solving this cubic: $x^3+24x^2+6x-4$. Is anyone able to help explain how to get the values of $x$?
-
It is x^3 sorry – Dylan Parr May 19 '20 at 11:55
-
3By the rational root theorem, it has no rational roots. However it has three real roots $x=0.300628455024,x= - 0.560461966214,x= - 23.7401664888$. See here, how to find these roots. – Dietrich Burde May 19 '20 at 11:56
2 Answers
There's an algorithm, and I'll outline only part of it.
- Depress the cubic
Substitute $y$ where $x=y-8$
$(y-8)^3+24(y-8)^2+6(y-8)-4=0$
$y^3-512-24y(y-8)+6(y-8)(4(y-8)+1)-4=0$
$y^3-512-24y(y-8)+(6y-48)(4y-23)-4=0$
$y^3-24y^2+24y^2+192y-138y-192y+48 \cdot 23 - 512-4=0$
$y^3-138y-588=0$
How$\textit{(exercise)}$ and why did I depress? The answer will be clear soon.
- Wizardry from Hogwarts itself
Express $y$ as the sum of two variables, say $p$ and $q$. Don't worry, just do it.
$(p+q)^3-138(p+q)+588=0$
$p^3+q^3+3pq(p+q)-138(p+q)+588=0$
$p^3+q^3+(3pq-138)(p+q)+588=0$
Now, obviously $p$ and $q$ can vary and now we have a weird factor on our hands. But let's say there were particular values of both variables that we're looking for. Particularly, one that abolishes that nasty factor. Here's what I'm looking at.
$3pq-138=0$
Or, will be of use later:
$pq=46 \iff q=\dfrac{46}p \tag 1$
Now if we set this extra condition on the variables, they will have distinct solutions. Solutions that we now can find, now that we've decimated that factor. Moving on.
$p^3+q^3+588=0$
$p^3+\left(\dfrac{46}p \right)^3+588=0$
$p^3+\dfrac{46^3}{p^3}+588=0$
One more substitution(last one, I promise):
$z=p^3$
$z+\dfrac{46^3}z+588=0$
$z^2+588z+46^3=0$
$\begin{align} z&=\dfrac{-588 \pm \sqrt{-43600}}2 \\ &= -294 \pm 10\sqrt{109} i \end{align}$
- Run backwards
So now to cube root $z$ and get $p$. Turns out you only need to pick one of the values for $z$ because of some complex conjugates when calculating $p$. For this I picked $z=-294+10\sqrt{109}$
With Euler's formula and the miracle of computers we get:
$p_1 \approx 4.035888724+5.450835001 i$
$p_2\approx -6.738505945+0.7697646609 i$
$p_3 \approx 2.702617221 - 6.22059962 i$
Longest possible string given to stay as true as possible to the answer.
From there you just use $(1)$ to get $q$ for each of those values and then calculate $x$ from there. Simple stuff.
And this is why we graph cubics instead.
- 1,705
-
Oh those were values for p. When $q=\dfrac{46}p$ and p is complex then q is some form of conjugate. Hence $p+q$ is real. I'm not entirely certain of a proof but I know it to be true. – Nεo Pλατo May 19 '20 at 13:03
As @Dietrich Burde commented,by the rational root theorem, there are no rational roots.
If you follow the steps given here and use the trignonometric for three real roots, you should find that the roots are given by $$x_k=-8+2 \sqrt{62} \cos \left(\frac{2 \pi k}{3}-\frac{1}{3} \cos ^{-1}\left(-\frac{243}{31 \sqrt{62}}\right)\right)\qquad \text{with} \qquad k=0,1,2$$
- 260,315
-
When I sub k=0 I get one of the correct values but it does not give me the right values when k=1,2? – Dylan Parr May 20 '20 at 11:42
-
-
-
Thank you @Claude that website worked, don't know why the other site didn't. – Dylan Parr May 20 '20 at 12:16