Correct Definition?

  1. Which one is the correct definition? I have seen both being used in texts and it makes a world of difference which one is used when doing proofs.

    [tex] \frac {\partial f}{\partial \bar{x} } = [ \frac {\partial f}{\partial x_1 }, \frac {\partial f}{\partial x_2 }, \frac {\partial f}{\partial x_n }] [/tex]


    [tex] \frac {\partial f}{\partial \bar{x} } = \left[\begin{array}{c} \frac {\partial f}{\partial x_1 } \\ \\ \frac {\partial f}{\partial x_2 }\\ \\ \frac {\partial f}{\partial x_n }\end{array}\right] [/tex]

    My book and wiki have the first definition, but I have seen some people use the second.
  2. jcsd
  3. They look like the same thing to me.
  4. One is a column vector and one is a row vector.
  5. cristo

    cristo 8,387
    Staff Emeritus
    Science Advisor

    What's the context here? Your expression looks very like grad(f).
  6. It's very nearly the same thing as writing grad.

    =dr df/dr
    =dr. I df/dr

    So grad[f(r)]=I df/dr

    (I'm too lazy to latex the above, but all the r, dr are vectors)
  7. D H

    Staff: Mentor

    The notation [itex]df/d\vec x[/itex] is just a non-standard way to write [itex]\nabla f[/itex].

    The standard representation of a displacement vector is as a column vector. With this representation, a displacement vector transforms from frame A to frame B as

    [tex]\vec x_B = T_{A\to B} \, \vec x_A[/tex]

    The gradient of a scalar field transforms by a different set of rules. The gradient lives in the dual space of the displacement vector field. The gradient should thus be represented as a row vector. With the gradient expressed as a row vector, the gradient of a function transforms according to

    [tex]\nabla f_B(x) = (\nabla f_A(x)) \, T_{A\to B}[/tex]
    Last edited: Apr 15, 2007
  8. cristo

    cristo 8,387
    Staff Emeritus
    Science Advisor

    That's what I thought; although the bar in the original post confused me!

    Of course, some people gloss over this and write all "vectors" as row vectors!
  9. The bar means its a scalar differentiated W.R.T a vector.

    Also, It never dawned on me to think of it as the gradient, but in fact thats exactly what it's doing (only if x is spatial coordinates). In that case, the correct definition is definition 2.

    But Im asking which one is the correct definition? Why would you need context to answer my question?
    Last edited: Apr 15, 2007
  10. Mentz114

    Mentz114 4,525
    Gold Member

    According to post #6 by DH

  11. The components of the first is a vector and as such is is layed out using a row matrix, which is the correct thing to do here. The second has components of a vector but is a column matrix of a 1-form which is the wrong thing to do. Only 1-forms are represented with the variables in the denuminator using subscripts and a change of sign for the spatial components.

    Well .... it sounds good anyway. :biggrin: Does anyone agree? :confused:

  12. Incorrect, the gradient is a column vector because my spatial coordinates is a column vector in R^n. So the gradient also has to be a column vector in R^n.
    Last edited: Apr 15, 2007
  13. Hurkyl

    Hurkyl 15,987
    Staff Emeritus
    Science Advisor
    Gold Member

    For better or worse -- the right answer to this question is "the one in the book." (Or "the one the instructor gave", or whatever is appropriate)

    Also, for better or worse (worse, IMHO), it is common to formalize the mathematics so that no distinction is made between the two.

    But if you are going to make a distinction (which I certainly advise) -- then [itex]\partial f / \partial \vec{x}[/itex] is going to be the opposite of what you use to denote [itex]\vec{x}[/itex]. The most common convention is that [itex]\vec{x}[/itex] is a column, thus [itex]\partial f / \partial \vec{x}[/itex] is a row.

    And, for maximum confusion, the notation [itex]\nabla f[/itex] is often used both to denote the gradient and to denote [itex]\partial f / \partial \vec{x}[/itex]. :frown: (e.g. see Spivak's Differential Geometry)
    Last edited: Apr 15, 2007
  14. Thats my problem. The book uses one way, my notes from class, which is from a different book, uses another way.

    Here is a paper that basically says the same thing I've been saying in the footnote. But I wanted a second opinion from you guys.

    Also note, the Jacobian is defined as the Transpose in my book of whats in the link above.
  15. Hurkyl

    Hurkyl 15,987
    Staff Emeritus
    Science Advisor
    Gold Member

    Ye gads! That's (IMHO) a very poor conventional choice -- so much that my first instinct would be to call it wrong! I would be a thousand times happier if x and y were row vectors, rather than the column vectors they were defined to be. (Or keep them as columns, but transpose everything else in that appendix)
  16. Well, in Dynamics it makes more sense to define things as column vectors and not row vectors.
  17. I still maintain that

    [itex]\nabla f(\mathbf{r})=\mathbf{I}\frac{\partial f(\mathbf{r})}{\partial \mathbf{r}}[/itex]

    Grad and df/dr are not completely equivalent.
  18. I dont understand what your talking about christian. Can you explain what your saying in more detail?
  19. [itex]f(\mathbf{r}+d\mathbf{r})=f(\mathbf{r})+\nabla f(\mathbf{r}).d\mathbf{r} [/itex]


    [itex]f(\mathbf{r}+d\mathbf{r})=f(\mathbf{r})+\frac{\partial}{\partial \mathbf{r}} f(\mathbf{r})d\mathbf{r}
    = f(\mathbf{r})+\frac{\partial}{\partial \mathbf{r}} f(\mathbf{r})\mathbf{I}.d\mathbf{r}[/itex]


    [itex]\nabla f(\mathbf{r})=\mathbf{I}\frac{\partial f(\mathbf{r})}{\partial \mathbf{r}}[/itex]
    Last edited: Apr 15, 2007
  20. D H

    Staff: Mentor

    If you represent spatial coordinates as a column vector (WHO DOES THIS GARBAGE???), you should represent the gradient as a row vector.

    Another way to look at this is to view displacement vectors and the gradient of a scalar field as tensors. Displacement vectors are contravariant vectors, while gradients are covariant. They live in spaces dual to each other. It is best to represent the two vectors in different forms.
  21. In fact, it is the standard in dynamics D_H. The configuration space will typically be a column in R^n.
Know someone interested in this topic? Share this thead via email, Google+, Twitter, or Facebook

Have something to add?