Me3 - Fixed point iteration and cobweb diagrams

Me3 - Fixed point iteration and cobweb diagrams

Can two equivalent rearrangements send a calculator in opposite directions? Under Me3, you will build a fixed point iteration, use the ANS key or a spreadsheet accurately, and connect the resulting sequence to a staircase or cobweb diagram. A final check will distinguish a numerical suggestion from a justified root.

An equation becomes a recurrence

For x3−x−4=0x^3-x-4=0, try xn+1=xn+43x_{n+1}=\sqrt[3]{x_n+4} from x0=2x_0=2. The first outputs are 1.8171211.817121 and 1.7984681.798468. Yet the equivalent rearrangement x=x3−4x=x^3-4 sends the same start to 44, then 6060. Correct algebra does not automatically make a good algorithm.

You already know

Rearranging an equation must preserve its solutions and domain. A real cube root reverses cubing for every real number.

The useful rule appears to be seeking an input that reproduces itself.

Fixed point

A fixed point aa satisfies g(a)=ag(a)=a. Applying gg once is an iteration; the output is an iterate. The index in xnx_n counts iterations, not powers.

If the iterates converge to aa and gg is continuous there, taking limits gives a=g(a)a=g(a). That explains what a limit solves; it does not guarantee that there is a limit.

Fixed point iteration

For a rearrangement x=g(x)x=g(x), use a stated initial value x0x_0 and the rule

xn+1=g(xn).x_{n+1}=g(x_n).

Check the fixed point against the equation and its domain.

Not in the formula sheet: learn it.

Show the algebra before introducing the subscripts.

Worked example 1: showing the rearrangement

Question. Show that x3−x−4=0x^3-x-4=0 can be written as x=x+43x=\sqrt[3]{x+4}, then find x1x_1 from x0=2x_0=2.

Plan. Isolate the cube and take a real cube root.

x3−x−4=0x3=x+4add x+4x=x+43take the real cube rootx1=2+43=1.817120593…\begin{aligned} x^3-x-4&=0\\ x^3&=x+4 && \text{add }x+4\\ x&=\sqrt[3]{x+4} && \text{take the real cube root}\\ x_1&=\sqrt[3]{2+4}=1.817120593\ldots \end{aligned}

Why show the intermediate line? It establishes the supplied rearrangement, rather than merely repeating it.

Answer. Use xn+1=xn+43x_{n+1}=\sqrt[3]{x_n+4}, with x1=1.817121x_1=1.817121 to six decimal places.

Check. Cubing the first output gives 66, the value of x0+4x_0+4.

Change only the constant to 55.

Worked example 2: a changed constant

Question. Construct a cube-root iteration for x3−x−5=0x^3-x-5=0, starting at 22.

Plan. Repeat the reversible algebra with the new constant.

x3=x+5xn+1=xn+53x1=73=1.912931183…\begin{aligned} x^3&=x+5\\ x_{n+1}&=\sqrt[3]{x_n+5}\\ x_1&=\sqrt[3]{7}=1.912931183\ldots \end{aligned}

Why not retain the old rule? Its fixed points solve a different cubic.

Answer. The new rule gives x1=1.912931x_1=1.912931 to six decimal places.

Check. Cubing x1x_1 gives 7=x0+57=x_0+5.

For comparison, x3−2x−3=0x^3-2x-3=0 gives 2x+33\sqrt[3]{2x+3}; from 22, its first output is also 73\sqrt[3]{7}. One matching iterate does not mean two equations have the same root.

Watch out

Wrong: “The rearrangements are equivalent, so their sequences agree.” Right: equivalent equations have the same solutions; different recurrence rules can produce different behaviour.

Change the constant once more.

Compute a reproducible sequence

The ANS key is useful because it retains digits that your written answer need not display. Every occurrence of the input must use the same preceding value.

Worked example 3: a reproducible calculation

Question. For xn+1=xn+43x_{n+1}=\sqrt[3]{x_n+4}, x0=2x_0=2, find the first three iterates.

Plan. Enter 22, then repeatedly evaluate the real cube root of ANS plus 44.

x1=1.817120593…x2=x1+43=1.798467893…x3=x2+43=1.796543562…\begin{aligned} x_1&=1.817120593\ldots\\ x_2&=\sqrt[3]{x_1+4}=1.798467893\ldots\\ x_3&=\sqrt[3]{x_2+4}=1.796543562\ldots \end{aligned}

Why use the stored value? Retyping 1.8171211.817121 changes the next calculation slightly.

Answer. To six decimal places: 1.817121, 1.798468, 1.7965441.817121,\ 1.798468,\ 1.796544.

Check. The next values are 1.796345, 1.796324, 1.796322, 1.7963221.796345,\ 1.796324,\ 1.796322,\ 1.796322, suggesting a root near 1.7963221.796322.

Change only the start to 1.51.5.

Worked example 4: approaching from the other side

Question. Find the first three iterates for the same rule from x0=1.5x_0=1.5.

Plan. Keep the recurrence fixed and carry full precision between outputs.

x1=5.53=1.765174168…x2=x1+43=1.793098487…x3=x2+43=1.795988855…\begin{aligned} x_1&=\sqrt[3]{5.5}=1.765174168\ldots\\ x_2&=\sqrt[3]{x_1+4}=1.793098487\ldots\\ x_3&=\sqrt[3]{x_2+4}=1.795988855\ldots \end{aligned}

Why state the start? The rule alone does not determine a sequence.

Answer. To six decimal places: 1.765174, 1.793098, 1.7959891.765174,\ 1.793098,\ 1.795989.

Check. The values approach the same neighbourhood from below, instead of above.

For a spreadsheet, place the start in A2; in A3 calculate the cube root of A2 plus 44; fill down so each row refers to the preceding one. Include iteration numbers and retain stored precision. For negative arguments use a real cube-root facility: a fractional-power calculation may not behave as expected in every program.

Exam tip

Show the recurrence, start and relevant iterates before the final rounded root. Use the requested accuracy. A table does not replace the intermediate algebra in a “Show that” rearrangement.

An exact comparison is xn+1=(xn+10)/3x_{n+1}=(x_n+10)/3 from 11: the first values are 11/3,41/9,131/2711/3,41/9,131/27. The preceding output becomes the next input in exactly the same way.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account