In cartesian coordinates, the Laplacian is $$\nabla^2 = \frac{\partial^2}{\partial x^2}+\frac{\partial^2}{\partial y^2}+\frac{\partial^2}{\partial z^2}\qquad(1)$$
If it's converted to spherical coordinates, we get $$\nabla^2=\frac{1}{r^2}\frac{\partial}{\partial r}\left( r^2 \frac{\partial}{\partial r}\right)+\frac{1}{r^2 sin\theta}\frac{\partial}{\partial \theta}\left(sin \theta \frac{\partial}{\partial \theta}\right)+\frac{1}{r^2 sin^2 \theta}\frac{\partial^2}{\partial \phi^2}\qquad(2)$$
I am following the derivation (i.e. the method of conversion from cartesian to spherical) in "Quantum physics of atoms, molecules, solids, nuclei and particles" by Eisberg and Resnick (it's in Appendix M). Their method is to first consider a function of only $r$, $\psi(r)$, then calculate $\frac{\partial^2 \psi}{\partial x^2}$, $\frac{\partial^2 \psi}{\partial y^2}$, $\frac{\partial^2 \psi}{\partial z^2}$. After plugging into (1) and simplifying we end up with $\nabla^2=\frac{1}{r^2}\frac{\partial}{\partial r}\left( r^2 \frac{\partial}{\partial r}\right)$ which is, indeed the first term in (2).
For the second (and third) term they don't show the derivation, they just say "the second and third terms can be obtained by taking $\psi = \psi(\theta)$ and $\psi = \psi(\phi)$.
I am trying to complete the derivation for the other terms, but I don't know how to proceed. Here is what I have so far: $$\frac{\partial \psi}{\partial x} = \frac{\partial \psi}{\partial \theta} \frac{\partial \theta}{\partial x}\qquad (3)$$
$$\frac{\partial\theta}{\partial x} = \frac{xz}{(x^2 + y^2 +z^2)^{3/2}\sqrt{1-\frac{z^2}{x^2+y^2+z^2}}}\qquad (4)$$
putting (4) into (3) and substituting for $r$:
$$\frac{\partial\psi}{\partial x} =\frac{\partial \psi}{\partial\theta} \frac{xz}{r^{3}\sqrt{1-\frac{z^2}{r^2}}}$$
Now, making the conversions $x=rsin\theta cos\phi$ and $z=r cos\theta$ and simplifying I get
$$\frac{\partial\psi}{\partial x}= \frac{\partial\psi}{\partial\theta} \frac{cos \theta cos \phi}{r} $$
My question is how do I proceed?