I have two arbitrary vectors $\vec{x}$ and $\vec{x}'$ given in spherical coordinates $(|\vec{x}|=x,\theta,\phi)$ (as convention I take the "physics notation" given on Wikipedia http://en.wikipedia.org/wiki/Spherical_coordinate_system). I now want to rotate the coordinate system so that it's $z$-direction points along $\vec{x}$. That means, $\vec{x}$ would have the values $(0, 0, x)$. I now need to compute the angles of $\vec{x}'$. The absolute value does not change, but the angles do. I need to figure out how the angles are in the new coordinate system. With the help of rotation matrices, one is able to get:
$\vec{x}' = x' (\sin(\theta')\cos(\phi'-\phi)\cos(\theta)-\sin(\theta)\cos(\theta'),\sin(\theta')\sin(\phi'-\phi),\sin(\theta')\cos(\phi'-\phi)\sin(\theta)+\cos(\theta)\cos(\theta')) \equiv x' (\sin(\alpha')\cos(\beta'),\sin(\alpha')\sin(\beta'),\cos(\beta')) $
Now $\alpha', \beta'$ are the angles in the normal sense but in the new coordinate system. I need a converting rule $\theta', \phi' \to \alpha', \beta'$. Anyone a hint?
Edit (some further explanations): I need this to compute an integral of the form $\int \mathrm{d}^3x' g(\theta',\phi')f(|\vec{x}-\vec{x}'|)$ and I converted $\mathrm{d}^3x'=x'^2\mathrm{d}x\mathrm{d}\phi' \sin(\theta')\mathrm{d}\theta'$ to spherical coordinates. The problem is that $|\vec{x}-\vec{x}'|=x^2+x'^2-2xx'[\sin(\theta')\cos(\phi'-\phi)\sin(\theta)+\cos(\theta)\cos(\theta')]$ contains angles of both vectors and I need to get rid of the unprimed angles (which is possible in transforming the coordinate system under the integral to point with it's z-direcion along $\vec{x}$).