how to make a mandelbrot set in desmos

Mastering Mandelbrots: A Desmos Tutorial

By Kevin Allen
AD

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.

AD
Diffraction of the Mandelbrot Set
Diffraction of the Mandelbrot Set
Conjunto de Mandelbrot
Conjunto de Mandelbrot
Deepest Mandelbrot Set Zoom Animation ever - a New Record! 10^275 (2.1E275 or 2^915)
Deepest Mandelbrot Set Zoom Animation ever - a New Record! 10^275 (2.1E275 or 2^915)

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.

Mandelbrot Set - Javalab
Mandelbrot Set - Javalab
Mandelbrot Gif, Mandelbrot Fractal Gif, Mandelbrot Fractal
Mandelbrot Gif, Mandelbrot Fractal Gif, Mandelbrot Fractal
Lucky Dragon — Mandelbrot Deep Zoom
Lucky Dragon — Mandelbrot Deep Zoom

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.

AD

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.

Mandelbrot
Mandelbrot
Freaking Fractal Friday - Part #2
Freaking Fractal Friday - Part #2
Mandelbrot Zoom 10^227 [1080x1920] on Make a GIF
Mandelbrot Zoom 10^227 [1080x1920] on Make a GIF
Mandelbrot set facts for kids
Mandelbrot set facts for kids
Making the Mandelbrot Set with Excel
Making the Mandelbrot Set with Excel
Plans – The Pragmatic Procrastinator
Plans – The Pragmatic Procrastinator

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.

AD

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!

The Mandelbrot set
The Mandelbrot set
Mandelbrot μ (inversion)
Mandelbrot μ (inversion)
What makes the Mandelbrot set so special?
What makes the Mandelbrot set so special?

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!

AD
AD