Lagrangian Mechanics & Derivatives

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
8
down vote

favorite
4












I don't really know whether to put this in Physics forums since it is relating to Mechanics, or Math since the question is actually about the math being done. Don't criticize me over it.



So for the question: I was doing some review problems on Lagrange's equations, KE+PE, and I found this document: http://wwwf.imperial.ac.uk/~pavl/ASHEET2.PDF



In the first question's solution, the writer differentiates without explaining the step. They have these:



$$begincases
x = r sin(theta) cos(phi)\[5 pt]
y = r sin(theta) sin(phi)\[5 pt]
z = r cos(theta)
endcases
$$



and this:



$$T = mover 2(dot x^2 +dot y^2 +dot z^2)$$



I never really studied the spherical coordinate system much, and obviously never thought about the derivatives of the conversion into Cartesian. Can someone find or explain the process of taking the derivatives of the first three equations, plugging into the equation for Kinetic Energy, and simplifying? There is a probably a different calculus method for the coordinate system, which I don't know. Thanks!



EDIT: While doing taking the derivatives, was the method used actually a separate form of calculus beyond I and II, or was it normal first-order differentiation? If so, how? Here is the part I am speaking of:
enter image description here







share|cite|improve this question


















  • 1




    "Don't criticize me over it"? I mean... if your question was in the wrong place, wouldn't you want us to tell you?
    – Rahul
    Sep 3 at 5:49














up vote
8
down vote

favorite
4












I don't really know whether to put this in Physics forums since it is relating to Mechanics, or Math since the question is actually about the math being done. Don't criticize me over it.



So for the question: I was doing some review problems on Lagrange's equations, KE+PE, and I found this document: http://wwwf.imperial.ac.uk/~pavl/ASHEET2.PDF



In the first question's solution, the writer differentiates without explaining the step. They have these:



$$begincases
x = r sin(theta) cos(phi)\[5 pt]
y = r sin(theta) sin(phi)\[5 pt]
z = r cos(theta)
endcases
$$



and this:



$$T = mover 2(dot x^2 +dot y^2 +dot z^2)$$



I never really studied the spherical coordinate system much, and obviously never thought about the derivatives of the conversion into Cartesian. Can someone find or explain the process of taking the derivatives of the first three equations, plugging into the equation for Kinetic Energy, and simplifying? There is a probably a different calculus method for the coordinate system, which I don't know. Thanks!



EDIT: While doing taking the derivatives, was the method used actually a separate form of calculus beyond I and II, or was it normal first-order differentiation? If so, how? Here is the part I am speaking of:
enter image description here







share|cite|improve this question


















  • 1




    "Don't criticize me over it"? I mean... if your question was in the wrong place, wouldn't you want us to tell you?
    – Rahul
    Sep 3 at 5:49












up vote
8
down vote

favorite
4









up vote
8
down vote

favorite
4






4





I don't really know whether to put this in Physics forums since it is relating to Mechanics, or Math since the question is actually about the math being done. Don't criticize me over it.



So for the question: I was doing some review problems on Lagrange's equations, KE+PE, and I found this document: http://wwwf.imperial.ac.uk/~pavl/ASHEET2.PDF



In the first question's solution, the writer differentiates without explaining the step. They have these:



$$begincases
x = r sin(theta) cos(phi)\[5 pt]
y = r sin(theta) sin(phi)\[5 pt]
z = r cos(theta)
endcases
$$



and this:



$$T = mover 2(dot x^2 +dot y^2 +dot z^2)$$



I never really studied the spherical coordinate system much, and obviously never thought about the derivatives of the conversion into Cartesian. Can someone find or explain the process of taking the derivatives of the first three equations, plugging into the equation for Kinetic Energy, and simplifying? There is a probably a different calculus method for the coordinate system, which I don't know. Thanks!



EDIT: While doing taking the derivatives, was the method used actually a separate form of calculus beyond I and II, or was it normal first-order differentiation? If so, how? Here is the part I am speaking of:
enter image description here







share|cite|improve this question














I don't really know whether to put this in Physics forums since it is relating to Mechanics, or Math since the question is actually about the math being done. Don't criticize me over it.



So for the question: I was doing some review problems on Lagrange's equations, KE+PE, and I found this document: http://wwwf.imperial.ac.uk/~pavl/ASHEET2.PDF



In the first question's solution, the writer differentiates without explaining the step. They have these:



$$begincases
x = r sin(theta) cos(phi)\[5 pt]
y = r sin(theta) sin(phi)\[5 pt]
z = r cos(theta)
endcases
$$



and this:



$$T = mover 2(dot x^2 +dot y^2 +dot z^2)$$



I never really studied the spherical coordinate system much, and obviously never thought about the derivatives of the conversion into Cartesian. Can someone find or explain the process of taking the derivatives of the first three equations, plugging into the equation for Kinetic Energy, and simplifying? There is a probably a different calculus method for the coordinate system, which I don't know. Thanks!



EDIT: While doing taking the derivatives, was the method used actually a separate form of calculus beyond I and II, or was it normal first-order differentiation? If so, how? Here is the part I am speaking of:
enter image description here









share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Sep 2 at 20:43

























asked Sep 2 at 20:09









Shadow Sniper

507




507







  • 1




    "Don't criticize me over it"? I mean... if your question was in the wrong place, wouldn't you want us to tell you?
    – Rahul
    Sep 3 at 5:49












  • 1




    "Don't criticize me over it"? I mean... if your question was in the wrong place, wouldn't you want us to tell you?
    – Rahul
    Sep 3 at 5:49







1




1




"Don't criticize me over it"? I mean... if your question was in the wrong place, wouldn't you want us to tell you?
– Rahul
Sep 3 at 5:49




"Don't criticize me over it"? I mean... if your question was in the wrong place, wouldn't you want us to tell you?
– Rahul
Sep 3 at 5:49










3 Answers
3






active

oldest

votes

















up vote
11
down vote



accepted










I think this question belongs to PSE! But whatever, here's your answer: you have to remember that $dot x$ is a complete derivative of $x$ with respect to time. Going to a new representation of $x$ in a new system, like in your case $x(r,theta,phi)$ for the spherical coordinates, where, and this is important, all the coordinates are functions of time $$requiv r(t)\ theta equiv theta(t) \phiequivphi(t)$$ transforms the complete time derivative in this manner



$$
dot x = fracpartial xpartial rfracmathrm d rmathrm d t+fracpartial xpartial thetafracmathrm d thetamathrm d t+fracpartial xpartial phifracmathrm d phimathrm d t \
dot x = fracpartial xpartial rdot r+fracpartial xpartial thetadottheta+fracpartial xpartial phidotphi \
dot x = (sinthetacosphi)dot r + (rcosthetacosphi)dottheta - (rsinthetasinphi)dotphi
$$



where the last equation was evaluated from the definition of $x=rsinthetacosphi$. Now same goes for the other variables, which get's you



$$
dot y = (sinthetasinphi)dot r+(rcosthetasinphi)dottheta+(rsinthetacosphi)dotphi \
dot z = (costheta)dot r-(rsintheta)dottheta
$$



From this three equations, it's just a manner of squaring them all, summing them and seeing what you get! Tedious work, but is has to be done sometimes:



