Solving Laplace's equation
The user wants me to solve the Laplace equation in polar coordinates, which seems a bit vague at first. I think they're asking for the general solution in 2D using separation of variables. So, starting with the equation ∇²u=0 in polar form, I rewrite it as u_rr + (1/r) u_r + (1/r²) u_θθ = 0 and approach it by setting u(r,θ)=R(r)Θ(θ). From there, I derive ordinary differential equations with integer separation constants and present the general solution accordingly. However, it's important to note that they haven't specified the domain or boundary conditions, so I need to focus on the general solution without being too verbose while still including the essential steps of the derivation. The 2D Laplace equation in polar coordinates is
[
\nabla^2 u = 0
\quad\Rightarrow\quad
u_{rr} + \frac{1}{r}u_r + \frac{1}{r^2}u_{\theta\theta} = 0.
]
We look for solutions by separation of variables:
[
u(r,\theta) = R(r),\Theta(\theta).
]
Substitute into the PDE:
[
R''\Theta + \frac{1}{r}R'\Theta + \frac{1}{r^2}R\Theta'' = 0.
]
Divide by (R\Theta):
[
\frac{R''}{R} + \frac{1}{r}\frac{R'}{R} + \frac{1}{r^2}\frac{\Theta''}{\Theta} = 0.
]
Multiply by (r^2):
[
r^2\frac{R''}{R} + r\frac{R'}{R} + \frac{\Theta''}{\Theta} = 0.
]
Rearrange to separate (r) from (\theta):
[
r^2\frac{R''}{R} + r\frac{R'}{R} = -\frac{\Theta''}{\Theta} = \lambda,
]
where (\lambda) is a separation constant. This gives two ODEs:
-
Angular equation:
[
\Theta'' + \lambda \Theta = 0.
]
-
Radial equation:
[
r^2 R'' + r R' - \lambda R = 0.
]
1. Angular part
For a solution that is (2\pi)-periodic in (\theta), (\lambda) must be (n^2) with integer (n).
-
For (n = 0):
[
\Theta_0(\theta) = A_0 + B_0\theta.
]
Periodicity forces (B_0 = 0), so (\Theta_0 = \text{const}).
-
For (n \ge 1):
[
\Theta_n(\theta) = A_n\cos(n\theta) + B_n\sin(n\theta).
]
2. Radial part
For (\lambda = n^2), the radial ODE
[
r^2 R'' + r R' - n^2 R = 0
]
is an Euler (Cauchy) equation. Its solutions are:
General separated solution
Combine radial and angular parts and sum over all (integer) modes:
[
u(r,\theta)
= A_0 + B_0 \ln r
- \sum_{n=1}^{\infty}
\Big[
r^n\big(a_n\cos(n\theta) + b_n\sin(n\theta)\big)
- r^{-n}\big(c_n\cos(n\theta) + d_n\sin(n\theta)\big)
\Big],
]
where (A_0, B_0, a_n, b_n, c_n, d_n) are constants determined by boundary conditions.
Common special cases:
-
If the solution must be bounded at (r = 0), then (B_0 = 0) and (c_n = d_n = 0), giving
[
u(r,\theta)
= A_0
- \sum_{n=1}^{\infty}
r^n\big(a_n\cos(n\theta) + b_n\sin(n\theta)\big).
]
-
If the solution must vanish at infinity, you instead keep the (r^{-n}) terms and drop the (r^n) terms.