Hi,

I need help computing the gradient of a function.

Where y and b are vectors, and X is a matrix.

So

I need help to find

Thanks!

Printable View

- September 27th 2012, 12:58 AMnowaygradient of a function and matrices
Hi,

I need help computing the gradient of a function.

Where y and b are vectors, and X is a matrix.

So

I need help to find

Thanks! - September 27th 2012, 01:03 AMchiroRe: gradient of a function and matrices
Hey noway.

Usually you have identities for these kinds of things, but if you are trying to prove it then that's different?

Are you trying to simply calculate it or to prove what the result is? - September 27th 2012, 01:06 AMnowayRe: gradient of a function and matrices
I've calculated it, but I'm doing it incorrectly I guess. It is part of another problem, so I need to get it right before moving on.

- September 27th 2012, 01:13 AMchiroRe: gradient of a function and matrices
Is this just a standard directional derivative with respect to some vector?

If so it's going to have some dot product and hence some matrix expansion in terms of b and the normal derivative of that matrix expression.

I can't recall the identities off the top of my head, but if you do a search they should be out there. - September 27th 2012, 02:34 AMjohnsomeoneRe: gradient of a function and matrices
There are severals ways to find , because there are several ways to interpret it. I'll show you a kinda weird way, but one that's often very useful:

Think of a curve such that and .

Then .

Now, although there are infinitely many, is the natural choice for g. However, we won't even need that.

Therefore .

So , and since that holds for EVERY , have:

.