Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Chain rule with partial derivatives and divergence

  1. Sep 5, 2012 #1
    say you have a function f(x,y)
    [itex]\nabla[/itex]f= [itex]\partial[/itex]f/[itex]\partial[/itex]x + [itex]\partial[/itex]f/[itex]\partial[/itex]y
    however when y is a function of x the situation is more complicated
    first off [itex]\partial[/itex]f/[itex]\partial[/itex]x = [itex]\partial[/itex]f/[itex]\partial[/itex]x +([itex]\partial[/itex]f/[itex]\partial[/itex]y) ([itex]\partial[/itex]y/[itex]\partial[/itex]x)
    ( i wrote partial of y to x in case y was dependent on some other variable)
    the [itex]\partial[/itex]f/[itex]\partial[/itex]x appears on both sides...what does this mean?do they can cancel? are their values equal?
    my best guess is the partial with respect to x on the left side assumes non constant y, whereas the partial on the right wrt x assumes constant y.... how would you even show that in notation

    now suppose we have a vector function F(x,y(x)), what is then the divergence of F, when we put in the operator [itex]\nabla[/itex] do we assume constant y or non constant y? and in which case does the divergence theorem hold?

    thanks
     
  2. jcsd
  3. Sep 5, 2012 #2
    When [itex]y = y(x)[/itex], what you're doing is calculating a total derivative instead of a partial. [itex]\nabla f = \hat x \partial_x f + \hat y \partial_y f[/itex] still, but [itex]df/dx = \partial_x f + \partial_y f (dy/dx)[/itex].

    Generally, it's easier to deal with parameterized functions instead of [itex]y = y(x)[/itex]. Say [itex]x(t) = t[/itex] and [itex]y(t)[/itex] is some arbitrary function. Really, though, [itex]\nabla[/itex] doesn't make a lot of sense when you're confining yourself to a curve (which is what you're doing when you say [itex]y=y(x)[/itex]. Do you see why? You no longer have the freedom to go in any direction as the definition of the derivative would require.
     
  4. Sep 5, 2012 #3

    arildno

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member
    Dearly Missed

    You should be careful about your notation.
    If you write:
    F(x,t)=f(x,y(x,t)) (where I have used "t" as an additional variable),
    then you see the answer to your query.

    Your doubt about whether to terms are "equal" and somehow cancels, is merely the result of sloppy notation.
     
  5. Sep 5, 2012 #4
    thanks for the replies
    i get the total derivative part
    say you have function f(x,y,z) where z= g(x,y), how would you define div(f)? i've seen textbooks (griffiths specifically) say divf =[itex]\partial[/itex]fx/[itex]\partial[/itex]x + [itex]\partial[/itex]fy/[itex]\partial[/itex]y+[itex]\partial[/itex]fz/[itex]\partial[/itex]z or something like that. it doesnt make much sense to me.

    bigerst
     
  6. Sep 5, 2012 #5
    Like I said, I'm not sure divergence and curl make sense when you're considering a function confined to a surface. Doing that starts to get into a whole bunch of stuff about intrinsic/extrinsic geometry, projections of the derivative, differential geometry in general, and so on. At the least, I suspect that formalism may be more than you were bargaining for.
     
  7. Sep 6, 2012 #6

    HallsofIvy

    User Avatar
    Staff Emeritus
    Science Advisor

    I've never seen any text book say such a thing. When f is a scalar function of x, y, and z, then
    [tex]div f= \nabla f= \frac{\partial f}{\partial x}\vec{i}+ \frac{\partial f}{\partial y}\vec{j}+ \frac{\partial f}{\partial z}\vec{k}[/tex]
    Where in Griffiths is the formula you quote and, in particular, what do "fx", "fy", and "fz" mean there? Are they partial derivatives or components of a vector?
     
  8. Sep 6, 2012 #7
    f[itex]_{x}[/itex] means the x compoenent of the vector function f
    its on chapter 10 Q8, Griffiths, introduction to electrodynamics 3rd edition
    part of problem asks to take the gradient of J(r',t[itex]_{r}[/itex])
    ∇'J(r',t[itex]_{r}[/itex])
    where t[itex]_{r}[/itex] = t - abs(r-r')/c
    so treating ∇' = <[itex]\partial[/itex]/[itex]\partial[/itex]x', [itex]\partial[/itex]/[itex]\partial[/itex]y', [itex]\partial[/itex]/[itex]\partial[/itex]z'>
    where <> denotes a vector
    hence using the chain rule
    ∇'J(r',t[itex]_{r}[/itex]) = [itex]\partial[/itex]Jx/[itex]\partial[/itex]x' +[itex]\partial[/itex]Jy/[itex]\partial[/itex]y' +[itex]\partial[/itex]Jz/[itex]\partial[/itex]z' -(1/c)([itex]\partial[/itex]J/[itex]\partial[/itex]t[itex]_{r}[/itex])∇(abs(r-r'))
    the answer, however is ∇'J(r',t[itex]_{r}[/itex])=-[itex]\partial[/itex]p/[itex]\partial[/itex]t -(1/c)([itex]\partial[/itex]J/[itex]\partial[/itex]t[itex]_{r}[/itex])∇(abs(r-r'))
    where i believe the author makes use of the continuity equation that states
    [itex]\nabla[/itex]J= - [itex]\partial[/itex]p/[itex]\partial[/itex]t by arguing [itex]\partial[/itex]Jx/[itex]\partial[/itex]x' +[itex]\partial[/itex]Jy/[itex]\partial[/itex]y' +[itex]\partial[/itex]Jz/[itex]\partial[/itex]z' = ∇ J
    this made no sense to me as i thought wasnt ∇'J(r',t[itex]_{r}[/itex]) already the divergence?
    hence i think either the definition of divergence is different somehow
    perhaps the div(J) on the right side means taking the time to be constant while the div on the left side is more of a "absolute divergence?" then how would the divergence theorem hold in that case? define a new G(r',r,t)=J(r',t[itex]_{r}[/itex]) ?
    thanks

    bigerst
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Chain rule with partial derivatives and divergence
Loading...