That solves it!
It's finally time to mention that the BCs are discontinuous at the points (0,1) and (1,1). As
a result, the series should converge slowly at those points. This is clear from the plot at
right: it's a 25 term partial sum (note that half of the terms are 0), and it looks perfect
except at y = 1, especially near the discontinuities at x = 0 and x = 1.
Laplace's Equation on a Circle: Polar Coordinates
Now, we'll specify the value of u on a circular boundary. A circle can be represented in
Cartesian coordinates without too much trouble; however, it would result in nonlinear
BCs which would render the approach useless. Instead, polar coordinates (r,θ) should be
used, since in such a system the equation of a circle is very simple. In order for this to be
realized, a polar representation of the Laplacian is necessary. Without going in to the
details just yet, the Laplacian is given in (2D) polar coordinates:
This result may be derived using differentials and the chain rule; it's not difficult but it's a
little long. In these coordinates Laplace's equation reads:
Note that in going from Cartesian to polar coordinates, a price was paid: though still
linear, Laplace's equation now has variable coefficients. This implies that after separation
at least one of the ODEs will have variable coefficients as well.
Let's make up the following BVP, letting u = u(r,θ):