It is straightforward to define define spherical polar coordinates with a shifted origin. Instead of requiring \begin{align*} x_1 & = r \sin \theta \cos \phi, \\ x_2 & = r \sin \theta \sin \phi, \\ x_3 & = r \cos \theta, \end{align*} which are spherical polar coordinates with respect to the usual origin, we can instead require that, say, \begin{align*} x_1 & = 5 +r \sin \theta \cos \phi, \\ x_2 & = r \sin \theta \sin \phi, \\ x_3 & = r \cos \theta, \end{align*} which will results in spherical coordinates with respect to a new origin at $(5,0,0)^\top$. But say we are given a value $(x_1,x_2,x_3)$ in Cartesian coordinate, how do we obtain the spherical polar represenation $(r,\theta,\phi)$ with respect to the new origin? Wikipeda gives the transformation from Cartesian to spherical polar coordinates, but it is with respect to the usual origin $(0,0,0)$.
What do we use to obtain the coordinates with respect to the new origin?