Advanced Mathematics

The Wave and Heat Equations

Equations for quantities that vary in both space and time: heat spreading out, and waves travelling along a string.

Needs a step first: 25

The heat equation ut=uxxu_t=u_{xx} says temperature rises where it is below the average of its surroundings; the wave equation utt=c2uxxu_{tt}=c^2u_{xx} says a string accelerates back toward straight. Separating variables, u=X(x)T(t)u=X(x)T(t), turns each into ordinary differential equations, and on an interval with fixed ends the solutions are Fourier series in sin⁡nx\sin nx. In the heat equation the nnth mode fades like e−n2te^{-n^2t}, so fine detail smooths out first, while in the wave equation every mode keeps oscillating. The Schrödinger equation has the same shape, with an ii that turns spreading into waves.

Where it shows up: The time-dependent Schrödinger equation is a wave equation for the wavefunction, and diffusion models take their name from the spreading the heat equation describes.

How to hold it: Give it to the machine, then check

Let a numerical solver handle real heat and wave problems; know that heat smooths fine detail first while waves keep every mode going, and check that the answer meets the boundary conditions and the starting shape.

What knowing it looks like

  • Solve the heat or wave equation on an interval with fixed ends by separating variables.
  • Match a given starting shape to Fourier modes and write the full solution.
  • Contrast how heat and waves treat high-frequency detail.

Test yourself

Solve ut=uxxu_t=u_{xx} on 0≤x≤π0\le x\le\pi with u(0,t)=u(π,t)=0u(0,t)=u(\pi,t)=0 and u(x,0)=sin⁡x+3sin⁡2xu(x,0)=\sin x+3\sin2x. Then solve utt=uxxu_{tt}=u_{xx} with the same ends, the same starting shape and zero starting velocity.
Show the worked answer
Each mode sin⁡nx\sin nx solves the heat equation with the factor e−n2te^{-n^2t}, so u=e−tsin⁡x+3e−4tsin⁡2xu=e^{-t}\sin x+3e^{-4t}\sin2x. Check: ut=−e−tsin⁡x−12e−4tsin⁡2x=uxxu_t=-e^{-t}\sin x-12e^{-4t}\sin2x=u_{xx}, and u(x,0)u(x,0) matches. For the wave equation each mode gets the factor cos⁡nt\cos nt (zero starting velocity rules out sin⁡nt\sin nt): u=cos⁡t sin⁡x+3cos⁡2t sin⁡2xu=\cos t\,\sin x+3\cos2t\,\sin2x. Heat loses the sin⁡2x\sin2x part four times as fast as the sin⁡x\sin x part; the wave keeps both for ever.

Needs a step first: 25

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 "The Wave and Heat Equations" (Undergraduate II tier): Equations for quantities that vary in both space and time: heat spreading out, and waves travelling along a string.
I already know: Second-Order Linear Equations and Oscillation, Partial Derivatives and the Gradient, Fourier Series.
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: Solve $u_t=u_{xx}$ on $0\le x\le\pi$ with $u(0,t)=u(\pi,t)=0$ and $u(x,0)=\sin x+3\sin2x$. Then solve $u_{tt}=u_{xx}$ with the same ends, the same starting shape and zero starting velocity.
Use LaTeX for formulas. When you say where it's used later (machine learning, quantum mechanics), be specific.

On the way to

Recommended