Derivative with respect to a function

  • Context: Graduate 
  • Thread starter Thread starter Tac-Tics
  • Start date Start date
  • Tags Tags
    Derivative Function
Click For Summary

Discussion Overview

The discussion revolves around the mathematical challenges of taking derivatives in the context of Lagrangian and Hamiltonian mechanics, particularly when the variables involved are functions of time. Participants explore the implications of differentiating a Hamiltonian that depends on position and momentum, both of which are functions themselves.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant describes the difficulty of taking a derivative of a Hamiltonian function H(x, v, t) when x and v are functions of time, leading to confusion about the appropriate form of the limit.
  • Another participant suggests that the denominator should include h(t) and that the limit should approach zero as h(t) approaches zero, indicating a notational concern.
  • A different participant questions whether the discussion is about functional derivatives and notes that the current formulation does not seem to fit the definition of a functional.
  • One participant emphasizes the importance of using the chain rule correctly when differentiating functions of functions, asserting that it is not unusual to differentiate one function with respect to another.
  • Another participant expresses a desire to maintain type consistency in their formulation, indicating a careful approach to the mathematical reasoning involved.

Areas of Agreement / Disagreement

Participants express differing views on the correct notation and approach to the problem, indicating that there is no consensus on how to proceed with the differentiation. Some participants focus on notational issues, while others raise conceptual questions about functional derivatives and the application of the chain rule.

Contextual Notes

There are unresolved issues regarding the treatment of functions as variables in the context of differentiation, and the discussion highlights the complexity of applying standard derivative rules in this scenario.

Tac-Tics
Messages
816
Reaction score
7
I'm learning about Lagrangian and Hamiltonian mechanics and I'm running into issues with the math.

It seems like there are instances where you have to take a derivative or a partial derivative of a variable with respect to another variable. My issue is that the variable to which you pay respect is often a function itself.

For example, the Hamiltonian is a function of position and momentum. Position and momentum are both functions themselves, dependent on time. It seems very similar to the idea of a Riemann-Stieltjes integral. Only what I'm looking for would be differentiation, not integration.

So, in the general case, a Hamiltonian looks like this:

H(x, v, t) = V(x(t)) + K(v(t))

where V is a function from position to (potential) energy and K is a function from velocity to (kinetic) energy.

So the partial derivative of H with respect to x is such an example.

It seems like there should be some method that looks just like the standard derivative. Something like:

\lim_{h \to 0} \frac{H(x + h, v, t)}{h}

Where h is an function which approaches the zero function in the limit.

However, what I end up with is an expression

\lim_{h \to 0} \frac{V(x(t) + h(t)) - V(x(t))}{h}

And I'm not sure how to take that limit. I can vaguely see the form of it. You let t be some constant, x(t) becomes a constant, and h(t) becomes a very small constant, infinitesimal in the limit. The answer should be V' or something like that. But I don't know how to word it to make the argument solid and rigorous (... or at least I don't know how to convince myself beyond a doubt this is correct).

EDIT: I found this inconsistency shortly afterwards. In the denominator, I'm dividing by a function. One might jump to the assumption that it should be h(t), not just h, but that doesn't follow from the definition of the derivative.

The hamiltonian as I've stated it has an unusual type: (R->R) -> (R->R) -> R -> R, and maybe the strange results I'm getting are a result of not treating it as a function-valued operator of two arguments instead: (R->R) -> (R->R) -> (R -> R).

Doing this, instead of saying H(x, v, t) = V(x(t)) + K(v(t)), I'd restate it as H(x, v) = V*x + K*v, where * is function composition, and addition and division are acting as they would in a function space. However, my algebra here is a bit weak.

\begin{array}{ll}<br /> \frac{\partial H}{\partial x}(x, v) &amp;= \lim_{h \to 0} \frac{H(x+h, v) - H(x,v)}{h} \\<br /> &amp;= \lim_{h \to 0} \frac{V*(x+h) + K*v - (V*x + K*v)}{h} \\<br /> &amp;= \lim_{h \to 0} \frac{V*(x+h) - V*x}{h} <br /> \end{array}<br />

At this point, I'm a little lost. It seems that if V is differentiable and h is infinitesimal, V(x+h) = V(x) + V(h), but I don't know how to justify that completely using limits in the context of this equation. But assuming It's justified, that leaves me with:

\frac{\partial H}{\partial x}(x, v) = \lim_{h \to 0} \frac{V*h}{h}

And I don't know what property allows me to reduce this to V'.
 
Last edited:
Physics news on Phys.org
Your denominator should have h(t) and your limit should be as h(t) -> 0 right? (just as a notational issue)
 
NoMoreExams said:
Your denominator should have h(t) and your limit should be as h(t) -> 0 right? (just as a notational issue)

Perhaps my update might make that more clear. What I intended was a limit as the function approached the zero of a real function space.


To be honest, all my qualms are notational issues when it comes to the mathematics in physics =-) Integrals are easy. Figuring out what kind of integral the author means is usually the hard part.
 
There is nothing peculiar about differentiating one function with respect to another function- after all, "x" itself is a function.

Use the chain rule: If f and g are both functions of x, then
\frac{df}{dg}= \frac{df}{dx}\frac{dx}{dg}= \frac{\frac{df}{dx}}{\frac{dg}{dx}}
 
Hurkyl said:
Are you looking for functional derivatives?

This isn't quite a functional (the codomain is a function, not a scalar). I don't believe it has to do with directional derivatives.


HallsofIvy said:
There is nothing peculiar about differentiating one function with respect to another function- after all, "x" itself is a function.

I'm trying to formulate this in a type-consistent way, and I want to be very careful about that. I'm not just looking for the 'right answer' here. Otherwise, I'd be all over the chain rule =-)
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 53 ·
2
Replies
53
Views
6K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K