1. Home
  2. 3Blue1Brown

Jun 29, 2019

How rotating vectors can draw almost any shape

24 min → 1:45

Overview

The host of 3Blue1Brown explains the complex Fourier series, showing how summing rotating vectors can approximate any periodic drawing and how this connects to sums of sines and cosines.

3 things to know

Complex Fourier Series

The representation of a periodic function or closed-loop drawing as an infinite sum of rotating complex numbers (vectors).

More

The general form is `f(t) = Σ c_n * e^(n*2πit)`.

▶ Watch at 0:21

Epicycles

The visual representation of the complex Fourier series, where vectors are added tip-to-tail.

More

Each vector rotates at a constant integer frequency (`n`), with its length and starting angle determined by a coefficient (`c_n`). The tip of the final vector traces the desired path.

▶ Watch at 18:48

Fourier Coefficients (c_n)

These are complex numbers that define the initial size (magnitude) and starting angle (phase) for each rotating vector.

More

They are calculated using an integral that essentially isolates the contribution of each frequency component from the original function.

▶ Watch at 1:43

Also in this episode

Frequencies (n)

Positive frequencies represent counter-clockwise rotation, negative frequencies represent clockwise rotation, and the zero frequency (`n=0`) term is a stationary vector representing the center of mass of the drawing.

More

Each term in the series corresponds to an integer frequency.

Complex Exponentials

The function `e^(it)` is used to represent rotation in the complex plane.

More

This simplifies the mathematics, as combining rotations becomes a matter of adding exponents, which is much cleaner than using trigonometric identities for sines and cosines.

Quotes

“By tweaking the initial size and angle of each vector, we can make it draw pretty much anything that we want.”

▶ Watch at 0:21

“This integral is a sort of clever way to kill all of the terms that aren't c2, and leave you only with the still part.”

▶ Watch at 18:48

“It's at this point that Fourier gains immortality.”

▶ Watch at 4:18

1 more quote

“What's even crazier, is that the ultimate formula for all of this is incredibly short.”

▶ Watch at 1:43

Full summary

Episode Overview

  • The episode provides a visual introduction to the complex Fourier series, demonstrating how any periodic drawing can be approximated by summing up rotating vectors, often called epicycles.
  • It explains that each vector rotates at a constant integer frequency, and by adjusting their initial size and phase, the tip of the final vector can trace out intricate shapes.
  • The video connects this complex, rotational view to the more traditional real-valued Fourier series, showing how sums of sines and cosines are a special case of this more general idea.
  • It derives the integral formula used to calculate the Fourier coefficients, which determine the specific properties of each rotating vector needed to construct a given shape.

Key Concepts

  • Complex Fourier Series: The representation of a periodic function or closed-loop drawing as an infinite sum of rotating complex numbers (vectors). The general form is f(t) = Σ c_n * e^(n*2πit).
  • Epicycles: The visual representation of the complex Fourier series, where vectors are added tip-to-tail. Each vector rotates at a constant integer frequency (n), with its length and starting angle determined by a coefficient (c_n). The tip of the final vector traces the desired path.
  • Frequencies (n): Each term in the series corresponds to an integer frequency. Positive frequencies represent counter-clockwise rotation, negative frequencies represent clockwise rotation, and the zero frequency (n=0) term is a stationary vector representing the center of mass of the drawing.
  • Fourier Coefficients (c_n): These are complex numbers that define the initial size (magnitude) and starting angle (phase) for each rotating vector. They are calculated using an integral that essentially isolates the contribution of each frequency component from the original function.
  • Complex Exponentials: The function e^(it) is used to represent rotation in the complex plane. This simplifies the mathematics, as combining rotations becomes a matter of adding exponents, which is much cleaner than using trigonometric identities for sines and cosines.