$$
dot x^2 =sin^2thetacos^2phidot r^2+r^2cos^2thetacos^2phidottheta^2 +r^2sin^2thetasin^2phidotphi^2+\ +2rsinthetacosthetacosphi^2dot rdotthetacolorblue-2rsin^2thetacosphisinphidot rdotphicolorred-2r^2costhetasinthetacosphisinphidotthetadotphi\[10 pt]
dot y^2 = sin^2thetasin^2phidot r^2+r^2cos^2thetasin^2phidottheta^2+r^2sin^2thetacos^2phidotphi^2+\+2rcosthetasinthetasin^2phidot rdottheta colorblue+ 2rsin^2thetacosphisinphidot rdotphi colorred+2r^2costhetasinthetacosphisinphidotthetadotphi\[10 pt]
dot z^2 = cos^2thetadot r^2+r^2sin^2thetadottheta^2-2rcosthetasinthetadot rdottheta
$$



Let's evaluate the sum keeping in mind that the coloured parts, clearly, add up to zero with one another (we'll see that other parts add up to zero but not so easily):



$$beginalign
(dot x^2+dot y^2+dot z^2) &= dot r^2 (sin^2thetacos^2phi+sin^2thetasin^2phi+cos^2theta)tag1\
&+r^2dottheta^2(cos^2thetacos^2phi+cos^2thetasin^2phi+sin^2theta)tag2\
&+r^2dotphi^2(sin^2thetasin^2phi+sin^2thetacos^2phi)tag3\
&+2rdot rdottheta(sinthetacosthetacos^2phi+costhetasinthetasin^2phi-costhetasintheta)tag4
endalign
$$



Now it probably seems all wrong! But, keeping in mind the formula $$cos^2theta+sin^2theta=1$$ we can do lot's of things:



Formula $(1)$
$$
colorredsin^2thetacos^2phi+colorredsin^2thetasin^2phi+cos^2theta = colorredsin^2thetaunderbrace(cos^2phi+sin^2phi)_textis one+colorredcos^2theta \[5 pt] = sin^2theta+cos^2theta = 1
$$



Formula $(2)$
$$
colorredcos^2thetacos^2phi+colorredcos^2thetasin^2phi+sin^2theta = cos^2theta(cos^2phi+sin^2phi)+sin^2theta = \ =cos^2theta+sin^2theta = 1
$$



Formula $(3)$
$$
colorredsin^2thetasin^2phi+colorredsin^2thetacos^2phi= sin^2theta(sin^2phi+cos^2phi)=sin^2theta
$$



Formula $(4)$
$$
colorredsinthetacosthetacos^2phi+colorredcosthetasinthetasin^2phi-costhetasintheta = sinthetacostheta(cos^2phi+sin^2phi)-costhetasintheta = \ = sinthetacostheta-sinthetacostheta=0
$$



Finally, plugging it all back into the sum of the derivatives squared what we get is



$$
(dot x^2+dot y^2+dot z^2) =dot r^2+r^2dottheta^2+r^2sin^2thetadotphi^2
$$



which is exactly your formula!






share|cite|improve this answer


















  • 1




    Sorry for the long post and for taking so long! I wanted to write down every step so that it would be as useful as possible! All this derivation could have be done in the physicists way, by simple geometrical arguments! But this way is more rigorous and, probably, an overkill! But who cares, right?
    – Davide Morgante
    Sep 2 at 21:41






  • 1




    +1, endorsed! Special thanks for doing all that algebra! Cheers! 😉
    – Robert Lewis
    Sep 3 at 0:57






  • 1




    Thanks! Just what I needed! Probably doesn't help I pulled this off an MIT site while I'm still in high school though!
    – Shadow Sniper
    Sep 3 at 11:58











  • @ShadowSniper I think that with a high school education you could understand this! The only "out of the reach" concept could be the chain rule with partial differentiation! All the other calculations are simple algebraic manipulations and the use of the famous trigonometric identity! It's just a little bit tedious
    – Davide Morgante
    Sep 3 at 13:22


















up vote
5
down vote













This is a (relatively tedious) application of the chain and product rule.




$$z=r cos theta$$



$$fracdzdt=fracddt left( r cos theta right)$$



Applying the product rule,



$$=fracdrdt cos theta+ fracd cos thetadt r$$



Applying the chain rule,



$$=dot r cos theta+fracd cos thetad theta fracd thetadt r$$



$$=dot r cos theta-r dot theta sin theta $$



It is a similar exercise to differentiate $rsin theta$ with respect to time.




$$y=r sin theta sin phi$$



$$dot y=sin phi fracddt (r sin theta)+r sin thetafracddt sin phi$$



$$= sin phi fracddt (r sin theta)+r sin thetafracd sin phidphi fracdphidt$$



$$=sin phi left( dot r sin theta+dot theta r cos theta right)+r dot phi sin theta cos phi$$




$$x=r sin theta cos phi$$



$$dot x=cos phi fracddtleft(r sin theta right)+r sin theta fracddt cos phi$$



$$=cos phi left(dot r sin theta+dot theta r cos theta right)-r dot phi sin theta sin phi $$




In order to calculate $dot x^2+dot y^2$ without too much trouble, make the substitution $u= dot r sin theta+dot theta r cos theta$ and $v=r dot phi sin theta$. Then we wish to calculate,



$$(u sin phi +v cos phi)^2+(u cos phi-v sin phi)^2$$



$$=u^2+v^2$$



$$=(dot r sin theta+dot theta r cos theta )^2+r^2 dot phi^2 sin^2 theta$$



Next, to calculate, $dot x^2+dot y^2+dot z^2$ note:



$$(dot r sin theta+dot theta r cos theta )^2+left(dot r cos theta-r dot theta sin theta right)^2$$



$$=dot r^2+r^2 dot theta^2$$



So,



$$dot x^2+dot y^2+dot z^2= dot r^2+r^2 dot theta^2+ r^2 dot phi^2 sin^2 theta$$



As expected.






