HallsofIvy said:
Well, unless there is an integer root, that won't "solve" the equation! But that is a good way to start. In fact, it is exactly what jgens suggested. If x= 0 x^3+ x= 0+ 0= 0< 6. If x= 2, x^3+ x= 8+ 2= 10> 6. What does that tell you?
It tells me that the solution is between 0 and 2, i.e x\in (0,2).
Infact if you choose x=1, 1^3+1=1+1=2<6, so x \in (1,2)
If you go by checking for x=1.5 , 1.5^3+1.5=4.875<6 you will come up with the solution. Now x \in (1.5 , 2) and so on...
Edit: In addition, I came up with better solution.
Check the sign of the discriminant of the cubic equation:
D=\sqrt{(\frac{q}{2})^2+(\frac{p}{3})^3}
The general cubic equation is:
x^3+px+q
Just extract
p and
q from your equation.
1)If D>0 then there are 1 real and two conjugate complex roots.
2)If D=0 there is one prime and two equal real roots.
3)If D<0 there are 3 real and different roots.