
## Section4.10Dirichlet problem in the circle and the Poisson kernel

2 lectures, §9.7 in [EP], §10.8 in [BD]

### Subsection4.10.1Laplace in polar coordinates

A more natural setting for the Laplace equation $\Delta u = 0$ is the circle rather than the square. On the other hand, what makes the problem somewhat more difficult is that we need polar coordinates.

Recall that the polar coordinates for the $(x,y)$-plane are $(r,\theta)\text{:}$

\begin{equation*} x = r \cos \theta , \quad y = r \sin \theta , \end{equation*}

where $r \geq 0$ and $-\pi < \theta \leq \pi\text{.}$ So $(x,y)$ is distance $r$ from the origin at angle $\theta\text{.}$

Now that we know our coordinates, let us give the problem we wish to solve. We have a circular region of radius 1, and we are interested in the Dirichlet problem for the Laplace equation for this region. Let $u(r,\theta)$ denote the temperature at the point $(r,\theta)$ in polar coordinates. We have the problem:

\begin{aligned} & \Delta u = 0 , & & \text{for } \; r < 1, \\ & u(1,\theta) = g(\theta), & & \text{for } \; {-\pi} < \theta \leq \pi. \end{aligned}\label{dirichdisc_theprobeq}\tag{25}

The first issue we face is that we do not know what the Laplacian is in polar coordinates. Normally we would find $u_{xx}$ and $u_{yy}$ in terms of the derivatives in $r$ and $\theta\text{.}$ We would need to solve for $r$ and $\theta$ in terms of $x$ and $y\text{.}$ While this is certainly possible, it happens to be more convenient to work in reverse. Let us instead compute derivatives in $r$ and $\theta$ in terms of derivatives in $x$ and $y$ and then solve. The computations are easier this way. First

\begin{equation*} x_r = \cos \theta, \qquad x_\theta = - r \sin \theta, \qquad y_r = \sin \theta, \qquad y_\theta = r \cos \theta. \end{equation*}

Next by chain rule we obtain

\begin{equation*} \begin{aligned} u_r & = u_x x_r + u_y y_r = \cos(\theta) u_x + \sin(\theta) u_y , \\ u_{rr} & = \cos(\theta) ( u_{xx} x_r +u_{xy} y_r ) + \sin(\theta) ( u_{yx} x_r +u_{yy} y_r ) = \cos^2(\theta) u_{xx} + 2 \cos(\theta)\sin(\theta) u_{xy} + \sin^2(\theta) u_{yy} . \end{aligned} \end{equation*}

Similarly for the $\theta$ derivative. Note that we have to use product rule for the second derivative.

\begin{equation*} \begin{aligned} u_\theta & = u_x x_\theta + u_y y_\theta = -r\sin(\theta) u_x + r\cos(\theta) u_y , \\ u_{\theta\theta} & = -r\cos(\theta) u_x -r\sin(\theta) (u_{xx} x_\theta + u_{xy} y_\theta) -r\sin(\theta) u_y + r\cos(\theta) (u_{yx} x_\theta + u_{yy} y_\theta) \\ & = -r\cos(\theta) u_x -r\sin(\theta) u_y +r^2 \sin^2(\theta) u_{xx} -r^2 2\sin(\theta)\cos(\theta) u_{xy} +r^2 \cos^2(\theta) u_{yy} . \end{aligned} \end{equation*}

Let us now try to solve for $u_{xx} + u_{yy}\text{.}$ We start with $\frac{1}{r^2} u_{\theta\theta}$ to get rid of those pesky $r^2\text{.}$ If we add $u_{rr}$ and use the fact that $\cos^2(\theta) +\sin^2(\theta) = 1\text{,}$ we get

\begin{equation*} \frac{1}{r^2} u_{\theta\theta} + u_{rr} = u_{xx} + u_{yy} - \frac{1}{r} \cos(\theta) u_x - \frac{1}{r} \sin(\theta) u_y . \end{equation*}

We're not quite there yet, but all we are lacking is $\frac{1}{r} u_r\text{.}$ Adding it we obtain the Laplacian in polar coordinates:

