Mastering Mandelbrots: A Desmos Tutorial
Discover the fascinating world of fractals with Desmos and create the iconic Mandelbrot Set. This comprehensive guide will walk you through the steps to generate this captivating set on the powerful graphing calculator, Desmos.
Before we dive into the specifics, ensure you have a basic understanding of fractals and the Mandelbrot Set. Fractals are repetitive patterns at all scales, and the Mandelbrot Set, named after the mathematician Benoit Mandelbrot, is a set of complex numbers defined by a particular mathematical operation. It's a beautiful example of how simple rules can generate complex patterns.
Setup and Basics in Desmos
Desmos is a powerful, interactive online graphing calculator that allows you to create and manipulate functions visually. Let's start by setting up a basic graph.
Open Desmos (https://www.desmos.com/calculator) and clear the existing graph by clicking on the 'x' in the graph slide panel. Now, let's add a complex plane to our graph. Click on 'Add Graph' and select 'Complex Plane' from the drop-down menu. Your screen should now display a coordinate plane with real and imaginary axes.
The Mandelbrot Function
The Mandelbrot Set is defined by the function z(n+1) = z(n)^2 + c, where z(0) = 0 and c is a constant. Let's set up this function in Desmos.
In the expression input field, type the following: ``` z = z0^2 + c z0 = 0 ``` Click 'Enter'; you should see a dot at the origin (0, 0) of the complex plane.
Iterating the Function
The Mandelbrot Set is based not just on a single iteration of the function but on how the function behaves as n approaches infinity. To see this, we need to iterate the function. Click on the function 'z' and drag the slider next to 'n' to increase the number of iterations. You'll see that the point starts to diverge, moving away from the origin.
However, not all points behave in this manner. Some points stay close to the origin, and others even converge back to it. These are the points that belong to the Mandelbrot Set. Our goal is to create a graph that shows which points escape to infinity and which points stay close to the origin.
Coloring the Mandelbrot Set
To differentiate points that escape and those that don't, we'll use color. Desmos allows us to create custom colors based on the expression 'mod(z)'.
Drag the color slider in the expression input field to the right and select 'mod(z) → color' from the drop-down menu. Mod(z) calculates the magnitude of the complex number z.
Escaping Points
Points that escape to infinity have a large magnitude. By coloring these points with a lighter color, we can visualize how quickly they diverge. Click on the color picker next to 'mod(z)' and choose a light color. Now, as you iterate the function, you'll see a complex, branching pattern emerge – this is the Mandelbrot Set!
Remember, this is just the beginning. You can experiment with different colors, viewing windows, and even create patterns to explore the Mandelbrot Set further.
With practice, you'll find that creating fractals in Desmos is a rewarding process that combines math, art, and creativity. So, happy exploring, and enjoy discovering the beauty of the Mandelbrot Set!