# Curl and Divergence etc algebra manipulating quick question

##\nabla p = \rho \nabla \phi ##

My textbook says that by taking the curl we get:

## 0=\nabla \rho X \nabla \phi ## **

I don't follow. I understand the LHS is zero, by taking the curl of a divergence.
But I'm unsure as to how we get it into this form, from which it is clear that the gradients of ##\rho## and
##\phi## are parallel, since I get:

##\nabla X \rho \nabla \phi ##, I know that the curl acting on a scalar field doesn't make sense, I would get ##\rho \nabla X \nabla \phi ##, taking the scalar field ##\rho## to the left since it can not be operated on by a curl. I don't see how you would get **

$$\nabla \times (a \mathbf{B}) = (\nabla a) \times \mathbf{B} + a (\nabla \times \mathbf{B})$$