\begin{equation*} \boxed{~~ \frac{1}{r^2} u_{\theta\theta} + \frac{1}{r} u_{r} + u_{rr} = u_{xx} + u_{yy} = \Delta u . ~~} \end{equation*}

Notice that the Laplacian in polar coordinates no longer has constant coefficients.

### Subsection4.10.2Series solution

Let us separate variables as usual. That is let us try $u(r,\theta) = R(r)\Theta(\theta)\text{.}$ Then

\begin{equation*} 0 = \Delta u = \frac{1}{r^2} R \Theta'' + \frac{1}{r} R' \Theta + R'' \Theta . \end{equation*}

Let us put $R$ on one side and $\Theta$ on the other and conclude that both sides must be constant.

\begin{equation*} \begin{aligned} \frac{1}{r^2} R \Theta'' & = - \left(\frac{1}{r} R' + R''\right) \Theta . \\ \frac{\Theta''}{\Theta} & = - \frac{r R' + r^2 R''}{R} = -\lambda. \end{aligned} \end{equation*}

We get two equations:

\begin{equation*} \begin{aligned} & \Theta'' + \lambda \Theta = 0 , \\ & r^2 R'' + r R' -\lambda R = 0. \end{aligned} \end{equation*}

Let us first focus on $\Theta\text{.}$ We know that $u(r,\theta)$ ought to be $2\pi$-periodic in $\theta\text{,}$ that is, $u(r,\theta) = u(r,\theta+2\pi)\text{.}$ Therefore, the solution to $\Theta'' + \lambda \Theta = 0$ must be $2\pi$-periodic. We conclude that $\lambda = n^2$ for a nonnegative integer $n=0,1,2,3,\ldots\text{.}$ The equation becomes $\Theta'' + n^2 \Theta = 0\text{.}$ When $n=0$ the equation is just $\Theta'' = 0\text{,}$ so we have the general solution $A \theta + B\text{.}$ As $\Theta$ is periodic, $A=0\text{.}$ For convenience let us write this solution as

\begin{equation*} \Theta_0 = \frac{a_0}{2} \end{equation*}

for some constant $a_0\text{.}$ For positive $n\text{,}$ the solution to $\Theta'' + n^2 \Theta = 0$ is

\begin{equation*} \Theta_n = a_n \cos(n\theta) + b_n \sin(n\theta) , \end{equation*}

for some constants $a_n$ and $b_n\text{.}$

Next, we consider the equation for $R\text{,}$

\begin{equation*} r^2 R'' + r R' - n^2 R = 0. \end{equation*}

This equation appeared in exercises before—we solved it in Exercise 2.1.6 and Exercise 2.1.7. The idea is to try a solution $r^s$ and if that does not work out try a solution of the form $r^s \ln r\text{.}$ When $n=0$ we obtain

\begin{equation*} R_0 = A r^0 + B r^0 \ln r = A + B \ln r , \end{equation*}

and if $n > 0\text{,}$ we get

\begin{equation*} R_n = A r^n + B r^{-n} . \end{equation*}

The function $u(r,\theta)$ must be finite at the origin, that is, when $r=0\text{.}$ Therefore, $B=0$ in both cases. Let us set $A=1$ in both cases as well, the constants in $\Theta_n$ will pick up the slack so we do not lose anything. Therefore let

\begin{equation*} R_0 = 1 , \qquad \text{and} \qquad R_n = r^n . \end{equation*}

Hence our building block solutions are

\begin{equation*} \begin{aligned} & u_0(r,\theta) = \frac{a_0}{2} , & u_n(r,\theta) = a_n r^n \cos(n \theta) + b_n r^n \sin(n \theta) . \end{aligned} \end{equation*}

Putting everything together our solution is:

\begin{equation*} \boxed{~~ u(r,\theta) = \frac{a_0}{2} + \sum_{n=1}^\infty a_n r^n \cos(n \theta) + b_n r^n \sin(n \theta) . ~~} \end{equation*}

We look at the boundary condition in (25),

\begin{equation*} g(\theta) = u(1,\theta) = \frac{a_0}{2} + \sum_{n=1}^\infty a_n \cos(n \theta) + b_n \sin(n \theta) . \end{equation*}

