Differential Equations for EngineersXYZ Homework Edition

⇩ Download ▾

4.9 Steady State Temperature and the Laplacian

Suppose we have an insulated wire, a plate, or a 3-dimensional object. We apply certain fixed temperatures on the ends of the wire, the edges of the plate, or on all sides of the 3-dimensional object. We wish to find out what is the steady state temperature distribution. That is, we wish to know what will be the temperature after long enough period of time.

We are really looking for a solution to the heat equation that is not dependent on time. Let us first solve the problem in one space variable. We are looking for a function uu that satisfies

u t = k u x x , u_t=ku_{xx}, \nonumber

but such that ut=0u_t=0 for all xx and tt. Hence, we are looking for a function of xx alone that satisfies uxx=0u_{xx}=0. It is easy to solve this equation by integration and we see that u=Ax+Bu=Ax+B for some constants AA and BB.

Suppose we have an insulated wire, and we apply constant temperature T1T_1 at one end (say where x=0x=0) and T2T_2 on the other end (at x=Lx=L where LL is the length of the wire). Then our steady state solution is

u ( x ) = T 2 T 1 L x + T 1 . u(x)= \dfrac{T_2-T_1}{L}x+T_1. \nonumber

This solution agrees with our common sense intuition with how the heat should be distributed in the wire. So in one dimension, the steady state solutions are basically just straight lines.

Things are more complicated in two or more space dimensions. Let us restrict to two space dimensions for simplicity. The heat equation in two space variables is

u t = k ( u x x + u y y ) , \label{eq:3} u_t=k(u_{xx}+u_{yy}),

(4.9.1)

or more commonly written as ut=kΔuu_t=k \Delta u or ut=k2uu_t=k \nabla^2 u. Here the Δ\Delta and 2\nabla^2 symbols mean 2x2+2y2\dfrac{\partial^2}{\partial x^2}+ \dfrac{\partial^2}{\partial y^2}. We will use Δ\Delta from now on. The reason for using such a notation is that you can define Δ\Delta to be the right thing for any number of space dimensions and then the heat equation is always ut=kΔuu_t=k \Delta u. The operator Δ\Delta is called the Laplacian.

OK, now that we have notation out of the way, let us see what does an equation for the steady state solution look like. We are looking for a solution to Equation (4.9.1) that does not depend on tt, or in other words ut=0u_t=0. Hence we are looking for a function u(x,y)u(x,y) such that

Δ u = u x x + u y y = 0 . \Delta u = u_{xx}+u_{yy}=0. \nonumber

This equation is called the Laplace equation1. Solutions to the Laplace equation are called harmonic functions and have many nice properties and applications far beyond the steady state heat problem.

Harmonic functions in two variables are no longer just linear (plane graphs). For example, you can check that the functions x2y2x^2-y^2 and xyxy are harmonic. However, if you remember your multi-variable calculus we note that if uxxu_{xx} is positive, uu is concave up in the xx direction, then uyyu_{yy} must be negative and uu must be concave down in the yy direction. Therefore, a harmonic function can never have any “hilltop” or “valley” on the graph. This observation is consistent with our intuitive idea of steady state heat distribution; the hottest or coldest spot will not be inside.

Commonly the Laplace equation is part of a so-called Dirichlet problem2. That is, we have a region in the xyxy-plane and we specify certain values along the boundaries of the region. We then try to find a solution uu defined on this region such that uu agrees with the values we specified on the boundary.

For simplicity, we consider a rectangular region. Also for simplicity we specify boundary values to be zero at 3 of the four edges and only specify an arbitrary function at one edge. As we still have the principle of superposition, we can use this simpler solution to derive the general solution for arbitrary boundary values by solving 4 different problems, one for each edge, and adding those solutions together. This setup is left as an exercise.

We wish to solve the following problem. Let hh and ww be the height and width of our rectangle, with one corner at the origin and lying in the first quadrant.

Δ u = 0 , u ( 0 , y ) = 0 for  0 < y < h , u ( x , h ) = 0 for  0 < x < w , u ( w , y ) = 0 for  0 < y < h , u ( x , 0 ) = f ( x ) for  0 < x < w . \begin{align} & \Delta u = 0, & & \label{dirich:eq1} \\ & u(0,y) = 0 & & \text{for } 0 < y < h,\label{dirich:eq2} \\ & u(x,h) = 0 & & \text{for } 0 < x < w,\label{dirich:eq3} \\ & u(w,y) = 0 & & \text{for } 0 < y < h,\label{dirich:eq4} \\ & u(x,0) = f(x) & & \text{for } 0 < x < w.\label{dirich:eq5}\end{align}

(4.9.2)

Diagram of a rectangle with corners (0,0), (w,0), (0,h) and (w,h) and delta u equals 0 inside; the left, right and top edges are labelled u equals 0 and the bottom edge u equals f of x.
Figure 1\PageIndex{1}

