Derivative of composition of real function and matrix calculation

23 Views Asked by At

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

There are 1 best solutions below

1
On BEST ANSWER

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)$.