Therefore, the solution to (25) is to expand $g(\theta)\text{,}$ which is a $2\pi$-periodic function, as a Fourier series, and then the $n^{\text{th}}$ coordinate is multiplied by $r^n\text{.}$ In other words, to compute $a_n$ and $b_n$ from the formula we can, as usual, compute

\begin{equation*} a_n = \frac{1}{\pi} \int_{-\pi}^\pi g(\theta) \cos (n\theta) ~ d\theta , \qquad \text{and} \qquad b_n = \frac{1}{\pi} \int_{-\pi}^\pi g(\theta) \sin (n\theta) ~ d\theta. \end{equation*}
###### Example4.10.1

Suppose we wish to solve

\begin{equation*} \begin{aligned} & \Delta u = 0 , \qquad 0 \leq r < 1, \quad -\pi < \theta \leq \pi,\\ & u(1,\theta) = \cos(10\,\theta), \qquad -\pi < \theta \leq \pi. \end{aligned} \end{equation*}

The solution is

\begin{equation*} u(r,\theta) = r^{10} \cos(10\,\theta) . \end{equation*}

See the plot in Figure 5.10.2. The thing to notice in this example is that the effect of a high frequency is mostly felt at the boundary. In the middle of the disc, the solution is very close to zero. That is because $r^{10}$ is rather small when $r$ is close to 0.

###### Example4.10.2

Let us solve a more difficult problem. Suppose we have a long rod with circular cross section of radius 1 and we wish to solve the steady state heat problem. If the rod is long enough we simply need to solve the Laplace equation in two dimensions. Let us put the center of the rod at the origin and we have exactly the region we are currently studying—a circle of radius 1. For the boundary conditions, suppose in Cartesian coordinates $x$ and $y\text{,}$ the temperature on the boundary is 0 when $y < 0\text{,}$ and it is $2y$ when $y > 0\text{.}$

Let us set up the problem. As $y = r\sin(\theta)\text{,}$ then on the circle of radius 1 we have $2y = 2\sin(\theta)\text{.}$ So

\begin{equation*} \begin{aligned} & \Delta u = 0 , \qquad 0 \leq r < 1, \quad -\pi < \theta \leq \pi,\\ & u(1,\theta) = \begin{cases} 2\sin(\theta) & \text{if } \; \phantom{-}0 \leq \theta \leq \pi, \\ 0 & \text{if } \; {-\pi} < \theta < 0. \end{cases} \end{aligned} \end{equation*}

We must now compute the Fourier series for the boundary condition. By now the reader has plentiful experience in computing Fourier series and so we simply state that

\begin{equation*} u(1,\theta) = \frac{2}{\pi} + \sin(\theta) + \sum_{n=1}^\infty \frac{-4}{\pi(4n^2-1)}\, \cos(2n\theta) . \end{equation*}
###### Exercise4.10.1

Compute the series for $u(1,\theta)$ and verify that it really is what we have just claimed. Hint: Be careful, make sure not to divide by zero.

We now simply write the solution (see Figure 5.10.5) by multiplying by $r^n$ in the right places.

\begin{equation*} u(r,\theta) = \frac{2}{\pi} + r\sin(\theta) + \sum_{n=1}^\infty \frac{-4r^{2n}}{\pi(4n^2-1)}\, \cos(2n\theta) . \end{equation*}

### Subsection4.10.3Poisson kernel

There is another way to solve the Dirichlet problem with the help of an integral kernel. That is, we will find a function $P(r,\theta,\alpha)$ called the Poisson kernel 1 Named for the French mathematician Siméon Denis Poisson (1781–1840). such that

\begin{equation*} u(r,\theta) = \frac{1}{2\pi} \int_{-\pi}^{\pi} P(r,\theta,\alpha) \, g(\alpha) ~d\alpha . \end{equation*}

While the integral will generally not be solvable analytically, it can be evaluated numerically. In fact, unless the boundary data is given as a Fourier series already, it may be much easier to numerically evaluate this formula as there is only one integral to evaluate.

The formula also has theoretical applications. For instance, as $P(r,\theta,\alpha)$ will have infinitely many derivatives, then via differentiating under the integral we find that the solution $u(r,\theta)$ has infinitely many derivatives, at least when inside the circle, $r < 1\text{.}$ By “having infinitely many derivatives,” what you should think of is that $u(r,\theta)$ has “no corners” and all of its partial derivatives of all orders exist and also have “no corners.”

