Docsity

Fixed Points and Fractals: Understanding the Independence of Base Cases, Study notes of Computer Graphics

Toggle sidebar
bg1
Lecture 7: The Fixed Point Theorem and its Consequences
My heart is fixed...Psalm 57:7
1. Fixed Points and Iteration
We are now going to solve the central mystery concerning fractals: why is it that the fractals
generated both by recursive turtle programs and by iterated function systems are independent of the
base case? The heart of the answer lies in the trivial fixed point theorem.
A fixed point of a function F is a point P such that
€
F(P)=P
. That is, P is a fixed point of F if
P is unchanged by F. For example, if
€
f(x)=x2
, then
€
f(0) =0
and
€
f(1) =1
, so 0 and 1 are fixed
points of f. We are interested in fixed points of transformations because fractals are fixed points of
iterated function systems.
Fixed points are often generated by iteration. Consider the sequence,
€
P
1=F(P0)
P2=F2(P0)=F(P
1)
M M
P
∞=F∞(P0)
where
€
F∞(P0)
denotes the limit of
€
Fn(P0)=F(Pn−1)
as n approaches infinity (assuming this limit
exists). Suppose that we try to apply F to
; informally,
€
F(P∞)=F F∞(P0)
( )
=F∞+1(P0)=F∞(P0)=P
∞
.
Thus the limit point
is a fixed point of the function F. The point
€
P0
with which the iteration
begins does not matter; as long as the iteration converges, iteration converges to a fixed point.
There are two important caveats here. First, there is no guarantee that the iteration must
converge. For some starting values -- perhaps even for all starting values -- the iteration may
diverge. Second, even if the iteration always converges, the fixed point need not be unique;
different starting values may converge to different fixed points.
In the next section we are going to establish conditions which guarantee that these two
problems never arise. That is, we shall provide conditions which guarantee that the iteration always
converges and that the iteration converges to a unique fixed point independent of the initial value. If
this result sounds a lot like fractals, this similarity is no accident. Indeed this general result about
iteration is at the heart of our observations that fractals generated from iterated function systems are
independent of the base case.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16

Partial preview of the text

Download Fixed Points and Fractals: Understanding the Independence of Base Cases and more Study notes Computer Graphics in PDF only on Docsity!

Lecture 7: The Fixed Point Theorem and its Consequences

My heart is fixed... Psalm 57:

1. Fixed Points and Iteration

We are now going to solve the central mystery concerning fractals: why is it that the fractals

generated both by recursive turtle programs and by iterated function systems are independent of the

base case? The heart of the answer lies in the trivial fixed point theorem.

A fixed point of a function F is a point P such that

F ( P ) = P. That is, P is a fixed point of F if

P is unchanged by F. For example, if

f ( x ) = x

2

, then

f (0) = 0 and

f ( 1 ) = 1 , so 0 and 1 are fixed

points of f. We are interested in fixed points of transformations because fractals are fixed points of

iterated function systems.

Fixed points are often generated by iteration. Consider the sequence,

P

1