share|cite|improve this answer





























    up vote
    2
    down vote













    To convert the cartesian expression for kinetic energy,



    $T = dfracm2(dot x^2 + dot y^2 + dot z^2) tag 1$



    into sperical coordinates $r,phi, theta$ such that



    $x = r sin theta cos phi, tag 2$



    $y = rsin theta sin phi, tag 3$



    $z = rcos theta, tag4$



    we merely need employ two standard results from elementary calculus, namely, the Leibniz product rule and the chain rule; the calculations are all in the realm of basic first-order differentiation using these two principles. I will start by illustrating how these concepts apply to $z$ (4), since it is the simplest of the three expressions (2)-(4); from (4), by the product rule, where I use $dot$ and $´$ both to represent the $t$-derivative,



    $dot z = dot r cos theta + r (cos theta)'; tag 5$



    we apply the chain rule to (5):



    $(cos theta)' = left (dfracdcos thetadtheta right ) dot theta = -dot theta sin theta; tag 6$



    thus (5) becomes



    $dot z = dot r cos theta - r dot theta sin theta; tag 7$



    we similarly handle $x$ as in (2): again, the product rule yields



    $dot x = dot r sin theta cos phi + r(sin theta)'cos phi + rsin theta (cos phi)', tag 8$



    and again we apply the chain rule, this time twice:



    $(sin theta)' = dfracdsin thetadtheta dot theta = dot theta cos theta, tag 9$



    $(cos phi)' = dfracdcos phid phi dot phi = -dot phi sin phi; tag10$



    assembling (8)-(10) together:



    $dot x = dot r sin theta cos phi + rdot theta cos theta sin phi - rdot phi sin theta sin phi; tag11$



    y a parellel procedure, first using the Leibniz and the chain rule, we also have



    $dot y = dot r sin theta sin phi + r dot theta cos theta sin phi + r dot phi sin theta cos phi; tag12$



    with (7), (11)-(12) at hand, calculating $dot x^2 + dot y^2 + dot z^2$ in sphericals involves no more than a good slug o' algebra; but there is really nothing to see in it that hasn't been very nicely and more than adequately presented by our colleagues David Morgante and
    Ahmed S. Ataalla.



    So I think I'll leave off now. My main point and interest here has been to point out how the Leibniz and chain rules, both results of basic calculus, are used to effect the transformation of the velocities, which then leads to the expression for $T$ in spherical coordinates, as others have shown.






    share|cite|improve this answer






















      Your Answer




      StackExchange.ifUsing("editor", function ()
      return StackExchange.using("mathjaxEditing", function ()
      StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
      StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
      );
      );
      , "mathjax-editing");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "69"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: true,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      noCode: true, onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2903163%2flagrangian-mechanics-derivatives%23new-answer', 'question_page');

      );

      Post as a guest






























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      11
      down vote



      accepted










      I think this question belongs to PSE! But whatever, here's your answer: you have to remember that $dot x$ is a complete derivative of $x$ with respect to time. Going to a new representation of $x$ in a new system, like in your case $x(r,theta,phi)$ for the spherical coordinates, where, and this is important, all the coordinates are functions of time $$requiv r(t)\ theta equiv theta(t) \phiequivphi(t)$$ transforms the complete time derivative in this manner



      $$
      dot x = fracpartial xpartial rfracmathrm d rmathrm d t+fracpartial xpartial thetafracmathrm d thetamathrm d t+fracpartial xpartial phifracmathrm d phimathrm d t \
      dot x = fracpartial xpartial rdot r+fracpartial xpartial thetadottheta+fracpartial xpartial phidotphi \
      dot x = (sinthetacosphi)dot r + (rcosthetacosphi)dottheta - (rsinthetasinphi)dotphi
      $$



      where the last equation was evaluated from the definition of $x=rsinthetacosphi$. Now same goes for the other variables, which get's you



      $$
      dot y = (sinthetasinphi)dot r+(rcosthetasinphi)dottheta+(rsinthetacosphi)dotphi \
      dot z = (costheta)dot r-(rsintheta)dottheta
      $$



      From this three equations, it's just a manner of squaring them all, summing them and seeing what you get! Tedious work, but is has to be done sometimes:



      $$
      dot x^2 =sin^2thetacos^2phidot r^2+r^2cos^2thetacos^2phidottheta^2 +r^2sin^2thetasin^2phidotphi^2+\ +2rsinthetacosthetacosphi^2dot rdotthetacolorblue-2rsin^2thetacosphisinphidot rdotphicolorred-2r^2costhetasinthetacosphisinphidotthetadotphi\[10 pt]
      dot y^2 = sin^2thetasin^2phidot r^2+r^2cos^2thetasin^2phidottheta^2+r^2sin^2thetacos^2phidotphi^2+\+2rcosthetasinthetasin^2phidot rdottheta colorblue+ 2rsin^2thetacosphisinphidot rdotphi colorred+2r^2costhetasinthetacosphisinphidotthetadotphi\[10 pt]
      dot z^2 = cos^2thetadot r^2+r^2sin^2thetadottheta^2-2rcosthetasinthetadot rdottheta
      $$



      Let's evaluate the sum keeping in mind that the coloured parts, clearly, add up to zero with one another (we'll see that other parts add up to zero but not so easily):



      $$beginalign
      (dot x^2+dot y^2+dot z^2) &= dot r^2 (sin^2thetacos^2phi+sin^2thetasin^2phi+cos^2theta)tag1\
      &+r^2dottheta^2(cos^2thetacos^2phi+cos^2thetasin^2phi+sin^2theta)tag2\
      &+r^2dotphi^2(sin^2thetasin^2phi+sin^2thetacos^2phi)tag3\
      &+2rdot rdottheta(sinthetacosthetacos^2phi+costhetasinthetasin^2phi-costhetasintheta)tag4
      endalign
      $$



      Now it probably seems all wrong! But, keeping in mind the formula $$cos^2theta+sin^2theta=1$$ we can do lot's of things:



      Formula $(1)$
      $$
      colorredsin^2thetacos^2phi+colorredsin^2thetasin^2phi+cos^2theta = colorredsin^2thetaunderbrace(cos^2phi+sin^2phi)_textis one+colorredcos^2theta \[5 pt] = sin^2theta+cos^2theta = 1
      $$



      Formula $(2)$
      $$
      colorredcos^2thetacos^2phi+colorredcos^2thetasin^2phi+sin^2theta = cos^2theta(cos^2phi+sin^2phi)+sin^2theta = \ =cos^2theta+sin^2theta = 1
      $$



      Formula $(3)$
      $$
      colorredsin^2thetasin^2phi+colorredsin^2thetacos^2phi= sin^2theta(sin^2phi+cos^2phi)=sin^2theta
      $$



      Formula $(4)$
      $$
      colorredsinthetacosthetacos^2phi+colorredcosthetasinthetasin^2phi-costhetasintheta = sinthetacostheta(cos^2phi+sin^2phi)-costhetasintheta = \ = sinthetacostheta-sinthetacostheta=0
      $$



      Finally, plugging it all back into the sum of the derivatives squared what we get is



      $$
      (dot x^2+dot y^2+dot z^2) =dot r^2+r^2dottheta^2+r^2sin^2thetadotphi^2
      $$



      which is exactly your formula!






      share|cite|improve this answer


















      • 1




        Sorry for the long post and for taking so long! I wanted to write down every step so that it would be as useful as possible! All this derivation could have be done in the physicists way, by simple geometrical arguments! But this way is more rigorous and, probably, an overkill! But who cares, right?
        – Davide Morgante
        Sep 2 at 21:41






      • 1




        +1, endorsed! Special thanks for doing all that algebra! Cheers! 😉
        – Robert Lewis
        Sep 3 at 0:57






      • 1




        Thanks! Just what I needed! Probably doesn't help I pulled this off an MIT site while I'm still in high school though!
        – Shadow Sniper
        Sep 3 at 11:58











      • @ShadowSniper I think that with a high school education you could understand this! The only "out of the reach" concept could be the chain rule with partial differentiation! All the other calculations are simple algebraic manipulations and the use of the famous trigonometric identity! It's just a little bit tedious
        – Davide Morgante
        Sep 3 at 13:22















      up vote
      11
      down vote



      accepted










      I think this question belongs to PSE! But whatever, here's your answer: you have to remember that $dot x$ is a complete derivative of $x$ with respect to time. Going to a new representation of $x$ in a new system, like in your case $x(r,theta,phi)$ for the spherical coordinates, where, and this is important, all the coordinates are functions of time $$requiv r(t)\ theta equiv theta(t) \phiequivphi(t)$$ transforms the complete time derivative in this manner



      $$
      dot x = fracpartial xpartial rfracmathrm d rmathrm d t+fracpartial xpartial thetafracmathrm d thetamathrm d t+fracpartial xpartial phifracmathrm d phimathrm d t \
      dot x = fracpartial xpartial rdot r+fracpartial xpartial thetadottheta+fracpartial xpartial phidotphi \
      dot x = (sinthetacosphi)dot r + (rcosthetacosphi)dottheta - (rsinthetasinphi)dotphi
      $$



      where the last equation was evaluated from the definition of $x=rsinthetacosphi$. Now same goes for the other variables, which get's you



      $$
      dot y = (sinthetasinphi)dot r+(rcosthetasinphi)dottheta+(rsinthetacosphi)dotphi \
      dot z = (costheta)dot r-(rsintheta)dottheta
      $$



      From this three equations, it's just a manner of squaring them all, summing them and seeing what you get! Tedious work, but is has to be done sometimes:



      $$
      dot x^2 =sin^2thetacos^2phidot r^2+r^2cos^2thetacos^2phidottheta^2 +r^2sin^2thetasin^2phidotphi^2+\ +2rsinthetacosthetacosphi^2dot rdotthetacolorblue-2rsin^2thetacosphisinphidot rdotphicolorred-2r^2costhetasinthetacosphisinphidotthetadotphi\[10 pt]
      dot y^2 = sin^2thetasin^2phidot r^2+r^2cos^2thetasin^2phidottheta^2+r^2sin^2thetacos^2phidotphi^2+\+2rcosthetasinthetasin^2phidot rdottheta colorblue+ 2rsin^2thetacosphisinphidot rdotphi colorred+2r^2costhetasinthetacosphisinphidotthetadotphi\[10 pt]
      dot z^2 = cos^2thetadot r^2+r^2sin^2thetadottheta^2-2rcosthetasinthetadot rdottheta
      $$



      Let's evaluate the sum keeping in mind that the coloured parts, clearly, add up to zero with one another (we'll see that other parts add up to zero but not so easily):



      $$beginalign
      (dot x^2+dot y^2+dot z^2) &= dot r^2 (sin^2thetacos^2phi+sin^2thetasin^2phi+cos^2theta)tag1\
      &+r^2dottheta^2(cos^2thetacos^2phi+cos^2thetasin^2phi+sin^2theta)tag2\
      &+r^2dotphi^2(sin^2thetasin^2phi+sin^2thetacos^2phi)tag3\
      &+2rdot rdottheta(sinthetacosthetacos^2phi+costhetasinthetasin^2phi-costhetasintheta)tag4
      endalign
      $$



      Now it probably seems all wrong! But, keeping in mind the formula $$cos^2theta+sin^2theta=1$$ we can do lot's of things:



      Formula $(1)$
      $$
      colorredsin^2thetacos^2phi+colorredsin^2thetasin^2phi+cos^2theta = colorredsin^2thetaunderbrace(cos^2phi+sin^2phi)_textis one+colorredcos^2theta \[5 pt] = sin^2theta+cos^2theta = 1
      $$



      Formula $(2)$
      $$
      colorredcos^2thetacos^2phi+colorredcos^2thetasin^2phi+sin^2theta = cos^2theta(cos^2phi+sin^2phi)+sin^2theta = \ =cos^2theta+sin^2theta = 1
      $$



      Formula $(3)$
      $$
      colorredsin^2thetasin^2phi+colorredsin^2thetacos^2phi= sin^2theta(sin^2phi+cos^2phi)=sin^2theta
      $$



      Formula $(4)$
      $$
      colorredsinthetacosthetacos^2phi+colorredcosthetasinthetasin^2phi-costhetasintheta = sinthetacostheta(cos^2phi+sin^2phi)-costhetasintheta = \ = sinthetacostheta-sinthetacostheta=0
      $$



      Finally, plugging it all back into the sum of the derivatives squared what we get is



      $$
      (dot x^2+dot y^2+dot z^2) =dot r^2+r^2dottheta^2+r^2sin^2thetadotphi^2
      $$



      which is exactly your formula!






      share|cite|improve this answer


















      • 1




        Sorry for the long post and for taking so long! I wanted to write down every step so that it would be as useful as possible! All this derivation could have be done in the physicists way, by simple geometrical arguments! But this way is more rigorous and, probably, an overkill! But who cares, right?
        – Davide Morgante
        Sep 2 at 21:41






      • 1




        +1, endorsed! Special thanks for doing all that algebra! Cheers! 😉
        – Robert Lewis
        Sep 3 at 0:57






      • 1




        Thanks! Just what I needed! Probably doesn't help I pulled this off an MIT site while I'm still in high school though!
        – Shadow Sniper
        Sep 3 at 11:58











      • @ShadowSniper I think that with a high school education you could understand this! The only "out of the reach" concept could be the chain rule with partial differentiation! All the other calculations are simple algebraic manipulations and the use of the famous trigonometric identity! It's just a little bit tedious
        – Davide Morgante
        Sep 3 at 13:22













      up vote
      11
      down vote



      accepted







      up vote
      11
      down vote



      accepted






      I think this question belongs to PSE! But whatever, here's your answer: you have to remember that $dot x$ is a complete derivative of $x$ with respect to time. Going to a new representation of $x$ in a new system, like in your case $x(r,theta,phi)$ for the spherical coordinates, where, and this is important, all the coordinates are functions of time $$requiv r(t)\ theta equiv theta(t) \phiequivphi(t)$$ transforms the complete time derivative in this manner



      $$
      dot x = fracpartial xpartial rfracmathrm d rmathrm d t+fracpartial xpartial thetafracmathrm d thetamathrm d t+fracpartial xpartial phifracmathrm d phimathrm d t \
      dot x = fracpartial xpartial rdot r+fracpartial xpartial thetadottheta+fracpartial xpartial phidotphi \
      dot x = (sinthetacosphi)dot r + (rcosthetacosphi)dottheta - (rsinthetasinphi)dotphi
      $$



      where the last equation was evaluated from the definition of $x=rsinthetacosphi$. Now same goes for the other variables, which get's you



      $$
      dot y = (sinthetasinphi)dot r+(rcosthetasinphi)dottheta+(rsinthetacosphi)dotphi \
      dot z = (costheta)dot r-(rsintheta)dottheta
      $$



      From this three equations, it's just a manner of squaring them all, summing them and seeing what you get! Tedious work, but is has to be done sometimes:



      $$
      dot x^2 =sin^2thetacos^2phidot r^2+r^2cos^2thetacos^2phidottheta^2 +r^2sin^2thetasin^2phidotphi^2+\ +2rsinthetacosthetacosphi^2dot rdotthetacolorblue-2rsin^2thetacosphisinphidot rdotphicolorred-2r^2costhetasinthetacosphisinphidotthetadotphi\[10 pt]
      dot y^2 = sin^2thetasin^2phidot r^2+r^2cos^2thetasin^2phidottheta^2+r^2sin^2thetacos^2phidotphi^2+\+2rcosthetasinthetasin^2phidot rdottheta colorblue+ 2rsin^2thetacosphisinphidot rdotphi colorred+2r^2costhetasinthetacosphisinphidotthetadotphi\[10 pt]
      dot z^2 = cos^2thetadot r^2+r^2sin^2thetadottheta^2-2rcosthetasinthetadot rdottheta
      $$



      Let's evaluate the sum keeping in mind that the coloured parts, clearly, add up to zero with one another (we'll see that other parts add up to zero but not so easily):



      $$beginalign
      (dot x^2+dot y^2+dot z^2) &= dot r^2 (sin^2thetacos^2phi+sin^2thetasin^2phi+cos^2theta)tag1\
      &+r^2dottheta^2(cos^2thetacos^2phi+cos^2thetasin^2phi+sin^2theta)tag2\
      &+r^2dotphi^2(sin^2thetasin^2phi+sin^2thetacos^2phi)tag3\
      &+2rdot rdottheta(sinthetacosthetacos^2phi+costhetasinthetasin^2phi-costhetasintheta)tag4
      endalign
      $$



      Now it probably seems all wrong! But, keeping in mind the formula $$cos^2theta+sin^2theta=1$$ we can do lot's of things:



      Formula $(1)$
      $$
      colorredsin^2thetacos^2phi+colorredsin^2thetasin^2phi+cos^2theta = colorredsin^2thetaunderbrace(cos^2phi+sin^2phi)_textis one+colorredcos^2theta \[5 pt] = sin^2theta+cos^2theta = 1
      $$



      Formula $(2)$
      $$
      colorredcos^2thetacos^2phi+colorredcos^2thetasin^2phi+sin^2theta = cos^2theta(cos^2phi+sin^2phi)+sin^2theta = \ =cos^2theta+sin^2theta = 1
      $$



      Formula $(3)$
      $$
      colorredsin^2thetasin^2phi+colorredsin^2thetacos^2phi= sin^2theta(sin^2phi+cos^2phi)=sin^2theta
      $$



      Formula $(4)$
      $$
      colorredsinthetacosthetacos^2phi+colorredcosthetasinthetasin^2phi-costhetasintheta = sinthetacostheta(cos^2phi+sin^2phi)-costhetasintheta = \ = sinthetacostheta-sinthetacostheta=0
      $$



      Finally, plugging it all back into the sum of the derivatives squared what we get is



      $$
      (dot x^2+dot y^2+dot z^2) =dot r^2+r^2dottheta^2+r^2sin^2thetadotphi^2
      $$



      which is exactly your formula!






      share|cite|improve this answer














      I think this question belongs to PSE! But whatever, here's your answer: you have to remember that $dot x$ is a complete derivative of $x$ with respect to time. Going to a new representation of $x$ in a new system, like in your case $x(r,theta,phi)$ for the spherical coordinates, where, and this is important, all the coordinates are functions of time $$requiv r(t)\ theta equiv theta(t) \phiequivphi(t)$$ transforms the complete time derivative in this manner



      $$
      dot x = fracpartial xpartial rfracmathrm d rmathrm d t+fracpartial xpartial thetafracmathrm d thetamathrm d t+fracpartial xpartial phifracmathrm d phimathrm d t \
      dot x = fracpartial xpartial rdot r+fracpartial xpartial thetadottheta+fracpartial xpartial phidotphi \
      dot x = (sinthetacosphi)dot r + (rcosthetacosphi)dottheta - (rsinthetasinphi)dotphi
      $$



      where the last equation was evaluated from the definition of $x=rsinthetacosphi$. Now same goes for the other variables, which get's you



      $$
      dot y = (sinthetasinphi)dot r+(rcosthetasinphi)dottheta+(rsinthetacosphi)dotphi \
      dot z = (costheta)dot r-(rsintheta)dottheta
      $$



      From this three equations, it's just a manner of squaring them all, summing them and seeing what you get! Tedious work, but is has to be done sometimes:



      $$
      dot x^2 =sin^2thetacos^2phidot r^2+r^2cos^2thetacos^2phidottheta^2 +r^2sin^2thetasin^2phidotphi^2+\ +2rsinthetacosthetacosphi^2dot rdotthetacolorblue-2rsin^2thetacosphisinphidot rdotphicolorred-2r^2costhetasinthetacosphisinphidotthetadotphi\[10 pt]
      dot y^2 = sin^2thetasin^2phidot r^2+r^2cos^2thetasin^2phidottheta^2+r^2sin^2thetacos^2phidotphi^2+\+2rcosthetasinthetasin^2phidot rdottheta colorblue+ 2rsin^2thetacosphisinphidot rdotphi colorred+2r^2costhetasinthetacosphisinphidotthetadotphi\[10 pt]
      dot z^2 = cos^2thetadot r^2+r^2sin^2thetadottheta^2-2rcosthetasinthetadot rdottheta
      $$



      Let's evaluate the sum keeping in mind that the coloured parts, clearly, add up to zero with one another (we'll see that other parts add up to zero but not so easily):



      $$beginalign
      (dot x^2+dot y^2+dot z^2) &= dot r^2 (sin^2thetacos^2phi+sin^2thetasin^2phi+cos^2theta)tag1\
      &+r^2dottheta^2(cos^2thetacos^2phi+cos^2thetasin^2phi+sin^2theta)tag2\
      &+r^2dotphi^2(sin^2thetasin^2phi+sin^2thetacos^2phi)tag3\
      &+2rdot rdottheta(sinthetacosthetacos^2phi+costhetasinthetasin^2phi-costhetasintheta)tag4
      endalign
      $$



      Now it probably seems all wrong! But, keeping in mind the formula $$cos^2theta+sin^2theta=1$$ we can do lot's of things:



      Formula $(1)$
      $$
      colorredsin^2thetacos^2phi+colorredsin^2thetasin^2phi+cos^2theta = colorredsin^2thetaunderbrace(cos^2phi+sin^2phi)_textis one+colorredcos^2theta \[5 pt] = sin^2theta+cos^2theta = 1
      $$



      Formula $(2)$
      $$
      colorredcos^2thetacos^2phi+colorredcos^2thetasin^2phi+sin^2theta = cos^2theta(cos^2phi+sin^2phi)+sin^2theta = \ =cos^2theta+sin^2theta = 1
      $$



      Formula $(3)$
      $$
      colorredsin^2thetasin^2phi+colorredsin^2thetacos^2phi= sin^2theta(sin^2phi+cos^2phi)=sin^2theta
      $$



      Formula $(4)$
      $$
      colorredsinthetacosthetacos^2phi+colorredcosthetasinthetasin^2phi-costhetasintheta = sinthetacostheta(cos^2phi+sin^2phi)-costhetasintheta = \ = sinthetacostheta-sinthetacostheta=0
      $$



      Finally, plugging it all back into the sum of the derivatives squared what we get is



      $$
      (dot x^2+dot y^2+dot z^2) =dot r^2+r^2dottheta^2+r^2sin^2thetadotphi^2
      $$



      which is exactly your formula!







      share|cite|improve this answer














      share|cite|improve this answer



      share|cite|improve this answer








      edited Sep 7 at 20:52

























      answered Sep 2 at 21:39









      Davide Morgante

      2,550623




      2,550623







      • 1




        Sorry for the long post and for taking so long! I wanted to write down every step so that it would be as useful as possible! All this derivation could have be done in the physicists way, by simple geometrical arguments! But this way is more rigorous and, probably, an overkill! But who cares, right?
        – Davide Morgante
        Sep 2 at 21:41






      • 1




        +1, endorsed! Special thanks for doing all that algebra! Cheers! 😉
        – Robert Lewis
        Sep 3 at 0:57






      • 1




        Thanks! Just what I needed! Probably doesn't help I pulled this off an MIT site while I'm still in high school though!
        – Shadow Sniper
        Sep 3 at 11:58











      • @ShadowSniper I think that with a high school education you could understand this! The only "out of the reach" concept could be the chain rule with partial differentiation! All the other calculations are simple algebraic manipulations and the use of the famous trigonometric identity! It's just a little bit tedious
        – Davide Morgante
        Sep 3 at 13:22













      • 1




        Sorry for the long post and for taking so long! I wanted to write down every step so that it would be as useful as possible! All this derivation could have be done in the physicists way, by simple geometrical arguments! But this way is more rigorous and, probably, an overkill! But who cares, right?
        – Davide Morgante
        Sep 2 at 21:41






      • 1




        +1, endorsed! Special thanks for doing all that algebra! Cheers! 😉
        – Robert Lewis
        Sep 3 at 0:57






      • 1




        Thanks! Just what I needed! Probably doesn't help I pulled this off an MIT site while I'm still in high school though!
        – Shadow Sniper
        Sep 3 at 11:58











      • @ShadowSniper I think that with a high school education you could understand this! The only "out of the reach" concept could be the chain rule with partial differentiation! All the other calculations are simple algebraic manipulations and the use of the famous trigonometric identity! It's just a little bit tedious
        – Davide Morgante
        Sep 3 at 13:22








      1




      1




      Sorry for the long post and for taking so long! I wanted to write down every step so that it would be as useful as possible! All this derivation could have be done in the physicists way, by simple geometrical arguments! But this way is more rigorous and, probably, an overkill! But who cares, right?
      – Davide Morgante
      Sep 2 at 21:41




      Sorry for the long post and for taking so long! I wanted to write down every step so that it would be as useful as possible! All this derivation could have be done in the physicists way, by simple geometrical arguments! But this way is more rigorous and, probably, an overkill! But who cares, right?
      – Davide Morgante
      Sep 2 at 21:41




      1




      1




      +1, endorsed! Special thanks for doing all that algebra! Cheers! 😉
      – Robert Lewis
      Sep 3 at 0:57




      +1, endorsed! Special thanks for doing all that algebra! Cheers! 😉
      – Robert Lewis
      Sep 3 at 0:57




      1




      1




      Thanks! Just what I needed! Probably doesn't help I pulled this off an MIT site while I'm still in high school though!
      – Shadow Sniper
      Sep 3 at 11:58





      Thanks! Just what I needed! Probably doesn't help I pulled this off an MIT site while I'm still in high school though!
      – Shadow Sniper
      Sep 3 at 11:58













      @ShadowSniper I think that with a high school education you could understand this! The only "out of the reach" concept could be the chain rule with partial differentiation! All the other calculations are simple algebraic manipulations and the use of the famous trigonometric identity! It's just a little bit tedious
      – Davide Morgante
      Sep 3 at 13:22





      @ShadowSniper I think that with a high school education you could understand this! The only "out of the reach" concept could be the chain rule with partial differentiation! All the other calculations are simple algebraic manipulations and the use of the famous trigonometric identity! It's just a little bit tedious
      – Davide Morgante
      Sep 3 at 13:22











      up vote
      5
      down vote













      This is a (relatively tedious) application of the chain and product rule.




      $$z=r cos theta$$



      $$fracdzdt=fracddt left( r cos theta right)$$



      Applying the product rule,



      $$=fracdrdt cos theta+ fracd cos thetadt r$$



      Applying the chain rule,



      $$=dot r cos theta+fracd cos thetad theta fracd thetadt r$$



      $$=dot r cos theta-r dot theta sin theta $$



      It is a similar exercise to differentiate $rsin theta$ with respect to time.




      $$y=r sin theta sin phi$$



      $$dot y=sin phi fracddt (r sin theta)+r sin thetafracddt sin phi$$



      $$= sin phi fracddt (r sin theta)+r sin thetafracd sin phidphi fracdphidt$$



      $$=sin phi left( dot r sin theta+dot theta r cos theta right)+r dot phi sin theta cos phi$$




      $$x=r sin theta cos phi$$



      $$dot x=cos phi fracddtleft(r sin theta right)+r sin theta fracddt cos phi$$



      $$=cos phi left(dot r sin theta+dot theta r cos theta right)-r dot phi sin theta sin phi $$




      In order to calculate $dot x^2+dot y^2$ without too much trouble, make the substitution $u= dot r sin theta+dot theta r cos theta$ and $v=r dot phi sin theta$. Then we wish to calculate,



      $$(u sin phi +v cos phi)^2+(u cos phi-v sin phi)^2$$



      $$=u^2+v^2$$



      $$=(dot r sin theta+dot theta r cos theta )^2+r^2 dot phi^2 sin^2 theta$$



      Next, to calculate, $dot x^2+dot y^2+dot z^2$ note:



      $$(dot r sin theta+dot theta r cos theta )^2+left(dot r cos theta-r dot theta sin theta right)^2$$



      $$=dot r^2+r^2 dot theta^2$$



      So,



      $$dot x^2+dot y^2+dot z^2= dot r^2+r^2 dot theta^2+ r^2 dot phi^2 sin^2 theta$$



      As expected.






      share|cite|improve this answer


























        up vote
        5
        down vote













        This is a (relatively tedious) application of the chain and product rule.




        $$z=r cos theta$$



        $$fracdzdt=fracddt left( r cos theta right)$$



        Applying the product rule,



        $$=fracdrdt cos theta+ fracd cos thetadt r$$



        Applying the chain rule,



        $$=dot r cos theta+fracd cos thetad theta fracd thetadt r$$



        $$=dot r cos theta-r dot theta sin theta $$



        It is a similar exercise to differentiate $rsin theta$ with respect to time.




        $$y=r sin theta sin phi$$



        $$dot y=sin phi fracddt (r sin theta)+r sin thetafracddt sin phi$$



        $$= sin phi fracddt (r sin theta)+r sin thetafracd sin phidphi fracdphidt$$



        $$=sin phi left( dot r sin theta+dot theta r cos theta right)+r dot phi sin theta cos phi$$




        $$x=r sin theta cos phi$$



        $$dot x=cos phi fracddtleft(r sin theta right)+r sin theta fracddt cos phi$$



        $$=cos phi left(dot r sin theta+dot theta r cos theta right)-r dot phi sin theta sin phi $$




        In order to calculate $dot x^2+dot y^2$ without too much trouble, make the substitution $u= dot r sin theta+dot theta r cos theta$ and $v=r dot phi sin theta$. Then we wish to calculate,



        $$(u sin phi +v cos phi)^2+(u cos phi-v sin phi)^2$$



        $$=u^2+v^2$$



        $$=(dot r sin theta+dot theta r cos theta )^2+r^2 dot phi^2 sin^2 theta$$



        Next, to calculate, $dot x^2+dot y^2+dot z^2$ note:



        $$(dot r sin theta+dot theta r cos theta )^2+left(dot r cos theta-r dot theta sin theta right)^2$$



        $$=dot r^2+r^2 dot theta^2$$



        So,



        $$dot x^2+dot y^2+dot z^2= dot r^2+r^2 dot theta^2+ r^2 dot phi^2 sin^2 theta$$



        As expected.






        share|cite|improve this answer
























          up vote
          5
          down vote










          up vote
          5
          down vote









          This is a (relatively tedious) application of the chain and product rule.




          $$z=r cos theta$$



          $$fracdzdt=fracddt left( r cos theta right)$$



          Applying the product rule,



          $$=fracdrdt cos theta+ fracd cos thetadt r$$



          Applying the chain rule,



          $$=dot r cos theta+fracd cos thetad theta fracd thetadt r$$



          $$=dot r cos theta-r dot theta sin theta $$



          It is a similar exercise to differentiate $rsin theta$ with respect to time.




          $$y=r sin theta sin phi$$



          $$dot y=sin phi fracddt (r sin theta)+r sin thetafracddt sin phi$$



          $$= sin phi fracddt (r sin theta)+r sin thetafracd sin phidphi fracdphidt$$



          $$=sin phi left( dot r sin theta+dot theta r cos theta right)+r dot phi sin theta cos phi$$




          $$x=r sin theta cos phi$$



          $$dot x=cos phi fracddtleft(r sin theta right)+r sin theta fracddt cos phi$$



          $$=cos phi left(dot r sin theta+dot theta r cos theta right)-r dot phi sin theta sin phi $$




          In order to calculate $dot x^2+dot y^2$ without too much trouble, make the substitution $u= dot r sin theta+dot theta r cos theta$ and $v=r dot phi sin theta$. Then we wish to calculate,



          $$(u sin phi +v cos phi)^2+(u cos phi-v sin phi)^2$$



          $$=u^2+v^2$$



          $$=(dot r sin theta+dot theta r cos theta )^2+r^2 dot phi^2 sin^2 theta$$



          Next, to calculate, $dot x^2+dot y^2+dot z^2$ note:



          $$(dot r sin theta+dot theta r cos theta )^2+left(dot r cos theta-r dot theta sin theta right)^2$$



          $$=dot r^2+r^2 dot theta^2$$



          So,



          $$dot x^2+dot y^2+dot z^2= dot r^2+r^2 dot theta^2+ r^2 dot phi^2 sin^2 theta$$



          As expected.






          share|cite|improve this answer














          This is a (relatively tedious) application of the chain and product rule.




          $$z=r cos theta$$



          $$fracdzdt=fracddt left( r cos theta right)$$



          Applying the product rule,



          $$=fracdrdt cos theta+ fracd cos thetadt r$$



          Applying the chain rule,



          $$=dot r cos theta+fracd cos thetad theta fracd thetadt r$$



          $$=dot r cos theta-r dot theta sin theta $$



          It is a similar exercise to differentiate $rsin theta$ with respect to time.




          $$y=r sin theta sin phi$$



          $$dot y=sin phi fracddt (r sin theta)+r sin thetafracddt sin phi$$



          $$= sin phi fracddt (r sin theta)+r sin thetafracd sin phidphi fracdphidt$$



          $$=sin phi left( dot r sin theta+dot theta r cos theta right)+r dot phi sin theta cos phi$$




          $$x=r sin theta cos phi$$



          $$dot x=cos phi fracddtleft(r sin theta right)+r sin theta fracddt cos phi$$



          $$=cos phi left(dot r sin theta+dot theta r cos theta right)-r dot phi sin theta sin phi $$




          In order to calculate $dot x^2+dot y^2$ without too much trouble, make the substitution $u= dot r sin theta+dot theta r cos theta$ and $v=r dot phi sin theta$. Then we wish to calculate,



          $$(u sin phi +v cos phi)^2+(u cos phi-v sin phi)^2$$



          $$=u^2+v^2$$



          $$=(dot r sin theta+dot theta r cos theta )^2+r^2 dot phi^2 sin^2 theta$$



          Next, to calculate, $dot x^2+dot y^2+dot z^2$ note:



          $$(dot r sin theta+dot theta r cos theta )^2+left(dot r cos theta-r dot theta sin theta right)^2$$



          $$=dot r^2+r^2 dot theta^2$$



          So,



          $$dot x^2+dot y^2+dot z^2= dot r^2+r^2 dot theta^2+ r^2 dot phi^2 sin^2 theta$$



          As expected.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Sep 2 at 22:22

























          answered Sep 2 at 21:50









          Ahmed S. Attaalla

          14.1k11747




          14.1k11747




















              up vote
              2
              down vote













              To convert the cartesian expression for kinetic energy,



              $T = dfracm2(dot x^2 + dot y^2 + dot z^2) tag 1$



              into sperical coordinates $r,phi, theta$ such that



              $x = r sin theta cos phi, tag 2$



              $y = rsin theta sin phi, tag 3$



              $z = rcos theta, tag4$



              we merely need employ two standard results from elementary calculus, namely, the Leibniz product rule and the chain rule; the calculations are all in the realm of basic first-order differentiation using these two principles. I will start by illustrating how these concepts apply to $z$ (4), since it is the simplest of the three expressions (2)-(4); from (4), by the product rule, where I use $dot$ and $´$ both to represent the $t$-derivative,



              $dot z = dot r cos theta + r (cos theta)'; tag 5$



              we apply the chain rule to (5):



              $(cos theta)' = left (dfracdcos thetadtheta right ) dot theta = -dot theta sin theta; tag 6$



              thus (5) becomes



              $dot z = dot r cos theta - r dot theta sin theta; tag 7$



              we similarly handle $x$ as in (2): again, the product rule yields



              $dot x = dot r sin theta cos phi + r(sin theta)'cos phi + rsin theta (cos phi)', tag 8$



              and again we apply the chain rule, this time twice:



              $(sin theta)' = dfracdsin thetadtheta dot theta = dot theta cos theta, tag 9$



              $(cos phi)' = dfracdcos phid phi dot phi = -dot phi sin phi; tag10$



              assembling (8)-(10) together:



              $dot x = dot r sin theta cos phi + rdot theta cos theta sin phi - rdot phi sin theta sin phi; tag11$



              y a parellel procedure, first using the Leibniz and the chain rule, we also have



              $dot y = dot r sin theta sin phi + r dot theta cos theta sin phi + r dot phi sin theta cos phi; tag12$



              with (7), (11)-(12) at hand, calculating $dot x^2 + dot y^2 + dot z^2$ in sphericals involves no more than a good slug o' algebra; but there is really nothing to see in it that hasn't been very nicely and more than adequately presented by our colleagues David Morgante and
              Ahmed S. Ataalla.



              So I think I'll leave off now. My main point and interest here has been to point out how the Leibniz and chain rules, both results of basic calculus, are used to effect the transformation of the velocities, which then leads to the expression for $T$ in spherical coordinates, as others have shown.






              share|cite|improve this answer


























                up vote
                2
                down vote













                To convert the cartesian expression for kinetic energy,



                $T = dfracm2(dot x^2 + dot y^2 + dot z^2) tag 1$



                into sperical coordinates $r,phi, theta$ such that



                $x = r sin theta cos phi, tag 2$



                $y = rsin theta sin phi, tag 3$



                $z = rcos theta, tag4$



                we merely need employ two standard results from elementary calculus, namely, the Leibniz product rule and the chain rule; the calculations are all in the realm of basic first-order differentiation using these two principles. I will start by illustrating how these concepts apply to $z$ (4), since it is the simplest of the three expressions (2)-(4); from (4), by the product rule, where I use $dot$ and $´$ both to represent the $t$-derivative,



                $dot z = dot r cos theta + r (cos theta)'; tag 5$



                we apply the chain rule to (5):



                $(cos theta)' = left (dfracdcos thetadtheta right ) dot theta = -dot theta sin theta; tag 6$



                thus (5) becomes



                $dot z = dot r cos theta - r dot theta sin theta; tag 7$



                we similarly handle $x$ as in (2): again, the product rule yields



                $dot x = dot r sin theta cos phi + r(sin theta)'cos phi + rsin theta (cos phi)', tag 8$



                and again we apply the chain rule, this time twice:



                $(sin theta)' = dfracdsin thetadtheta dot theta = dot theta cos theta, tag 9$



                $(cos phi)' = dfracdcos phid phi dot phi = -dot phi sin phi; tag10$



                assembling (8)-(10) together:



                $dot x = dot r sin theta cos phi + rdot theta cos theta sin phi - rdot phi sin theta sin phi; tag11$



                y a parellel procedure, first using the Leibniz and the chain rule, we also have



                $dot y = dot r sin theta sin phi + r dot theta cos theta sin phi + r dot phi sin theta cos phi; tag12$



                with (7), (11)-(12) at hand, calculating $dot x^2 + dot y^2 + dot z^2$ in sphericals involves no more than a good slug o' algebra; but there is really nothing to see in it that hasn't been very nicely and more than adequately presented by our colleagues David Morgante and
                Ahmed S. Ataalla.



                So I think I'll leave off now. My main point and interest here has been to point out how the Leibniz and chain rules, both results of basic calculus, are used to effect the transformation of the velocities, which then leads to the expression for $T$ in spherical coordinates, as others have shown.






                share|cite|improve this answer
























                  up vote
                  2
                  down vote










                  up vote
                  2
                  down vote









                  To convert the cartesian expression for kinetic energy,



                  $T = dfracm2(dot x^2 + dot y^2 + dot z^2) tag 1$



                  into sperical coordinates $r,phi, theta$ such that



                  $x = r sin theta cos phi, tag 2$



                  $y = rsin theta sin phi, tag 3$



                  $z = rcos theta, tag4$



                  we merely need employ two standard results from elementary calculus, namely, the Leibniz product rule and the chain rule; the calculations are all in the realm of basic first-order differentiation using these two principles. I will start by illustrating how these concepts apply to $z$ (4), since it is the simplest of the three expressions (2)-(4); from (4), by the product rule, where I use $dot$ and $´$ both to represent the $t$-derivative,



                  $dot z = dot r cos theta + r (cos theta)'; tag 5$



                  we apply the chain rule to (5):



                  $(cos theta)' = left (dfracdcos thetadtheta right ) dot theta = -dot theta sin theta; tag 6$



                  thus (5) becomes



                  $dot z = dot r cos theta - r dot theta sin theta; tag 7$



                  we similarly handle $x$ as in (2): again, the product rule yields



                  $dot x = dot r sin theta cos phi + r(sin theta)'cos phi + rsin theta (cos phi)', tag 8$



                  and again we apply the chain rule, this time twice:



                  $(sin theta)' = dfracdsin thetadtheta dot theta = dot theta cos theta, tag 9$



                  $(cos phi)' = dfracdcos phid phi dot phi = -dot phi sin phi; tag10$



                  assembling (8)-(10) together:



                  $dot x = dot r sin theta cos phi + rdot theta cos theta sin phi - rdot phi sin theta sin phi; tag11$



                  y a parellel procedure, first using the Leibniz and the chain rule, we also have



                  $dot y = dot r sin theta sin phi + r dot theta cos theta sin phi + r dot phi sin theta cos phi; tag12$



                  with (7), (11)-(12) at hand, calculating $dot x^2 + dot y^2 + dot z^2$ in sphericals involves no more than a good slug o' algebra; but there is really nothing to see in it that hasn't been very nicely and more than adequately presented by our colleagues David Morgante and
                  Ahmed S. Ataalla.



                  So I think I'll leave off now. My main point and interest here has been to point out how the Leibniz and chain rules, both results of basic calculus, are used to effect the transformation of the velocities, which then leads to the expression for $T$ in spherical coordinates, as others have shown.






                  share|cite|improve this answer














                  To convert the cartesian expression for kinetic energy,



                  $T = dfracm2(dot x^2 + dot y^2 + dot z^2) tag 1$



                  into sperical coordinates $r,phi, theta$ such that



                  $x = r sin theta cos phi, tag 2$



                  $y = rsin theta sin phi, tag 3$



                  $z = rcos theta, tag4$



                  we merely need employ two standard results from elementary calculus, namely, the Leibniz product rule and the chain rule; the calculations are all in the realm of basic first-order differentiation using these two principles. I will start by illustrating how these concepts apply to $z$ (4), since it is the simplest of the three expressions (2)-(4); from (4), by the product rule, where I use $dot$ and $´$ both to represent the $t$-derivative,



                  $dot z = dot r cos theta + r (cos theta)'; tag 5$



                  we apply the chain rule to (5):



                  $(cos theta)' = left (dfracdcos thetadtheta right ) dot theta = -dot theta sin theta; tag 6$



                  thus (5) becomes



                  $dot z = dot r cos theta - r dot theta sin theta; tag 7$



                  we similarly handle $x$ as in (2): again, the product rule yields



                  $dot x = dot r sin theta cos phi + r(sin theta)'cos phi + rsin theta (cos phi)', tag 8$



                  and again we apply the chain rule, this time twice:



                  $(sin theta)' = dfracdsin thetadtheta dot theta = dot theta cos theta, tag 9$



                  $(cos phi)' = dfracdcos phid phi dot phi = -dot phi sin phi; tag10$



                  assembling (8)-(10) together:



                  $dot x = dot r sin theta cos phi + rdot theta cos theta sin phi - rdot phi sin theta sin phi; tag11$



                  y a parellel procedure, first using the Leibniz and the chain rule, we also have



                  $dot y = dot r sin theta sin phi + r dot theta cos theta sin phi + r dot phi sin theta cos phi; tag12$



                  with (7), (11)-(12) at hand, calculating $dot x^2 + dot y^2 + dot z^2$ in sphericals involves no more than a good slug o' algebra; but there is really nothing to see in it that hasn't been very nicely and more than adequately presented by our colleagues David Morgante and
                  Ahmed S. Ataalla.



                  So I think I'll leave off now. My main point and interest here has been to point out how the Leibniz and chain rules, both results of basic calculus, are used to effect the transformation of the velocities, which then leads to the expression for $T$ in spherical coordinates, as others have shown.







                  share|cite|improve this answer














                  share|cite|improve this answer



                  share|cite|improve this answer








                  edited Sep 4 at 18:15

























                  answered Sep 3 at 4:52









                  Robert Lewis

                  38.2k22357




                  38.2k22357



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2903163%2flagrangian-mechanics-derivatives%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Comments

                      Popular posts from this blog

                      Long meetings (6-7 hours a day): Being “babysat” by supervisor

                      Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

                      Confectionery