NOTES ON BARNSLEY FERN

Similar documents
USING THE RANDOM ITERATION ALGORITHM TO CREATE FRACTALS

Fractals and Dimension

Fractals. R. J. Renka 11/14/2016. Department of Computer Science & Engineering University of North Texas. R. J. Renka Fractals

Problem Set 6: Solutions Math 201A: Fall a n x n,

Fractals and iteration function systems II Complex systems simulation

Problem Set 2: Solutions Math 201A: Fall 2016

Take a line segment of length one unit and divide it into N equal old length. Take a square (dimension 2) of area one square unit and divide

Lecture 9 Metric spaces. The contraction fixed point theorem. The implicit function theorem. The existence of solutions to differenti. equations.

MAS3706 Topology. Revision Lectures, May I do not answer enquiries as to what material will be in the exam.

THE INVERSE FUNCTION THEOREM

7 Complete metric spaces and function spaces

Approximation of the attractor of a countable iterated function system 1

Functional Analysis. Franck Sueur Metric spaces Definitions Completeness Compactness Separability...

Self-Referentiality, Fractels, and Applications

MATH 54 - TOPOLOGY SUMMER 2015 FINAL EXAMINATION. Problem 1

The uniform metric on product spaces

1 Topology Definition of a topology Basis (Base) of a topology The subspace topology & the product topology on X Y 3

Applied Analysis (APPM 5440): Final exam 1:30pm 4:00pm, Dec. 14, Closed books.

d(x n, x) d(x n, x nk ) + d(x nk, x) where we chose any fixed k > N

Math 118B Solutions. Charles Martin. March 6, d i (x i, y i ) + d i (y i, z i ) = d(x, y) + d(y, z). i=1

Examensarbete. Fractals and Computer Graphics. Meritxell Joanpere Salvadó

Functional Analysis HW #3

Construction of Smooth Fractal Surfaces Using Hermite Fractal Interpolation Functions. P. Bouboulis, L. Dalla and M. Kostaki-Kosta

4 Countability axioms

Metric Spaces and Topology

THE CONLEY ATTRACTORS OF AN ITERATED FUNCTION SYSTEM

FIXED POINT THEOREMS AND CHARACTERIZATIONS OF METRIC COMPLETENESS. Tomonari Suzuki Wataru Takahashi. 1. Introduction

Locally convex spaces, the hyperplane separation theorem, and the Krein-Milman theorem

Analytic Continuation of Analytic (Fractal) Functions

Course 212: Academic Year Section 1: Metric Spaces

Math 209B Homework 2

THE CONTRACTION MAPPING THEOREM, II

Expectations over Fractal Sets

Analysis III Theorems, Propositions & Lemmas... Oh My!

Lecture 4: Completion of a Metric Space

Analysis Finite and Infinite Sets The Real Numbers The Cantor Set

Functional Analysis, Math 7320 Lecture Notes from August taken by Yaofeng Su

Notes for Functional Analysis

Introduction to Topology

INTRODUCTION TO TOPOLOGY, MATH 141, PRACTICE PROBLEMS

B. Appendix B. Topological vector spaces

ANALYSIS WORKSHEET II: METRIC SPACES

MATH 202B - Problem Set 5

Honours Analysis III

ITERATED FUNCTION SYSTEMS WITH CONTINUOUS PLACE DEPENDENT PROBABILITIES

FUNCTIONAL ANALYSIS-NORMED SPACE

1.4 The Jacobian of a map

Math 426 Homework 4 Due 3 November 2017

COMPLETION OF A METRIC SPACE

Economics 204 Fall 2011 Problem Set 2 Suggested Solutions

Unconventional Space-filling Curves

The Order in Chaos. Jeremy Batterson. May 13, 2013

Lecture Notes in Advanced Calculus 1 (80315) Raz Kupferman Institute of Mathematics The Hebrew University

Math General Topology Fall 2012 Homework 13 Solutions

l(y j ) = 0 for all y j (1)

arxiv: v1 [math.ds] 17 Mar 2010

Problem Set 5: Solutions Math 201A: Fall 2016

Generation of Fractals via Self-Similar Group of Kannan Iterated Function System

Continuity. Matt Rosenzweig

Math 140A - Fall Final Exam

Maths 212: Homework Solutions

Overview of normed linear spaces

Many of you got these steps reversed or otherwise out of order.

PHY411 Lecture notes Part 5

Real Analysis Notes. Thomas Goller

From now on, we will represent a metric space with (X, d). Here are some examples: i=1 (x i y i ) p ) 1 p, p 1.

THE SHIFT SPACE FOR AN INFINITE ITERATED FUNCTION SYSTEM

Chapter 2 Metric Spaces

