A qubit is given in the following form:
$\left|\psi\right\rangle = \cos\left(\dfrac{\theta}{2}\right)\left|0\right\rangle + e^{i\phi}\sin\left(\dfrac{\theta}{2}\right)\left|1\right\rangle$.
Let's us start at $\left|0\right\rangle$ and rotate about the $x$-axis $180^{\circ}$ (we should end up at $\left|1\right\rangle$). Mathematically, it could be shown easily:
Let $\theta = 180^{\circ}$ and $\phi = 0^{\circ}$:
$\left|\psi\right\rangle = \cos\left(\dfrac{180}{2}\right)\left|0\right\rangle + e^{i(0)}\sin\left(\dfrac{180}{2}\right)\left|1\right\rangle\\ \left|\psi\right\rangle = \cos\left(90\right)\left|0\right\rangle + \sin\left(90\right)\left|1\right\rangle\\ \left|\psi\right\rangle = \left|1\right\rangle $
Now, let's use the rotation matrix instead. The matrix is given as: $R_x(\theta) \equiv e^{-i \theta \mathbb{X}/2} = \cos(\theta/2)\mathbb{I} -i\sin(\theta/2)\mathbb{X} = \begin{bmatrix} \cos(\theta/2) & -i\sin(\theta/2) \\ -i\sin(\theta/2) & \cos(\theta/2)\end{bmatrix}$, where $\mathbb{I} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}$ and $\mathbb{X} = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}$.
Using $R_x(\theta)$, we get
$R_x(180) = \begin{bmatrix} \cos(180/2) & -i\sin(180/2) \\ -i\sin(180/2) & \cos(180/2)\end{bmatrix}\begin{bmatrix}1\\0\end{bmatrix}\\ R_x(180) = \begin{bmatrix}0 & -i\\ -i & 0\end{bmatrix}\begin{bmatrix}1\\0\end{bmatrix}\\ R_x(180) = \begin{bmatrix}0\\-i\end{bmatrix}\\ R_x(180) = -i\begin{bmatrix}0\\1\end{bmatrix}. $
Of course, I feel that I am missing something. The vector obtained is correct but with a phase shift of $-i$.
Also, I am wondering why it is okay to let $\phi = 0$ (if it is not correct, then what should be the value?).
Lastly, I would like to know why the rotation matrix only have $\theta$ but not $\phi$.
Thank you in advance!