Dirichlet problem on an annulus for one Fourier mode (source code)

= Dirichlet problem on an annulus for one Fourier mode
{c}

The harmonic function on $a<r<b$ with boundary values $u(a,\theta)=0$ and $u(b,\theta)=\cos(n\theta)$ is
$$
u(r,\theta)=
\frac{b^n(r^{2n}-a^{2n})}{r^n(b^{2n}-a^{2n})}
\cos(n\theta).
$$