3

Mathematical bases for which $q$ and $\dot{q}$ could be treated as independent variable in $L(q,\dot{q},t)$.

In Lagrangian mechanics with single degree of freedome $q(t)$ and it's first degree deritative $\dot{q}(t)$ were considered as independent variable.

$\displaystyle \frac{\partial \dot{q}}{\partial q}=\frac{\partial q}{\partial t\partial q}=\frac{\partial q}{\partial q\partial t}=\frac{\partial C}{\partial t}=0$ and its general form $\displaystyle \frac{\partial q^{(n)}}{\partial q}=0$ could be easily proven.

However, $\displaystyle \frac{\partial q}{\partial \dot{q}}=0$ was not so straight forward.

My question was that:

Prove the general form $\displaystyle \frac{\partial q}{\partial q^{(n)}}=0$ in Lagrangian equation $L(q,\dot{q},t)$ where $\displaystyle\frac{\partial L}{\partial q}=\frac{d}{dt}(\frac{\partial L}{\partial \dot{q}})$ and $q^{(n)}$ was the $n$ th deritative of $q$.

  • 2
    It's not clear to me what you want to prove starting from what. In Lagrangian mechanics, we treat $q$ and $\dot q$ as independent variables on which $L$ depends; thus $\frac{\partial q}{\partial\dot q}=0$ is true by definition simply because of the way we introduce these variables. Your "calculation" of $\frac{\partial\dot q}{\partial q}$ makes no sense; that derivative is also zero simply by definition. – joriki Jul 30 '18 at 10:27
  • 1
    In case you're confused by the terrible notation we unfortunately use for partial derivatives, it might help to explicitly include all the variables in the notation. Then in Lagrangian mechanics we would usually mean $\left.\frac{\partial q(q,\dot q)}{\partial\dot q}\right|_q$ when we write $\frac{\partial q}{\partial\dot q}$ (where the subscript indicates the variable held fixed). In this notational form, it's clear that the derivative vanishes. If you mean something else by $\frac{\partial q}{\partial\dot q}$, I'd suggest that you write it in this form to clarify what you mean. – joriki Jul 30 '18 at 10:31
  • By the way, $\dot q=\frac{\mathrm dq}{\mathrm dt}$, not $\frac{\partial q}{\partial t}$. This might also be a part of the confusion. – joriki Jul 30 '18 at 10:35
  • A tricky way for $\dot{q}$ (which I was not sure if it's correct) for Lagrange's equations of the second kind $\displaystyle \frac{d}{dt} ( \frac{\partial q}{\partial \dot{q}} ) = \frac{d}{dt} ( \frac{\partial q}{\partial q} \partial t ) = \frac{d}{dt} ( \partial q \frac{\partial t}{\partial q} ) = \frac{d q \cdot 0}{dt}=0$, so it's simplest to write $q$ and $\dot{q}$ as independent variables to avoid calculations.(No assumption)

    There is a difference between generalized equations of motion and Lagrange's equations of the second kind. I was wondering if there was a formal proof.

    –  Jul 30 '18 at 12:36
  • 1
    Did you read my comments above? None of that makes any sense; I suspect you'll notice that yourself if you try to transcribe it into the more explicit notation I suggested above. – joriki Jul 30 '18 at 12:38
  • 2
    "I was wondering if there was a formal proof." For a formal proof, we need a formal question. So far you haven't stated anything about what functions and variables you're considering to depend on each other in which ways. The only thing we can formally say so far is how things are usually done in Lagrangian mechanics. This I stated above, and there's nothing more to say since it's just a matter of definitions. If you want to operate in a different picture, you'll have to formally define that picture before we can start providing formal proofs in it. – joriki Jul 30 '18 at 12:40
  • 1
    Related: https://math.stackexchange.com/questions/1963640/why-does-fracdqdt-not-depend-on-q-why-does-the-calculus-of-variations, https://math.stackexchange.com/questions/580858/why-is-frac-operatorname-dy-operatorname-dy-zero-since-y-depends-on, https://physics.stackexchange.com/questions/885/calculus-of-variations-how-does-it-make-sense-to-vary-the-position-and-the-ve – Hans Lundmark Jul 30 '18 at 13:08
  • @joriki I understand what you are saying, but I just didn't feel comfortable to treat Lagrangian as a $2n+1$ dimension space. Although it could explain "for which seemed to matter" by stating the visual condition that for each $x$, $\dot{x}$ could be free/independent. Assuming $\delta^\mu_\mu$ as an initial condition is of course doable, but $\dot{x}=\frac{d x}{d t}$ was also most basic. You can not ignore this relation (or you would get the wrong answer), and vacuously saying "initial" condition seemed a little risky for me. So if there is a way to prove the derivatives with given condition? –  Jul 30 '18 at 15:23
  • That sounds like a fundamental misunderstanding to me. No one is claiming that the $\dot q$ realized by the actual trajectory is independent of the $q$ realized by the actual trajectory; that's obviously not true, since $\dot q=\frac{\mathrm dq}{\mathrm dt}$. Rather, we have a function $L$ of three variables, and we find that we can derive the equations of motion from an equation involving its partial derivatives. Interestingly, you're not worrying about $q$ and $t$ being treated as independent variables, even though when you substitute the actual trajectory $q$ and $t$ are also related. – joriki Jul 30 '18 at 15:36
  • @joriki $q$ is not independent from $t$. It should be written as $q(t)$ (which was usually denoted by $q$ with bold character, unless it became relativistic), there is only one truly independent variable ($t$), but we can define certain degree of freedom, each of which could be well described by $q(t)$ and $\dot{q}(t)$, $q$ and $\dot{q}$ were functions of time and can intentionally treated/assumed/defined as independent variable in the Lagrange's equation. No where in the derive of lagrangian suggesed $q~\dot{q}$, only $T~q$ and $T~\dot{q}$. –  Jul 30 '18 at 15:51
  • @joriki Acturally, the equation before lagrange could be derived from variation as a function of dependent variables, then one might introduce one of the $u_i$ as ($t$) independent variables. Although the "initial assumption" that $q$ and $\dot{q}$ were independent seemed to be doable, but was not an initial assumption for the lagrange's equation. Lagrange's equation of motion actually didn't specify or require $p(t)$ and $\dot{p}(t)$ to have any relation, so it's a mathematical reason. –  Jul 30 '18 at 16:37

1 Answers1

1

As I commented on an answer to a related question, I think part of the problem is conflation of functions with variables.

If variables $x$ and $y$ are related by $y=f(x)$, that doesn't mean that $y$ is the function $f$; the same variable could be a different function of another variable, like $y=f(x)=g(z)$. A function is a relation, while a variable is... (I haven't seen a satisfactory definition.)

