]> 12.2 Determining an Inverse Function Accurately by Iterating the Linear Approximation

## 12.2 Determining an Inverse Function Accurately by Iterating the Linear Approximation

How?

Given a pair of numbers, $( x 0 , f ( x 0 ) )$ the linear approximation, $f L x 0$ to $f$ defined at $x 0$ , allows us to compute $f L x 0 ( x )$ as an approximation to $f ( x )$ .

If we know the inverse function to $f$ , we can compute $f − 1 ( f L x 0 ( x ) )$ and that gives us a new pair of numbers, $( f − 1 ( f L x 0 ( x ) ) , f L x 0 ( x ) )$ that we can call $( x 1 , f ( x 1 ) )$ and repeat (or iterate) this operation to produce $x 2$ , then $x 3 , … ,$ until it converges.

This in the old days was so horribly boring a procedure that it could not be inflicted on students. Now it is duck soup for a spreadsheet, and can be set up and computed in a matter of minutes for all the inverse functions we encounter: which are the roots $( x 1 / j )$ , the (natural) logarithm, arcsin and arctan.

What has to be done?

The linear approximation $f L x j$ defined at $x j$ evaluated at $x$ is given by

$f L x j ( x ) = f ( x j ) + f ' ( x j ) ( x − x j )$

setting this up, setting

$x j + 1 = f − 1 ( f L x j ( x ) )$

and iterating is all that need be done.

Exercises:

12.1 Set up a general root finding spreadsheet so that you can input $x$ and $j$ and it will spit out the j-th root of $x$ by using this method where the machine only computes integer powers. (Clues on how to do this are in the next section.)

12.2 Set up a spreadsheet to find $ln ⁡ x$ using the ability of the machine to compute $exp ⁡ x$ .

12.3 Do the same for the inverse functions to the sine and tangent. These are generally written as something like arcsine and arctangent or asin or atan or something in between.

12.4 Can this method fail? If so how?