CHAOS/FRACTAL

Contraction Mappings Consider the equation

The Hausdorff Measure of the Attractor of an Iterated Function System with Parameter

4.6 Montel's Theorem. Robert Oeckl CA NOTES 7 17/11/2009 1

s P = f(ξ n )(x i x i 1 ). i=1

Chapter 3: Baire category and open mapping theorems

RECURRENT ITERATED FUNCTION SYSTEMS

SOLUTIONS TO SOME PROBLEMS

Solutions to Tutorial 8 (Week 9)

1 Introduction and preliminaries

Lecture 5 - Hausdorff and Gromov-Hausdorff Distance

MAT 771 FUNCTIONAL ANALYSIS HOMEWORK 3. (1) Let V be the vector space of all bounded or unbounded sequences of complex numbers.

Remarks on Some New Fixed Point Theorems for Contractive and Nonexpansive Mappings

Problem Set 5. 2 n k. Then a nk (x) = 1+( 1)k

V -VARIABLE FRACTALS: FRACTALS WITH PARTIAL SELF SIMILARITY

F (z) =f(z). f(z) = a n (z z 0 ) n. F (z) = a n (z z 0 ) n

Lecture Notes on Metric Spaces

Econ Lecture 3. Outline. 1. Metric Spaces and Normed Spaces 2. Convergence of Sequences in Metric Spaces 3. Sequences in R and R n

Convergence of a Generalized Midpoint Iteration

Hausdorff Measure. Jimmy Briggs and Tim Tyree. December 3, 2016

Continuous Functions on Metric Spaces

Fractals. Krzysztof Gdawiec.

The Arzelà-Ascoli Theorem

MORE EXERCISES FOR SECTIONS II.1 AND II.2. There are drawings on the next two pages to accompany the starred ( ) exercises.

1 Lecture 4: Set topology on metric spaces, 8/17/2012

Appendix B Convex analysis

Notes for Functional Analysis

MATH 51H Section 4. October 16, Recall what it means for a function between metric spaces to be continuous:

2. Metric Spaces. 2.1 Definitions etc.

Math General Topology Fall 2012 Homework 1 Solutions

Topological properties

NOTES ON EXISTENCE AND UNIQUENESS THEOREMS FOR ODES

Transcription:

NOTES ON BARNSLEY FERN ERIC MARTIN 1. Affine transformations An affine transformation on the plane is a mapping T that preserves collinearity and ratios of distances: given two points A and B, if C is the middle of the segment [A, B] then T (C) is the middle of the segment [T (A), T (B)]. Translations, contractions, expansions, reflections, rotations, are all particular cases of affine transformations. In general, an affine transformation T maps a point (x, y) to a point (x, y ) such that ( ) ( ( ) ( x a b x e y = c d) y f) for some reals a, b, c, d, e and f, that is: x = ax by e y = cx dy f In other words, T is the composition of a linear transformation with coefficients a, b, c and d, and a translation with coefficients e and f. T is totally determined by the image of three noncollinear points P 1, P 2 and P 3. Indeed, set P 1 = (x 1, y 1 ), P 2 = (x 2, y 2 ), P 3 = (x 3, y 3 ), T (P 1 ) = (x 1, y 1), T (P 2 ) = (x 2, y 2) and T (P 3 ) = (x 3, y 3). Then a, b and e are the solutions of the system of equations x 1 a y 1 b e = x 1 x 2 a y 2 b e = x 2 x 3 a y 3 b e = x 3 and c, d and f are the solutions of the system of equations x 1 c y 1 d f = y 1 x 2 c y 2 d f = y 2 x 3 c y 3 d f = y 3 Both systems of equation have a unique solution iff x 1 y 1 1 x 2 y 2 1 x 3 y 3 1 0 which is equivalent, since a determinant does not change if one line is subtracted from another line, to x 1 y 1 1 x 2 x 1 y 2 y 1 0 x 3 x 1 y 3 y 1 0 0 which is equivalent to (x 2 x 1 )(y 3 y 1 ) (y 2 y 1 )(x 3 x 1 ) 0, which is equivalent to y2 y1 x 2 x 1 and P 3 are noncollinear. y3 y1 x 3 x 1, that is, P 1, P 2 Date: Session 2, 2015.

