Solve $\nabla^{2}u=0$ in the region $\rho>a$, $0<\theta<\pi$ such that $u(\rho,0)=u(\rho,\pi)=0$ and $u(a, \theta) = u_{0}$ and $u\to0$ as $\rho\to\infty$.
We have the general solution $$u(\rho,\theta)=A_{0} + B_{0}\ln{\rho} + \sum^{\infty}_{n=1}(A_{n}\rho^{n}+B_{n}\rho^{-n})(C_{n}\cos{n\theta}+D_{n}\sin{n\theta}).$$
Now my lecturer says applying $u=0$ at $\theta=0, \pi$ means that $A_{0}=B_{0}=0$ and $C_{n}=0$.
But I can't really see this.
\begin{align}u(\rho,0) &= A_{0}+B_{0}\ln{\rho} + \sum_{n=1}^{\infty}(A_{n}\rho^{n}+B_{n}\rho^{-n})C_{n} = 0, & (*)\\ u(\rho,\pi)&= A_{0}+B_{0}\ln{\rho}+\sum^{\infty}_{n=1}(A_{n}\rho^{n}+B_{n}\rho^{-n})C_{n}(-1)^{n}=0.& (**)\end{align}
I don't see how in any way this implies the above? I notice we can do $(*)-(**)$: $$\sum_{n=1}^{\infty}(A_{n}\rho^{n}+B_{n}\rho^{-n})C_{n}(1-(-1)^{n})=0$$ Then the summand is zero whenever $n$ is even, but this isn't stated above.