Solve Equation of Motion when gravity is two dimentional












0












$begingroup$


How does one solve the following system of equation for Θ. Only unknown variables are Θ and t.



This is the equation of motion when gravity is two dimensional. WolfarmAlpha succeeded to solve but I fail to understand the solution.



$d_0$ is $d_x$ and $d_1$ is $d_y$,



$g_0$ is $g_x$ and $g_1$ is $g_y$



(WolframAlpha only allows single letter variable names)



wolfram alpha solver










share|cite|improve this question









$endgroup$

















    0












    $begingroup$


    How does one solve the following system of equation for Θ. Only unknown variables are Θ and t.



    This is the equation of motion when gravity is two dimensional. WolfarmAlpha succeeded to solve but I fail to understand the solution.



    $d_0$ is $d_x$ and $d_1$ is $d_y$,



    $g_0$ is $g_x$ and $g_1$ is $g_y$



    (WolframAlpha only allows single letter variable names)



    wolfram alpha solver










    share|cite|improve this question









    $endgroup$















      0












      0








      0





      $begingroup$


      How does one solve the following system of equation for Θ. Only unknown variables are Θ and t.



      This is the equation of motion when gravity is two dimensional. WolfarmAlpha succeeded to solve but I fail to understand the solution.



      $d_0$ is $d_x$ and $d_1$ is $d_y$,



      $g_0$ is $g_x$ and $g_1$ is $g_y$



      (WolframAlpha only allows single letter variable names)



      wolfram alpha solver










      share|cite|improve this question









      $endgroup$




      How does one solve the following system of equation for Θ. Only unknown variables are Θ and t.



      This is the equation of motion when gravity is two dimensional. WolfarmAlpha succeeded to solve but I fail to understand the solution.



      $d_0$ is $d_x$ and $d_1$ is $d_y$,



      $g_0$ is $g_x$ and $g_1$ is $g_y$



      (WolframAlpha only allows single letter variable names)



      wolfram alpha solver







      systems-of-equations physics jacobian






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Dec 15 '18 at 8:38









      Louis HongLouis Hong

      1197




      1197






















          2 Answers
          2






          active

          oldest

          votes


















          1












          $begingroup$

          This is still gravity in 1D. Just solve the problem with one axis along the vector sum of $g_0$ and $g_1$, and the other axis perpendicular to it.






          share|cite|improve this answer









          $endgroup$





















            0












            $begingroup$

            Based on some of its answers, I suspect Wolfram Alpha does not always treat the same variables as "known" that you do.



            Starting with these equations,
            begin{align}
            d_x &= x + Scos(theta) t + tfrac12 g_x t^2, tag1\
            d_y &= y + Ssin(theta) t + tfrac12 g_y t^2, tag2
            end{align}



            let $mathbf x = (x,y),$ $mathbf d = (d_x,d_y),$
            $mathbf v = (Scos(theta),Ssin(theta)),$ and $mathbf g = (g_x,g_y).$
            then Equations $(1)$ and $(2)$ can be expressed by a single vector equation:
            $$
            mathbf d = mathbf x + t mathbf v + tfrac12 t^2 mathbf g ,
            $$

            where $mathbf v$ is an unknown vector such that $lVertmathbf vrVert = S.$
            Collect everything except the $t mathbf v$ term on one side:
            $$
            mathbf d - mathbf x - tfrac12 t^2 mathbf g = t mathbf v.
            $$

            Square both sides (that is, take dot product of the vector with itself, or in other words, compute the square of the magnitude):
            $$
            lVertmathbf d - mathbf xrVert^2 - t^2(mathbf d - mathbf x)cdot mathbf g
            + tfrac14 t^4 lVertmathbf grVert^2 = t^2 lVertmathbf vrVert^2 = t^2 S^2.
            $$

            Collect all terms on one side and rearrange them to get
            $$
            tfrac14 t^4 lVertmathbf grVert^2
            - t^2((mathbf d - mathbf x)cdot mathbf g + S^2)
            + lVertmathbf d - mathbf xrVert^2 = 0. tag3
            $$

            If we set $a = tfrac14 lVertmathbf grVert^2,$
            $b = -((mathbf d - mathbf x)cdot mathbf g + S^2),$
            $c = lVertmathbf d - mathbf xrVert^2,$ and $u = t^2,$
            then Equation $(3)$ becomes
            $$ au^2 + bu + c = 0,$$
            which is a quadratic equation in $u$ and (if it has any solutions at all)
            has solutions only of the form
            $$ u = frac{-b pm sqrt{b^2 - 4ac}}{2a}.$$



            That is,
            $$
            t^2 = frac{(mathbf d - mathbf x)cdot mathbf g + S^2 pm
            sqrt{((mathbf d - mathbf x)cdot mathbf g + S^2)^2
            - lVertmathbf grVert^2 lVertmathbf d - mathbf xrVert^2}}
            {tfrac12 lVertmathbf grVert^2}. tag4
            $$



            Observe that there solutions only if
            $((mathbf d - mathbf x)cdot mathbf g + S^2)^2 geq
            lVertmathbf grVert^2 lVertmathbf d - mathbf xrVert^2 geq 0$

            and if the entire right-hand side of Equation $(4)$ is non-negative (since we must have $t^2 geq 0$).
            Also note that
            $$sqrt{((mathbf d - mathbf x)cdot mathbf g + S^2)^2
            - lVertmathbf grVert^2 lVertmathbf d - mathbf xrVert^2}
            < lvert (mathbf d - mathbf x)cdot mathbf g + S^2 rvert,$$

            which rules out the possibility that
            $(mathbf d - mathbf x)cdot mathbf g + S^2 < 0$
            (because if that inequality were true, the right-hand side of Equation $(4)$ would be negative).
            But if
            $(mathbf d - mathbf x)cdot mathbf g + S^2 geq
            lVertmathbf grVert lVertmathbf d - mathbf xrVert geq 0$

            then there is at least one possible value of $t^2,$ and if
            $(mathbf d - mathbf x)cdot mathbf g + S^2 >
            lVertmathbf grVert lVertmathbf d - mathbf xrVert$

            there are two possible values.



            Two possible values of $t^2$ means there is a "high" trajectory and a "low" trajectory, both of which pass through the given target point.
            Of course, for each value of $t^2$ there are two possible values of $t,$
            one positive and one negative.
            A positive value of $t$ corresponds to a projectile
            that leaves $mathbf x$ at speed $S$ at time $0$ and later arrives at $mathbf d$
            (at time $t$),
            whereas a negative value of $t$ corresponds to a projectile that first passed through $mathbf d$ at time $t$ (before time $0$) and then arrived at $mathbf x$ at speed $S$ at time $0.$
            There are always these two possibilities (if the problem has a solution and $t neq 0$) because trajectories of this kind are reversible.
            Assuming you want only non-negative values of $t,$ however, you can take the square root of $t^2.$






            share|cite|improve this answer









            $endgroup$













              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',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              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%2f3040274%2fsolve-equation-of-motion-when-gravity-is-two-dimentional%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1












              $begingroup$

              This is still gravity in 1D. Just solve the problem with one axis along the vector sum of $g_0$ and $g_1$, and the other axis perpendicular to it.






              share|cite|improve this answer









              $endgroup$


















                1












                $begingroup$

                This is still gravity in 1D. Just solve the problem with one axis along the vector sum of $g_0$ and $g_1$, and the other axis perpendicular to it.






                share|cite|improve this answer









                $endgroup$
















                  1












                  1








                  1





                  $begingroup$

                  This is still gravity in 1D. Just solve the problem with one axis along the vector sum of $g_0$ and $g_1$, and the other axis perpendicular to it.






                  share|cite|improve this answer









                  $endgroup$



                  This is still gravity in 1D. Just solve the problem with one axis along the vector sum of $g_0$ and $g_1$, and the other axis perpendicular to it.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Dec 16 '18 at 2:34









                  AndreiAndrei

                  13k21129




                  13k21129























                      0












                      $begingroup$

                      Based on some of its answers, I suspect Wolfram Alpha does not always treat the same variables as "known" that you do.



                      Starting with these equations,
                      begin{align}
                      d_x &= x + Scos(theta) t + tfrac12 g_x t^2, tag1\
                      d_y &= y + Ssin(theta) t + tfrac12 g_y t^2, tag2
                      end{align}



                      let $mathbf x = (x,y),$ $mathbf d = (d_x,d_y),$
                      $mathbf v = (Scos(theta),Ssin(theta)),$ and $mathbf g = (g_x,g_y).$
                      then Equations $(1)$ and $(2)$ can be expressed by a single vector equation:
                      $$
                      mathbf d = mathbf x + t mathbf v + tfrac12 t^2 mathbf g ,
                      $$

                      where $mathbf v$ is an unknown vector such that $lVertmathbf vrVert = S.$
                      Collect everything except the $t mathbf v$ term on one side:
                      $$
                      mathbf d - mathbf x - tfrac12 t^2 mathbf g = t mathbf v.
                      $$

                      Square both sides (that is, take dot product of the vector with itself, or in other words, compute the square of the magnitude):
                      $$
                      lVertmathbf d - mathbf xrVert^2 - t^2(mathbf d - mathbf x)cdot mathbf g
                      + tfrac14 t^4 lVertmathbf grVert^2 = t^2 lVertmathbf vrVert^2 = t^2 S^2.
                      $$

                      Collect all terms on one side and rearrange them to get
                      $$
                      tfrac14 t^4 lVertmathbf grVert^2
                      - t^2((mathbf d - mathbf x)cdot mathbf g + S^2)
                      + lVertmathbf d - mathbf xrVert^2 = 0. tag3
                      $$

                      If we set $a = tfrac14 lVertmathbf grVert^2,$
                      $b = -((mathbf d - mathbf x)cdot mathbf g + S^2),$
                      $c = lVertmathbf d - mathbf xrVert^2,$ and $u = t^2,$
                      then Equation $(3)$ becomes
                      $$ au^2 + bu + c = 0,$$
                      which is a quadratic equation in $u$ and (if it has any solutions at all)
                      has solutions only of the form
                      $$ u = frac{-b pm sqrt{b^2 - 4ac}}{2a}.$$



                      That is,
                      $$
                      t^2 = frac{(mathbf d - mathbf x)cdot mathbf g + S^2 pm
                      sqrt{((mathbf d - mathbf x)cdot mathbf g + S^2)^2
                      - lVertmathbf grVert^2 lVertmathbf d - mathbf xrVert^2}}
                      {tfrac12 lVertmathbf grVert^2}. tag4
                      $$



                      Observe that there solutions only if
                      $((mathbf d - mathbf x)cdot mathbf g + S^2)^2 geq
                      lVertmathbf grVert^2 lVertmathbf d - mathbf xrVert^2 geq 0$

                      and if the entire right-hand side of Equation $(4)$ is non-negative (since we must have $t^2 geq 0$).
                      Also note that
                      $$sqrt{((mathbf d - mathbf x)cdot mathbf g + S^2)^2
                      - lVertmathbf grVert^2 lVertmathbf d - mathbf xrVert^2}
                      < lvert (mathbf d - mathbf x)cdot mathbf g + S^2 rvert,$$

                      which rules out the possibility that
                      $(mathbf d - mathbf x)cdot mathbf g + S^2 < 0$
                      (because if that inequality were true, the right-hand side of Equation $(4)$ would be negative).
                      But if
                      $(mathbf d - mathbf x)cdot mathbf g + S^2 geq
                      lVertmathbf grVert lVertmathbf d - mathbf xrVert geq 0$

                      then there is at least one possible value of $t^2,$ and if
                      $(mathbf d - mathbf x)cdot mathbf g + S^2 >
                      lVertmathbf grVert lVertmathbf d - mathbf xrVert$

                      there are two possible values.



                      Two possible values of $t^2$ means there is a "high" trajectory and a "low" trajectory, both of which pass through the given target point.
                      Of course, for each value of $t^2$ there are two possible values of $t,$
                      one positive and one negative.
                      A positive value of $t$ corresponds to a projectile
                      that leaves $mathbf x$ at speed $S$ at time $0$ and later arrives at $mathbf d$
                      (at time $t$),
                      whereas a negative value of $t$ corresponds to a projectile that first passed through $mathbf d$ at time $t$ (before time $0$) and then arrived at $mathbf x$ at speed $S$ at time $0.$
                      There are always these two possibilities (if the problem has a solution and $t neq 0$) because trajectories of this kind are reversible.
                      Assuming you want only non-negative values of $t,$ however, you can take the square root of $t^2.$






                      share|cite|improve this answer









                      $endgroup$


















                        0












                        $begingroup$

                        Based on some of its answers, I suspect Wolfram Alpha does not always treat the same variables as "known" that you do.



                        Starting with these equations,
                        begin{align}
                        d_x &= x + Scos(theta) t + tfrac12 g_x t^2, tag1\
                        d_y &= y + Ssin(theta) t + tfrac12 g_y t^2, tag2
                        end{align}



                        let $mathbf x = (x,y),$ $mathbf d = (d_x,d_y),$
                        $mathbf v = (Scos(theta),Ssin(theta)),$ and $mathbf g = (g_x,g_y).$
                        then Equations $(1)$ and $(2)$ can be expressed by a single vector equation:
                        $$
                        mathbf d = mathbf x + t mathbf v + tfrac12 t^2 mathbf g ,
                        $$

                        where $mathbf v$ is an unknown vector such that $lVertmathbf vrVert = S.$
                        Collect everything except the $t mathbf v$ term on one side:
                        $$
                        mathbf d - mathbf x - tfrac12 t^2 mathbf g = t mathbf v.
                        $$

                        Square both sides (that is, take dot product of the vector with itself, or in other words, compute the square of the magnitude):
                        $$
                        lVertmathbf d - mathbf xrVert^2 - t^2(mathbf d - mathbf x)cdot mathbf g
                        + tfrac14 t^4 lVertmathbf grVert^2 = t^2 lVertmathbf vrVert^2 = t^2 S^2.
                        $$

                        Collect all terms on one side and rearrange them to get
                        $$
                        tfrac14 t^4 lVertmathbf grVert^2
                        - t^2((mathbf d - mathbf x)cdot mathbf g + S^2)
                        + lVertmathbf d - mathbf xrVert^2 = 0. tag3
                        $$

                        If we set $a = tfrac14 lVertmathbf grVert^2,$
                        $b = -((mathbf d - mathbf x)cdot mathbf g + S^2),$
                        $c = lVertmathbf d - mathbf xrVert^2,$ and $u = t^2,$
                        then Equation $(3)$ becomes
                        $$ au^2 + bu + c = 0,$$
                        which is a quadratic equation in $u$ and (if it has any solutions at all)
                        has solutions only of the form
                        $$ u = frac{-b pm sqrt{b^2 - 4ac}}{2a}.$$



                        That is,
                        $$
                        t^2 = frac{(mathbf d - mathbf x)cdot mathbf g + S^2 pm
                        sqrt{((mathbf d - mathbf x)cdot mathbf g + S^2)^2
                        - lVertmathbf grVert^2 lVertmathbf d - mathbf xrVert^2}}
                        {tfrac12 lVertmathbf grVert^2}. tag4
                        $$



                        Observe that there solutions only if
                        $((mathbf d - mathbf x)cdot mathbf g + S^2)^2 geq
                        lVertmathbf grVert^2 lVertmathbf d - mathbf xrVert^2 geq 0$

                        and if the entire right-hand side of Equation $(4)$ is non-negative (since we must have $t^2 geq 0$).
                        Also note that
                        $$sqrt{((mathbf d - mathbf x)cdot mathbf g + S^2)^2
                        - lVertmathbf grVert^2 lVertmathbf d - mathbf xrVert^2}
                        < lvert (mathbf d - mathbf x)cdot mathbf g + S^2 rvert,$$

                        which rules out the possibility that
                        $(mathbf d - mathbf x)cdot mathbf g + S^2 < 0$
                        (because if that inequality were true, the right-hand side of Equation $(4)$ would be negative).
                        But if
                        $(mathbf d - mathbf x)cdot mathbf g + S^2 geq
                        lVertmathbf grVert lVertmathbf d - mathbf xrVert geq 0$

                        then there is at least one possible value of $t^2,$ and if
                        $(mathbf d - mathbf x)cdot mathbf g + S^2 >
                        lVertmathbf grVert lVertmathbf d - mathbf xrVert$

                        there are two possible values.



                        Two possible values of $t^2$ means there is a "high" trajectory and a "low" trajectory, both of which pass through the given target point.
                        Of course, for each value of $t^2$ there are two possible values of $t,$
                        one positive and one negative.
                        A positive value of $t$ corresponds to a projectile
                        that leaves $mathbf x$ at speed $S$ at time $0$ and later arrives at $mathbf d$
                        (at time $t$),
                        whereas a negative value of $t$ corresponds to a projectile that first passed through $mathbf d$ at time $t$ (before time $0$) and then arrived at $mathbf x$ at speed $S$ at time $0.$
                        There are always these two possibilities (if the problem has a solution and $t neq 0$) because trajectories of this kind are reversible.
                        Assuming you want only non-negative values of $t,$ however, you can take the square root of $t^2.$






                        share|cite|improve this answer









                        $endgroup$
















                          0












                          0








                          0





                          $begingroup$

                          Based on some of its answers, I suspect Wolfram Alpha does not always treat the same variables as "known" that you do.



                          Starting with these equations,
                          begin{align}
                          d_x &= x + Scos(theta) t + tfrac12 g_x t^2, tag1\
                          d_y &= y + Ssin(theta) t + tfrac12 g_y t^2, tag2
                          end{align}



                          let $mathbf x = (x,y),$ $mathbf d = (d_x,d_y),$
                          $mathbf v = (Scos(theta),Ssin(theta)),$ and $mathbf g = (g_x,g_y).$
                          then Equations $(1)$ and $(2)$ can be expressed by a single vector equation:
                          $$
                          mathbf d = mathbf x + t mathbf v + tfrac12 t^2 mathbf g ,
                          $$

                          where $mathbf v$ is an unknown vector such that $lVertmathbf vrVert = S.$
                          Collect everything except the $t mathbf v$ term on one side:
                          $$
                          mathbf d - mathbf x - tfrac12 t^2 mathbf g = t mathbf v.
                          $$

                          Square both sides (that is, take dot product of the vector with itself, or in other words, compute the square of the magnitude):
                          $$
                          lVertmathbf d - mathbf xrVert^2 - t^2(mathbf d - mathbf x)cdot mathbf g
                          + tfrac14 t^4 lVertmathbf grVert^2 = t^2 lVertmathbf vrVert^2 = t^2 S^2.
                          $$

                          Collect all terms on one side and rearrange them to get
                          $$
                          tfrac14 t^4 lVertmathbf grVert^2
                          - t^2((mathbf d - mathbf x)cdot mathbf g + S^2)
                          + lVertmathbf d - mathbf xrVert^2 = 0. tag3
                          $$

                          If we set $a = tfrac14 lVertmathbf grVert^2,$
                          $b = -((mathbf d - mathbf x)cdot mathbf g + S^2),$
                          $c = lVertmathbf d - mathbf xrVert^2,$ and $u = t^2,$
                          then Equation $(3)$ becomes
                          $$ au^2 + bu + c = 0,$$
                          which is a quadratic equation in $u$ and (if it has any solutions at all)
                          has solutions only of the form
                          $$ u = frac{-b pm sqrt{b^2 - 4ac}}{2a}.$$



                          That is,
                          $$
                          t^2 = frac{(mathbf d - mathbf x)cdot mathbf g + S^2 pm
                          sqrt{((mathbf d - mathbf x)cdot mathbf g + S^2)^2
                          - lVertmathbf grVert^2 lVertmathbf d - mathbf xrVert^2}}
                          {tfrac12 lVertmathbf grVert^2}. tag4
                          $$



                          Observe that there solutions only if
                          $((mathbf d - mathbf x)cdot mathbf g + S^2)^2 geq
                          lVertmathbf grVert^2 lVertmathbf d - mathbf xrVert^2 geq 0$

                          and if the entire right-hand side of Equation $(4)$ is non-negative (since we must have $t^2 geq 0$).
                          Also note that
                          $$sqrt{((mathbf d - mathbf x)cdot mathbf g + S^2)^2
                          - lVertmathbf grVert^2 lVertmathbf d - mathbf xrVert^2}
                          < lvert (mathbf d - mathbf x)cdot mathbf g + S^2 rvert,$$

                          which rules out the possibility that
                          $(mathbf d - mathbf x)cdot mathbf g + S^2 < 0$
                          (because if that inequality were true, the right-hand side of Equation $(4)$ would be negative).
                          But if
                          $(mathbf d - mathbf x)cdot mathbf g + S^2 geq
                          lVertmathbf grVert lVertmathbf d - mathbf xrVert geq 0$

                          then there is at least one possible value of $t^2,$ and if
                          $(mathbf d - mathbf x)cdot mathbf g + S^2 >
                          lVertmathbf grVert lVertmathbf d - mathbf xrVert$

                          there are two possible values.



                          Two possible values of $t^2$ means there is a "high" trajectory and a "low" trajectory, both of which pass through the given target point.
                          Of course, for each value of $t^2$ there are two possible values of $t,$
                          one positive and one negative.
                          A positive value of $t$ corresponds to a projectile
                          that leaves $mathbf x$ at speed $S$ at time $0$ and later arrives at $mathbf d$
                          (at time $t$),
                          whereas a negative value of $t$ corresponds to a projectile that first passed through $mathbf d$ at time $t$ (before time $0$) and then arrived at $mathbf x$ at speed $S$ at time $0.$
                          There are always these two possibilities (if the problem has a solution and $t neq 0$) because trajectories of this kind are reversible.
                          Assuming you want only non-negative values of $t,$ however, you can take the square root of $t^2.$






                          share|cite|improve this answer









                          $endgroup$



                          Based on some of its answers, I suspect Wolfram Alpha does not always treat the same variables as "known" that you do.



                          Starting with these equations,
                          begin{align}
                          d_x &= x + Scos(theta) t + tfrac12 g_x t^2, tag1\
                          d_y &= y + Ssin(theta) t + tfrac12 g_y t^2, tag2
                          end{align}



                          let $mathbf x = (x,y),$ $mathbf d = (d_x,d_y),$
                          $mathbf v = (Scos(theta),Ssin(theta)),$ and $mathbf g = (g_x,g_y).$
                          then Equations $(1)$ and $(2)$ can be expressed by a single vector equation:
                          $$
                          mathbf d = mathbf x + t mathbf v + tfrac12 t^2 mathbf g ,
                          $$

                          where $mathbf v$ is an unknown vector such that $lVertmathbf vrVert = S.$
                          Collect everything except the $t mathbf v$ term on one side:
                          $$
                          mathbf d - mathbf x - tfrac12 t^2 mathbf g = t mathbf v.
                          $$

                          Square both sides (that is, take dot product of the vector with itself, or in other words, compute the square of the magnitude):
                          $$
                          lVertmathbf d - mathbf xrVert^2 - t^2(mathbf d - mathbf x)cdot mathbf g
                          + tfrac14 t^4 lVertmathbf grVert^2 = t^2 lVertmathbf vrVert^2 = t^2 S^2.
                          $$

                          Collect all terms on one side and rearrange them to get
                          $$
                          tfrac14 t^4 lVertmathbf grVert^2
                          - t^2((mathbf d - mathbf x)cdot mathbf g + S^2)
                          + lVertmathbf d - mathbf xrVert^2 = 0. tag3
                          $$

                          If we set $a = tfrac14 lVertmathbf grVert^2,$
                          $b = -((mathbf d - mathbf x)cdot mathbf g + S^2),$
                          $c = lVertmathbf d - mathbf xrVert^2,$ and $u = t^2,$
                          then Equation $(3)$ becomes
                          $$ au^2 + bu + c = 0,$$
                          which is a quadratic equation in $u$ and (if it has any solutions at all)
                          has solutions only of the form
                          $$ u = frac{-b pm sqrt{b^2 - 4ac}}{2a}.$$



                          That is,
                          $$
                          t^2 = frac{(mathbf d - mathbf x)cdot mathbf g + S^2 pm
                          sqrt{((mathbf d - mathbf x)cdot mathbf g + S^2)^2
                          - lVertmathbf grVert^2 lVertmathbf d - mathbf xrVert^2}}
                          {tfrac12 lVertmathbf grVert^2}. tag4
                          $$



                          Observe that there solutions only if
                          $((mathbf d - mathbf x)cdot mathbf g + S^2)^2 geq
                          lVertmathbf grVert^2 lVertmathbf d - mathbf xrVert^2 geq 0$

                          and if the entire right-hand side of Equation $(4)$ is non-negative (since we must have $t^2 geq 0$).
                          Also note that
                          $$sqrt{((mathbf d - mathbf x)cdot mathbf g + S^2)^2
                          - lVertmathbf grVert^2 lVertmathbf d - mathbf xrVert^2}
                          < lvert (mathbf d - mathbf x)cdot mathbf g + S^2 rvert,$$

                          which rules out the possibility that
                          $(mathbf d - mathbf x)cdot mathbf g + S^2 < 0$
                          (because if that inequality were true, the right-hand side of Equation $(4)$ would be negative).
                          But if
                          $(mathbf d - mathbf x)cdot mathbf g + S^2 geq
                          lVertmathbf grVert lVertmathbf d - mathbf xrVert geq 0$

                          then there is at least one possible value of $t^2,$ and if
                          $(mathbf d - mathbf x)cdot mathbf g + S^2 >
                          lVertmathbf grVert lVertmathbf d - mathbf xrVert$

                          there are two possible values.



                          Two possible values of $t^2$ means there is a "high" trajectory and a "low" trajectory, both of which pass through the given target point.
                          Of course, for each value of $t^2$ there are two possible values of $t,$
                          one positive and one negative.
                          A positive value of $t$ corresponds to a projectile
                          that leaves $mathbf x$ at speed $S$ at time $0$ and later arrives at $mathbf d$
                          (at time $t$),
                          whereas a negative value of $t$ corresponds to a projectile that first passed through $mathbf d$ at time $t$ (before time $0$) and then arrived at $mathbf x$ at speed $S$ at time $0.$
                          There are always these two possibilities (if the problem has a solution and $t neq 0$) because trajectories of this kind are reversible.
                          Assuming you want only non-negative values of $t,$ however, you can take the square root of $t^2.$







                          share|cite|improve this answer












                          share|cite|improve this answer



                          share|cite|improve this answer










                          answered Dec 16 '18 at 20:12









                          David KDavid K

                          54.9k344120




                          54.9k344120






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Mathematics Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              Use MathJax to format equations. MathJax reference.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3040274%2fsolve-equation-of-motion-when-gravity-is-two-dimentional%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Plaza Victoria

                              In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

                              How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...