I want to find an expression for the force acting upon a magnetic dipole with dipole moment $\mathbf{m}$ if that dipole is positioned in a stationary, external magnetic field $\mathbf{B}$. The expression given for the force is the following (assuming that $\nabla \times\mathbf{B}=0$):
$$\mathbf{F}=(\mathbf{m}\cdot\nabla)\mathbf{B}\quad(1)$$
My question is mostly whether the expression above is equivalent to:
$$\begin{bmatrix} \frac{\partial \mathbf{B}}{\partial x} & \frac{\partial \mathbf{B}}{\partial y}& \frac{\partial \mathbf{B}}{\partial z} \end{bmatrix}\mathbf{m} \quad (2)$$
or equivalent to:
$$\begin{bmatrix} \frac{\partial \mathbf{B}}{\partial x} & \frac{\partial \mathbf{B}}{\partial y}& \frac{\partial \mathbf{B}}{\partial z} \end{bmatrix}^T\mathbf{m} \quad (3)$$
I basically found these two expressions ($(2)$ $(3)$) for the force from two different sources, so one of them must be wrong. I derived the first expression in the following way:
$$(\mathbf{m}\cdot\nabla)\mathbf{B}=(m_1\frac{\partial }{\partial x}+m_2\frac{\partial }{\partial y}+m_3\frac{\partial }{\partial z})\begin{bmatrix} B_1\\ B_2\\ B_3 \end{bmatrix}=\begin{bmatrix} m_1\frac{\partial B_1}{\partial x} + m_2\frac{\partial B_1}{\partial y} + m_3\frac{\partial B_1}{\partial z} \\ m_1\frac{\partial B_2}{\partial x} + m_2\frac{\partial B_2}{\partial y} + m_3\frac{\partial B_2}{\partial z} \\ m_1\frac{\partial B_3}{\partial x} + m_2\frac{\partial B_3}{\partial y} + m_3\frac{\partial B_3}{\partial z} \end{bmatrix}$$
The last expressions can be interpreted as the Matrix product $(2)$. Is that correct or am I missing something obvious?
Thanks!