= F ( P

0

P

2

= F

2

( P

0

) = F ( P

1

M M

P

∞

= F

∞

( P

0

where

F

∞

( P

0

) denotes the limit of

F

n

( P

0

) = F ( P

n − 1

) as n approaches infinity (assuming this limit

exists). Suppose that we try to apply F to

P

∞

; informally,

F ( P

∞

) = F F

∞

( P

0

( )

= F

∞+ 1

( P

0

) = F

∞

( P

0

) = P

∞

Thus the limit point

P

∞

is a fixed point of the function F. The point

P

0

with which the iteration

begins does not matter; as long as the iteration converges, iteration converges to a fixed point.

There are two important caveats here. First, there is no guarantee that the iteration must

converge. For some starting values -- perhaps even for all starting values -- the iteration may

diverge. Second, even if the iteration always converges, the fixed point need not be unique;

different starting values may converge to different fixed points.

In the next section we are going to establish conditions which guarantee that these two

problems never arise. That is, we shall provide conditions which guarantee that the iteration always

converges and that the iteration converges to a unique fixed point independent of the initial value. If

this result sounds a lot like fractals, this similarity is no accident. Indeed this general result about

iteration is at the heart of our observations that fractals generated from iterated function systems are

independent of the base case.

A word of caution before we proceed. Be forewarned: this lecture is by far the most

mathematically challenging chapter in this text. We are going to prove a powerful mathematical

theorem with applications to many different areas of Pure and Applied Mathematics, including root

finding for transcendental functions, relaxation methods for solving large systems of linear

equations, solution techniques for ordinary differential equations, and fractals. Therefore, we shall

require some general mathematical machinery that we can apply in a wide range of diverse

situations. The power of Mathematics is the ability to reduce many seemingly different problems

to their common mathematical essence. The price we pay for this power is abstraction: a

collection of mathematical terms, techniques, and theorems the significance of which may, at first, be

difficult to understand. Cauchy sequences, complete spaces, compact sets, and Haussdorf metrics

will all appear in this discussion. For each of these terms I will provide some informal intuition as

well as a formal definition. For fractals, I will explain only the key ideas behind the proofs of the

main theorems, providing references for those readers interested in all the fine details.

Understanding this material may be difficult at first, and you may need to read this chapter more

than once. It may be hard going, but hang in there; the final results will be well worth all the effort.

2. The Trivial Fixed Point Theorem

We begin with a rigorous formulation of our informal argument in Section 1 that if iteration

converges, iteration necessarily converges to a fixed point.

Proposition 1: Let T be a continuous function and let

P

n + 1

= T ( P

n

) for all

n ≥ 0_. If_

P

∞

= Lim

n →∞

P

n

exists, then

P

∞

is a fixed point of T.

Proof: Since, by assumption, T is continuous, we can push T past the limit sign. Therefore

T ( P

∞

) = T Lim

n →∞

P

n

= Lim

n →∞

T ( P

n

) = Lim

n →∞

P

n + 1

= P

∞

For our applications, the most important continuous functions are contractive transformations.

A transformation T is said to be contractive if there is a constant s ,

0 < s < 1 , such that for all points

P , Q

Dist T ( P ), T ( Q )

≤ s Dist ( P , Q ).

That is, contractive maps bring points closer together. The canonical example of a contractive

transformation is uniform scaling, where the absolute value of the scale factor is less than one. It

follows from Proposition 1 that if we iterate a contractive transformation and if the iteration

converges, then the iteration necessarily converges to a fixed point. Our next result asserts that for

contractive maps, this fixed point is unique.

The main fact about cauchy sequences is that for many well known spaces every cauchy

sequences converges to some limiting value. A space in which every cauchy sequence converges is

said to be complete. Intuitively, a space is complete if it has no holes because if the points in a

sequence are getting closer and closer to each other, they should be getting closer and closer to

some limiting value. The standard Euclidean spaces in n -dimensions are examples of complete

spaces.

We are now ready to establish the main result of this section: the existence and uniqueness of

fixed points for contractive transformations on complete spaces.

Trivial Fixed Point Theorem

Suppose that

T is a contractive transformation on a complete space

P

n + 1

= T ( P

n

) for all

n ≥ 0_._

Then

P

∞

= Lim

n →∞

P

n

exists, and

P

∞

is the unique fixed point of T for any choice of

P

0

Proof: This result follows from our previous propositions because:

i. The sequence

P

n

{ } is cauchy. (Proposition 3)

ii. Therefore, since by assumption the space is complete,

Lim

n →∞

P

n

exists.

iii. Hence, since T is continuous,

P

∞

= Lim

n →∞

P

n

is a fixed point of T. (Proposition 1)

iv. But, since T is a contractive transformation, this fixed point is unique. (Proposition 2)

3. Consequences of the Trivial Fixed Point Theorem

The trivial fixed point theorem has many important applications in Mathematics and Computer

Science. Here we will look at three of these applications: root finding for transcendental functions,

relaxation methods for solving large systems of linear equations, and algorithms for generating

fractals from iterated function systems.

3.1 Root Finding Methods. To find a root of a function

F ( x ) means to find a solution of the

equation

F ( x ) = 0. For low degree polynomials, such as quadratic equations, there are explicit

formulas, such as the quadratic formula, for computing the roots. But for polynomials of degree

greater than four and for transcendental functions such as trigonometric and exponential functions,

simple explicit formulas for the roots do not exist. In these cases, iterative techniques are typically

used to locate the roots.

One well-known iterative method that you probably encountered in calculus is Newton’s

method. To find a solution of the equation

F ( x ) = 0 using Newton’s method, we first make some

initial guess,

x

0

. Once we have produced the nth guess,

x

n

, the

( n + 1 )

st

guess is given by

x

n + 1

= x

n

F ( x

n

F ( x

n

The idea behind Newton’s method is that the value of

x

n + 1

is the location along the x- axis where

the line tangent to the curve

y = F ( x ) at

x = x

n

intersects the x -axis (see Exercise 7). Thus

x

n + 1

is

often closer to the root of

F ( x ) = 0 than

x

n

(see Figure 1, left). If the initial guess

x

0

is close to a

root of

F ( x ) and if

F ( x

n

) is not close to zero, then the sequence

x

0

, x

1

,K typically converges

rapidly to a solution of the equation

F ( x ) = 0. Thus Newton’s method can be summarized in the

following fashion.

Newton’s Method

  1. Select any(!) initial guess

x

0

  1. Compute

x

n + 1

= x

n

F ( x

n

F ( x

n

for

n = 1 ,2K.

  1. Stop when

x

k + 1

− x

k

< ε.

Newton’s method is actually a fixed point method. Let

T ( x ) = x −

F ( x )

F ( x )

Then

F ( x *) = 0 if and only if

T ( x *) = x *. Thus to find a root of

F ( x ), we seek a fixed point of

T ( x ). Hence we iterate

T ( x ) on some initial guess

x

0

. But iterating

T ( x ) is precisely the second

step of Newton’s method. We illustrate Newton’s method in Figures 1 and 2. Notice that

Newton’s method is not guaranteed to converge (see Figure 2) because

T ( x ) need not be a

contractive map; moreover, if

F ( x ) has more than one root, different initial guesses may converge

to different roots.

Newton’s formula for the

( n + 1 )

st

guess

x

n + 1

is expensive; we need to compute both the

value of the function and the value of the derivative at the current guess

x

n

. An easier approach that

requires only evaluation and no differentiation is to use a simpler fixed point method.

Suppose that we want to find a solution of the equation

F ( x ) = 0. Let

G ( x ) = x + F ( x ). Then

F ( x ) has a root if and only if

G ( x ) has a fixed point -- that is,

F ( x *) = 0 if and only if

G ( x *) = x *. But by the trivial fixed point theorem, we can often find a fixed point by iteration.

This observation leads to the following simple root finding algorithm.

Fixed Point Root Finding Algorithm

  1. Replace

F ( x ) by

G ( x ) = x + F ( x ).

  1. Select any(!) initial guess

x

0

  1. Compute

x

k + 1

= G ( x

k

) for

k = 1 ,K, n.

  1. Stop when

x

k + 1

− x

k

< ε.

Notice that unlike Newton’s method, this algorithm requires only evaluation; no

differentiation is necessary. By the trivial fixed point theorem, the fixed point root finding

algorithm is guaranteed to work whenever

G ( x ) is a contractive map. Moreover, any initial guess

will do.

How can we tell if a map is contractive? One way is to invoke the mean value theorem:

G ( b ) – G ( a ) ≤

G ( c )( b − a ) a ≤ c ≤ b.

By the mean value theorem, if

G ( c ) < 1 , then

G ( x ) is necessarily a contractive map. For example,

G ( x ) = Cos ( x ) is contractive in the interval

[0, a ] for any

a < π / 2 , and

G ( x ) = e

− x

is contractive in

the interval

[0, a ] for any

a > 0.

Below we illustrate the fixed point algorithm for finding the roots of two transcendental

equations. In Figure 3, we find a root of

F ( x ) = Cos ( x ) − x = 0 by finding a fixed point of

G ( x ) = x + F ( x ) = Cos ( x ); in Figure 4 we find a root of

F ( x ) = e

− x

− x = 0 by finding a fixed

point of

G ( x ) = x + F ( x ) = e

− x

. In both cases we show that the method converges to the same root,

independent of the initial guess. Notice that this fixed point method often requires more iterations

than Newton’s method to get close to a root, but the reader should check that this fixed point

method can converge to a root even in cases where Newton’s method diverges (see Exercise 8).

Figure 3: Finding a root of

F ( x ) = Cos ( x ) − x by finding a fixed point of

G ( x ) = F ( x ) + x = Cos ( x ) using iteration. On the left the initial guess is

x

0

= 0 ; on the right the

initial guess is

x

0

= 1.3. In both cases the guesses converge to the intersection of the curves

y = Cos ( x ) and

y = x -- that is, to a fixed point of

Cos ( x ).

Figure 4: Finding a root of

F ( x ) = e

− x

− x by finding a fixed point of

G ( x ) = F ( x ) + x = e

− x

using iteration. On the left the initial guess is

x

0

= 0 ; on the right the initial guess is

x

0

= 1.3. In

both cases the guesses converge to the intersection of the curves

y = e

− x

and

y = x -- that is, to a

fixed point of

e

− x

On the other hand, in Gauss-Seidel relaxation, the pth guess

X

p

= ( x

1

p

,K, x

n

p

T

is generated

from the

( p − 1 )

st

guess

X

p − 1

= ( x

1

p − 1

,K, x

n

p − 1

T

by solving the diagonal system of equations

M

11

x

1

p

= b

1

− M

12

x

2

p − 1

− L− M

1 n

x

n

p − 1

M

21

x

1

p

+ M

22

x

2

p

= b

2

− M

23

x

1

p − 1

− L− M

2 n

x

n

p − 1

M M

M

n 1

x

1

p

+ M

22

x

2

p

+ L+ M

nn

x

n

p

= b

n

which can be written in matrix form as

M

11

0 L 0
M

21

M

22

L 0
M M O M
M

n 1

M

n 2

L M

nn

L

x

1

p

x

2

p

M

x

n

p

     X

p

b

1

b

2

M

b

n

B

0 M

12

L M

1 n

0 0 L M

2 n

M M O M
0 0 L 0

M − L

x

1

p − 1

x

2

p − 1

M

x

n

p − 1

     X

p − 1

Thus from Equation (3.6) in Gauss-Seidel relaxation

x

i

p

b

i

M

ii

M

ij

M

ii

j = 1

i − 1

x

j

p

M

ij

M

ii

j = i + 1

n

x

j

p − 1

1 ≤ i ≤ n. (3.8)

Notice from Equation (3.8) that in Gauss-Seidel relaxation, earlier values of the pth guess are used

to generate later values of the pth guess. For this reason, Gauss-Seidel relaxation is usually

somewhat faster than Jacobi relaxation.

Typically the initial guess for both methods is either

X

0

= 0 = (0,K,0)

T

or

X

0

= ( b

1

,K, b

n

T

Both relaxation methods converge for any initial guess, when M is diagonally dominant -- this is,

when

| M

ii

| ≥ | M

ij

j ≠ i

1 ≤ i ≤ n ,

because both relaxation methods are really fixed point methods.

To understand why relaxation methods are fixed point methods, observe if we multiply

Equation (3.4) by

D

− 1

, then

X

p

= D

− 1

B − ( D

− 1

M − I ) ∗ X

p − 1

. (Jacobi Relaxation) (3.9)

Similarly if we multiply Equation (3.7) by

L

− 1

, then

X

p

= L

− 1

B − ( L

− 1

M − I ) ∗ X

p − 1

. (Gauss-Seidel Relaxation) (3.10)

Let

T ( X ) = Q

− 1

B − ( Q

− 1

M − I ) ∗ X. (3.11)

where

Q = D for Jacobi relaxation and

Q = L for Gauss-Seidel relaxation. Now it is easy to see

that the following statements are equivalent:

T ( X

∗

) = X

∗

Q

− 1

B − ( Q

− 1

M − I )∗ X

∗

= X

∗

B − ( M − Q ) ∗ X

∗

= Q ∗ X

∗

B − M ∗ X

∗

M ∗ X

∗

= B

Therefore

X

∗

is a solution of the original system of equations

M ∗ X = B if and only if

T ( X

∗

) = X

∗

-- that is, if and only if

X

∗

is a fixed point of the transformation

T ( X ). Now it turns

out that the transformation T is a contractive map whenever M is diagonally dominant and either

a.

Q = D is the diagonal part of M ( Jacobi Relaxation )

or

b.

Q = T is the lower triangular part of M (Gauss-Seidel Relaxation)

We shall use these relaxation methods when we study radiosity in Lecture 23. The radiosity

equations are a large system of linear equations, so relaxation methods are typically the fastest, most

robust methods for solving the radiosity equations.

3.3 Fractals. Finally fractals. The trivial fixed point theorem asserts that iterating a contractive

map on a complete space is guaranteed to converge to the unique fixed point of the transformation

independent of the point at which we start the iteration. For fractals the contractive maps are iterated

functions systems -- collections of contractive transformations on Euclidean space. But what

exactly is the complete space that provides the necessary scaffolding for the trivial fixed point

theorem?

To generate fractals, the points at which the iteration starts are actually sets of points; line

segments, polygons, stars, almost any subset of the plane seems to work. However, we do not use

unbounded subsets of the plane, since unbounded sets remain unbounded even after applying

contractive affine transformations (e.g. uniform scaling), whereas the fractals we want to generate

are typically bounded sets of points. Therefore we shall restrict our attention to compact sets.

A set is compact if it is both closed and bounded. Bounded sets are sets that lie within a circle

of finite radius. Thus line segments, polygons, and stars are bounded; lines, infinite spirals, and

half planes are unbounded. A set is closed if the set contains its boundary. A line segment is

closed, but if we remove the end points of a line segment, the segment is no longer closed.

Similarly, a disc is closed, but if we remove the bounding circle from the disc, then the disc is no

Properties of Haussdorf Metric

i.

H ( R , S ) ≥ 0

ii.

H ( R , S ) = 0 ⇔ R = S

iii.

H ( R , S ) = H ( S , R )

iv.

H ( R , T ) ≤ H ( R , S ) + H ( S , T )

Properties i, ii, iii are immediate from the definition. To verify property iv is straightforward

but somewhat tedious, so we shall not present the proof of property iv here. The interested reader

can find the proof in Barnsley’s book, Fractals Everywhere, on page 33.

Note that we need to restrict to closed sets, otherwise property ii would be false. For example,

the distance between a line segment containing its end points and the same line segment without its

end points would be zero, even though the two sets are clearly not identical. If we want the distance

function to distinguish between different sets, we cannot have infinitely close sets; therefore, we are

forced to restrict our attention to closed sets. Similarly, if we want to consider only finite distances,

then we must restrict our attention to bounded sets. For these reasons we consider only compact

sets -- that is, sets that are both closed and bounded.

Property iv is called the triangle inequality. We invoked the triangle inequality in the proof of

Proposition 3 and we used Proposition 3 in the proof of the trivial fixed point theorem. Since we

are going to invoke the trivial fixed point theorem to prove that fractals generated by iterated

function systems are independent of the base case, we need the triangle inequality.

The space that provides the fractal framework for the trivial fixed point theorem is the space of

compact sets where distance is measured by the Haussdorf metric. To invoke the trivial fixed point

theorem, we need to know that this space is complete.

Recall that a space is complete if every cauchy sequence converges. Informally, a cauchy

sequence of compact sets is a sequence of compact sets

{ S

n

} that get closer and closer as

measured by the Haussdorf metric as n gets larger and larger. Formally, a sequence

{ S

n

} of

compact sets is said to be cauchy if for every

ε > 0 there is an integer N such that

H ( S

n + m

, S

n

) < ε for all

n > N and all

m > 0.

For cauchy sequences of compact sets, we have the following theorem.

Completeness Theorem: Every cauchy sequence of compact sets converges to a compact set.

The main idea behind the proof of this theorem is that we can find the set S to which a cauchy

sequence of compact sets

{ S

n

} converges by studying cauchy sequences of points

{ x

n

} where

x

n

∈ S

n

. In fact,

x ∈ S = Lim

n →∞

S

n

⇔ x = Lim

n →∞

x

n

x

n

∈ S

n

where

x = Lim

n →∞

x

n

is guaranteed to exist because ordinary Euclidean space is complete. We

omit the gory details of this proof. The interested reader can find these details in Barnsley’s book,

Fractals Everywhere , on pages 35-37.

The trivial fixed point theorem is a result about contractive transformations on complete

spaces. The space of compact sets with the Haussdorf metric is complete, but what are the

contractive transformations on this space? Fractals are generated by iterated function systems, so if

we are to invoke the trivial fixed point theorem, iterated function systems must be the contractive

transformations that we seek. Let’s investigate.

Suppose that w is a map of points in Euclidean space -- that is, w maps points to points. Then

we can extend w to a map on sets of points S by setting

w ( S ) = { w ( x ) | x ∈ S }.

Now consider a collection of such maps

W = w

1

,K, w

l

{ }. Again we can extend W to a map on

sets S by setting

W ( S ) = w

1

( S )∪L∪ w

l

( S ).

When the maps

w

1

,K, w

l

{ } are contractive, W is called an iterated function system. For the trivial

fixed point theorem to apply, the map W must also be contractive.

Lemma: If

w

1

,K, w

l

are each contractive transformations on Euclidean space, then

W = w

1

,K, w

l

{ } is a contractive transformation on the space of compact sets.

The essential idea behind the proof of this lemma is that since the transformations

w

1

,K, w

l

bring points closer together, the map

W = w

1

,K, w

l

{ } must bring sets closer together since sets are

collections of points. Again the details of the proof are straightforward but somewhat tedious, so

we shall not present the proof here. The interested reader can find the proof in Barnsley’s book,

Fractals Everywhere, on pages 79–.

Now, finally, we have everything we need to invoke the trivial fixed point theorem. The

complete space is the set of compact sets with the Haussdorf metric, and the contractive

transformations are iterated functions systems -- collections of contractive transformations on

Euclidean space.

4.0 Summary

The theme of this lecture -- the one idea you should carry away for the rest of your life -- is

that if you want to find a stable point of any process, iterate! If you are lucky -- if the process

actually converges to some equilibrium -- then by iterating you will arrive at an equilibrium point --

a fixed point of the process. Moreover, it does not matter how you start the process, just keep

iterating. If you are unlucky, the iteration might diverge or there might be more than one

equilibrium point. The trivial fixed point theorem guarantees that if the space of possible states is

complete and the transformation defined by the process is contractive, then the iteration must

converge to a unique equilibrium point of the process independent of the initial state of the system.

We provided three examples of fixed point methods: root finding, relaxation techniques, and

fractals. Since the theme of this lecture is that equilibrium values are generated by iteration, we have

solved the mystery of why fractals generated by iterated function systems are independent of the

base case: contractive transformations always converge to a unique fixed point independent of the

starting value.

Concerning fractals, the main things to take away from this lecture are the following three

items, which summarize what we know about fractals generated from iterated function systems.

Fractal Theorem

Suppose that

W = w

1

,K, w

l

{ } is an iterated function system.

S

0

is a compact set.

S

n + 1

= W ( S

n

) for all

n ≥ 0_._

Then

S

∞

= Lim

n →∞

S

n

exists, and

S

∞

is the unique fixed point of W for any choice of

S

0

Fractal Algorithm

A

0

= B (pick any compact set B )

A

n + 1

= W ( A

n

) = w

1

( A

n

)∪L ∪ w

l

( A

n

A

n

converges to the fractal (fixed point) A determined by the transformations W

Fractal Strategy

Given a fractal A

  • Find a collection of contractive transformations

W = w

1

,K, w

l

{ } that map the fractal

A onto itself -- that is, find W so that

W ( A ) = w

1

( A ) ∪L∪ w

l

( A ) = A.
  • Then A is the fractal generated by the iterated function system W starting from any

compact set S.

For easy comparison, below we have assembled a table containing some analogies between

ordinary Euclidean space and the fractal space of compact sets.

Euclidian Space Fractal Space

Points Compact Sets

Euclidean Distance Haussdorf Metric

Completeness Completeness

-- Cauchy sequences of points converge -- Cauchy sequences of sets converge

Contractive Maps Iterated Function Systems

Fixed Points Fractals

Trivial Fixed Point Theorem Fractal Theorem

Fixed Point Algorithm Fractal Algorithm

-- Start with any point and iterate -- Start with any set and iterate

Table 1: Some analogies between Euclidean space and the fractal space of compact sets.

The term fractal has two distinct definitions in this text:

  • recursion made visible
  • fixed point of an iterated function system.

Each of these definitions reflects a different aspect of fractal curves. The first captures the spirit of

recursive turtle programs; the second captures the essence of contractive transformations. We shall

make the connection between iterated function systems and recursive turtle programs more precise

in our next lecture. When we understand this connection, we shall finally understand why fractals

generated by recursive turtle programs are also independent of the base case of the recursion.

Exercises:

  1. Let A be an affine transformation. Then there is a matrix M and a vector w such that

A ( v ) = v ∗ M

A ( P ) = P ∗ M + w.

a. Show that A has a unique fixed point if and only if

det( M − I ) ≠ 0 , where I is the identity

matrix.

b. Show that when the condition in part a is satisfied, the unique fixed point of A is given by

P = − w ∗( M − I )

− 1

  1. Show that for Gauss-Seidel relaxation:

a. For 2 linear equations in 2 unknowns all the points generated after the initial guess satisfy

the second equation -- that is, all the points lie on the second line.

b. Generalize the result in part a to n linear equations in n unknowns by showing that all the

points generated after the initial guess satisfy the last equation -- that is, all the points lie

on the last hyperplane.

  1. Show that if an iterated function system W consists of a single contractive transformation w ,

then the fractal corresponding to W consists of a single point P.

  1. Let

W = w

1

,K, w

l

{ } be an iterated function system, and let F be the fractal generated by W.

Show that if

P

k

is a fixed point of

w

k

, then

P

k

∈ F.
  1. Show that a fixed point of a contractive affine transformation w is equivalent to an eigenvector

of w corresponding to the eigenvalue 1.

  1. Let
F

i

be the fractal generated by the iterated function system

W

i

i = 1 , 2. Show that if

W

1

⊂ W

2

, then

F

1

⊂ F

2

  1. Let F be the fractal generated by the iterated function system

W = w

1

,K, w

l

{ } , and let T be a

nonsingular affine transformation.

a. Show that

T ( F ) is the fractal generated by the set of transformations

T

− 1

∗ W ∗ T = T

− 1

∗ w

1

∗ T ,K, T

− 1

∗ w

l

∗ T

{ }

b. Conclude that an affine transformation applied to a fractal generates another fractal.

  1. Consider two iterated functions systems

F = f

1

,K, f

m

{ } and

G = g

1

,K, g

m

a. Show that

H ( t ) = ( 1 − t ) F + t G = ( 1 − t ) f

1

  • t g

1

,K,( 1 − t ) f

m

  • t g

m

is an iterated function system for all

0 ≤ t ≤ 1.

b. Using the result in part a , build an animation mapping

i. the Sierpinski gasket into the fractal hangman.

ii. the Koch curve into a fractal bush.

  1. Let

f , g be continuous functions on the interval

[0, 1 ], Define

dist ( f , g ) = max

0 ≤ x ≤ 1

f ( x ) − g ( x )

T ( f )( x ) = 1 + − f ( s )

0

t

0

x

ds dt

a. Show that

i.

dist ( f , g ) ≥ 0

ii.

dist ( f , g ) = 0 ⇔ f = g

iii.

dist ( f , g ) = dist ( g , f )

iv.

dis ( f , h ) ≤ dist ( f , g ) + dist ( g , h )

b. Show that

T ( f ) is a contractive transformation. That is, show that

v.

dist T ( f ), T ( g )

≤ dist f , g

vi.

T ( f )(0) = 1 and

T ( f

c. Verify that

f ( x ) = cos( x ) is a fixed point of

T ( f ).

d. Verify that

f ( x ) = cos( x ) is the unique solution of the ordinary differential equation

f ( x ) = − f ( x ) satisfying the initial conditions

f (0) = 1 ,

f (0) = 0.

  1. In this exercise we shall show how to use iterative fixed point methods to solve the second

order ordinary differential equation

y = a

1

( x )

y + a

0

( x ) y + b ( x ) (*)

subject to the initial conditions

y (0) = c

0

and

y (0) = c

1

Let

f , g be continuous functions on the interval

[0, 1 ], and define

dist ( f , g ) = max

0 ≤ x ≤ 1

f ( x ) − g ( x )

T ( f )( x ) = c

0

  • c

1

x + a

1

( s )

f ( s ) + a

0

( s ) f ( s ) + b ( s )

0

t

0

x

ds dt

a. Show that

i.

dist ( f , g ) ≥ 0

ii.

dist ( f , g ) = 0 ⇔ f = g

iii.

dist ( f , g ) = dist ( g , f )

iv.

dis ( f , h ) ≤ dist ( f , g ) + dist ( g , h )

b. Show that

v.

dist T ( f ), T ( g )

≤ dist f , g

vi.

T ( f )(0) = c

0

and

T ( f

) (0) = c

1

vii.

T ( f )( x ) = f ⇔

f ( x ) = a

1

( x )

f ( x ) + a

0

( x ) f ( x ) + b ( x )

c. Consider the sequence of continuous functions defined by setting

f

0

= g

f

n + 1

= T ( f

n

By invoking the Trivial Fixed Point Theorem, explain why

{ f

n

} converges to a solution of