{"id":1493,"date":"2023-04-10T16:07:23","date_gmt":"2023-04-10T16:07:23","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/?post_type=chapter&#038;p=1493"},"modified":"2025-08-26T23:34:37","modified_gmt":"2025-08-26T23:34:37","slug":"fractals-generated-by-complex-numbers-learn-it-5","status":"web-only","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/chapter\/fractals-generated-by-complex-numbers-learn-it-5\/","title":{"raw":"Fractals Generated by Complex Numbers: Learn It 5","rendered":"Fractals Generated by Complex Numbers: Learn It 5"},"content":{"raw":"<h2>Mandelbrot Set<\/h2>\r\n<p>The <strong>Mandelbrot Set<\/strong> is a set of numbers defined based on recursive sequences.<\/p>\r\n<section class=\"textbox keyTakeaway\">\r\n<div>\r\n<h3>Mandelbrot Set<\/h3>\r\n<p>For any complex number [latex]c[\/latex], define the sequence:<\/p>\r\n<p>&nbsp;<\/p>\r\n<center>[latex]{{z}_{n+1}}={{z}_{n}}^{2}+c,\\quad{{z}_{0}}=0[\/latex]<\/center>\r\n<p>&nbsp;<\/p>\r\n<p>If this sequence always stays close to the origin (within [latex]2[\/latex] units), then the number [latex]c[\/latex] is part of the <strong>Mandelbrot Set<\/strong>. If the sequence gets far from the origin, then the number [latex]c[\/latex] is not part of the set.<\/p>\r\n<\/div>\r\n<\/section>\r\n<p>To generate the Mandelbrot Set you'll need to multiply complex numbers.<\/p>\r\n<section class=\"textbox recall\">\r\n<p>Recall that multiply [latex](a + bi)^2[\/latex] uses the same technique as squaring a binomial such as [latex](a + b)^{2}[\/latex], with the added condition that [latex]i^{2}=-1[\/latex]. When squaring binomials, you can follow the pattern [latex](a+b)^{2} = a^2 + 2ab + b^2[\/latex].<\/p>\r\n<p>When squaring complex numbers, follow a similar pattern that takes into account the fact that\u00a0[latex]i^{2}=-1[\/latex].<\/p>\r\n<center>[latex]\\begin{array}{rcl} (a+bi)^{2} &amp; = &amp; a^2 + 2abi + (bi)^2 \\\\ &amp; = &amp; a^2 + 2abi + b^2(i^2) \\\\ &amp; = &amp; a^2 + 2abi + b^2(-1) \\\\ &amp; = &amp; a^2 + 2abi - b^2 \\\\ \\end{array} [\/latex].<\/center><\/section>\r\n<section class=\"textbox example\">\r\n<p>Determine if [latex]c=1+i[\/latex] is part of the Mandelbrot Set.<br \/>\r\n[reveal-answer q=\"703380\"]Show Solution[\/reveal-answer]<br \/>\r\n[hidden-answer a=\"703380\"]<br \/>\r\nWe start with [latex]{{z}_{0}}=0[\/latex]. We continue, omitting some detail of the calculations:<\/p>\r\n<center>[latex]\\begin{array}{l} z_1 = z_0^2 + 1 + i = 0 + 1 + i = 1 + i \\\\ z_2 = z_1^2 + 1 + i = (1 + i)^2 + 1 + i = 1 + 2i + i^2 + 1 + i = 1 + 2i - 1 + 1 + i = 1 + 3i \\\\ z_3 = z_2^2 + 1 + i = (1 + 3i)^2 + 1 + i = 1 + 6i + 9i^2 + 1 + i = 1 + 6i - 9 + 1 + i = -7 + 7i \\\\ z_4 = z_3^2 + 1 + i = (-7 + 7i)^2 + 1 + i = 49 - 98i + 49i^2 + 1 + i = 49 - 98i - 49 + 1 + i = 1 - 97i \\end{array} [\/latex]<\/center>\r\n<p>&nbsp;<\/p>\r\n<br \/>\r\n<p>We can already see that these values are getting quite large. It does not appear that [latex]c=1+i[\/latex] is part of the Mandelbrot Set.<\/p>\r\n<p>The omitted details may be added using this pattern.<\/p>\r\n<center>[latex]\\begin{array}{rcl} (1+i)^{2} +1+i &amp; = &amp; 1+2i+(i^2) +1+i \\\\ &amp; = &amp; 1+2i+(-1) +1+i \\\\ &amp; = &amp; 1+2i-1 +1+i \\\\ &amp; = &amp; 1+3i \\\\ \\end{array} [\/latex].<\/center><br \/>\r\n[\/hidden-answer]<\/section>\r\n<section class=\"textbox example\">\r\n<p>Determine if [latex]c=0.5i[\/latex] is part of the Mandelbrot Set.<br \/>\r\n[reveal-answer q=\"703381\"]Show Solution[\/reveal-answer]<br \/>\r\n[hidden-answer a=\"703381\"]<br \/>\r\nWe start with [latex]{{z}_{0}}=0[\/latex]. We continue, omitting some detail of the calculations:<\/p>\r\n<center>[latex]\\begin{array}{l} z_1 = z_0^2 + 0.5i = 0 + 0.5i = 0.5i \\\\ z_2 = z_1^2 + 0.5i = (0.5i)^2 + 0.5i = -0.25 + 0.5i \\\\ z_3 = z_2^2 + 0.5i = (-0.25 + 0.5i)^2 + 0.5i = -0.1875 + 0.25i \\\\ z_4 = z_3^2 + 0.5i = (-0.1875 + 0.25i)^2 + 0.5i = -0.02734 + 0.40625i \\end{array} [\/latex]<\/center>\r\n<p>&nbsp;<\/p>\r\n<p>While not definitive with this few iterations, it does appear that this value is remaining small, suggesting that [latex]0.5i[\/latex] is part of the Mandelbrot Set.[\/hidden-answer]<\/p>\r\n<\/section>\r\n\r\n[caption id=\"attachment_1737\" align=\"alignright\" width=\"187\"]<img class=\"wp-image-1737 size-full\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/02\/23225415\/inkblot.png\" alt=\"A shaded fractal shown on a graph.\" width=\"187\" height=\"127\" \/> Figure 1. A Mandelbrot Set graphed on a plane[\/caption]\r\n\r\n<p>If all complex numbers are tested, and we plot each number that is in the Mandelbrot Set on the complex plane, we obtain the shape to the right.<\/p>\r\n<p>The boundary of this shape exhibits quasi-self-similarity, in that portions look very similar to the whole.<\/p>\r\n<p>In addition to coloring the Mandelbrot Set itself black, it is common to color the points in the complex plane surrounding the set. To create a meaningful coloring, often people count the number of iterations of the recursive sequence that are required for a point to get further than [latex]2[\/latex] units away from the origin. For example, using [latex]c=1+i [\/latex] above, the sequence was distance [latex]2[\/latex] from the origin after only two recursions.<\/p>\r\n<p>For some other numbers, it may take tens or hundreds of iterations for the sequence to get far from the origin. Numbers that get big fast are colored one shade, while colors that are slow to grow are colored another shade. For example, in the image below light blue is used for numbers that get large quickly, while darker shades are used for numbers that grow more slowly. Greens, reds, and purples can be seen when we zoom in\u2014those are used for numbers that grow very slowly.<\/p>\r\n<center>\r\n[caption id=\"attachment_3736\" align=\"aligncenter\" width=\"300\"]<a href=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/4685\/2017\/03\/05015451\/1440px-Mandel_zoom_00_mandelbrot_set.jpg\"><img class=\"wp-image-3736 size-medium\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/4685\/2017\/03\/05015451\/1440px-Mandel_zoom_00_mandelbrot_set-300x225.jpg\" alt=\"The Mandelbrot set\" width=\"300\" height=\"225\" \/><\/a> Figure 2. A Mandelbrot Set colored in[\/caption]\r\n<\/center>\r\n<p>&nbsp;<\/p>\r\n<section class=\"textbox linkToLearning\" aria-label=\"Link to Learning\">\r\n<p>The Mandelbrot Set, for having such a simple definition, exhibits immense complexity. Zooming in on other portions of the set yields fascinating swirling shapes. <a href=\"https:\/\/en.wikipedia.org\/wiki\/Mandelbrot_set#\/media\/File:Mandelbrot_sequence_new.gif\">This zoom GIF file<\/a> on the Wikipedia Mandelbrot Set entry illustrates what it looks like to zoom in.<\/p>\r\n<\/section>","rendered":"<h2>Mandelbrot Set<\/h2>\n<p>The <strong>Mandelbrot Set<\/strong> is a set of numbers defined based on recursive sequences.<\/p>\n<section class=\"textbox keyTakeaway\">\n<div>\n<h3>Mandelbrot Set<\/h3>\n<p>For any complex number [latex]c[\/latex], define the sequence:<\/p>\n<p>&nbsp;<\/p>\n<div style=\"text-align: center;\">[latex]{{z}_{n+1}}={{z}_{n}}^{2}+c,\\quad{{z}_{0}}=0[\/latex]<\/div>\n<p>&nbsp;<\/p>\n<p>If this sequence always stays close to the origin (within [latex]2[\/latex] units), then the number [latex]c[\/latex] is part of the <strong>Mandelbrot Set<\/strong>. If the sequence gets far from the origin, then the number [latex]c[\/latex] is not part of the set.<\/p>\n<\/div>\n<\/section>\n<p>To generate the Mandelbrot Set you&#8217;ll need to multiply complex numbers.<\/p>\n<section class=\"textbox recall\">\n<p>Recall that multiply [latex](a + bi)^2[\/latex] uses the same technique as squaring a binomial such as [latex](a + b)^{2}[\/latex], with the added condition that [latex]i^{2}=-1[\/latex]. When squaring binomials, you can follow the pattern [latex](a+b)^{2} = a^2 + 2ab + b^2[\/latex].<\/p>\n<p>When squaring complex numbers, follow a similar pattern that takes into account the fact that\u00a0[latex]i^{2}=-1[\/latex].<\/p>\n<div style=\"text-align: center;\">[latex]\\begin{array}{rcl} (a+bi)^{2} & = & a^2 + 2abi + (bi)^2 \\\\ & = & a^2 + 2abi + b^2(i^2) \\\\ & = & a^2 + 2abi + b^2(-1) \\\\ & = & a^2 + 2abi - b^2 \\\\ \\end{array}[\/latex].<\/div>\n<\/section>\n<section class=\"textbox example\">\n<p>Determine if [latex]c=1+i[\/latex] is part of the Mandelbrot Set.<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q703380\">Show Solution<\/button><\/p>\n<div id=\"q703380\" class=\"hidden-answer\" style=\"display: none\">\nWe start with [latex]{{z}_{0}}=0[\/latex]. We continue, omitting some detail of the calculations:<\/p>\n<div style=\"text-align: center;\">[latex]\\begin{array}{l} z_1 = z_0^2 + 1 + i = 0 + 1 + i = 1 + i \\\\ z_2 = z_1^2 + 1 + i = (1 + i)^2 + 1 + i = 1 + 2i + i^2 + 1 + i = 1 + 2i - 1 + 1 + i = 1 + 3i \\\\ z_3 = z_2^2 + 1 + i = (1 + 3i)^2 + 1 + i = 1 + 6i + 9i^2 + 1 + i = 1 + 6i - 9 + 1 + i = -7 + 7i \\\\ z_4 = z_3^2 + 1 + i = (-7 + 7i)^2 + 1 + i = 49 - 98i + 49i^2 + 1 + i = 49 - 98i - 49 + 1 + i = 1 - 97i \\end{array}[\/latex]<\/div>\n<p>&nbsp;<\/p>\n<div class=\"wp-nocaption \"><\/div>\n<p>We can already see that these values are getting quite large. It does not appear that [latex]c=1+i[\/latex] is part of the Mandelbrot Set.<\/p>\n<p>The omitted details may be added using this pattern.<\/p>\n<div style=\"text-align: center;\">[latex]\\begin{array}{rcl} (1+i)^{2} +1+i & = & 1+2i+(i^2) +1+i \\\\ & = & 1+2i+(-1) +1+i \\\\ & = & 1+2i-1 +1+i \\\\ & = & 1+3i \\\\ \\end{array}[\/latex].<\/div>\n<p>\n<\/div>\n<\/div>\n<\/section>\n<section class=\"textbox example\">\n<p>Determine if [latex]c=0.5i[\/latex] is part of the Mandelbrot Set.<\/p>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q703381\">Show Solution<\/button><\/p>\n<div id=\"q703381\" class=\"hidden-answer\" style=\"display: none\">\nWe start with [latex]{{z}_{0}}=0[\/latex]. We continue, omitting some detail of the calculations:<\/p>\n<div style=\"text-align: center;\">[latex]\\begin{array}{l} z_1 = z_0^2 + 0.5i = 0 + 0.5i = 0.5i \\\\ z_2 = z_1^2 + 0.5i = (0.5i)^2 + 0.5i = -0.25 + 0.5i \\\\ z_3 = z_2^2 + 0.5i = (-0.25 + 0.5i)^2 + 0.5i = -0.1875 + 0.25i \\\\ z_4 = z_3^2 + 0.5i = (-0.1875 + 0.25i)^2 + 0.5i = -0.02734 + 0.40625i \\end{array}[\/latex]<\/div>\n<p>&nbsp;<\/p>\n<p>While not definitive with this few iterations, it does appear that this value is remaining small, suggesting that [latex]0.5i[\/latex] is part of the Mandelbrot Set.<\/p><\/div>\n<\/div>\n<\/section>\n<figure id=\"attachment_1737\" aria-describedby=\"caption-attachment-1737\" style=\"width: 187px\" class=\"wp-caption alignright\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1737 size-full\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/02\/23225415\/inkblot.png\" alt=\"A shaded fractal shown on a graph.\" width=\"187\" height=\"127\" \/><figcaption id=\"caption-attachment-1737\" class=\"wp-caption-text\">Figure 1. A Mandelbrot Set graphed on a plane<\/figcaption><\/figure>\n<p>If all complex numbers are tested, and we plot each number that is in the Mandelbrot Set on the complex plane, we obtain the shape to the right.<\/p>\n<p>The boundary of this shape exhibits quasi-self-similarity, in that portions look very similar to the whole.<\/p>\n<p>In addition to coloring the Mandelbrot Set itself black, it is common to color the points in the complex plane surrounding the set. To create a meaningful coloring, often people count the number of iterations of the recursive sequence that are required for a point to get further than [latex]2[\/latex] units away from the origin. For example, using [latex]c=1+i[\/latex] above, the sequence was distance [latex]2[\/latex] from the origin after only two recursions.<\/p>\n<p>For some other numbers, it may take tens or hundreds of iterations for the sequence to get far from the origin. Numbers that get big fast are colored one shade, while colors that are slow to grow are colored another shade. For example, in the image below light blue is used for numbers that get large quickly, while darker shades are used for numbers that grow more slowly. Greens, reds, and purples can be seen when we zoom in\u2014those are used for numbers that grow very slowly.<\/p>\n<div style=\"text-align: center;\">\n<figure id=\"attachment_3736\" aria-describedby=\"caption-attachment-3736\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/4685\/2017\/03\/05015451\/1440px-Mandel_zoom_00_mandelbrot_set.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3736 size-medium\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/4685\/2017\/03\/05015451\/1440px-Mandel_zoom_00_mandelbrot_set-300x225.jpg\" alt=\"The Mandelbrot set\" width=\"300\" height=\"225\" \/><\/a><figcaption id=\"caption-attachment-3736\" class=\"wp-caption-text\">Figure 2. A Mandelbrot Set colored in<\/figcaption><\/figure>\n<\/div>\n<p>&nbsp;<\/p>\n<section class=\"textbox linkToLearning\" aria-label=\"Link to Learning\">\n<p>The Mandelbrot Set, for having such a simple definition, exhibits immense complexity. Zooming in on other portions of the set yields fascinating swirling shapes. <a href=\"https:\/\/en.wikipedia.org\/wiki\/Mandelbrot_set#\/media\/File:Mandelbrot_sequence_new.gif\">This zoom GIF file<\/a> on the Wikipedia Mandelbrot Set entry illustrates what it looks like to zoom in.<\/p>\n<\/section>\n","protected":false},"author":15,"menu_order":14,"template":"","meta":{"_candela_citation":"[]","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"part":74,"module-header":"learn_it","content_attributions":[],"internal_book_links":[],"video_content":null,"cc_video_embed_content":{"cc_scripts":"","media_targets":[]},"try_it_collection":null,"_links":{"self":[{"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/pressbooks\/v2\/chapters\/1493"}],"collection":[{"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/wp\/v2\/users\/15"}],"version-history":[{"count":51,"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/pressbooks\/v2\/chapters\/1493\/revisions"}],"predecessor-version":[{"id":15696,"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/pressbooks\/v2\/chapters\/1493\/revisions\/15696"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/pressbooks\/v2\/parts\/74"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/pressbooks\/v2\/chapters\/1493\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/wp\/v2\/media?parent=1493"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/pressbooks\/v2\/chapter-type?post=1493"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/wp\/v2\/contributor?post=1493"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/quantitativereasoning\/wp-json\/wp\/v2\/license?post=1493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}