What is the derivative of this expression with respect to x? Here, $c$ is a column vector.
$||Ax+b||^2_2c$
I think it has to be of the form $2A^T(Ax+b)c^T$ or $2c(Ax+b)^TA$ but I don't know how to arrive at this answer.
Edit: The original function I was working on is of the form $$f(x)=\frac{||Ax+b||^2_2}{c^Tx+d}$$ and I was trying to derive its Hessian.
Background info: There's a rule for taking derivatives in multivariable calculus which states that if $g:\mathbb R^n \to \mathbb R^m$ is differentiable and $C$ is a $k \times m$ matrix, then the derivative of the function $f(x) = C g(x)$ is $f'(x) = C g'(x)$. We can apply this rule in this problem.
In this case, your function can be written as $$ f(x) = c g(x) $$ where $g(x) = \| Ax + b \|_2^2$. The derivative of $f$ is \begin{align*} f'(x) &= c g'(x) \\ &= 2c(Ax + b)^T A . \end{align*}
Computing the derivative of the function $g(x) = \| Ax + b \|_2^2$ is a question that comes up frequently on this site. I think the most elegant way to do it is using the chain rule. Note that $g(x) = h(u(x))$, where $u(x) = Ax + b$ and $h(v) = \| v \|_2^2$. The derivatives of $h$ and $u$ are $u'(x) = A$ and $h'(v) = 2v^T$. So by the chain rule $$ g'(x) = h'(u(x)) u'(x) = 2(Ax + b)^T A. $$