Iterated functions

Iterated functions

Introduction

  • Given a function such as: f(x) = x^2 + 1
  • We can call this function for x = 1: f(1) = 2
  • This is called the first iterate of x.
  • We can then call the function again on the result: f(2) = 5
  • Which is the same as: f(f(x))
  • It is called the second iterate of x.
  • We can generalize the function to: f^2(x)
  • Or even more generally: f^n(x)
  • The functions f1(x) to fn(x) are called the iterates of x for f.
    • It is also called the orbit of x
  • We also use subscripts for the iterates of x: \begin{align} x_0 &= \tex

Behavior of iterated functions

Constant
  • Some functions always produce the same value: f(x) = x^2, x = 1
  • Produces:
    n01234
    fn11111
Oscilating
  • Some functions cycle between a few values: f(x) = x^2 - 3, x = 1
  • Produces:
    n01234
    fn1-21-21
Converging
  • Some functions converge to a single value: f(x) = \frac{x}{2} + \fra
  • Produces:
    n01234
    fn105.22.982.162
Random
  • Some functions produce seamingly random values: f(x) = 4x - x^2, x = 0.3
  • Produces:
    n01234
    fn0.31.113.212.543.71
Expanding
  • Some functions keep on growing forever: f(x) = x^2, x = 2
  • Produces:
    n01234
    fn241625665536

Graphing iterated functions

  • Let's start with the converging function: f(x) = \frac{x}{2} + \fra
  • The function converges when: f(x_n) = x_n
  • If we plot the function, along with the line: y = x
  • Then the point where they intersect will be where the function converges: f(x) against y = x
  • The function converges at xn = 2
Graphing the iterates
  • If we start at point (x0, x0)
  • We can draw a line vertically until it meets f(x)
  • It will meet at the point (x0, f(x0)
  • From this point we can draw a line horizontally until it meets the line: y = x
  • it will meet at the point (f(x0), f(x0))
  • This is the point (x1, x1)
  • We can continue this process until xn = xn - 1: f(x) against y = x with iterates
Graphing oscilating functions
  • Given the function: f(x) = x^2 - 3, x = 1 oscilating f(x) against y=x
  • If we start at point (1, 1) and draw arrows between the two lines: oscilating f(x) against y=x with iterates
  • Then we end up back where we started, at (1, 1)