Quotes

  • At 00:21 - "By tweaking the initial size and angle of each vector, we can make it draw pretty much anything that we want." - The narrator explains the power and versatility of the Fourier series visualization, showing how adjusting the initial conditions of the rotating vectors can generate almost any shape.
  • At 01:43 - "What's even crazier, is that the ultimate formula for all of this is incredibly short." - This quote introduces the compact integral formula for calculating the Fourier coefficients, highlighting the mathematical elegance behind the complex visual output.
  • At 04:18 - "It's at this point that Fourier gains immortality." - The narrator emphasizes the historical significance of Joseph Fourier's bold and initially counterintuitive claim that any function, even discontinuous ones, could be represented as a sum of sine waves.
  • At 18:48 - "This integral is a sort of clever way to kill all of the terms that aren't c2, and leave you only with the still part." - The video provides an intuitive explanation for how the integral formula for Fourier coefficients works: it modifies the original function to make the desired frequency component stationary, so that when averaged, all other rotating components cancel out, isolating the target coefficient.

Takeaways

  • Complex, periodic motions or shapes can be understood by decomposing them into a sum of simple, constant-speed circular motions. This is a powerful mental model for analyzing any system that involves cycles or waves.
  • The integral formula for calculating Fourier coefficients (c_n) is a mathematical tool for measuring the "amount" of a specific frequency within a function. It works by "unwinding" the function at a certain rate to make the target frequency stationary, then averaging over time to isolate its contribution.
  • Using complex numbers and exponentials is the most natural and efficient way to describe rotations and oscillations. This approach simplifies the math, turning complex trigonometric manipulations into simpler algebraic operations on exponents.

Watch the full episode 24 min

Read along with the audio summary

The narrator makes a striking promise: by tweaking the initial size and angle of rotating vectors, we can make them draw pretty much anything that we want, using an ultimate formula that is incredibly short. In this episode, which came out on June 29, 2019, a narrator guides us through a visual introduction to the mathematics of the complex Fourier series. By the end, you will understand how any periodic drawing can be approximated by adding up simple circular motions, and how the math behind it actually works.

How to turn any closed loop drawing into an infinite sum of spinning arrows. Joseph Fourier gained immortality for the bold and initially counterintuitive claim that any function, even a discontinuous one, could be represented as a sum of sine waves. The complex Fourier series expands on this by representing any periodic function or closed loop drawing as an infinite sum of rotating complex numbers, which act as vectors. It connects this rotational view to the traditional real valued Fourier series, showing that sums of sines and cosines are just a special case of this broader idea.

To see this sum in action, we can look at the visual representation of the series, where spinning vectors are chained together to trace intricate shapes. These rotating vectors are often called epicycles. Instead of spinning around the same center, the vectors are added tip to tail, like a chain of connected arms where each joint spins at its own steady pace. Each vector rotates at a constant integer frequency, with its length and starting angle set by a specific coefficient, and the tip of the very last vector in the chain traces out the desired path.

Those spinning vectors get their directions and speeds from simple whole numbers. Each term in the series corresponds to an integer frequency, which dictates how the vector moves. Positive integer frequencies represent counter clockwise rotation, while negative frequencies represent clockwise rotation. Right at the middle of the series is the zero frequency term, which does not spin at all, acting instead as a stationary vector that represents the center of mass of the entire drawing.

Knowing how fast the vectors spin is only half the puzzle, because you still need a way to find the exact starting size and angle for every single vector in the chain. These starting instructions are called Fourier coefficients, and they are complex numbers that define both the initial magnitude and the starting phase for each rotating vector. To calculate them, you use an integral that essentially isolates the contribution of one specific frequency component from the original function. The integral works by unwinding the function at a certain rate to make the target frequency stationary, so that when you average it over time, all the other rotating parts cancel out and leave you only with the still part.

The secret to making all of this spinning math clean and manageable lies in how we write down the rotations. The series uses complex exponentials, specifically raising the number e to an imaginary power over time, to represent rotation in the complex plane. This is the most natural and efficient way to describe rotations and oscillations. It greatly simplifies the mathematics, because combining rotations becomes a simple algebraic matter of adding exponents, which is much cleaner than working through trigonometric identities for sines and cosines.

Remember that complex, periodic motions or shapes can always be understood by breaking them down into a sum of simple, constant speed circular motions. It gives you a powerful mental model for analyzing any system that involves cycles or waves. By tweaking the initial size and angle of each vector, we can make it draw pretty much anything that we want.

More from 3Blue1Brown

Related Episodes