2 ERIC MARTIN 2. Barnsley fern Barnsley fern is a fractal, a scale invariant part of the plane, resembling the real fern Black Spleenwort, defined from four affine contractions, that is, affine transformations T such that for all points A and B of the plane, d(t (A), T (B)) < d(a, B). These transformations are: T 1, which maps the fern to its yellow part, by projecting all points of the fern on the y-axis before applying a contraction of factor 0.16, sending the point (x, y) to the point (x, y ) such that ( ) x = y ( 0 0 0 0.16 ) ( x y T 2, which maps the fern to its green part, by mapping the tip of the fern to itself and the tips of the red and blue leaflets to the tips of the largest left and right green leaflets, respectively, sending the point (x, y) to the point (x, y ) such that ) ( ) 0 0 ( ) ( ( ) ( ) x 0.85 0.04 x 0 y = 0.04 0.85) y 1.6 T 3, which maps the fern to its red part, by mapping the bottom of the stem of the fern to the bottom of the stem of the red leaflet and the tips of the red and blue leaflets to the tips of the largest left and right leaflets of the red leaflet, respectively, sending the point (x, y) to the point (x, y ) such that ( x y ) = ( ) ( ( ) 0.2 0.26 x 0 0.23 0.22 y) 1.6 T 4, which maps the fern to its blue part, by mapping the bottom of the stem of the fern to the bottom of the stem of the blue leaflet and the tips of the red and blue leaflets to the tips of the largest left and right leaflets of the blue leaflet, respectively, sending the point (x, y) to the point (x, y ) such that ( ) ( ( ) ( ) x 0.15 0.28 x 0 y = 0.26 0.24) y 0.44

NOTES ON BARNSLEY FERN 3 3. Banach s fixed point theorem Denote by d the distance between two points of the plane, R 2. An iterated function system (IFS) is a finite sequence of contracting affine transformations. If F is the set of points that make up Barnsley fern, then T 1 F T 2 F T 3 F T 4 F = F, capturing the fact that Barnsley fern is the attractor of the IFS (T 1, T 2, T 3, T 4 ) defined in the previous section: it is the unique fixed point of the operator T that maps a compact subset X of R 2, that is, a bounded closed subset X of R 2, to T 1 X T 2 X T 3 X T 4 X. The existence and unicity of F follows from Banach s fixed point theorem: Let K be a complete metric space and let T : K K be a contraction. Then T has a unique fixed point. Moreover, for all points X in K, T n (X) converges to this fixed point when n tends towards infinity. To apply the theorem, we take for K the set of compact subsets of R 2 and for the distance between two members of K, the Hausdorff distance d H : given two compact subsets X 1 and X 2 of R 2, the Hausdorff distance between X 1 and X 2 is the least real number δ such that every point in X 1 is at a distance of at most δ of some point in X 2, and every point in X 2 is at a distance of at most δ of some point in X 1 : d H (X 1, X 2 ) = max ( max min d(x 1, x 2 ), max min d(x 1, x 2 ) ) x 2 X 2 x 1 X 1 x 1 X 1 For the theorem to apply, we need to verify that if (T 1,..., T n ) is an IFS, then the function T that maps a compact subset X of R 2 to T 1 X T n X is a contraction. It suffices to show the following: if for all i {1,..., n}, T i has a contraction factor of r i [0, 1), then T has a contraction factor equal to max(r 1,..., r n ), that is: if for all i {1,..., n} and members x 1 and x 2 of R, d(t i (x 1 ), T i (x 2 )) is at most equal to r i d(x 1, x 2 ) then for all compact subsets X 1 and X 2 of R 2, d H (T (X 1 ), T (X 2 )) is at most equal to max(r 1,..., r n )d H (X 1, X 2 ). This follows from the two lemmas that follow. Lemma 1. Let T be an affine contraction and r [0, 1) be a contraction factor for T. Then the mapping, still denoted T, that maps a compact subset X of R 2 to {T (x) x X} is a contraction of contraction factor r. Proof. Let X 1 and X 2 be two compact subsets of R 2. It suffices to show that d H (T (X 1 ), T (X 2 )) rd H (X 1, X 2 ), that is: for all u X 1, min x2 X 2 d(t (u), T (x 2 )) rd H (X 1, X 2 ). Let u X 1 be given. Since for all v X 2, d(t (u), T (v)) rd(u, v), it follows that for all v X 2, min x2 X 2 d(t (u), T (x 2 )) rd(u, v), hence and we are done. min d(t (u), T (x 2 )) r min d(u, x 2 )) r max x 2 X 2 x 2 X 2 x 1 X 1 x 2 X 2 min d(x 1, x 2 ) rd H (X 1, X 2 ), x 2 X 2 Lemma 2. Let A, B, C and D be compact subsets of R 2. Then d H (A B, C D) max(d H (A, C), d H (B, D)). Proof. It suffices to show that d H (A B, C D) d H (A, C) or d H (A B, C D) d H (B, D), that is: for all u A B, min y C D d(u, y) d H (A, C) or min y C D d(u, y) d H (B, D). Let u A B be given. Since C D is compact, let v C D be such that d(u, v) = min y C D d(u, y). So d(u, v) min y C d(u, y) and d(u, v) min y D d(u, y). Moreover, either u A, in which case min y C d(u, y) max x A min y C d(x, y) = d H (A, C), or u B, in which case min y D d(u, y) max x B min y D d(x, y) = d H (B, D), and we are done. Let us now prove Banach s fixed point theorem, denoting by d the distance on the complete metric space K, and by r the contraction factor of T. For unicity, assume for a contradiction that X 1 and X 2 are two distinct fixed points of T. Then T (X 1 ) T (X 2 ) = X 2 X 1, so d(t (X 1 ), T (X 2 )) = d(x 1, X 2 ) 0. Moreover, since T is a contraction, d(t (X 1 ), T (X 2 )) rd(x 1, X 2 ) for some r [0, 1); contradiction indeed. Let X 0 be a member of K and for all n N, set X n1 = T (X n ). To complete the proof, it suffices to show that (X n ) n N converges to a member X of K, and that X is a fixed point of T. If X 1 = X 0 then we are done, so suppose otherwise. As K is complete, in order to show that (X n ) n N converges, it suffices to verify that (X n ) n N is a Cauchy sequence, that is: for all ɛ > 0, there exists p N such that for m > p and n > m, d(x n, X m ) < ɛ. First note that for all n 1, d(x n1, X n ) = d(t (X n ), T (X n 1 )) rd(x n, X n 1 ), so for all n N, d(x n1, X n ) r n d(x 1, X 0 ). Then note that for all m N and n > m, d(x n, X m ) = d((x n, X n 1 ) (X n 1, X n 2 ) (X m1, X m )) d(x n, X n 1 ) d(x n 1, X n 2 ) d(x m1, X m ) (r n 1 r n 2 r m )d(x 1, X 0 ) rm 1 r d(x 1, X 0 )

