You know the techniques for solving quadratics, I guess,
and the cubics that are factoriseable.
There are other ways of solving cubics also.
The Newton-Raphson is a homing device.
It seeks out the solution using an iterative process.
It's fun to see how it works.
It boils down to picking a value between 3 and 4 in this case
(could be wider of the mark too, of course).
Then you apply the formula and you get a "next guess" which will be much closer to the answer.
If you do it again using the "next guess", you get much closer again.
The formula is x[sub:91j7msad]next[/sub:91j7msad]=x-{f(x)/f[sup:91j7msad]'[/sup:91j7msad](x)}
or x[sub:91j7msad]n+1[/sub:91j7msad]=x[sub:91j7msad]n[/sub:91j7msad]-{f(x[sub:91j7msad]n[/sub:91j7msad])/(f[sup:91j7msad]'[/sup:91j7msad](x[sub:91j7msad]n[/sub:91j7msad]))}.
In this case, f(x) is the graph of x[sup:91j7msad]3[/sup:91j7msad]+x-40 and we are discovering the x-axis crossing point
where it is zero.
So, differentiate f(x) to get 3x[sup:91j7msad]2[/sup:91j7msad]+1.
Use x=initial guess,
place in the formula for x, f(x) and f[sup:91j7msad]'[/sup:91j7msad](x) and the result of that is your "next approximation"
to the solution of x[sup:91j7msad]3[/sup:91j7msad]+x-40=0.
You zoom in on the answer quickly.