What are n-body simulations?

Imagine you have a bunch of balls on a trampoline, each one bounces and moves depending on how the others push it around. That’s what n-body simulations are like, but instead of balls on a trampoline, we're talking about planets, stars, or even galaxies moving in space.

What's an n-body problem?

It’s when you have n things, like planets, all pulling and pushing each other because of gravity. Each one is affected by every other one at the same time. It’s like having a group of kids on a swing set, where every kid pulls or pushes every other kid, it gets complicated fast!

Why do we need simulations?

If you try to figure out how all those things will move just by thinking, it’s really hard. But with simulations, a computer can pretend to be each planet and work out their paths step by step, like playing a game of “what happens next?” over and over again.

That’s how scientists learn about the universe, by watching these pretend planets dance around each other, just like balls on a trampoline. Imagine you have a bunch of balls on a trampoline, each one bounces and moves depending on how the others push it around. That’s what n-body simulations are like, but instead of balls on a trampoline, we're talking about planets, stars, or even galaxies moving in space.

What's an n-body problem?

It’s when you have n things, like planets, all pulling and pushing each other because of gravity. Each one is affected by every other one at the same time. It’s like having a group of kids on a swing set, where every kid pulls or pushes every other kid, it gets complicated fast!

Take the quiz →

Examples

  1. A group of kids on a swing set, pulling each other back and forth in a messy dance.
  2. Imagine a game of billiards with hundreds of balls all hitting each other at once.
  3. Stars in a galaxy moving around like confused dancers.

Ask a question

See also

Discussion

Recent activity