We will compute the formula for $P(r,\theta,\alpha)$ from the series solution, and this idea can be applied anytime you have a convenient series solution where the coefficients are obtained via integration. Hence you can apply this reasoning to obtain such integral kernels for other equations, such as the heat equation. The computation is long and tedious, but not overly difficult. Since the ideas are often applied in similar contexts, it is good to understand how this computation works.

What we do is start with the series solution and replace the coefficients with the integrals that compute them. Then we try to write everything as a single integral. We must use a different dummy variable for the integration and hence we use $\alpha$ instead of $\theta\text{.}$

\begin{equation*} \begin{split} u(r,\theta) & = \frac{a_0}{2} + \sum_{n=1}^\infty a_n r^n \cos(n \theta) + b_n r^n \sin(n \theta) \\ & = \frac{1}{2\pi} \int_{-\pi}^\pi g(\alpha) ~ d\alpha \\ & ~~~~~~~~ + \sum_{n=1}^\infty \left( \frac{1}{\pi} \int_{-\pi}^\pi g(\alpha) \cos (n\alpha) ~ d\alpha \right) r^n \cos(n \theta) + \left( \frac{1}{\pi} \int_{-\pi}^\pi g(\alpha) \sin (n\alpha) ~ d\alpha \right) r^n \sin(n \theta) \\ & = \frac{1}{2\pi} \int_{-\pi}^\pi \left( g(\alpha) + 2 \sum_{n=1}^\infty g(\alpha) \cos (n\alpha) r^n \cos(n \theta) + g(\alpha) \sin (n\alpha) r^n \sin(n \theta) \right) ~d\alpha \\ & = \frac{1}{2\pi} \int_{-\pi}^\pi \left( 1 + 2 \sum_{n=1}^\infty r^n \bigl( \cos (n\alpha) \cos(n \theta) + \sin (n\alpha) \sin(n \theta) \bigr) \right) \, g(\alpha) ~d\alpha \end{split} \end{equation*}

OK, so we have what we wanted, the expression in the parentheses is the Poisson kernel, $P(r,\theta,\alpha)\text{.}$ However, we can do a lot better. It is still given as a series, and we would really like to have a nice simple expression for it. We must work a little harder. The trick is to rewrite everything in terms of complex exponentials. Let us work just on the kernel.

\begin{equation*} \begin{split} P(r,\theta,\alpha) & = 1 + 2 \sum_{n=1}^\infty r^n \bigl( \cos (n\alpha) \cos(n \theta) + \sin (n\alpha) \sin(n \theta) \bigr) \\ & = 1 + 2 \sum_{n=1}^\infty r^n \cos \bigl(n(\theta-\alpha)\bigr) \\ & = 1 + \sum_{n=1}^\infty r^n \bigl( e^{in(\theta-\alpha)} + e^{-in(\theta-\alpha)} \bigr) \\ & = 1 + \sum_{n=1}^\infty {\bigl( re^{i(\theta-\alpha)}\bigr)}^{n} + \sum_{n=1}^\infty {\bigl( re^{-i(\theta-\alpha)}\bigr)}^{n} . \end{split} \end{equation*}

In the above expression we recognize the geometric series. Recall from calculus that if $z$ is a complex number where $\lvert z \rvert < 1\text{,}$ then

\begin{equation*} \sum_{n=1}^\infty z^n = \frac{z}{1-z} . \end{equation*}

Note that $n$ starts at $1$ and that is why we have the $z$ in the numerator. It is the standard geometric series multiplied by $z\text{.}$ We can use $z = re^{i(\theta-\alpha)}\text{,}$ as lo and behold $\lvert re^{i(\theta-\alpha)} \rvert = r < 1\text{.}$ Let us continue with the computation.

