Explore Magnetic Pendulum Fractals

Try adjusting the parameters yourself: : : : : :

Magnetic Pendulum Fractals: Why Does a Tiny Difference Lead to a Completely Different Magnet?

What happens if you hang a ball on a string and place a few magnets beneath it?

The ball will swing under the influence of the magnetic forces and eventually be attracted to one of the magnets — this seems like a very simple thing.

But if we don't just release one ball, but instead try many different starting points across the entire plane and record which magnet each ball is ultimately attracted to, we get a very peculiar pattern: large regions each seem to belong to a different magnet, but at the boundaries between them, increasingly fine and complex textures appear.

This is Magnetic Pendulum Fractals.

Every Color Represents the Ball's Final Destination

Think of every point in the image as the starting position of a ball — release it from there and let it swing freely.

If it's finally attracted to the left magnet, color that starting point one color; if it ends up at the right magnet, color it another. Repeat this for the whole plane and it will gradually be divided into different regions.

These regions are like a "destination map": starting from here → ending up here.

So the colors in the image are not randomly generated patterns — they record the final outcomes of countless ball trajectories.

The Strange Thing Happens at the Boundary

If the pendulum's motion were very simple, things should be easy to understand.

For example, if balls near a certain position all end up at the same magnet, the entire region should be the same color.

And indeed, most places are exactly like that.

But as we approach the boundary between different magnets, things suddenly become complex.

You may notice: two starting positions that are only slightly apart can lead to balls being pulled by completely different magnets. Zoom into that region and the once-simple boundary reveals more and more fine structure. Zoom in again, and even more complex textures remain.

And so the colors keep interleaving, forming a beautifully intricate fractal pattern.

Why Does Such a Small Difference Lead to Completely Different Outcomes?

The key is: the pendulum's motion is not simply a matter of heading toward the nearest magnet.

The ball is simultaneously affected by magnetic force, gravity, and its own inertia — it may move toward one magnet, then get pulled away by another as it passes nearby; along the way it keeps swinging, changing direction, and losing energy.

So a seemingly tiny change in starting position can send the ball in a different direction at some critical moment, and once it heads in a different direction, its trajectory gradually diverges — until the two balls end up in the "territory" of different magnets.

This is the most fascinating thing about Magnetic Pendulum Fractals: a tiny difference in starting point can lead to a completely different endpoint.

This Is Not Randomness — It's Extreme Sensitivity to Initial Conditions

Looking at such a complex pattern, it's easy to think: "Are these balls randomly choosing a magnet?" But that's not the case.

If all conditions are exactly the same — including the positions of the magnets, the ball's initial position, its velocity, and the system parameters — then the ball's outcome is also determined.

In other words: it is not random, it is just very complex — and that complexity comes from the system's sensitivity to initial conditions during motion.

This is also a very important phenomenon in chaotic motion: you don't need to add randomness to the system; just shift the starting point slightly, and you may get a completely different result.

Why Do Fractals Form?

Looking back at those interleaving color boundaries, you'll notice something remarkable: they are not simple straight lines — they can have tiny branches, curves, and nested structures, and as you keep zooming in, new details keep appearing.

This is one of the most captivating aspects of fractals: complex structures don't arise out of nowhere — they are generated by the repeated application of very simple rules of motion.

The magnetic pendulum only needs to obey a few ordinary physical laws: magnets attract, the ball is subject to gravity, it has inertia, and it gradually loses energy — but combining these simple rules produces extraordinarily complex "destination boundaries".

Try Exploring It Yourself

One of the most interesting things in the Magnetic Pendulum Fractal is to keep changing the parameters.

Change the positions of the magnets and you'll see the entire fractal reorganize.

Change the strength of the magnets and the "territory" of each magnet shifts.

Change the damping, and the time and trajectory of the ball's motion change accordingly.

Even a slight change in the starting position can turn a ball that would have been attracted to one magnet into one that ends up at another.

Every pattern you see can be understood as: the collection of final fates across countless different starting points.

What Happens When You Change the Number of Magnets?

The more magnets there are, the more possible "final destinations" the ball has.

With only two magnets, the image is mainly dividing the plane between two outcomes.

