We discuss The heat equation
Derivation of the heat equation
The first type of physical situation we want to consider is how the temperature of an object changes over time. We have dealt with this idea previously for a well-mixed fluid at a single temperature with Newton’s Law of cooling. However, we will consider a physical object here, so the temperature will depend on position as well, giving rise to a PDE instead of the ODE we got with Newton’s Law.
Let’s start by considering an insulated wire of length . With this, we mean that no heat can escape through the lateral sides of the wire, and the only way that heat can enter the system is through the two ends. We will let be the temperature in the wire after seconds, and at the position meters from the left end of the wire (the units here are not important, they just need to be consistent). See Normally a reference to a previous figure goes here..
We want to come up with a way to find a differential equation that models how this temperature will change with time and location. The easiest way to do this is with the accumulation equation from modelfirst:section with thermal energy, since that is something that can be accumulated, while temperature really can’t. How does temperature relate to thermal energy? Physical properties tell us that where is the change (or input) of energy, is the specific heat of the material, is the mass density of the material, is the volume, and is the change in temperature. This expression mainly comes from the fact that the specific heat is the energy required to raise one kilogram of the material by one degree Celsius.
Now, we need to build up the accumulation equation for energy. To do this, we will look at a small interior segment of this wire of length that stretches from a position to . The accumulation equation tells us that
For interior sources, we will assume that there is some function that describes all of the sources of thermal energy per unit volume at time and position , and our discussion of the relationship between temperature and thermal energy says that the rate of change of energy is since represents our temperature and is the volume of this small piece of wire. Since the piece is “small”, we will assume that things like the energy change are constant along this piece, which works out using linearization since we are eventually going to limit to zero.
At this point, we have the equation where we have also added in the fact that and , these material properties, could depend on if the wire is not uniform and made of the same material throughout. The last things we have to deal with are these rate terms. The normal terminology used for the rate of energy entering or exiting a region is flux of energy. Fourier’s law (same Fourier) says that if is the flux of energy, then where represents temperature and is the thermal conductivity of the material. The point of this expression for now is the fact that the thermal flux is proportional to the derivative of temperature. This means that in this particular case and The minus sign is missing from the second term because the flux coming in from the right is moving in the negative direction, so it needs to pick up an additional minus sign. The here represents the cross-sectional area of the wire. Thus, we have the full equation
Dividing both sides by gives
Now, we want to take the limit as . The one term that still involves looks like which, as is a partial derivative. Taking this limit, we get the equation
In most cases, we will assume that the material we use is uniform. That means that , and are all independent of . We can move the outside the derivative, then divide both sides by to get the equation where is the thermal diffusivity of the material and represents the thermal sources in the system. This is the heat equation, in particular, this is a non-homogeneous heat equation. The homogeneous version is
For an interpretation, this tells us that the change in heat at a specific point is proportional to the second derivative of the heat along the wire. This makes sense; if at a fixed the graph of the heat distribution has a maximum (the graph is concave down), then heat flows away from the maximum. And vice versa.
Boundary conditions for the heat equation
There are several main types of boundary conditions that can be used with the heat equation. In general, we will assume that either the ends of the wire are exposed and fixed at a constant temperature, or they are insulated. In the first case, the endpoint being fixed at a constant temperature means that at the left endpoint and at the right endpoint. For insulated ends, this means that thermal energy can not escape from the endpoint. Since the flux is proportional to the derivative of temperature, this means that at the left endpoint and at the right endpoint. When trying to solve these problems, we want to have conditions where something is set to zero at the end point; that will make our lives much easier once we separate variables. These side conditions are said to be homogeneous (i.e., or a derivative of is set to zero).
It is possible to have more involved boundary conditions that involve both and the derivative. These are sometimes more physically natural, since they are similar to Newton’s law of cooling, but are much harder to solve. These may look something like but we will generally avoid these types of conditions here.
We also need an initial condition—the temperature distribution at time . That is,
for some known function . This initial condition is not a homogeneous side condition.Multidimensional heat equation
The same ideas can be used to derive the heat equation in plates (two dimensions) or regions (three dimensions) as opposed to just one dimensional wires. The process is the same: take a small region and relate the change of energy to the flux through each side. In the two dimensional case, there are four sides to consider, two where the flux is related to and two where it is related to . The differences end up working out the same way and with the same assumptions as before, this results in the heat equation in two dimensions looking like With three spatial dimensions, there are six different flux terms, and the equation simplifies to
In each case, we end up with a term that is the sum of all of the different second partial derivatives in the spatial directions. This type of a term shows up very frequently, so we give it a name.
- One space dimension - or :
- Two space dimensions - or :
- Three space dimensions - or : .
With all of these definitions, the homogeneous heat equation, in any number of dimensions, can be written as
Boundary conditions in the multidimensional case work similarly to the one-dimensional case. The temperature can either be fixed at the boundary, giving a value for the function , or insulated, giving that the flux must be zero, or that along the boundary of the domain. For a rectangular domain, this will look like
Solution by separation of variables
Now, we want to employ techniques from secondpde:section to try to solve the heat equation for a variety of initial and boundary conditions.
Solution: We use the method of separation of variables and guess . We will try to make this guess satisfy the differential equation, , and the homogeneous side conditions, and . Then, as superposition preserves the differential equation and the homogeneous side conditions, we will try to build up a solution from these building blocks to solve the nonhomogeneous initial condition .
First we plug into the heat equation to obtain
We rewrite as which means that both sides of this equation must equal a constant value .We obtain the two equations
In other words,The boundary condition implies . We are looking for a nontrivial solution and so we can assume that is not identically zero. Hence . Similarly, implies . We are looking for nontrivial solutions of the eigenvalue problem , , . We have previously found that the only eigenvalues are , for integers , where eigenfunctions are . Hence, let us pick the solutions
The corresponding must satisfy the equation This is one of our subsection:fourfundamental, and the solution is just an exponential: It will be useful to note that . Our building-block solutions areWe note that . Let us write as the sine series
That is, we find the Fourier series of the odd periodic extension of . We used the sine series as it corresponds to the eigenvalue problem for above. Finally, we use superposition to write the solution as__
Why does this solution work? First note that it is a solution to the heat equation by superposition. It satisfies and , because or makes all the sines vanish. Finally, plugging in , we notice that and so
Solution: We are solving the following PDE problem:
We write for as a sine series. That is, where
The solution , plotted in Normally a reference to a previous figure goes here. for , is given by the series:
Finally, let us answer the question about the maximum temperature. It is relatively easy to see that the maximum temperature at any fixed time is always at , in the middle of the wire. The plot of confirms this intuition. If we plug in , we get
For and higher (remember is only odd), the terms of the series are insignificant compared to the first term. The first term in the series is already a very good approximation of the function. Hence The approximation gets better and better as gets larger as the other terms decay much faster. Let us plot the function , the temperature at the midpoint of the wire at time , in Normally a reference to a previous figure goes here.. The figure also plots the approximation by the first term.After or so it would be hard to tell the difference between the first term of the series for and the real solution . This behavior is a general feature of solving the heat equation. If you are interested in behavior for large enough , only the first one or two terms may be necessary.
Let us get back to the question of when is the maximum temperature one half of the initial maximum temperature. That is, when is the temperature at the midpoint . We notice on the graph that if we use the approximation by the first term we will be close enough. We solve
That is, So the maximum temperature drops to half at about .___
We mention an interesting behavior of the solution to the heat equation. The heat equation “smoothes” out the function as grows. For a fixed , the solution is a Fourier series with coefficients . If , then these coefficients go to zero faster than any for any power . In other words, the Fourier series has infinitely many derivatives everywhere. Thus even if the function has jumps and corners, then for a fixed , the solution as a function of is as smooth as we want it to be.
Insulated ends
Now suppose the ends of the wire are insulated. In this case, we are solving the equation
Yet again we try a solution of the form . By the same procedure as before we plug into the heat equation and arrive at the following two equationsAt this point the story changes slightly. The boundary condition implies . Hence . Similarly, implies . We are looking for nontrivial solutions of the eigenvalue problem , , . We have previously found that the only eigenvalues are , for integers , where eigenfunctions are we include the constant eigenfunction). Hence, let us pick solutions
The corresponding must satisfy the equation For , as before, For , we have and hence . Our building-block solutions are andWe note that . Let us write using the cosine series
That is, we find the Fourier series of the even periodic extension of .We use superposition to write the solution as
Solution: For this problem, we must find the cosine series of . For we have
The calculation is left to the reader. Hence, the solution to the PDE problem, plotted in Normally a reference to a previous figure goes here., is given by the seriesNote in the graph that as time goes on, the temperature evens out across the wire. Eventually, all the terms except the constant die out, and you will be left with a uniform temperature of along the entire length of the wire.
___
Let us expand on the last point. The constant term in the series is
In other words, is the average value of , that is, the average of the initial temperature. As the wire is insulated everywhere, no heat can get out, no heat can get in. So the temperature tries to distribute evenly over time, and the average temperature must always be the same, in particular it is always . As time goes to infinity, the temperature goes to the constant everywhere.