Skip to main content

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 x and y separately 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.
Everything from hurricanes to gyroscopes to orbiting moons is influenced by rotating frames of reference. Next time you see a spinning top or a weather system on the news, you’ll know — that’s physics in action.

Comments

Popular posts from this blog

The Tribe of Math Mentors: 11 Questions Every Educator Should Answer

It is easy to get caught up in the vague, existential questions of education: How do I become a better teacher? How do I make math engaging? How do I survive the burnout? But as author Tim Ferriss noted when writing his book Tribe of Mentors, "Life punishes the vague wish and rewards the specific ask." When Ferriss set out to deconstruct the habits of world-class performers, he didn’t ask them broad questions about "the secret to success." He engineered 11 highly specific questions designed to bypass rehearsed answers and force his subjects to share actionable, vulnerable, and unconventional insights. Recently, I started thinking about how perfectly this methodology translates to our world. What if we asked these exact types of questions to master math teachers? What if we used them to guide the next generation of educators? Here is my best thinking of what Ferriss’s Tribe of Mentors questionnaire looks like when translated into the context of the mathematics classr...

Beyond Taylor Series: The Magic and History of Padé Approximations

If you have ever taken a calculus class, you probably remember the Taylor series. It is the mathematical magic trick that lets you turn complicated functions—like sines, cosines, and exponentials—into simple, infinitely long polynomials. For centuries, it has been a cornerstone of numerical mathematics. But the Taylor series has a dark secret: it frequently breaks. If a function has a vertical asymptote (a pole) or if you move too far from your starting point, the Taylor series spirals out of control into infinity. It is strictly bounded by what mathematicians call a "radius of convergence." Enter the Padé approximation . Instead of using a single polynomial to estimate a function, a Padé approximant uses a fraction (a ratio of two polynomials). This simple structural change unlocks a profound level of mathematical power, allowing us to see past the limits of Taylor series and model complex, chaotic systems in modern physics and engineering. A Brief History: From Franc...

Unlocking the Matrix: A Guide to Solving Systems of 3 Equations

    If you have ever felt like algebra is just moving letters around a page until a number falls out, solving systems of equations in three variables might seem like the ultimate boss battle. Instead of just dealing with x and y on a flat piece of paper, a third variable (like z, or in our case r, s, and t) brings the math into three-dimensional space. Every equation represents a flat plane, and solving the system means finding the exact 3D coordinate where all three planes intersect. But before we dive into a full 3x3 system, let's talk about what happens when the number of equations doesn't perfectly match the number of variables. The Goldilocks Problem: Too Many or Not Enough Equations? For a system to have a single, beautifully neat solution, you generally need exactly as many equations as you have variables. But what if the balance is off? Not Enough Equations (Underdetermined Systems): Let's say you have 3 variables but only 2 equations. This is like having two plane...