What is the Process and Meaning of Taking the Derivative of a Vector?

  • Level: Graduate 
  • Thread starter Thread starter hkBattousai
  • Start date Start date
  • Tags Tags
    Derivative Vectors
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 8K views
hkBattousai
Messages
64
Reaction score
0
Here is a snapshot from one of my textbooks:
[PLAIN]http://img64.imageshack.us/img64/8114/vector0.png

How do we take the derivative below?
[itex]\frac{d}{dx}\Huge(\normalsize x^TA^TAx\,-\,2x^TA^Tb \Huge)\normalsize\,=\,2A^TAx\,-\,2A^Tb[/itex]

There is also another vector derivative in the book as follows:
[itex]\frac{d}{dx}\Huge(\normalsize x^Tx \Huge)\normalsize \, = \, 2x^T[/itex]

How do we take these type of derivatives?
What is the meaning of taking derivative of a vector, or transpose of vector?

_____________
EDIT: I found http://en.wikipedia.org/wiki/Matrix_calculus#Derivative_of_linear_functions", but it doesn't either explain the main idea behind vector derivation.

[itex]\frac{\partial \; \textbf{a}^T\textbf{x}}{\partial \; \textbf{x}} = \frac{\partial \; \textbf{x}^T\textbf{a}}{\partial \; \textbf{x}} = \textbf{a}[/itex]

[itex]\frac{\partial \; \textbf{A}\textbf{x}}{\partial \; \textbf{x}} = \frac{\partial \; \textbf{x}^T\textbf{A}}{\partial \; \textbf{x}^T} = \textbf{A}[/itex]
 
Last edited by a moderator:
Physics news on Phys.org
For a symmetric matrix B (in your case, [tex]B = A^T A[/tex]), the following is a scalar-valued function from R^n to R:

[tex]f(x) = x^T B x[/tex]

The derivative you are looking for is defined as the vector of partial derivatives (aka gradient):

[tex]\frac{df}{dx} = \left(\frac{\partial f}{\partial x_1}, ..., \frac{\partial f}{\partial x_n}\right)^T[/tex]

If you express f in terms of the components of B,

[tex]f(x) = b_{11} x_1^2 + 2 b_{12} x_1 x_2 + ...[/tex]

you will find that the partial derivatives just "come out right", i.e.

[tex]\frac{df}{dx} = 2 B x[/tex]