Fourier Series
Writing a periodic function as a sum of sines and cosines, with each coefficient found by an integral.
Needs a step first: 18
On the functions are mutually orthogonal, so any reasonable periodic function can be written , with and likewise. Each coefficient is a projection onto one frequency, exactly like finding coordinates in an orthonormal basis. Even a square wave with sharp corners is built from smooth waves. It is how sound is analysed and how the heat and wave equations are solved.
Where it shows up: The original transformer marks word positions with sines and cosines at many frequencies, and the stationary states of a particle in a box are the functions .
How to hold it: In your head
See each Fourier coefficient as a projection onto one frequency, like a coordinate in an orthonormal basis, and use odd and even symmetry to know which ones vanish.
What knowing it looks like
- Compute the Fourier coefficients of a simple periodic function, using odd and even symmetry to skip integrals.
- Explain the coefficients as projections onto orthogonal functions.
- Evaluate a Fourier series at a chosen point to sum a numerical series.
Test yourself
Find the Fourier series of the square wave with for and for , repeated with period . What does the series give at ?
Show the worked answer
Needs a step first: 18
Learn it with an AI
Copy this prompt into any AI assistant. It will take you through step by step at your level and finish with the test above.
Be my maths tutor. I'm learning "Fourier Series" (Undergraduate I tier): Writing a periodic function as a sum of sines and cosines, with each coefficient found by an integral. I already know: Techniques of Integration, Orthogonality and Projections. Teach it Socratically: first ask what I already know; then explain the core idea with one concrete example and why it's true; then give me three problems, one at a time, easy to hard. Wait for my answer, check every step, and point out mistakes without giving the answer away. Finish by testing me with this: Find the Fourier series of the square wave with $f(x)=-1$ for $-\pi<x<0$ and $f(x)=1$ for $0<x<\pi$, repeated with period $2\pi$. What does the series give at $x=\tfrac\pi2$? Use LaTeX for formulas. When you say where it's used later (machine learning, quantum mechanics), be specific.
Needs first
- Techniques of IntegrationThe methods for finding antiderivatives that are not obvious: substitution, integration by parts and partial fractions.Core · Functions & Calculus
- Orthogonality and ProjectionsPerpendicular vectors, and how to split any vector into a part inside a subspace and a part at right angles to it.Undergraduate I · Linear Algebra
Leads to
- Hilbert Spaces and OperatorsVector spaces whose vectors are functions, with an inner product given by an integral, and the linear operators that act on them.Undergraduate II · Linear Algebra
- The Fourier TransformThe Fourier series for functions that never repeat: any signal becomes a continuous spread of frequencies.Undergraduate II · Differential Equations & Fourier
- The Wave and Heat EquationsEquations for quantities that vary in both space and time: heat spreading out, and waves travelling along a string.Undergraduate II · Differential Equations & Fourier
On the way to
Recommended
- MIT 18.03SC Differential EquationsMIT OpenCourseWare · CourseMIT's differential equations course with lectures, short recitation videos, problems and solutions, covering oscillation, Fourier series and systems in the phase plane.
- Steve BruntonSteve Brunton, University of Washington · VideosA University of Washington engineering professor's lecture series on Fourier analysis, differential equations, dynamical systems and vector calculus, still adding videos in 2026.