\begin{equation*} \begin{split} P(r,\theta,\alpha) & = 1 + \sum_{n=1}^\infty {\bigl( re^{i(\theta-\alpha)}\bigr)}^{n} + \sum_{n=1}^\infty {\bigl( re^{-i(\theta-\alpha)}\bigr)}^{n} \\ & = 1 + \frac{re^{i(\theta-\alpha)}}{1-re^{i(\theta-\alpha)}} + \frac{re^{-i(\theta-\alpha)}}{1-re^{-i(\theta-\alpha)}} \\ & = \frac{ \bigl(1-re^{i(\theta-\alpha)}\bigr)\bigl(1-re^{-i(\theta-\alpha)}\bigr) + \bigl(1-re^{-i(\theta-\alpha)}\bigr)re^{i(\theta-\alpha)} + \bigl(1-re^{i(\theta-\alpha)}\bigr)re^{-i(\theta-\alpha)}} {\bigl(1-re^{i(\theta-\alpha)}\bigr)\bigl(1-re^{-i(\theta-\alpha)}\bigr)} \\ & = \frac{1 -r^2}{1 - re^{i(\theta-\alpha)} - re^{-i(\theta-\alpha)} +r^2} \\ & = \frac{1 -r^2}{1 - 2r\cos(\theta-\alpha) +r^2} . \end{split} \end{equation*}

Now that's a formula we can live with. The solution to the Dirichlet problem using the Poisson kernel is

\begin{equation*} \boxed{~~ u(r,\theta) = \frac{1}{2\pi} \int_{-\pi}^{\pi} \frac{1 -r^2}{1 - 2r\cos(\theta-\alpha) +r^2} \, g(\alpha) ~ d\alpha . ~~} \end{equation*}

Sometimes the formula for the Poisson kernel is given together with the constant $\frac{1}{2\pi}\text{,}$ in which case we should of course not leave it in front of the integral. Also, often the limits of the integral are given as 0 to $2\pi\text{;}$ everything inside is $2\pi$-periodic in $\alpha\text{,}$ so this does not change the integral.

Let us not leave the Poisson kernel without explaining its geometric meaning. Let $s$ be the distance from $(r,\theta)$ to $(1,\alpha)\text{.}$ You may recall from calculus that this distance $s$ in polar coordinates is given precisely by the square root of $1 - 2r\cos(\theta-\alpha) +r^2\text{.}$ That is, the Poisson kernel is really the formula

\begin{equation*} \frac{1-r^2}{s^2} . \end{equation*}

One final note we make about the formula is that it is really a weighted average of the boundary values. First let us look at what happens at the origin, that is when $r=0\text{.}$

\begin{equation*} \begin{split} u(0,0) &= \frac{1}{2\pi} \int_{-\pi}^{\pi} \frac{1 -0^2}{1 - 2(0)\cos(\theta-\alpha) +0^2} \, g(\alpha) ~ d\alpha \\ & = \frac{1}{2\pi} \int_{-\pi}^{\pi} g(\alpha) ~ d\alpha . \end{split} \end{equation*}

So $u(0,0)$ is precisely the average value of $g(\theta)$ and therefore the average value of $u$ on the boundary. This is a general feature of harmonic functions, the value at some point $p$ is equal to the average of the values on a circle centered at $p\text{.}$

What the formula says is that the value of the solution at any point in the circle is a weighted average of the boundary data $g(\theta)\text{.}$ The kernel is bigger when $(1,\alpha)$ is closer to $(r,\theta)\text{.}$ Therefore when computing $u(r,\theta)$ we give more weight to the values $g(\alpha)$ when $(1,\alpha)$ is closer to $(r,\theta)$ and less weight to the values $g(\alpha)$ when $(1,\alpha)$ far from $(r,\theta)\text{.}$

### Subsection4.10.4Exercises

###### Exercise4.10.2

Using series solve $\Delta u = 0\text{,}$ $u(1,\theta) = \lvert \theta \rvert\text{,}$ for $-\pi < \theta \leq \pi\text{.}$

###### Exercise4.10.3

Using series solve $\Delta u = 0\text{,}$ $u(1,\theta) = g(\theta)$ for the following data. Hint: trig identities.

 a) $g(\theta) = \nicefrac{1}{2} + 3\sin(\theta) + \cos(3\theta)$ b) $g(\theta) = 3\cos(3\theta) + 3\sin(3\theta) + \sin(9\theta)$ c) $g(\theta) = 2 \cos(\theta+1)$ d) $g(\theta) = \sin^2(\theta)$
