A temperature trace rising at one point does not prove that a body is gaining heat overall. Heat can arrive from hotter neighboring regions while energy simultaneously escapes through the boundaries. A spatial diffusion model makes that distinction explicit, which is useful when robotics teams interpret a sensor reading on a component that was heated unevenly.

Purdue’s heat-equation notes connect local temperature change to spatial curvature. Paul Dawkins’s differential-equations treatment derives sine eigenfunctions and their separate time factors. Combining those ideas gives the constructed example below: the center briefly warms, although the modeled slab’s total excess heat decreases throughout. It is an analytical demonstration, not a test of the illustrated equipment.

Specify the spatial model first

Let x run from 0 to L through a homogeneous slab or an insulated-side rod of constant cross-sectional area. Assume one-dimensional conduction, constant density rho, heat capacity c, and thermal conductivity k. There is no internal heat generation, phase change, or lateral heat exchange. Both ends are held at the same fixed temperature T_b by ideal reservoirs.

Define excess temperature u(x,t) = T(x,t)-T_b. The equation is u_t = alpha*u_xx, where alpha = k/(rho*c) is positive thermal diffusivity. The end conditions are u(0,t) = u(L,t) = 0. Thermal diffusivity has units of square meters per second; it is distinct from conductivity, despite some mathematical notes using k for the coefficient in the diffusion equation.

A spatial sine sin(n*pi*x/L) satisfies both zero end conditions. Its second spatial derivative multiplies it by -(n*pi/L)^2. Consequently its amplitude decays as exp[-alpha*(n*pi/L)^2*t]. This n-squared rate is a spatial result: a short-wavelength pattern has stronger curvature for the same amplitude and therefore evolves faster.

The modes can be superposed because the equation and these boundary conditions are linear. Their amplitudes need not be all positive at every location, even when the resulting physical excess-temperature field is nonnegative. Keeping track of the sine’s sign at a sensor position is essential to interpreting the local time trace.

Choose an initial profile with two modes

Set L = 0.1 meter and alpha = 0.00001 square meter per second. Define tau = L^2/(alpha*pi^2), approximately 101.321184 seconds. The first mode has time constant tau; the third has tau/9, approximately 11.257909 seconds.

Use the initial excess temperature u(x,0) = 20*sin(pi*x/L) + 4*sin(3*pi*x/L), in kelvins. These amplitudes are chosen for this article and are not fitted material measurements. The exact solution is

u(x,t) = 20*sin(pi*x/L)*exp(-t/tau) + 4*sin(3*pi*x/L)*exp(-9*t/tau).

The initial profile is nonnegative between the ends. Writing theta = pi*x/L and using sin(3*theta) = 3*sin(theta)-4*sin(theta)^3 gives u(x,0) = sin(theta)*[32-16*sin(theta)^2]. Both factors are nonnegative on 0 to pi. Thus the third mode’s negative contribution near the center does not imply a region initially colder than the reservoirs.

At x = L/2, the first sine is one and the third sine is minus one. The initial center excess is 16 kelvins, rather than 24. At x = L/6, the initial excess is 14 kelvins; at x = L/3 it is about 17.320508 kelvins. In particular, the center is not initially the hottest point in this example.

Why the center warms temporarily

The center trace is u_c(t) = 20*exp(-t/tau)-4*exp(-9*t/tau). Its initial derivative is (-20+36)/tau = 16/tau, approximately 0.157914 kelvin per second. The rapidly disappearing negative third-mode contribution initially outweighs the cooling from the first mode. Neighboring hotter regions redistribute their energy toward the center.

Set the center derivative to zero to locate its peak. The condition is 20*exp(-t/tau) = 36*exp(-9*t/tau), so t_peak = tau*ln(1.8)/8, approximately 7.4444 seconds. Before that time the center warms; afterward it cools. The boundary temperatures remain fixed during both parts of the trace.

By t = tau, the first-mode amplitude is about 7.357589 kelvins and the third-mode amplitude about 0.000493639 kelvin. The center excess is consequently about 7.357095 kelvins. The ratio of third to first amplitude has changed from 0.2 initially to 0.2*exp(-8), about 0.000067093. The later profile is close to a single sine even though the early center trace cannot be represented by one decaying exponential.

Reconcile that trace with the energy balance

For constant volumetric heat capacity and area, total excess thermal energy is proportional to the integral of u over x. The average excess temperature here is

u_bar(t) = (2/pi)*[20*exp(-t/tau)+(4/3)*exp(-9*t/tau)].

Differentiating gives -(2/(pi*tau))*[20*exp(-t/tau)+12*exp(-9*t/tau)], which is strictly negative at every finite nonnegative time. The whole modeled body loses excess energy even during the center’s short warming interval. A point value and a spatial integral answer different questions.

The same conclusion follows from integrating the diffusion equation: the rate of the integral is alpha*[u_x(L,t)-u_x(0,t)]. In this solution the left boundary slope is positive and the right boundary slope negative, representing outward heat flow at both ends. Internal redistribution can change a local temperature without reversing those boundary losses.

The length scale supplies another check on interpretation. Doubling L while preserving the normalized initial profile and the same diffusivity multiplies every mode's time constant by four. The peak then occurs four times later, although the excess temperatures at equal values of t/tau match. Doubling diffusivity instead halves those times. Neither change alters the dimensionless ratio of the first and third decay rates, which stays nine because the boundary geometry selects their spatial frequencies.

Applying this distinction requires a defensible spatial model. Real contact resistances, side convection, variable properties, and unknown starting profiles can change the mode shapes and rates. A late-time exponential fit may characterize one dominant mode, while missing an earlier spatial transient. The two-mode example provides a precise reason to ask where a sensor sits and how heat was initially distributed before attributing a rising reading to new heat generation.

Sources checked October 24, 2026:

https://www.math.purdue.edu/~chenjk/MA303S26/Heat%20JC1-acc.html

https://tutorial.math.lamar.edu/classes/de/solvingheatequation.aspx

Concept illustration: A wired fixture on a metal worktable beside a waveform display provides robotics context for this analytical model. The image does not depict the article's numerical example, a verified experiment, a product specification, or deployment evidence.