Can we find all the real roots of a function by using the inverse quadratic interpolation? How can we do that?
Can we find complex roots?
How can we find any root of a function having roots we have no guess about by using that algorithm, how should we start?
Inverse Quadratic Interpolation (IQI) is described on the Wiki and in Section 4.5. Note some of the pitfalls mentioned there.
Both of the references give the iteration formula. This method can be used to find all roots of a polynomial, whether they are real or complex.
As an example, take $f(x) = 4 x^3-16 x^2+17 x-4$. I usually start by plotting the function to get an idea of where the roots are for each of the three initial points needed to find each one. The plot is
I will also use a professional package like Matlab or Mathematica to find the roots to high precision for comparison purposes (you can also find exact roots using the Cubic Equation). The three real numerical roots are
$ x = 0.32853845861141489597 \\ x = 1.2646582900644196963 \\ x = 2.4068032513241654077$
Using IQI, for the first root, try $x_0 = 2, x_1 = 1, x_2 = 0$ (look at how many iterations it took to converge and compare to Newton-Raphson or Brent's Method)
Using IQI, for the second root, try $x_0 = .4, x_1 = .6, x_2 = .8$
Using IQI, for the first root, try $x_0 = .4, x_1 = .6, x_2 = .8$
For a complex example, lets use $f(x) = x^2 + 1$, which has the imaginary roots $x = \pm ~ i$.
Using IQI, for the first root, try $x_0 = .5 + I, x_1 = .6 + I, x_2 = .7 + I$ ($I$ is imaginary)
Using IQI, for the second root, try $x_0 = .5 - I, x_1 = .6 - I, x_2 = .7 - I$ ($I$ is imaginary)
$ x_ 0 = 0.5000000000000000- 1.0000000000000000 I$
$ x_ 1 = 0.6000000000000000- 1.0000000000000000 I$
$ x_ 2 = 0.7000000000000000- 1.0000000000000000 I$
$ x_ 3 = -0.0265008880606977- 0.9324794583256370 I$
$ x_ 4 = -0.0062809706136977- 1.0111496938882190 I$
$ x_ 5 = -0.0002495550153420- 0.9998210667715290 I$
$ x_ 6 = 1.1033465890063210 \times 10^{-7}- 1.0000000998346370 I$
$ x_ 7 = -2.7745525061489970 \times 10^{-13}- 0.9999999999999160 I$
$ x_ 8 = 5.2939559203393770 \times 10^{-23}- 1.0000000000000000 I$
$ x_ 9 = 0.0000000000000000- 1.0000000000000000 I$
Your last question is not easy to answer because there are pros and cons to any numerical algorithm. Sometimes, it ends up being trial and error due to the problem itself. You might be interested in reviewing the various methods of root finding.