*Please note: you may not see animations, interactions or images that are potentially on this page because you have not allowed Flash to run on S-cool. To do this, click here.*
This is an alternative method that rearranges the original question into two equations, a straight line and a curve, and then finds where these meet. It works as follows:
- Rearrange the equation to be solved into the form x = g(x). [g(x) is a different function].
- The solution to this equation is to find where y = x meets y = g(x). This is where the coordinates on g(x) are the same.
- In this situation, we can guess a value x0 and hope that g(x0) will be a better guess. This can be iterated repeatedly.
Below is a diagram which shows that by starting at a value of x0 and repeating the iterations (i.e. finding x1, x2,...), you get closer and closer to the point where the two lines cross.
Performing this iteration produces two possible results:
- It diverges (i.e. it gets further and further away from the start). This means the rearrangement has not worked.
- It converges (i.e. it homes in) to the root, and solves the equation.
Let's take the example used in the Newton Raphson Learn-It.
We want to find the roots to the following equation:
f(x) = ex − 3x,
This can be rearranged to x = ex ⁄ 3
Let's estimate that the root to this equation is 0.6.
Then taking the iteration equation above [xn+1 = g(xn)] and substituting our equation gives:
Performing this iteration a number of times gives:
As the solution gives consistent values of 0.619, this suggests that a root of the equation f(x) = ex − 3x is 0.619 (to 3 decimal places).