Visual walkthrough — Solving heat equation — separation of variables
Step 0 — What the pictures are of
Before any algebra, let's fix the stage.
- The rod is a line from to . The letter just means "how far along the rod you are."
- Temperature is a height: at each spot and each time , is how hot that spot is right now. So a temperature profile is a curve drawn above the rod — tall where hot, low where cold.
- The two ends are held at forever: and . In the picture, the curve is pinned to the floor at both ends.

The rule of the game — the heat equation itself — is:
Read it in words: a spot warms fast exactly where the curve bends up (a dip), and cools where it bends down (a bump). That single sentence is the whole physics; everything below is solving it.
Step 1 — The guess: shape × dimmer-knob
WHAT. We guess the answer has a special shape: is a fixed shape along the rod (depends only on where you are). is a single dimmer knob (depends only on time) that scales that whole shape up or down.
WHY. If the shape never changes and only its overall brightness fades, then the hard PDE — which mixes space and time — might split into two separate easy problems. We try it because if it fails, the algebra tells us immediately, and we've lost nothing.
PICTURE. The frozen shape is the same curve at every time; the knob just squashes it toward the floor as time passes.

Step 2 — Force the equation to split
WHAT. Put the guess into .
Since ignores time and ignores space: Here means "how fast the knob changes," and means "the curvature of the shape." Substituting:
Now divide both sides by :
WHY. The left side changes only when time changes; the right side changes only when position changes. If I stand still ( fixed) and let time run, the right side is frozen — so the left side can't move either. If I freeze time and walk the rod, the left is frozen — so the right can't move. The only way two such things stay equal is if both are the same constant.
PICTURE. Two dials wired to always read the same number: turning the "time" dial can't change the reading, and turning the "space" dial can't either — so the reading is locked.

We name that locked constant :
Step 3 — The space problem, and why the sign of decides everything
WHAT. From we get the space ODE: The boundary conditions come from the pinned ends: for all , and is not zero (that would be a dead rod), so . Same at .
WHY test three signs? The shape of the solution to is completely different depending on whether is negative, zero, or positive. We must check all three — the reader should never wonder "but what if ?"
PICTURE. Three candidate shapes, each trying to touch the floor at both ends:

- Case (write ): solutions are — pure growing/shrinking exponentials, no wiggle. A curve made only of exponentials can't dip down and come back to the floor twice. Pinning it at both ends forces : the flat-zero line. Trivial — rejected.
- Case : solutions are straight lines . A line through the floor at and again at is the floor. . Trivial — rejected.
- Case (write ): solutions are — genuine waves. Waves can return to the floor. This is the only case with a life. Keep it.
Finishing the good case. kills the cosine (since ), leaving . Then needs Only these special let the wave land exactly on the floor at .

So the surviving shapes — the eigenfunctions — and their eigenvalues are: is one hump, is two humps, and so on — each fits a whole number of half-waves into the rod. (This "which shapes survive the boundary" question is the heart of Sturm-Liouville Theory.)
Step 4 — The time problem: the dimmer fades
WHAT. Now feed into the time side , i.e. This says "the knob's rate of change is a negative multiple of itself" — the signature of exponential decay. Its solution:
WHY. is the one equation whose answer is a shrinking exponential. Each mode gets its own decay speed: the exponent carries , so mode fades at a rate . Now you see the payoff of the minus sign in Step 2 — with this exponential would grow and burn the rod up, which is impossible with frozen ends.
PICTURE. The higher the mode number, the steeper the plunge to zero.

Step 5 — Superpose: add many fading humps
WHAT. Each single mode solves the PDE and the two pinned-end conditions. Because the heat equation is linear and homogeneous (no , no stray constant), any sum of solutions is again a solution — this is the Superposition Principle. So we allow every mode at once, each with its own strength :
WHY. One pure sine almost never matches a real starting profile. But stacking sines can build any pinned-end shape — that is exactly what a Fourier Series does. The are the volume settings for each hump.
PICTURE. Stack a tall one-hump, a shorter two-hump, a smaller three-hump… and their sum is a lumpy profile — the initial temperature.

Each symbol, right where it sits:
Step 6 — Fit the start: find every
WHAT. At every fade timer equals (), so the solution must become the initial profile : To pull out one coefficient , multiply both sides by and integrate across the rod. The magic is orthogonality: Every mismatched pair integrates to zero, so only the term survives:
WHY. Orthogonality is a sieve: multiplying by one mode and integrating filters out that mode's strength while erasing all the others. The is just dividing by the mode's own "squared length" .
PICTURE. Matching-frequency sines overlap to a positive area (they survive the sieve); different-frequency sines cancel to zero area.

The one-picture summary
Read the pipeline top to bottom: guess → split → sine shapes → decay timers → sum → fit. The bottom panel shows the true payoff: a lumpy hot start, watched over time, always relaxes into a single half-sine hump (mode outlives everyone because it decays slowest), then that hump itself sinks to a cold rod.

Recall Feynman: the whole walkthrough in plain words
We had a hot rod with its ends frozen and wanted its future. First we guessed the temperature is a fixed shape times a fading dimmer-knob. Plugging that in, the equation split into a space part and a time part that were forced to equal the same locked number — because one part can only change with position and the other only with time, so neither can move. Testing that number's sign, only a positive choice gave real wave shapes that could touch the frozen floor at both ends; those shapes turned out to be sine humps that fit a whole number of half-waves in the rod. The time part became a fading exponential, and skinnier humps (more wiggles) fade far faster. Since the equation is linear, we added up all the humps, each fading on its own timer. Finally, to match the actual starting warmth, we found each hump's loudness with a Fourier sieve — multiply by one hump, integrate, and every other hump cancels out. Let time run, and the rod always melts down to a single fat half-sine bump before going cold. That's the whole story.
Related builds: Wave Equation (same separation, oscillating time part), Laplace Equation (steady state, no time at all), and Fourier Series for the coefficient machinery.