Hey,(adsbygoogle = window.adsbygoogle || []).push({});

I have been trying to figure out how to solve [itex]\triangledown_x ||f(x)||^2_2[/itex].

I have used the chain rule (hopefully correctly) to get the following:

[tex]\triangledown_x ||f(x)||^2_2=2\triangledown_xf(x)^T \frac{f(x)^T}{||f(x)||_2}[/tex]

Is this correct?

The reason I doubt my answer is because I know the gradient of a scalar valued function should be a vector. My answer seems to give a scalar. Can anyone please shed some light...

Note: [itex]x \in \Re^n[/itex] and I am using the convection that the gradient, [itex]\triangledown_x[/itex], of a function is a row vector. Also assume [itex]f: \Re^n\rightarrow \Re^m[/itex] .

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# I Gradient of ||f(x)||^2

Have something to add?

Draft saved
Draft deleted

**Physics Forums | Science Articles, Homework Help, Discussion**