Ellipses and Complex Numbers: A New Way to Look at Motion
So far in this series, we’ve described elliptical motion using position vectors, trigonometry, and rotation matrices.
But what if I told you there’s a more elegant way to represent all of it — using complex numbers?
Today, we’ll explore how complex numbers and Euler’s formula allow us to model elliptical motion, circular motion, and rotation with surprising simplicity. Along the way, we’ll translate our real-valued vector math into the complex plane — and simulate it all in Octave.
Complex Numbers as Vectors
A complex number is written as: z = x + i·y, where: x is the real part, y is the imaginary part, and i is the square root of -1. You can think of this as a 2D vector: z = (x, y)
Euler’s Formula: exp(iθ) = cos(θ) + i·sin(θ)
This means we can represent circular motion using the exponential expression: z(t) = R · e^(i·ω·t)
This traces a circle of radius R, rotating counterclockwise at angular speed ω.
What About Ellipses?
To model an ellipse, we scale the real and imaginary parts differently: z(t) = a·cos(ω·t) + i·b·sin(ω·t)
This traces an ellipse in the complex plane.
We can also write this as: z(t) = Re(a·e^(i·ω·t)) + i·Im(b·e^(i·ω·t))
Octave Code to Plot Elliptical Motion
Paste the following code into Octave or MATLAB to generate the plot:
Parameters
a = 5;
b = 3;
omega = 2 * pi;
t = linspace(0, 1, 1000);
% Complex form of elliptical motion
z = a * cos(omega * t) + 1i * b * sin(omega * t);
% Extract real and imaginary parts
x = real(z);
y = imag(z);
% Plot
plot(x, y);
axis equal;
xlabel('Real');
ylabel('Imaginary');
title('Elliptical Motion in the Complex Plane');
Advantages of Using Complex Numbers
Clean representation of rotation using multiplication
Combines x and y into a single expression
Widely used in physics, electrical engineering, and quantum mechanics
Applications Beyond Math
Electromagnetic waves
Phase and amplitude are often modeled with complex numbers
Signal processing
Comments
Post a Comment