There's a good chance I got one or both of these wrong, so would anyone mind checking if I understood this correctly or not?
If $A$ is a $d\times d$ matrix and b,x $\epsilon R^{d}$ are two $d\times 1$ column vectors.
If $f(x)$ = b$^{T}$x and $g(x)$ = x$^{T}A$x
Is the following how I would represent $\nabla f(x)$ and $\nabla g(x)$?
$\nabla f(x) = (\frac{\partial f}{\partial x_{1}}(\mathbf x),...,\frac{\partial f}{\partial x_{d}}(\mathbf x))^{T} = (b_{1},...,b_{d})^{T}$
and
$\nabla g(x) = (\frac{\partial g}{\partial x_{1}}(\mathbf x),...,\frac{\partial g}{\partial x_{d}}(\mathbf x))^{T} = (2x_{1}A_{1,1}+...+x_{d}A_{d,1},...,x_{1}A_{1,d}+...+2x_{d}A_{d,d})^{T}$
On a side note, does anyone know of a computer program or website that may be useful in checking my own work for symbolic computations like this? I tried WolframAlpha, but I wasn't able to come close to getting it to interpret my input.