Search Knowledge

© 2026 LIBREUNI PROJECT

Chaos Theory and Fractals

Chaos Theory and Fractals

Chaos theory explores systems that are highly sensitive to initial conditions—a concept popularly known as the “Butterfly Effect.” Fractals are complex geometric shapes that exhibit self-similarity across different scales.

Sensitive Dependence on Initial Conditions

In a chaotic system, small differences in initial state lead to vastly different outcomes over time. This makes long-term prediction impossible, even for deterministic systems.

python
1def logistic_map(x, r):
2 return r * x * (1 - x)
3 
4r = 3.9 # Chaotic regime
5x1 = 0.5
6x2 = 0.500001
7dt = []
8 
9print("Comparison of two nearly identical starting points:")
10for i in range(10):
11 x1 = logistic_map(x1, r)
12 x2 = logistic_map(x2, r)
13 print(f"Iteration {i}: x1={x1:.4f}, x2={x2:.4f}, diff={abs(x1-x2):.6f}")

Bifurcation

As a system parameter (like rr in the logistic map) changes, the qualitative behavior of the system can change abruptly at certain values, called bifurcation points.

What happens to the logistic map as 'r' increase from 2.5 to 3.5?

Fractals and Hausdorff Dimension

Fractals are objects with non-integer dimensions. The Hausdorff dimension measures how a set fills space as it is scaled. For the Cantor set or the Koch snowflake, this dimension is a fraction.

python
1import numpy as np
2 
3def mandelbrot(c, max_iter=100):
4 z = 0
5 for n in range(max_iter):
6 if abs(z) > 2:
7 return n
8 z = z*z + c
9 return max_iter
10 
11# Testing a few points
12points = [complex(0, 0), complex(1, 1), complex(-1, 0)]
13for p in points:
14 res = mandelbrot(p)
15 status = "Inside" if res == 100 else f"Escaped at iter {res}"
16 print(f"Point {p}: {status}")

What is the defining property of the Mandelbrot set?

Strange Attractors

A strange attractor is an attractor that exhibits chaotic behavior. The most famous example is the Lorenz Attractor, which arises from a simplified model of atmospheric convection.

Previous Module Category Theory
Next Module Complex Numbers