If I have a vector function that is constructed from a scalar function acting on a vector function, what is it's gradient?

$$\psi(x)=\phi(f(x))$$ where $$x\in\mathbb{R}^n, f\in\mathbb{R}^n\rightarrow\mathbb{R}^1, \phi\in\mathbb{R}^1\rightarrow\mathbb{R}^1$$

Is the following correct? $$\nabla\psi(x)=\nabla(\phi(f(x)))=\frac{d\phi}{df}\cdot{\nabla}f(x)$$ where ${\nabla}f(x)=\left[\frac{df}{dx_1},\frac{df}{dx_2},...,\frac{df}{dx_n}\right]^T$

  • 1
    $\begingroup$ Assuming the functions to be of class $C^1$, then : $\nabla\psi(x)=\frac{d\phi}{dt}(f(x))\cdot\nabla f(x)$ $\endgroup$ – Thibaut Dumont Jun 7 '13 at 14:01

Note that $d\phi(y)$ is just multiplication by the scalar $\phi'(y)$. The chain rule $$d\psi(x)=d\phi\bigl(f(x)\bigr)\circ df(x)$$ therefore implies $$\nabla\psi(x)\cdot X=d\psi(x).X=d\phi\bigl(f(x)\bigr).\bigl(df(x).X\bigr) =\phi'\bigl(f(x)\bigr) \bigl(\nabla f(x)\cdot X\bigr)\ .$$ Since this is true for all $X\in{\mathbb R}^n$ it follows that $$\nabla\psi(x)=\phi'\bigl(f(x)\bigr)\nabla f(x)\ .$$


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.