Matrix Derivative: Why is GRADIENT f(X) = C?

  • Thread starter Thread starter strokebow
  • Start date Start date
  • Tags Tags
    Derivative
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
strokebow
Messages
122
Reaction score
0
Hi,

A function: f(X) = C^T*X

Where, ^T is Transpose


Then my book tells me that GRADIENT f(X) = C


Why? Why is it not GRADIENT f(X) = C^T

Where, ^T is Transpose and GRADIENT is labla (opposite to delta)

Please help!

Thanks
 
Physics news on Phys.org
So
[tex]C= \begin{bmatrix}a \\ b \\ c\end{bmatrix}[/tex]
[tex]C^T= \begin{bmatrix}a & b & c\end{bmatrix}[/tex]
and
[tex]C^T X= \begin{bmatrix} a & b & c\end{bmatrix}\begin{bmatrix}x \\ y \\ c\end{bmatrix}= ax+ ay+ az[/tex]

So
[tex]\nabla C^T X= \nabla (ax+ ay+ az)= \begin{bmatrix}a \\ b \\ c}\end{bmatrix}= C[/itex][/tex]
 
strokebow said:
Why? Why is it not GRADIENT f(X) = C^T
Check the definitions; that should make it obvious.

(I should point out that when paying attention to row vectors vs. column vectors, there are two different for defining the gradient, one being the transpose of the other)