We have $P(x)=x^3-2x^2-5$. I know the formula of Newthon's method. That is given here.
The problem is, how do I find the approximations to within $10^{-4}$ to all the real zeros of the following polynomials using Newton's method?
We have $P(x)=x^3-2x^2-5$. I know the formula of Newthon's method. That is given here.
The problem is, how do I find the approximations to within $10^{-4}$ to all the real zeros of the following polynomials using Newton's method?
The Newton-Raphson iteration is given by:
$$x_{n+1} = x_n - \dfrac{f(x_n)}{f'(x_n)} = x_n - \dfrac{x_n^3-2 x_n^2-5}{3x_n^2-4 x_n}$$
If we plot the function, we have:

From this image, we can see there is a real root between $x \in (2,3)$, so lets choose $x_0 = 2.0$ and iterate until we get an error, $E_n \le 10^{-4}$ between consecutive iterates.
So, we converged in five steps. The actual root is given by:
$$x^* = 2.690647448028613750350789$$
Note: If we had started at $x_0 = 3.0$, we would have converged in only four steps. Try it.
Update: Complex Roots
The other two roots are complex and you can use Newton's Method to find those too.
The actual root is given by:
$$x^* = -0.3453237240143068751753944+1.3187267795713238829519526 i$$
Note that since roots come in complex conjugate pairs, this provides both of them (just negate the imaginary part).
Also note, you could have used the first real root and written $(x-a)(x^2 + b x + c)$ and then just used the quadratic equation to find the two imaginary roots.
By Descartes' rule of signs, there is only one real root and it is positive. Applying your iteration formula, $$ x_{n+1} = x_n - \frac{x_n^3-2x_n^2-5}{3x_n^2-4x_n} $$ Since $P(x=2) = -5$ and $P(x=3) = 4$, starting with $x_0 = 3$ gives successively, $3, 2.7333, 2.6916, 2.6906, 2.6906, \ldots$.
Apply Newton's method until two successive values are within $10^{-4}$. Do this for a number of initial values chosen depending on the roots of $P'(x)$.