## Section 4.9 Steady state temperature and the Laplacian

¶*Note: 1 lecture, §9.7 in [EP], §10.8 in [BD]*

Consider 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 \(u\) that satisfies

but such that \(u_t = 0\) for all \(x\) and \(t\text{.}\) Hence, we are looking for a function of \(x\) alone that satisfies \(u_{xx} = 0\text{.}\) It is easy to solve this equation by integration and we see that \(u = Ax+B\) for some constants \(A\) and \(B\text{.}\)

Consider an insulated wire where we apply constant temperature \(T_1\) at one end (say where \(x=0\)) and \(T_2\) on the other end (at \(x=L\) where \(L\) is the length of the wire). Our steady state solution is

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

or more commonly written as \(u_t = k \Delta u\) or \(u_t = k \nabla^2 u\text{.}\) Here the \(\Delta\) and \(\nabla^2\) symbols mean \(\frac{\partial^2}{\partial x^2} +
\frac{\partial^2}{\partial y^2}\text{.}\) 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 \(u_t = k \Delta u\text{.}\) 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 (4.19) that does not depend on \(t\text{,}\) or in other words \(u_t = 0\text{.}\) Hence we are looking for a function \(u(x,y)\) such that

This equation is called the *Laplace equation*^{ 1 }, and is an example of an elliptic equation. 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 \(x^2-y^2\) and \(xy\) are harmonic. However, note that if \(u_{xx}\) is positive, \(u\) is concave up in the \(x\) direction, then \(u_{yy}\) must be negative and \(u\) must be concave down in the \(y\) direction. 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 problem*^{ 2 }. That is, we have a region in the \(xy\)-plane and we specify certain values along the boundaries of the region. We then try to find a solution \(u\) to the Laplace equation defined on this region such that \(u\) agrees with the values we specified on the boundary.

In this section we consider a rectangular region. 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 \(h\) and \(w\) be the height and width of our rectangle, with one corner at the origin and lying in the first quadrant.

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.24)). We notice that superposition still works for the equation and all the homogeneous conditions. Therefore, we can use the Fourier series for \(f(x)\) to solve the problem as before.

We try \(u(x,y) = X(x)Y(y)\text{.}\) We plug \(u\) into the equation to get

We put the \(X\)s on one side and the \(Y\)s on the other to get

The left-hand side only depends on \(x\) and the right-hand side only depends on \(y\text{.}\) Therefore, there is some constant \(\lambda\) such that \(\lambda = \frac{-X''}{X} = \frac{Y''}{Y}\text{.}\) And we get two equations

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

For these given \(\lambda_n\text{,}\) the general solution for \(Y\) (one for each \(n\)) is

We only have one condition on \(Y_n\) and hence we can pick one of \(A_n\) or \(B_n\) to be something convenient. It will be useful to have \(Y_n(0) = 1\text{,}\) so we let \(A_n=1\text{.}\) Setting \(Y_n(h) = 0\) and solving for \(B_n\) we get that

After we plug the \(A_n\) and \(B_n\) we into (4.25) and simplify by using the identity \(\sinh(\alpha-\beta) = \sinh(\alpha) \cosh(\beta) - \cosh(\alpha) \sinh(\beta)\text{,}\) we find

We define \(u_n(x,y) = X_n(x)Y_n(y)\text{.}\) And note that \(u_n\) satisfies (4.20)–(4.23).

Observe that

Suppose

Then we get a solution of (4.20)–(4.24) of the following form.

As \(u_n\) satisfies (4.20)–(4.23) and any linear combination (finite or infinite) of \(u_n\) also satisfies (4.20)–(4.23), then \(u\) satisfies (4.20)–(4.23). By plugging in \(y=0\text{,}\) we see \(u\) satisfies (4.24) as well.

###### Example 4.9.1.

Take \(w=h=\pi\) and let \(f(x) = \pi\text{.}\) Let us compute the sine series for the function \(\pi\) (same as the series for the square wave). For \(0 < x < \pi\text{,}\) we have

