He was studying the propagation of heat in a uniform medium. To keep things as simple as possible, say you have a 1-d pipe, (cont'd)
du/dt = d^2 u/dx^2.
(You can add a multiplicative constant, but say it's 1.) The pipe has some initial heat distribution,
u(x,0)=f(x),
and the ends of the pipe are at room temperature,
u(0,t)=u(1,t)=0.
How to solve this?
The standard approach is to separate variables, look for a solution like: u(x,t)=X(x)T(t). The PDE becomes:
X(x)T'(t) = X''(x)T(t),
so
T'/T = X''/X = c (constant),
X''-cX=0,
we guess that X=e^(a x), so a=+/- sqrt(c). The general solution is
X(x)=A e^(sqrt(c)x)+B e^(-sqrt(c)x)
X(1)=A(e^(sqrt(c))-e^(-sqrt(c)))=0.
If c>0, this is impossible (if A≠0). If c=0, then X''=0, so X'=const, so X=linear, and X(0)=X(1)=0, so X=0.
But! If c<0, then there are solutions if sqrt(c)=pi i n,
X(x) = A sin(pi n x),
for some constant A.
Returning to T, we easily solve T'/T=-pi^2 n^2 as
T(t)=Ce^(-pi^2 n^2 t)
u(x,t)=A sin(pi n x)e^(-pi^2 n^2 t).
But there's a solution like that for every positive integer n, so the general solution is a linear combination (superposition):
u(x,t)=sum_{n>=1} A_n sin(pi n x)e^(-pi^2 n^2 t).
This is the...
f(x)=sum_{n>=1} A_n sin(pi n x).
How do we find the A_n's that achieve this? Fourier knows that:
int_0^1 sin(pi n x) sin(pi m x)=0, unless n=m
int_0^1 f(x) sin(pi m x)dx= A_m / 2.
That's it. These 10 tweets earn him a Prize in 1811 by the Institute in Paris,
Wish I'd started learning about "why real analysis" from this neat calculation...