Is this a root? If not then using the value of the slope we estimate
where f(x)=0:
If the slope was one and f(5)=5, then we could estimate that
f(4) would be 4, f(3) would be 3 and f(0)=0.
This would be the case if the function was linear which is not
normally the case since if it was we can find the answer very
easily anyway.
We now use xnew as our x and see whether f(xnew) = 0. If it
isn't we repeat the process and make a new estimate.
We keep on doing this till we find the solution.
NOTE:Add two points here:
- In general we would stop if f(x) was very close to zero since
that is good enough.
- It does not always converge, so if you find that it doesn't seem
to be working then mayb start again with a different initial guess.
If, for example, we reach a point with a slope of zero then
we have a problem.