I have two coordinate systems. The first (coordinate system 1) is at some arbitrary location and the second (coordinate system 2) is identical but for a translation along the positive z-direction of coordinate system 1 by a distance $d$. So basically, the x and y directions are aligned, just shifted upward in the z-direction by $d$.
At each origin I have a spherical coordinate system and I am trying to translate vectors in spherical coordinates from coordinate system 1 to 2. Eventually I am going to take dot products of vectors expressed in both systems.
I think it will be easiest to first translate spherical coordinates into Cartesian, and I figured that out. I do not know how to translate from one Cartesian system to the other, and vice versa. Basically, I am looking for:
$\widehat{\boldsymbol{i}}_{1} = f(\widehat{\boldsymbol{i}}_{2}, \widehat{\boldsymbol{j}}_{2}, \widehat{\boldsymbol{k}}_{2})$, $\widehat{\boldsymbol{j}}_{1} = f(\widehat{\boldsymbol{i}}_{2}, \widehat{\boldsymbol{j}}_{2}, \widehat{\boldsymbol{k}}_{2})$, $\widehat{\boldsymbol{k}}_{1} = f(\widehat{\boldsymbol{i}}_{2}, \widehat{\boldsymbol{j}}_{2}, \widehat{\boldsymbol{k}}_{2})$,
$\widehat{\boldsymbol{i}}_{2} = f(\widehat{\boldsymbol{i}}_{1}, \widehat{\boldsymbol{j}}_{1}, \widehat{\boldsymbol{k}}_{1})$, $\widehat{\boldsymbol{j}}_{2} = f(\widehat{\boldsymbol{i}}_{1}, \widehat{\boldsymbol{j}}_{1}, \widehat{\boldsymbol{k}}_{1})$, $\widehat{\boldsymbol{k}}_{2} = f(\widehat{\boldsymbol{i}}_{1}, \widehat{\boldsymbol{j}}_{1}, \widehat{\boldsymbol{k}}_{1})$
I know the origin of coordinate system 2 is at $0 \widehat{\boldsymbol{i}}_{1} + 0 \widehat{\boldsymbol{j}}_{1} + d \widehat{\boldsymbol{k}}_{1}$, but when I try to write out formulas, I get contradictory results.
Thank you to anyone who can help. I should have paid better attention in Calc III.