I want to see the following step in greater detail:
$$\nabla_x~\bigg[(\vec{x}-\vec{\mu})^TP^{-1}(\vec{x}-\vec{\mu}) \bigg] ~~~~~(3)$$
$$= P^{-1}(\vec{x}-\vec{\mu})$$
Textbook says the above partial derivative was performed by making use of the fact that P is a symmetric matrix and the following derivatives:
$$\frac{\partial}{\partial{\mathbf{x}}}(\mathbf{x}^T \mathbf{a}) = \frac{\partial}{\partial{\mathbf{x}}}(\mathbf{a}^T \mathbf{x}) = \mathbf{a}~~~~~~~(1)$$
$$\frac{\partial}{\partial{\mathbf{x}}} (\mathbf{A}\mathbf{B}) = \frac{\partial A}{\partial{\mathbf{x}}}\mathbf{B} + \mathbf{A} \frac{\partial \mathbf{B}}{\partial{\mathbf{x}}}~~~~~~(2)$$
where a and x are vectors an A and B are matrices.
I'm still not entirely sure I understanding how to perform this differentiation over the above matrix/vector equation (3). would this involve performing rule (2) then rule (1)?