4 ERIC MARTIN Since r < 1, this implies that (X n ) n N is indeed a Cauchy sequence. Now observe that T is continuous, and actually uniformly continuous: for all ɛ > 0 and X, X K, if d(x, X ) < ɛ then d(t (X), T (X )) rd(x, X ) < rɛ < ɛ. Since T is continuous and (X n ) n N converges to some member of K, say X, (T (X n )) n N converges to T (X). Then T (X) = lim n T (X n ) = lim n X n1 = X, completing the proof of the theorem. 4. Practical application The fixed point of the contraction T : K K of Banach s fixed point theorem can be obtained by successive applications of T starting from an arbitrary point of K. Let us see this in action with Sierpinsky triangle, which is obtained from an iterated function system consisting of three affine contractions, which are the composition of a contraction of factor 0.5, hence a linear transformation defined by the matrix ( 0.5 ) 0 0 0.5 and one of the following three translations (taking the lower left corner of the triangle as origin): identity (for the lower left subtriangle), a translation by (0.5, 0) (for the lower right subtriangle) a translation by (0.25, 0.5) (for the top subtriangle) Here is what is obtained in 4 iterations, starting with the unit square with the origin as lower left corner:

NOTES ON BARNSLEY FERN 5 And here is what is obtained in 4 iterations, starting with some particular part of the unit square: Any compact subset of R 2 can be used as a starting point. It does not have to be included in the unit square; it can simply be an arbitrary point p of R 2 indeed, {p} is compact. Let us consider again Barnsley fern F. If we chose as starting point an arbitrary point p of R 2 that belongs to F, then F is the topological closure of the union of {p}, T 1 {p}, T 2 {p}, T 3 {p}, T 4 {p}, T 1 T 1 {p}, T 1 T 2 {p}, T 1 T 3 {p}, T 1 T 4 {p}, T 2 T 1 {p}, T 2 T 2 {p}, T 2 T 3 {p}, T 2 T 4 {p}, T 3 T 1 {p}, T 3 T 2 {p}, T 3 T 3 {p}, T 3 T 4 {p}, T 4 T 1 {p}, T 4 T 2 {p}, T 4 T 3 {p}, T 4 T 4 {p},... In practice, we start from p 0 = (0, 0), which is the point at the bottom of the stem of the fern. For all n > 0, we generate at stage n a point p n, in such a way that for all n > 0,: p n1 is T 1 (p n ) with probability 0.01, p n1 is T 2 (p n ) with probability 0.85, p n1 is T 3 (p n ) with probability 0.07, p n1 is T 4 (p n ) with probability 0.07.

6 ERIC MARTIN so that the number of points drawn in the yellow, green, red and blue parts of the fern are in proportion of those probabilities, respectively. As for the factor, it is used to appropriately scale the image of the fern. COMP9021 Principles of Programming