Therefore the solution \(u(x,y)\text{,}\) see Figure 4.25, to the corresponding Dirichlet problem is given as

This scenario corresponds to the steady state temperature on a square plate of width \(\pi\) with 3 sides held at 0 degrees and one side held at \(\pi\) degrees. If we have arbitrary initial data on all sides, then we solve four problems, each using one piece of nonhomogeneous data. Then we use the principle of superposition to add up all four solutions to have a solution to the original problem.

A different way to visualize solutions of the Laplace equation is to take a wire and bend it so that it corresponds to the graph of the temperature above the boundary of your region. Cut a rubber sheet in the shape of your region—a square in our case—and stretch it fixing the edges of the sheet to the wire. The rubber sheet is a good approximation of the graph of the solution to the Laplace equation with the given boundary data.

### Subsection 4.9.1 Exercises

###### Exercise 4.9.1.

Let \(R\) be the region described by \(0 < x < \pi\) and \(0 < y < \pi\text{.}\) Solve the problem

###### Exercise 4.9.2.

Let \(R\) be the region described by \(0 < x < 1\) and \(0 < y < 1\text{.}\) Solve the problem

###### Exercise 4.9.3.

Let \(R\) be the region described by \(0 < x < 1\) and \(0 < y < 1\text{.}\) Solve the problem

for some constant \(C\text{.}\) Hint: Guess, then check your intuition.

###### Exercise 4.9.4.

Let \(R\) be the region described by \(0 < x < \pi\) and \(0 < y < \pi\text{.}\) Solve

Hint: Try a solution of the form \(u(x,y) = X(x) + Y(y)\) (different separation of variables).

###### Exercise 4.9.5.

Use the solution of Exercise 4.9.4 to solve

Hint: Use superposition.

###### Exercise 4.9.6.

Let \(R\) be the region described by \(0 < x < w\) and \(0 < y < h\text{.}\) Solve the problem

The solution should be in series form using the Fourier series coefficients of \(f(x)\text{.}\)

###### Exercise 4.9.7.

Let \(R\) be the region described by \(0 < x < w\) and \(0 < y < h\text{.}\) Solve the problem

The solution should be in series form using the Fourier series coefficients of \(f(y)\text{.}\)

###### Exercise 4.9.8.

Let \(R\) be the region described by \(0 < x < w\) and \(0 < y < h\text{.}\) Solve the problem

The solution should be in series form using the Fourier series coefficients of \(f(y)\text{.}\)

###### Exercise 4.9.9.

Let \(R\) be the region described by \(0 < x < 1\) and \(0 < y < 1\text{.}\) Solve the problem

Hint: Use superposition.

###### Exercise 4.9.10.

Let \(R\) be the region described by \(0 < x < 1\) and \(0 < y < 1\text{.}\) Solve the problem

Hint: Use superposition.

###### Exercise 4.9.11.

*(challenging)* Using only your intuition find \(u(\nicefrac{1}{2},\nicefrac{1}{2})\text{,}\) for the problem \(\Delta u = 0\text{,}\) where \(u(0,y) = u(1,y) = 100\) for \(0 < y < 1\text{,}\) and \(u(x,0) = u(x,1) = 0\) for \(0 < x < 1\text{.}\) Explain.

###### Exercise 4.9.101.

Let \(R\) be the region described by \(0 < x < 1\) and \(0 < y < 1\text{.}\) Solve the problem

\(u(x,y) = \sum\limits_{n=1}^\infty \frac{1}{n^2} \sin ( n \pi x ) \left( \frac{\sinh ( n \pi (1-y) )}{\sinh ( n \pi )} \right)\)

###### Exercise 4.9.102.

Let \(R\) be the region described by \(0 < x < 1\) and \(0 < y < 2\text{.}\) Solve the problem

\(u(x,y) = 0.1 \sin ( \pi x ) \left( \frac{\sinh ( \pi (2-y) )}{\sinh ( 2 \pi )} \right)\)