Let r,θ,ϕ be spherical polar coordinates, and let Pn denote the nth Legendre polynomial. Write down the most general solution for r>0 of Laplace's equation ∇2Φ=0 that takes the form Φ(r,θ,ϕ)=f(r)Pn(cosθ).
Solve Laplace's equation in the spherical shell 1⩽r⩽2 subject to the boundary conditions
Φ=3cos2θ at r=1Φ=0 at r=2
[The first three Legendre polynomials are
P0(x)=1,P1(x)=x and P2(x)=23x2−21.]