Derivation of the Heat Equation

ODEs vs PDEs


I began studying ODEs by solving equations straight off the bat. I started with the simplest one I could think of,dydx=0,and moved onto progressively more difficult ones, likedydx=x2.While learning, I developed a 'toolkit' of techniques that could solve equations that met very specific criteria. For example, one 'tool' claimed that an equation of the formdydx+P(x)y=f(x)had a solutiony=eP(x)dxf(x)dxeP(x)dx.I picked up several other tools that could tackle every kind of ODE that you could imagine. However, there were never enough; the set of linear ODEs alone,k=0nak(x)dkydxk=f(x),has an infinitesimal subset of equations that can be solved by analytic methods, and another one that requires a numerical approach instead. Moreover, when it comes to nonlinear ODEs, what lies before our eyes, more often than not, is a vast ocean full of esoteric sea creatures totally disjoint from all of our equation-solving findings, so to speak.

I thought that I could try an a posteriori approach toward PDEs, and although it could work, it would definitely never provide the necessary theoretical groundwork required to reach higher levels of understanding. To circumvent this issue, I decided to opt for a physically-based introduction to them, as mathematical legends such as Laplace found lots of inspiration from the observational works of Newton and similar applied scientists.

Now, without further due, let me present the heat equation to you!

 

The Heat Equation


The first PDE that we are going to study is called the heat equation. Let us derive it by considering a one-dimensional model rod of length L with a perfectly insulated lateral surface. Visually:

  

The heat equation is governed by the word equation:rate of changeof heat energyin time=heat energy flowingacross boundariesper unit time+heat energy generatedinside per unit time.Therefore, let us define the following functions:e(x,t):=thermal energy densityφ(x,t):=heat flux (the amount of thermal energy per unittime flowing to the right per unit surface area)Q(x,t):=heat energy per unit volume generated per unit timeOur word equation then becomest[e(x,t)AΔx]φ(x,t)Aφ(x+Δx,t)A+Q(x,t)AΔxNotice that this is only an approximation because we are taking a very small slice of the rod of size Δx (the functions are deemed almost constant at this size). We claim, however, that it becomes exact as we let Δx0:et=limΔx0φ(x,t)φ(x+Δx,t)Δx+Q(x,t)=φx+Q(x,t)We usually talk about the temperature of an object rather than its thermal energy density. Therefore, let us introduce the functionsc(x):=specific heatρ(x):=mass densityu(x,t):=temperatureand the equalitye(x,t)=c(x)ρ(x)u(x,t)Substituting yields a new equationc(x)ρ(x)ut=φx+Q(x,t)This is the heat equation. However, we cannot solve it since it involves two unknown functions u and φ. For this reason, we introduce Fourier's law of heat conduction:φ(x,t)=K0uxSubstituting it into the heat equation yieldsc(x)ρ(x)ut=K02ux2+Q(x,t)For the sake of simplicity, let us treat c, ρ, and K0 as constants. Hence,ut=k2ux2+Q(x,t)cρwhere k=K0/cρ. Letting Q=0 yields the canonical heat equation; this is what we are mostly going to work with from here on.

This is how the heat equation is derived. The equalities we presented are physical in nature, but since this is a mathematical blog, we are just going to accept them as true. In the next entry, we are going to go over the method of separation of variables to solve the heat equation with initial and boundary conditionsIC:u(x,0)=f(x)BCs:{u(0,t)=0u(L,t)=0I will talk more about initial and boundary conditions in the next entry as well. Until then, have fun!