The method we apply is separation of variables. Again, we will come up with enough building-block solutions satisfying all the homogeneous boundary conditions (all conditions except (4.9.6)). We notice that superposition still works for the equation and all the homogeneous conditions. Therefore, we can use the Fourier series for f(x)f(x) to solve the problem as before.

We try u(x,y)=X(x)Y(y)u(x,y)=X(x)Y(y). We plug uu into the equation to get

X Y + X Y = 0 . X''Y+XY''=0. \nonumber

We put the XXs on one side and the YYs on the other to get

X X = Y Y . - \dfrac{X''}{X}= \dfrac{Y''}{Y}. \nonumber

The left hand side only depends on xx and the right hand side only depends on yy. Therefore, there is some constant λ\lambda such that λ=XX=YY\lambda = \dfrac{-X''}{X}= \dfrac{Y''}{Y}. And we get two equations

X + λ X = 0 , Y λ Y = 0 . X'' + \lambda X = 0, \\ Y'' - \lambda Y=0. \nonumber

Furthermore, the homogeneous boundary conditions imply that X(0)=X(w)=0X(0)=X(w)=0 and Y(h)=0Y(h)=0. Taking the equation for XX we have already seen that we have a nontrivial solution if and only if λ=λn=n2π2w2\lambda= \lambda_n = \dfrac{n^2 \pi^2}{w^2} and the solution is a multiple of

X n ( x ) = sin ( n π w x ) . X_n(x) = \sin \left( \dfrac{n \pi}{w}x \right). \nonumber

For these given λn\lambda_n, the general solution for YY (one for each nn) is

Y n ( y ) = A n cosh ( n π w y ) + B n sinh ( n π w y ) . \label{eq:14} Y_n(y)=A_n \cosh \left( \dfrac{n \pi}{w}y \right) + B_n \sinh \left( \dfrac{n \pi}{w}y \right).

(4.9.7)

We only have one condition on YnY_n and hence we can pick one of AnA_n or BnB_n to be something convenient. It will be useful to have Yn(0)=1Y_n(0)=1, so we let An=1A_n=1. Setting Yn(h)=0Y_n(h)=0 and solving for BnB_n we get that

B n = cosh ( n π h w ) sinh ( n π h w ) . B_n = \dfrac{ - \cosh \left( \dfrac{n \pi h}{w} \right)}{ \sinh \left( \dfrac{n \pi h}{w} \right)}. \nonumber

After we plug the AnA_n and BnB_n we into (4.9.7) and simplify, we find

Y n ( y ) = sinh ( n π ( h y ) w ) sinh ( n π h w ) . Y_n(y) = \dfrac{ \sinh \left( \dfrac{n \pi (h-y)}{w} \right)}{ \sinh \left( \dfrac{n \pi h}{w} \right)}. \nonumber

We define un(x,y)=Xn(x)Yn(y)u_n(x,y)=X_n(x)Y_n(y). And note that unu_n satisfies (4.9.2) - (4.9.5).

Observe that

u n ( x , 0 ) = X n ( x ) Y n ( 0 ) = sin ( n π w x ) . u_n(x,0)= X_n(x)Y_n(0) = \sin \left( \dfrac{n \pi}{w}x \right). \nonumber

Suppose

f ( x ) = n = 1 b n sin ( n π x w ) . f(x)= \sum_{n=1}^{ \infty}b_n \sin \left( \dfrac{n \pi x}{w} \right). \nonumber

Then we get a solution of (4.9.2) - (4.9.6) of the following form.

u ( x , y ) = n = 1 b n u n ( x , y ) = n = 1 b n sin ( n π w x ) ( sinh ( n π ( h y ) w ) sinh ( n π h w ) ) . u(x,y)= \sum_{n=1}^{ \infty}b_n u_n(x,y) = \sum_{n=1}^{ \infty}b_n \sin \left( \dfrac{n \pi }{w}x \right) \left( \dfrac{ \sinh \left( \dfrac{n \pi (h-y)}{w} \right)}{ \sinh \left( \dfrac{n \pi h}{w} \right)} \right). \nonumber

As unu_n satisfies Equation (4.9.2) - (4.9.5) and any linear combination (finite or infinite) of unu_n must also satisfy (4.9.2) - (4.9.5), we see that uu must satisfy Equations (4.9.2) - (4.9.5). By plugging in y=0y=0 it is easy to see that uu satisfies (4.9.6) as well.

Footnotes

[1] Named after the French mathematician Pierre-Simon, marquis de Laplace (1749–1827).

[2] Named after the German mathematician Johann Peter Gustav Lejeune Dirichlet (1805–1859).

Adapted from Differential Equations for Engineers by Jiří Lebl (https://www.jirka.org/diffyqs/), © Jiří Lebl, licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.