###### Exercise4.10.4

Using the Poisson kernel, give the solution to $\Delta u = 0\text{,}$ where $u(1,\theta)$ is zero for $\theta$ outside the interval $[-\nicefrac{\pi}{4},\nicefrac{\pi}{4}]$ and $u(1,\theta)$ is 1 for $\theta$ on the interval $[-\nicefrac{\pi}{4},\nicefrac{\pi}{4}]\text{.}$

###### Exercise4.10.5

a) Draw a graph for the Poisson kernel as a function of $\alpha$ when $r=\nicefrac{1}{2}$ and $\theta = 0\text{.}$ b) Describe what happens to the graph when you make $r$ bigger (as it approaches 1). c) Knowing that the solution $u(r,\theta)$ is the weighted average of $g(\theta)$ with Poisson kernel as the weight, explain what your answer to part b means.

###### Exercise4.10.6

Take the function $g(\theta)$ to be the function $xy = \cos \theta \sin \theta$ on the boundary. Use the series solution to find a solution to the Dirichlet problem $\Delta u = 0\text{,}$ $u(1,\theta) = g(\theta)\text{.}$ Now convert the solution to Cartesian coordinates $x$ and $y\text{.}$ Is this solution surprising? Hint: use your trig identities.

###### Exercise4.10.7

Carry out the computation we needed in the separation of variables and solve $r^2 R'' + r R' - n^2 R = 0\text{,}$ for $n=0,1,2,3,\ldots\text{.}$

###### Exercise4.10.8

(challenging)   Derive the series solution to the Dirichlet problem if the region is a circle of radius $\rho$ rather than 1. That is, solve $\Delta u = 0\text{,}$ $u(\rho,\theta) = g(\theta)\text{.}$

###### Exercise4.10.9

(challenging)   a) Find the solution for $\Delta u = 0\text{,}$ $u(1,\theta) = x^2y^3 + 5 x^2\text{.}$ Write the answer in Cartesian coordinates.
b) Now solve $\Delta u = 0\text{,}$ $u(1,\theta) = x^k y^\ell\text{.}$ Write the solution in Cartesian coordinates.
c) Suppose you have a polynomial $P(x,y) = \sum_{j=0}^m \sum_{k=0}^n c_{j,k} x^j y^k\text{,}$ solve $\Delta u = 0\text{,}$ $u(1,\theta) = P(x,y)$ (that is, write down the formula for the answer). Write the answer in Cartesian coordinates.
Notice the answer is again a polynomial in $x$ and $y\text{.}$ See also Exercise 4.10.6.

###### Exercise4.10.101

Using series solve $\Delta u = 0\text{,}$ $u(1,\theta) = 1+ \sum\limits_{n=1}^\infty \frac{1}{n^2}\sin(n\theta)\text{.}$

$u = 1+ \sum\limits_{n=1}^\infty \frac{1}{n^2}r^n\sin(n\theta)$

###### Exercise4.10.102

Using the series solution find the solution to $\Delta u = 0\text{,}$ $u(1,\theta) = 1- \cos(\theta)\text{.}$ Express the solution in Cartesian coordinates (that is, using $x$ and $y$).

$u = 1-x$

###### Exercise4.10.103

a) Try and guess a solution to $\Delta u = -1\text{,}$ $u(1,\theta) = 0\text{.}$ Hint: try a solution that only depends on $r\text{.}$ Also first, don't worry about the boundary condition. b) Now solve $\Delta u = -1\text{,}$ $u(1,\theta) = \sin(2\theta)$ using superposition.

a) $u = \frac{-1}{4} r^2 + \frac{1}{4}$ b) $u = \frac{-1}{4} r^2 + \frac{1}{4} + r^2 \sin(2\theta)$
(challenging)   Derive the Poisson kernel solution if the region is a circle of radius $\rho$ rather than 1. That is, solve $\Delta u = 0\text{,}$ $u(\rho,\theta) = g(\theta)\text{.}$
$\displaystyle u(r,\theta) = \frac{1}{2\pi} \int_{-\pi}^{\pi} \frac{\rho^2 -r^2}{\rho - 2r\rho\cos(\theta-\alpha) +r^2} \, g(\alpha) ~ d\alpha$