I'm sorry if this is an easy question, but I'm trying to refresh my memory on calculating derivatives of matrix products and have been reading the Matrix Cookbook. I'd like to rebuild my intuition by replicating the results in Section 2.4.1 on page 10 where the authors list some matrix derivative results. I found this link: Differentiating functions of vectors/matrices? which helped some, but I think I need to get back to basics.
If I have the function:
$f(x) = \dfrac{1}{2}x^{T} A x + b^{T} x $
I want to calculate $\nabla f(x)$ for generic matrices $x$, $b$ and $A$. After this I want to calculate the Hessian.
How can I do this in Mathematica?