Add a third, fourth, or even more magnets, and the boundaries between the different destinations become richer and the overall pattern changes.

Each additional magnet adds a new color and a new possibility to this "map of fates".

You can try gradually increasing the number of magnets and watch how a simple region slowly becomes a more complex structure.

Damping: Slowing the Swing to a Stop

In reality, a pendulum doesn't swing forever — air resistance, friction, and other factors gradually weaken the motion. This effect of slowing the motion to a stop is represented by damping.

With high damping, the ball settles down faster, possibly locking in its final destination before experiencing too many swings. With low damping, the ball can move for longer, swinging back and forth between different magnets — this leads to more complex motion and can significantly change the fractal boundaries that form.

So damping is not just a parameter that "makes the animation stop faster" — it actually affects how much the ball can experience before making its final choice.

Restoring Force: How Strongly Does the Ball Want to Return to the Center?

Besides the magnets, the magnetic pendulum itself can also be subject to a force that pulls it back to the center — this is the restoring force.

You can think of it as an invisible rubber band: the further the ball strays from the center, the more it wants to return.

With a strong restoring force, the ball is less likely to stray far from the center for long, and the motion becomes more concentrated in the central region.

With a weak restoring force, the magnets have a stronger influence on the ball, and it more easily moves toward the surrounding magnets.

So changing the restoring force is like adjusting the contest between the "center" and the "magnets".

Magnetic Strength: How "Persistent" Are the Magnets?

Magnetic strength directly determines how noticeably the magnets influence the ball.

When the magnetic force is weak, the restoring force and the ball's own state of motion still have a large effect.

As the magnetic force grows stronger, the ball is more easily pulled toward nearby magnets.

Especially in the boundary regions between different magnets, a change in magnetic strength can shift what was once a region belonging to one magnet.

So what you see is not just a change in color intensity — it may be the entire fractal map rearranging itself.

Four Parameters, Four Different Things Being Changed

So this seemingly simple magnetic pendulum can actually be explored from several angles:

Number of magnets: How many possible final destinations are there?

Damping: How long will the ball move, and how many swings will it experience?

Restoring force: How strongly does the center pull the ball?

Magnetic strength: How strongly do the magnets attract the ball?

When you change these parameters, you're not simply "switching to a different pattern" — you are actually changing the relationship between the various forces in this system, and the fractal that emerges is the result left behind by all those forces acting together.

You Can Think of It as a "Map of the Future"

If you think of the entire plane as a map, then every position corresponds to a question: if I place the ball here right now, where will it end up?

Magnetic Pendulum Fractals are the visualization of that map. Large regions of the same color indicate that starting points there are relatively "safe" — no matter how slightly you shift the ball, it usually still ends up at the same magnet. Regions where colors are densely interleaved are very sensitive: just a tiny shift in the starting point can change the final destination.

So the most complex boundaries are actually the most sensitive places in this system.

From One Ball to One Fractal

What makes Magnetic Pendulum Fractals so fascinating may not be the beautiful patterns they draw, but rather that they make an abstract concept directly visible: a system that fully obeys the laws of physics can still produce unpredictable, complex behavior because of its extreme sensitivity to initial conditions.

Every color represents a complete trajectory. Every boundary represents two different final fates meeting.

And those ever-finer textures revealed by zooming in tell us: sometimes, what determines the future is not "which side you're on", but exactly where you begin.

Continue Exploring the Physical World

Change the starting position just a little, and the final destination can be completely different. When countless different outcomes interweave, even simple motion can trace breathtaking fractal boundaries.

If you enjoy complex patterns where a tiny change leads to completely different results, you can also explore other works in the same category.

A double pendulum can amplify tiny differences in its initial position into completely divergent paths of motion.

The three-body problem, meanwhile, sets three celestial bodies into an unpredictable dance driven by gravitational forces.

What makes Magnetic Pendulum Fractals especially unique is that it turns this sensitivity directly into a map, letting you see at a glance the complex and intricate boundaries between different outcomes.

You can also continue to explore more fascinating physics phenomena.

Want to see these stunning physics visuals every time you open a new tab? Install the Chrome extension now and set "Science Wonder Box" as your new tab page.🚀

Learn More
↑