If we insist that the Lagrangian is a function, not a variable, then $\frac{\partial L}{\partial q}$ is an abuse of notation, and the Lagrangian equation should be

$$L^{(1,0,0)}(q(t),\dot q(t),t) = \frac{d}{dt}L^{(0,1,0)}(q(t),\dot q(t),t)$$

assuming that $t$ is a variable. Note that $L^{(1,0,0)}$ is a function in itself, regardless of what we call its inputs.

If the Lagrangian is a variable, then the partial derivatives must specify what other variables are held constant for the differentiation, as joriki said.

But how can we "hold constant" a dependent variable? (Not only is $\dot q$ dependent on the function $q$, but also the variable $q$ is dependent on $t$.) Perhaps the idea of "dependent/independent variables" doesn't make sense, and should be replaced with "domain and codomain of functions". Other views are welcome.

mr_e_man
  • 5,986
  • A tricky way for $\dot{q}$ (which I was not sure if it's correct) for Lagrange's equations of the second kind $\displaystyle \frac{d}{dt} ( \frac{\partial q}{\partial \dot{q}} ) = \frac{d}{dt} ( \frac{\partial q}{\partial q} \partial t ) = \frac{d}{dt} ( \partial q \frac{\partial t}{\partial q} ) = \frac{d q \cdot 0}{dt}=0$, so it's simplest to write $q$ and $\dot{q}$ as independent variables to avoid calculations.(No assumption)

    There is a difference between generalized equations of motion and Lagrange's equations of the second kind. I was wondering if there was a formal proof.

    –  Jul 30 '18 at 12:37
  • Acturally, the equation before lagrange could be derived from variation as a function of dependent variables, then one might introduce one of the $u_i$ as ($t$) independent variables. Although the "initial assumption" that $q$ and $\dot{q}$ were independent seemed to be doable, but was not an initial assumption for the lagrange's equation. Lagrange's equation of motion actually didn't specify or require $p(t)$ and $\dot{p}(t)$ to have any relation, so it's a mathematical reason. –  Jul 30 '18 at 16:38