I have

$f: R^n \Rightarrow R^1$

and $H$ a $n \times n$ matrix (that is inversible)

What's the gradient of:

$g: x \mapsto f(H.x)$

expressed using the gradient of f? Is it just $x \mapsto H. \nabla f(H.x) $ ?


1 Answer 1


You get $\nabla g(x) = H^T\cdot \nabla f(H\cdot x)$ from $\nabla g(x) = (D g(x))^T = (D f(Hx)\cdot H)^T = H^T \cdot (D f(Hx))^T = H^T \cdot \nabla f(Hx)$.

  • $\begingroup$ Thanks, I knew I was doing something wrong... $\endgroup$
    – d--b
    Dec 1, 2016 at 8:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .