Rotating Frames: What If the Ellipse Spins While the Particle Moves?
In our last post, we lifted ellipses into 3D space to explore planetary orbits. But here’s a twist — what if the ellipse itself spins while the particle moves along it?
In other words, what happens if the entire orbital plane rotates over time?
This is not just a fun thought experiment — it reflects real-world effects, like the precession of orbits, gyroscopes, and the Coriolis effect on Earth. Today, we’ll rotate our coordinate system and simulate the result in Octave.
Combining Two Motions
Let’s start with a basic elliptical path:r(t) = < a*cos(ωt), b*sin(ωt) >
Now imagine the entire coordinate system spins slowly — like placing the ellipse on a turntable. We apply a rotation angle φ(t) to the whole position vector. So the new position becomes:
x_rot(t) = x(t)*cos(φ(t)) - y(t)*sin(φ(t))
y_rot(t) = x(t)*sin(φ(t)) + y(t)*cos(φ(t))
This is a classic 2D rotation matrix applied to a moving object. If φ(t) increases over time, we get compound motion: the object moves on the ellipse, and the ellipse rotates as it does. Rotating Frame Simulation in Octave
Let’s simulate this with Octave. We’ll use: *a = 5, b = 3 (ellipse shape)
* ω = 2π (standard motion)
* φ(t) = α \* t for some slow spin rate α
% Parameters
a = 5;
b = 3;
omega = 2 * pi;
alpha = pi / 4; % Spin rate (radians per second)
t = linspace(0, 2, 1000); % Time over two seconds
% Elliptical position
x = a * cos(omega * t);
y = b * sin(omega * t);
% Rotation angle over time
phi = alpha * t;
% Apply rotation to the ellipse
x_rot = x .* cos(phi) - y .* sin(phi);
y_rot = x .* sin(phi) + y .* cos(phi);
% Plot the path
plot(x_rot, y_rot);
axis equal;
title('Particle on a Rotating Elliptical Path');
xlabel('x');
ylabel('y');
---
What You’ll See
The path looks like a flower or rosette pattern. Each time around the ellipse, the shape is rotated a bit more. This is what happens in many planetary systems — orbits precess due to gravitational interactions. ---What Real Phenomenon Does This Model?
- Orbital Precession: Mercury’s orbit precesses due to the Sun’s shape and general relativity.
- Foucault Pendulum: A pendulum’s swing rotates due to Earth’s rotation — same math!
- Coriolis Effect: In rotating frames like Earth, moving objects follow curved paths.
What Does This Teach Us?
- Motion can be compound — combining local and global movements.
- Rotating frames help us understand weather systems, space dynamics, and even how your phone’s compass works.
- Math lets us simulate and visualize these layers of motion in simple, elegant ways.
Try This Yourself:
- Change the spin rate
alpha— try faster or negative values. - Plot
xandyseparately to see how rotation changes their patterns. - Combine this with the 3D code from Post #3 to get a rotating elliptical orbit in 3D space.
Comments
Post a Comment