Heat equation
166415
223426035
2008-07-04T00:50:26Z
Silly rabbit
555135
t /* Theta functions */
[[Image:Heat eqn.gif|right|frame|The heat equation predicts that if a hot body is placed in a box of cold water, the temperature of the body will decrease, and eventually (after infinite time, and subject to no external heat sources) the temperature in the box will equalize.]]
The '''heat equation''' is an important [[partial differential equation]] which describes the distribution of [[heat]] (or variation in temperature) in a given region over time. For a [[function (mathematics)|function]] of three spatial variables (''x'',''y'',''z'') and one time variable ''t'', the heat equation is
:<math>\frac{\partial u}{\partial t} -k\left(\frac{\partial^2u}{\partial x^2}+\frac{\partial^2u}{\partial y^2}+\frac{\partial^2u}{\partial z^2}\right)=0</math>
where ''k'' is a constant.
The heat equation is of fundamental importance in diverse scientific fields. In [[mathematics]], it is the prototypical [[parabolic partial differential equation]]. In [[statistics]], the heat equation is connected with the study of [[Brownian motion]] via the [[Fokker–Planck equation]]. The [[diffusion equation]], a more general version of the heat equation, arises in connection with the study of chemical diffusion and other related processes.
== General-audience description ==
Suppose one has a function ''u'' which describes the temperature at a given location (''x'', ''y'', ''z''). This function will change over time as heat spreads throughout space. The heat equation is used to determine the change in the function ''u'' over time. The image above is animated and has a description of the way heat changes in time along a metal bar. One of the interesting properties of the heat equation is the [[maximum principle]] which says that the maximum value of ''u'' is either earlier in time than the region of concern or on the edge of the region of concern. This is essentially saying that temperature comes either from some source or from earlier in time because heat permeates but is not created from nothingness. This is a property of [[parabolic partial differential equation]]s and is not difficult to prove mathematically (see below).
Another interesting property is that even if ''u'' has a discontinuity at an initial time ''t'' = ''t''<sub>0</sub>, then the temperature becomes instantly smooth as soon as ''t'' > ''t''<sub>0</sub>. For example, if a bar of metal has temperature 0 and another has temperature 100 and they are stuck together end to end, then instantaneously the temperature at the point of connection is 50 and the graph of the temperature is smoothly running from 0 to 100. This is not physically possible, since there would then be information propagation at infinite speed, which would violate [[Causality (physics)|causality]]. Therefore this is a property of the mathematical equation rather than of heat conduction itself. However, for most practical purposes, the difference is negligible.
The heat equation is used in probability and describes [[random walks]]. It is also applied in [[financial mathematics]] for this reason.
It is also important in [[Riemannian geometry]] and thus [[topology]]: it was adapted by [[Richard Hamilton (professor)|Richard Hamilton]] when he defined the [[Ricci flow]] that was later used to solve the topological [[Poincaré conjecture]].
See also the [[Dirac delta function]].
== The physical problem and the equation ==
===Derivation in one dimension===
The heat equation is derived from [[Fourier's law]] and [[conservation of energy]] {{harv|Cannon|1984}}. By Fourier's law, the rate of flow of heat energy per time through a unit volume of a material, or heat flux, is proportional to the negative gradient of the temperature, or
:<math>\mathbf{q} = - k \nabla u</math>
where ''k'' is the thermal conductivity and ''u'' is the temperature. In one dimension, the gradient is an ordinary spatial derivative, and so Fourier's law is
:<math> q = -k u_x.</math>
In the absence of work done, a change in internal energy per unit volume in the material, ΔQ, is proportional to the change in temperature. That is,
:<math>\Delta Q = c_p\rho\Delta u</math>
where ''c''<sub>p</sub> is the [[specific heat capacity]] and ρ is the mass density of the material. Choosing zero energy at temperature zero, this can be rewritten as
:<math> Q = c_p\rho u.</math>
The increase in internal energy in a small spatial region of the material
:<math>x-\Delta x \le \xi \le x+\Delta x</math>
over the time period
:<math>t-\Delta t\le \tau \le t+\Delta t</math>
is given by<ref>Here we are assuming that the material has constant mass density and heat capacity through space as well as time, although generalizations are given below.</ref>
:<math>c_p\rho \int_{x-\Delta x}^{x+\Delta x} [u(\xi,t+\Delta t)-u(\xi,t-\Delta t)]\, d\xi = c_p\rho\int_{t-\Delta t}^{t+\Delta t}\int_{x-\Delta x}^{x+\Delta x} \frac{\partial u}{\partial\tau}\,d\xi d\tau</math>
by [[Green's theorem]]. With no work done, and absent any heat sources or sinks, this change in internal energy in the interval [''x''-Δ''x'', ''x''+Δ''x''] is accounted for entirely by the flux of heat across the boundaries. By Fourier's law, this is
:<math>k\int_{t-\Delta t}^{t+\Delta t}\left[\frac{\partial u}{\partial x}(x+\Delta x,\tau)-\frac{\partial u}{\partial x}(x-\Delta x,\tau)\right]\,d\tau = k\int_{t-\Delta t}^{t+\Delta t}\int_{x-\Delta x}^{x+\Delta x}\frac{\partial^2u}{\partial\xi^2}\,d\xi d\tau</math>
again by Green's theorem. By [[conservation of energy]],
:<math>\int_{t-\Delta t}^{t+\Delta t}\int_{x-\Delta x}^{x+\Delta x} [c_p\rho u_\tau - k u_{\xi\xi}]\, d\xi d\tau = 0.</math>
This is true for any spatiotemporal rectangle [''t''-Δ''t'',''t''+Δ''t'']×[''x''-Δ''x'',''x''+Δ''x'']. Consequently, the integrand must vanish identically; to wit,
:<math>c_p\rho u_t - k u_{xx} = 0.</math>
Or,
:<math>u_t = \frac{k}{c_p\rho}u_{xx},</math>
which is the heat equation.
===In 3D===
[[Image:Heatequation_exampleB_frames.svg|right|frame|Graphical representation of the solution to a 1D heat equation PDE. ([[Commons:Image:Heatequation_exampleB.gif|View animated version]])]]
In the special case of heat propagation in an [[isotropic]] and [[wiktionary:Homogeneous|homogeneous]] medium in the 3-[[dimension]]al space, this equation is
: <math>{\partial u\over \partial t} =
k \left({\partial^2 u\over \partial x^2 } +
{\partial^2 u\over \partial y^2 } +
{\partial^2 u\over \partial z^2 }\right)</math>
::<math> = k ( u_{xx} + u_{yy} + u_{zz} ) \quad </math>
where:
* <math>\scriptstyle u=u(t,x,y,z) \,\!</math> is temperature as a function of time and space;
* <math>\scriptstyle\frac{\partial u}{\partial t}</math> is the rate of change of temperature at a point over time;
* <math>\scriptstyle u_{xx}\,\!</math>, <math>\scriptstyle u_{yy}\,\!</math>, and <math>\scriptstyle u_{zz}\,\!</math> are the second spatial [[derivative]]s (''thermal conductions'') of temperature in the ''x'', ''y'', and ''z'' directions, respectively
* ''k'' is a material-specific quantity depending on the ''[[thermal conductivity]]'', the ''[[density]]'' and the ''[[heat capacity]]''. Specifically, ''k''=κ/''c''ρ where κ is the thermal conductivity, ''c'' is the capacity, and ρ the density.
The heat equation is a consequence of Fourier's law of cooling (see [[heat conduction]]).
If the medium is not the whole space, in order to solve the heat equation uniquely we also need to specify [[boundary condition]]s for ''u''. To determine uniqueness of solutions in the whole space it is necessary to assume an exponential bound on the growth of solutions, this assumption is consistent with observed experiments.
Solutions of the heat equation are characterized by a gradual smoothing of the initial temperature distribution by the flow of [[heat]] from warmer to colder areas of an object. Generally, many different states and starting conditions will tend toward the same stable [[thermodynamic equilibrium|equilibrium]]. As a consequence, to reverse the solution and conclude something about earlier times or initial conditions from the present heat distribution is very inaccurate except over the shortest of time periods.
The heat equation is the prototypical example of a [[parabolic partial differential equation]].
Using the [[Laplace operator]], the heat equation can be simplified, and generalized to similar equations over spaces of arbitrary number of dimensions, as
:<math>u_t = k \nabla^2 u = k \Delta u, \quad \,\!</math>
where the Laplace operator, Δ or <math>\scriptstyle\nabla^2</math>, the divergence of the gradient, is taken in the spatial variables.
The heat equation governs heat diffusion, as well as other diffusive processes, such as [[particle diffusion]] or the propagation of [[action potential]] in nerve cells. Although they are not diffusive in nature, some quantum mechanics problems are also governed by a mathematical analog of the heat equation (see below). It also can be used to model some phenomena arising in [[finance]], like the [[Black-Scholes]] or the [[Ornstein-Uhlenbeck process]]es. The equation, and various non-linear analogues, has also been used in image analysis.
The heat equation is, technically, in violation of [[special relativity]], because its solutions involve instantaneous propagation of a disturbance. The part of the disturbance outside the forward [[light cone]] can usually be safely neglected, but if it is necessary to develop a reasonable speed for the transmission of heat, a hyperbolic problem should be considered instead – like a partial differential equation involving a second-order time derivative.
=== Internal heat generation ===
The function ''u'' above represents temperature of a body. Alternatively, it is sometimes convenient to change units and represent ''u'' as the heat density of a medium. Since heat density is proportional to temperature in a homogeneous medium, the heat equation is still obeyed in the new units.
Suppose that a body obeys the heat equation and, in addition, generates is own heat per unit volume (e.g., in watts/L) at a rate given by a known function ''q'' varying in space and time.<ref>Note that the units of ''u'' must be selected in a manner compatible with those of ''q''. Thus instead of being temperature (°K), units of ''u'' should be Joules/L.</ref> Then the heat per unit volume ''u'' satisfies an equation
: <math>{\partial u\over \partial t} =
k \left({\partial^2 u\over \partial x^2 } +
{\partial^2 u\over \partial y^2 } +
{\partial^2 u\over \partial z^2 } \right) + q.</math>
For example, a tungsten light bulb filament generates heat, so it would have a positive nonzero value for <math>q</math> when turned on. While the light is turned off, the value of <math>q</math> for the tungsten filament would be zero.
== Solving the heat equation using Fourier series ==
[[Image:Temp_Rod_homobc.svg|right|thumb|300px|Idealized physical setting for heat conduction in a rod with homogenous boundary conditions.]]
The following solution technique for the heat equation was proposed by [[Joseph Fourier]] in his treatise ''Théorie analytique de la chaleur'', published in [[1822]]. Let us consider the heat equation for one space variable. This could be used to model heat conduction in a rod. The equation is
:<math>(1) \ u_t = k u_{xx} \quad </math>
where ''u'' = ''u''(''t'', ''x'') is a function of two variables ''t'' and ''x''. Here
* ''x'' is the space variable, so ''x'' ∈ [0,''L''], where ''L'' is the length of the rod.
* ''t'' is the time variable, so ''t'' ≥ 0.
We assume the initial condition
:<math>(2) \ u(0,x) = f(x) \quad \forall x \in [0,L] \quad </math>
where the function ''f'' is given and the boundary conditions
:<math>(3) \ u(t,0) = 0 = u(t,L) \quad \forall t > 0 \quad </math>.
Let us attempt to find a solution of (1) which is not identically zero satisfying the boundary conditions (3) but with the following property: ''u'' is a product in which the dependence of ''u'' on ''x'', ''t'' is separated, that is:
:<math> (4) \ u(t,x) = X(x) T(t). \quad</math>
This solution technique is called [[separation of variables]]. Substituting ''u'' back into equation (1),
:<math>\frac{T'(t)}{kT(t)} = \frac{X''(x)}{X(x)}. \quad </math>
Since the right hand side depends only on ''x'' and the left hand side only on ''t'', both sides are equal to some constant value − λ. Thus:
:<math> (5) \ T'(t) = - \lambda kT(t) \quad </math>
and
:<math> (6) \ X''(x) = - \lambda X(x). \quad </math>
We will now show that solutions for (6) for values of λ ≤ 0 cannot occur:
<ol>
<li>
Suppose that λ < 0. Then there exist real numbers ''B'', ''C'' such that
:<math>X(x) = B e^{\sqrt{-\lambda} \, x} + C e^{-\sqrt{-\lambda} \, x}.</math>
From (3) we get
:<math>X(0) = 0 = X(L). \quad </math>
and therefore ''B'' = 0 = ''C'' which implies ''u'' is identically 0.
</li>
<li>
Suppose that λ = 0. Then there exist real numbers ''B'', ''C'' such that
:<math>X(x) = Bx + C. \quad </math>
From equation (3) we conclude in the same manner as in 1 that ''u'' is identically 0.
</li>
<li>
Therefore, it must be the case that λ > 0. Then there exist real numbers ''A'', ''B'', ''C'' such that
:<math>T(t) = A e^{-\lambda k t} \quad </math>
and
:<math>X(x) = B \sin(\sqrt{\lambda} \, x) + C \cos(\sqrt{\lambda} \, x).</math>
From (3) we get ''C'' = 0 and that for some positive integer ''n'',
:<math>\sqrt{\lambda} = n \frac{\pi}{L}.</math>
</li>
</ol>
This solves the heat equation in the special case that the dependence of ''u'' has the special form (4).
In general, the sum of solutions to (1) which satisfy the boundary conditions (3) also satisfies (1) and (3). We can show that the solution to (1), (2) and (3) is given by
:<math>u(t,x) = \sum_{n = 1}^{+\infty} D_n \left(\sin \frac{n\pi x}{L}\right) e^{-\frac{n^2 \pi^2 kt}{L^2}}</math>
where
:<math>D_n = \frac{2}{L} \int_0^L f(x) \sin \frac{n\pi x}{L} \, dx.</math>
=== Generalizing the solution technique ===
The solution technique used above can be greatly extended to many other types of equations. The idea is that the operator ''u''<sub>''xx''</sub> with the zero boundary conditions can be represented in terms of its [[eigenvector]]s. This leads naturally to one of the basic ideas of the [[spectral theory]] of linear [[self-adjoint operator]]s.
Consider the [[linear operator]] Δ ''u'' = ''u''<sub>''x x''</sub>. The infinite sequence of functions
:<math> e_n(x) = \sqrt{\frac{2}{L}}\sin \frac{n\pi x}{L} </math>
for ''n'' ≥ 1 are eigenvectors of Δ. Indeed
:<math> \Delta e_n = -\frac{n^2 \pi^2}{L^2} e_n. </math>
Moreover, any eigenvector ''f'' of Δ with the boundary conditions ''f''(0)=''f''(''L'')=0 is of the form ''e''<sub>''n''</sub> for some ''n'' ≥ 1. The functions ''e''<sub>''n''</sub> for ''n'' ≥ 1 form an [[orthonormal]] sequence with respect to a certain [[inner product]] on the space of real-valued functions on [0, ''L'']. This means
:<math> \langle e_n, e_m \rangle = \int_0^L e_n(x) e_m(x) dx = \left\{ \begin{matrix} 0 & n \neq m \\ 1 & m = n\end{matrix}\right.. </math>
Finally, the sequence {''e''<sub>''n''</sub>}<sub>''n'' ∈ '''N'''</sub> spans a dense linear subspace of L<sup>2</sup>(0, ''L''). This shows that in effect we have [[diagonal matrix|diagonalized]] the operator Δ.
== Heat conduction in non-homogeneous anisotropic media ==
In general, the study of heat conduction is based on several principles. Heat flow is a form of [[energy]] flow, and as such it is meaningful to speak of the time rate of flow of heat into a region of space.
* The time rate of heat flow into a region ''V'' is given by a time-dependent quantity ''q''<sub>''t''</sub>(''V''). We assume ''q'' has a [[density]], so that
::<math> q_t(V) = \int_V Q(t,x)\,d x \quad </math>
* Heat flow is a time-dependent vector function '''H'''(''x'') characterized as follows: the time rate of heat flowing through an infinitesimal surface element with area ''d'' ''S'' and with unit normal vector '''n''' is
::<math> \mathbf{H}(x) \cdot \mathbf{n}(x) \, dS </math>
Thus the rate of heat flow into ''V'' is also given by the surface integral
:<math> q_t(V)= - \int_{\partial V} \mathbf{H}(x) \cdot \mathbf{n}(x) \, dS </math>
where '''n'''(x) is the outward pointing normal vector at ''x''.
* The [[law of heat conduction|Fourier law]] states that heat energy flow has the following linear dependence on the temperature gradient
::<math> \mathbf{H}(x) = -\mathbf{A}(x) \cdot \nabla u (x) </math>
: where '''A'''(''x'') is a 3 × 3 real [[matrix (mathematics)|matrix]] that is [[symmetric]] and [[positive-definite matrix|positive definite]].
By [[Green's theorem]], the previous surface integral for heat flow into ''V'' can be transformed into the volume integral
:<math> q_t(V) = - \int_{\partial V} \mathbf{H}(x) \cdot \mathbf{n}(x) \, dS </math>
:::<math> = \int_{\partial V} \mathbf{A}(x) \cdot \nabla u (x) \cdot \mathbf{n}(x) \, dS </math>
:::<math> = \int_V \sum_{i, j} \partial_{x_i} a_{i j}(x) \partial_{x_j} u (t,x)\,dx </math>
* The time rate of temperature change at ''x'' is proportional to the heat flowing into an infinitesimal volume element, where the constant of proportionality is dependent on a constant κ
::<math> \partial_t u(t,x) = \kappa(x) Q(t,x)\, </math>
Putting these equations together gives the general equation of heat flow:
: <math> \partial_t u(t,x) = \kappa(x) \sum_{i, j} \partial_{x_i} a_{i j}(x) \partial_{x_j} u (t,x) </math>
'''Remarks'''.
* The coefficient κ(''x'') is the inverse of [[specific heat]] of the substance at ''x'' × [[density]] of the substance at ''x''.
* In the case of an isotropic medium, the matrix '''A''' is a scalar matrix equal to [[thermal conductivity]].
* In the anisotropic case where the coefficient matrix '''A''' is not scalar (i.e., if it depends on ''x''), then an explicit formula for the solution of the heat equation can seldom be written down. Though, it is usually possible to consider the associated abstract [[Cauchy problem]] and show that it is a [[well-posed problem]] and/or to show some qualitative properties (like preservation of positive initial data, infinite speed of propagation, convergence toward an equilibrium, smoothing properties). This is usually done by [[one-parameter semigroup]]s theory: for instance, if ''A'' is a symmetric matrix, then the [[elliptic operator]] defined by
::<math>Au(x):=\sum_{i, j} \partial_{x_i} a_{i j}(x) \partial_{x_j} u (x)</math>
:is [[self-adjoint]] and dissipative, thus by the [[spectral theorem]] it generates a [[one-parameter semigroup]].
== Fundamental solutions ==
A [[fundamental solution]] is a solution of the heat equation corresponding to the initial condition of an initial point source of heat at a known position. These can be used to find a general solution of the heat equation over certain domains; see, for instance, {{harv|Evans|1998}} for an introductory treatment.
In one variable, the Green's function is a solution of the initial value problem
:<math>
\begin{cases}
u_t(x,t) - k u_{xx}(x,t) = 0& -\infty<x<\infty,\quad 0<t<\infty\\
u(x,t=0)=\delta(x)&
\end{cases}
</math>
where δ is the [[Dirac delta function]]. The solution to this problem is the fundamental solution
:<math>\Phi(x,t)=\frac{1}{\sqrt{4\pi kt}}\exp\left(-\frac{x^2}{4kt}\right).</math>
One can obtain the general solution of the one variable heat equation with initial condition ''u''(''x'',0) = ''g''(''x'') for -∞<''x''<∞ and 0<''t''<∞ by applying a [[convolution]]:
:<math>u(x,t) = \int \Phi(x-y,t) g(y) dy.</math>
In several spatial variables, the fundamental solution solves the analogous problem
:<math>
\begin{cases}
u_t(\mathbf{x},t) - k \sum_{i=1}^nu_{x_ix_i}(\mathbf{x},t) = 0\\
u(\mathbf{x},t=0)=\delta(\mathbf{x})
\end{cases}
</math>
in -∞<''x''<sub>i</sub><∞, ''i''=1,...,''n'', and 0<''t''<∞. The ''n''-variable fundamental solution is the product of the fundamental solutions in each variable; i.e.,
:<math>\Phi(\mathbf{x},t) = \Phi(x_1,t)\Phi(x_2,t)\dots\Phi(x_n,t)=\frac{1}{(4\pi k t)^{n/2}}e^{-\mathbf{x}\cdot\mathbf{x}/4kt}.</math>
The general solution of the heat equation on '''R'''<sup>n</sup> is then obtained by a convolution, so that to solve the initial value problem with ''u''('''x''',''t''=0)=''g''('''x'''), one has
:<math>u(\mathbf{x},t) = \int_{\mathbb{R}^n}\Phi(\mathbf{x}-\mathbf{y},t)g(\mathbf{y})d^n\mathbf{y}.</math>
The general problem on a domain Ω in '''R'''<sup>n</sup> is
:<math>
\begin{cases}
u_t(\mathbf{x},t) - k \sum_{i=1}^nu_{x_ix_i}(\mathbf{x},t) = 0& \mathbf{x}\in\Omega\quad 0<t<\infty\\
u(\mathbf{x},t=0)=g(\mathbf{x})&\mathbf{x}\in\Omega
\end{cases}
</math>
with either [[Dirichlet problem|Dirichlet]] or [[Neumann problem|Neumann]] boundary data. A [[Green's function]] always exists, but unless the domain Ω can be readily decomposed into one-variable problems (see below), it may not be possible to write it down explicitly. The [[method of images]] provides one additional technique for obtaining Green's functions for non-trivial domains.
=== Some Green's function solutions in 1D ===
A variety of elementary Green's function solutions in one-dimension are recorded here. In some of these, the spatial domain is the entire real line (-∞,∞). In others, it is the semi-infinite interval (0,∞) with either [[Neumann problem|Neumann]] or [[Dirichlet problem|Dirichlet]] boundary conditions. One further variation is that some of these solve the inhomogeneous equation
:<math>u_{t}=ku_{xx}+f.</math>
where ''f'' is some given function of ''x'' and ''t''.
==== Homogeneous heat equation ====
;Initial value problem on (-∞,∞)
:<math>\begin{cases} u_{t}=ku_{xx} & -\infty<x<\infty,\,0<t<\infty \\ u(x,0)=g(x) & IC \end{cases} </math>
:<math>u(x,t)=\frac{1}{\sqrt{4\pi kt}} \int_{-\infty}^{\infty} \exp\left(-\frac{(x-y)^2}{4kt}\right)g(y)\,dy </math>
;Initial value problem on (0,∞) with homogeneous Dirichlet boundary conditions
:<math>\begin{cases} u_{t}=ku_{xx} & \, 0\le x<\infty, \, 0<t<\infty \\ u(x,0)=g(x) & IC \\ u(0,t)=0 & BC \end{cases} </math>
:<math>u(x,t)=\frac{1}{\sqrt{4\pi kt}} \int_{0}^{\infty}
\left(\exp\left(-\frac{(x-y)^2}{4kt}\right)-\exp\left(-\frac{(x+y)^2}{4kt}\right)\right)
g(y)\,dy </math>
;Initial value problem on (0,∞) with homogeneous Neumann boundary conditions
:<math>\begin{cases} u_{t}=ku_{xx} & \, 0\le x<\infty, \, 0<t<\infty \\ u(x,0)=g(x) & IC \\ u_{x}(0,t)=0 & BC \end{cases} </math>
:<math>u(x,t)=\frac{1}{\sqrt{4\pi kt}} \int_{0}^{\infty}
\left(\exp\left(-\frac{(x-y)^2}{4kt}\right)+\exp\left(-\frac{(x+y)^2}{4kt}\right)\right)
g(y)\,dy </math>
;Problem on (0,∞) with homogeneous initial conditions and non-homogeneous Dirichlet boundary conditions
:<math>\begin{cases} u_{t}=ku_{xx} & 0\le x<\infty,\,0<t<\infty \\ u(x,0)=0 & IC \\ u(0,t)=h(t) & BC \end{cases} </math>
:<math>u(x,t)=\int_{0}^{t} \frac{x}{\sqrt{4\pi k(t-s)^3}}
\exp\left(-\frac{x^2}{4k(t-s)}\right)h(s)\,ds </math>
==== Inhomogeneous heat equation ====
;Problem on (-∞,∞) homogeneous initial conditions
:<math>\begin{cases} u_{t}=ku_{xx}+f & -\infty<x<\infty,\,0<t<\infty \\ u(x,0)=0 & IC \end{cases} </math>
:<math>u(x,t)=\int_{0}^{t}\int_{-\infty}^{\infty} \frac{1}{\sqrt{4\pi k(t-s)}} \exp\left(-\frac{(x-y)^2}{4k(t-s)}\right)f(s)\,dy\,ds </math>
;Problem on (0,∞) with homogeneous Dirichlet boundary conditions and initial conditions
:<math>\begin{cases} u_{t}=ku_{xx}+f(x,t) & 0\le x<\infty,\,0<t<\infty \\ u(x,0)=0 & IC \\ u(0,t)=0 & BC \end{cases} </math>
:<math>u(x,t)=\int_{0}^{t}\int_{0}^{\infty} \frac{1}{\sqrt{4\pi k(t-s)}}
\left(\exp\left(-\frac{(x-y)^2}{4k(t-s)}\right)-\exp\left(-\frac{(x+y)^2}{4k(t-s)}\right)\right)
f(y,s)\,dy\,ds </math>
==== Examples ====
Since the heat equation is linear, solutions of other combinations of boundary conditions, inhomogeneous term, and initial conditions can be found by taking an appropriate [[linear combination]] of the above Green's function solutions.
For example, to solve
:<math>\begin{cases} u_{t}=ku_{xx}+f & -\infty<x<\infty,\,0<t<\infty \\ u(x,0)=g(x) & IC\end{cases} </math>
let
:<math> \quad{u=w+v} </math>
where ''u'' and ''v'' solve the problems
:<math>\begin{cases} v_{t}=kv_{xx}+f, \, w_{t}=kw_{xx} \, & -\infty<x<\infty,\,0<t<\infty
\\ v(x,0)=0,\, w(x,0)=g(x) \, & IC\end{cases} </math>
Similarly, to solve
:<math>\begin{cases} u_{t}=ku_{xx}+f & 0\le x<\infty,\,0<t<\infty \\ u(x,0)=g(x) & IC \\ u(0,t)=h(t) & BC\end{cases} </math>
let
:<math> \quad{u=w+v+r} </math>
where ''w'', ''v'', and ''r'' solve the problems
:<math>\begin{cases} v_{t}=kv_{xx}+f, \, w_{t}=kw_{xx}, \, r_{t}=kr_{xx} \, & 0\le x<\infty,\,0<t<\infty
\\ v(x,0)=0, \; w(x,0)=g(x), \; r(x,0)=0 & IC
\\ v(0,t)=0, \; w(0,t)=0, \; r(0,t)=h(t) & BC
\end{cases}</math>
=== Theta functions ===
Solutions of the one-dimensional heat equation on a finite spatial interval (0,1) involve the [[Jacobi theta function]], defined by<ref>As is the convention when dealing with the heat equation, this differs from the usual definition of the theta function in that it is missing a factor of ''i'' on the time variable. See, for instance, Cannon (1984), Chapter 6.</ref>
:<math>\theta(x,t) = \sum_{m=-\infty}^\infty K(x+2m, t),</math>
where
:<math>K(x,t) = \frac{1}{\sqrt{4\pi t}} \exp\left\{-\frac{x^2}{4t}\right\}</math>
is the fundamental solution.
By the [[method of images]], the theta function gives Green's functions for the initial boundary value problems on the interval (0,1). For instance, the solution to the following problem
:<math>u_t=u_{xx},\quad 0<x<1,\quad 0<t</math>
:<math>u(x,0)=f(x),\quad 0<x<1</math>
:<math>u(0,t)=0,\quad 0<t</math>
:<math>u(1,t)=0,\quad 0<t</math>
is given by
:<math>u(x,t) = \int_0^1\left[\theta(x-\xi,t) - \theta(x+\xi,t)\right]f(\xi)\,d\xi.</math>
== Applications ==
=== Particle diffusion ===
{{main|Diffusion equation}}
One can model particle [[diffusion]] by an equation involving either:
* the volumetric [[concentration]] of particles, denoted ''c'', in the case of [[collective diffusion]] of a large number of particles, or
* the [[probability density function]] associated with the position of a single particle, denoted ''P''.
In either case, one uses the heat equation
:<math>c_t = D \Delta c, \quad </math>
or
:<math>P_t = D \Delta P. \quad </math>
Both ''c'' and ''P'' are functions of position and time. ''D'' is the diffusion coefficient that controls the speed of the diffusive process, and is typically expressed in meters squared over second. If the diffusion coefficient ''D'' is not constant, but depends on the concentration ''c'' (or ''P'' in the second case), then one gets the [[diffusion equation|nonlinear diffusion equation]].
=== Brownian motion ===
The random trajectory of a single particle subject to the particle diffusion equation (or heat equation) is a [[Brownian motion]]. If a particle is placed at <math>\vec R = \vec 0</math> at time <math>t = 0</math>, then the [[probability density function]] associated with the position vector of the particle <math>\vec R </math> will be the following:
: <math>P(\vec R,t) = G(\vec R,t) = \frac{1}{(4 \pi D t)^{3/2}} e^{-\frac {\vec R^2}{4 D t}}</math>
which is a (multivariate) [[normal distribution]] evolving in time.
=== Schrödinger equation for a free particle ===
{{main|Schrödinger equation}}
With a simple division, the [[Schrödinger equation]] for a single particle of [[mass]] ''m'' in the absence of any applied force field can be rewritten in the following way:
:<math>\psi_t = \frac{i \hbar}{2m} \Delta \psi</math>, where ''i'' is the [[imaginary number|unit imaginary number]], and <math>\hbar</math> is [[Planck's constant]] divided by <math>2\pi</math>, and <math>\psi</math> is the [[wavefunction]] of the particle.
This equation is formally similar to the particle diffusion equation, which one obtains through the following transformation:
:<math> c(\vec R,t) \to \psi(\vec R,t) </math>
::<math> D \to \frac{i \hbar}{2m}</math>
Applying this transformation to the expressions of the Green functions determined in the case of particle diffusion yields the Green functions of the [[Schrödinger equation]], which in turn can be used to obtain the [[wavefunction]] at any time through an integral on the [[wavefunction]] at ''t=0'':
: <math>\psi(\vec R, t) = \int \psi(\vec R^0,t=0) G(\vec R - \vec R^0,t) dR_x^0\,dR_y^0\,dR_z^0</math>, with
:: <math>G(\vec R,t) = \bigg( \frac{m}{2 \pi i \hbar t} \bigg)^{3/2} e^{-\frac {\vec R^2 m}{2 i \hbar t}}</math>
Remark: this analogy between quantum mechanics and diffusion is a purely formal one. Physically, the evolution of the [[wavefunction]] satisfying [[Schrödinger's equation]] might have an origin other than diffusion.
=== Further applications ===
The heat equation arises in the [[Mathematical model|modeling]] of a number of phenomena and is often used in [[financial mathematics]] in the modeling of [[Option (finance)|options]]. The famous [[Black–Scholes]] option pricing model's [[differential equation]] can be transformed into the heat equation allowing relatively easy solutions from a familiar body of mathematics. Many of the extensions to the simple option models do not have closed form solutions and thus must be solved numerically to obtain a modeled option price. The heat equation can be efficiently solved numerically using the [[Crank–Nicolson method]] of {{harv|Crank|Nicolson|1947}}. This method can be extended to many of the models with no closed form solution, see for instance {{harv|Wilmott|Howison|Dewynne|1995}}.
An abstract form of heat equation on [[manifold]]s provides a major approach to the [[Atiyah–Singer index theorem]], and has led to much further work on heat equations in [[Riemannian geometry]].
== See also ==
* [[Heat kernel regularization]]
* [[Caloric polynomial]]
* [[Neher–McGrath]]
== Notes ==
<references/>
== References ==
*{{citation|first=John|last=Cannon|title=The One-Dimensional Heat Equation|publisher=Addison-Wesley|year=1984|series=Encyclopedia of mathematics and its applications|isbn=0-521-30243-9}}
*{{citation|first=J.|last=Crank|last2=Nicolson|first2=P.|title=A Practical Method for Numerical Evaluation of Solutions of Partial Differential Equations of the Heat-Conduction Type|journal=Proceedings of the Cambridge Philosophical Society|year=1947|volume=43|pages=50-67}}
* {{citation|last=Einstein|first=A|title=Über die von der molekularkinetischen Theorie der Wärme geforderte Bewegung von in ruhenden Flüssigkeiten suspendierten Teilchen|journal=Ann. Phys. Leipzig 17|pages=549-560|year=1905}}
* {{citation|first=L.C.|last=Evans|title=Partial Differential Equations|publisher=American Mathematical Society|address=Providence|year=1998|isbn=0-8218-0772-2}}
* {{citation|first=Fritz|last=John|title=Partial Differential Equations|publisher=Springer|year=1991|edition=4th ed.|isbn=978-0387906096}}
*{{citation|last=Wilmott|first=P.|last2=Howison|first2=S.|last3=Dewynne|first3=J.|year=1995|title=The Mathematics of Financial Derivatives:A Student Introduction|publisher=Cambridge University Press}}
== External links ==
{{Commonscat|Heat equation}}
* [http://www.mathphysics.com/pde/HEderiv.html Derivation of the heat equation]
* [http://eqworld.ipmnet.ru/en/solutions/lpde/heat-toc.pdf Linear heat equations]: Particular solutions and boundary value problems - from EqWorld
* [http://neher-mcgrath.com/index.html# Neher-McGrath heat equations]: What you need to know about your underground electrical installation.
[[Category:Diffusion|Heat equation]]
[[Category:Heat conduction|Equation]]
[[Category:Parabolic partial differential equations]]
[[cs:Rovnice vedení tepla]]
[[de:Wärmeleitungsgleichung]]
[[it:Equazione del calore]]
[[he:משוואת החום]]
[[nl:Warmtevergelijking]]
[[pl:Równanie przewodnictwa cieplnego]]
[[pt:Equação do calor]]
[[ru:Уравнение диффузии]]
[[sl:Difuzijska enačba]]
[[sv:Värmeledningsekvationen]]
[[zh:熱傳導方程式]]