An insulated disk, uniform surface charge density $\sigma$, of radius $R$ is laid on the $x,y$ plane. Deduce the electric potential $V(z)$ along the z-axis. Next consider an off axis point $p'$, with distance $\rho$ from the center, Making an angle $\theta$ with the z-axis. Expand the potential at $p'$ in terms of Legendre polynomials $P_l(\cos\theta)$ for $\rho < R$ and $\rho > R$
For the point on the z-axis, this is pretty easy. The differential Voltage from a differential ring of charge with radius $r$ is:
$$dV = \frac{1}{4 \pi \epsilon_o} \frac{dq}{ \mathscr{R}}$$
$$dq = \sigma dA = \sigma 2 \pi r dr$$
$$\mathscr{R} = \sqrt{r^2 + z^2}$$
$$ \Delta V(z) = \frac{ \sigma}{2 \epsilon_o}\int_0^R \frac{ r dr}{\sqrt{r^2 + z^2}} = \frac{ \sigma}{2 \epsilon_o} \left( \sqrt{R^2 + z^2} - |z| \right)$$
Which is obtained by using a U substitution.
As for the second part, The only thing that changes is the distance from the differential of charge and the point of interest so I have:
$$dV = \frac{ \sigma}{2 \epsilon_o} \frac{r dr}{ \mathscr{R}}$$
But now using the law of cosines, I use the angle between $r$ and $\mathscr{R}$, Note: this is not the angle recommended in the problem. Thus $\mathscr{R} = (r^2 + p^2 - 2rp\cos \phi)^{1/2} = r(1 - 2 \frac{p}{r}cos \phi + \frac{p^2}{r^2})^{1/2},$ using spherical polar coordinates, where $p$ is the distance from origin to the point of interest, $p'$.
This is the generating function of the Legendre polynomials,
$$\therefore \frac{1}{\mathscr{R}} = \frac1r G\left( \frac{p}{r}, \cos \phi\right)$$
$$dV = \frac{ \sigma}{2 \epsilon_o} G\left( \frac{p}{r}, \cos \phi\right) dr = \frac{ \sigma}{2 \epsilon_o} \sum_{l = 0} ^{\infty} p_l(\cos \phi) \left( \frac{p}{r} \right)^l dr$$
Okay, so my question is this, assuming all of this is correct (which I believe is not) How would possibly integrate this? Is it as simple as $\int_0^R \left( \frac{p}{r} \right)^l dr$? This creates an infinity. Any help would save me so very much.