I'm going over some GR from more of a differential geometry perspective and had a quick question about a simple calculation - my differential geometry background isn't too strong so I apologise if any of the terminology is incorrect, but I'd be grateful for any clarification.
I'm following an example in Appendix A of Sean Carroll's Introduction to GR, where there is a map $\phi:M \to N$, given by $$ \phi(\theta,\phi) = (\sin\theta \cos \phi , \sin \theta \sin \phi, \cos \phi) , $$ and $M=S^2$ is a submanifold of $N =\mathbb{R}^3$ (i.e. the two-sphere embedded in $\mathbb{R}^3$). The coordinates on the manifolds are $x^{\mu} = (\theta,\phi)$ on $M$, and $y^{\alpha} = (x,y,z)$ on $N$. The induced metric on $M$ is just the pullback of the flat-space metric $\phi^*g$, which is given by the formula
$$
(\phi^*g)_{\mu \nu} = \frac{\partial y^{\alpha} }{\partial x^{\mu}} \frac{\partial y^{\beta} }{\partial x^{\nu}} g_{\alpha \beta}.
$$
I understand how to calculate the individual Jacobian matrices of partial derivatives $\frac{\partial y^{\alpha} }{\partial x^{\mu}}$ (e.g. just using $y^1 = \sin\theta \cos \phi $, $y^2 = \sin \theta \sin \phi$ and $y^3 = \cos \phi$ as defined by $\phi$), however I was confused as to how to treat the full expression above.
The Jacobian matrices are $2 \times 3$ matrices, so the second has to be transposed to be a $3 \times 2$ matrix in order to give the required $2 \times 2$ metric $g_{\mu \nu}$. My question is, in the pullback equation above, how does the metric $g_{\alpha \beta}$ act on the Jacobian $\frac{\partial y^{\beta} }{\partial x^{\mu}}$, and how should I be writing this down? I can see that $y^{\beta}$ should be replaced with $y^{\alpha}$, but should any indices be lowered, and how should I interpret the metric tensor transposing the Jacobian matrix?
Edit - Ted Shriffin's comments are correct, the last component of the map should be $\cos \theta$ not $\cos \phi$, and all my matrices should be transposed.