Motion of a Particle Colliding with Massive Objects

This Demonstration shows the path that a particle would take given an initial position, velocity, and a direction of a constant gravitational field, and how the path changes when the particle collides elastically with an rigid solid with boundary defined by a Cartesian equation. When the gravitational-well model is selected, the solid object serves as the source of gravitational attraction, with a law of force.
The motion of the particle is determined by Newton's universal law of gravitation. The particle's motion after a collision with the boundary is computed using implicit differentiation and 2D vector reflection.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


Snapshot 1: the particle's path inside a parabola subject to a constant downward vector gradient
Snapshot 2: in the absence of any gravity, the particle follows the path of a photon with total internal reflection, shown here for a hyperbolic barrier; this is analogous to Thales's theorem for a circle
Snapshot 3: particle in the gravitational field of a rectangular block
[1] A. Salga, "Understanding Vector Reflection Visually." (Sep 23, 2013)
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.