Hexa Scholar

The heat equation

A straight copper-colored rod on two dark supports, with an unmarked glass thermometer resting beside it.
A rod and a thermometer: the setting for a temperature profile.

The question

You set the temperatures along an 8 cm rod. Which point will cool fastest when heat starts to move?

Draw the starting profile, then make a choice before the rates appear.

  1. 1 SeeDraw a profile; choose a cooling point.
  2. 2 TryChange the clock and reach a target.
  3. 3 ProveCheck an exact solution, line by line.
  4. 4 ApplyProblems to check yourself.
Before you start · 3 quick checks on partial derivatives, second derivatives and rates

Two ideas before you start

2 ideas

A profile is a snapshot along the rod

A temperature curve over position. Change the height with the buttons.

Position runs across the picture; temperature runs up it. This is the shape of a temperature profile, not the physical shape of the rod.

Exact definition

Write \(u(x,t)\) for temperature at position \(x\) and time \(t\). Holding \(t\) fixed gives a spatial profile. Holding \(x\) fixed gives one thermometer's record over time. The partial derivative \(u_t\) measures the rate at that thermometer; \(u_x\) measures the spatial slope at one instant. The second spatial derivative is \(u_{xx}\).

These are the two kinds of slice in partial derivatives, now with position and time as the independent variables. A graph rising to the right need not mean that its temperature is rising over time.

The ends are part of the problem

Two possible initial profiles with the same endpoint temperatures.

End temperatures alone do not specify the starting interior. Choose the initial profile as well.

Exact definition

An initial condition gives \(u(x,0)=f(x)\) along the whole rod. A fixed-temperature boundary condition gives \(u(0,t)=B\) and \(u(L,t)=B\) at all times, where \(L\) is the rod's length and \(B\) the maintained end temperature. Our initial profiles agree with these conditions at the ends.

We model a thin, homogeneous rod with constant positive thermal diffusivity \(\kappa\), uniform temperature across each cross section, insulated sides, and no internal heat sources. External reservoirs maintain the end temperatures. Position is measured in cm, time in seconds, temperature in °C, and \(\kappa\) in cm²/s.

From a time equation to a space-and-time equation

In slope fields, an ordinary differential equation prescribes the slope of one unknown function of time. Here the unknown is a whole profile at each time. Neighboring positions interact, so a single starting temperature is insufficient. The data must include a starting profile and a rule for both ends.

1 See

Draw, choose, then test

Handles set the initial temperature samples. Segments join neighboring samples; they do not assert smoothness between them.
2 Try

Change the clock

Use the local rule you found above. Keep the rod, the boundary values and the initial profile the same while changing the material's diffusivity.

3 Prove

Check an exact solution

Theorem

Let \(L,\kappa,A\gt0\), \(B\) be real, \(q=\pi/L\), and \(\lambda=\kappa q^2\). For \(t\ge0\), define

\[\begin{aligned}a(t)&=Ae^{-\lambda t},\\u(x,t)&=B+a(t)\sin(qx).\end{aligned}\]

Then \(u\) solves \(u_t=\kappa u_{xx}\) for \(0\lt x\lt L\), has the fixed boundary temperatures \(B\), and starts at \(B+A\sin(qx)\). At every interior point it decreases strictly toward \(B\) as time increases.

We verify a candidate solution by differentiation. This proof does not establish existence for every initial profile or prove uniqueness of a general boundary value problem. The positive amplitude and the open spatial interval matter for the strict signs in the choices.

4 Apply

Use the local rule and the exact solution

Each problem has hints and a worked solution. Enter a decimal without units. The accepted error is an absolute tolerance in the stated unit.

Key point Keep three quantities separate: temperature, spatial curvature, and rate of temperature change. Check units before substituting. For a finite rod, a formula must meet the equation, the initial condition and both boundary conditions.
Level UndergraduatePrerequisites Partial derivatives; Taylor polynomials; slope fieldsTime About 35 min

Further reading