Optimizing a parameter of an equation involving 2D vectors

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











up vote
1
down vote

favorite












Let $vecu(theta) = left<costheta, sintheta right>$



Given the formula $ttimes(vecu(theta) - vecK_1)=vecK_2$ with $vecK_1, vecK_2 in mathbbR^2$, $theta in [0, 2pi)$ and $t in mathbbR^+$, how can I find a value of $theta$ that minimizes $t$?



Note that $vecK_1$ and $vecK_2$ have values that guarantee infinitely many solutions to the equation above.



PS. I'm new to this topic and learn on my own, so I couldn't really come up with a good title. Feel free to suggest a better one, I'll gladly change it.







share|cite|improve this question























    up vote
    1
    down vote

    favorite












    Let $vecu(theta) = left<costheta, sintheta right>$



    Given the formula $ttimes(vecu(theta) - vecK_1)=vecK_2$ with $vecK_1, vecK_2 in mathbbR^2$, $theta in [0, 2pi)$ and $t in mathbbR^+$, how can I find a value of $theta$ that minimizes $t$?



    Note that $vecK_1$ and $vecK_2$ have values that guarantee infinitely many solutions to the equation above.



    PS. I'm new to this topic and learn on my own, so I couldn't really come up with a good title. Feel free to suggest a better one, I'll gladly change it.







    share|cite|improve this question





















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Let $vecu(theta) = left<costheta, sintheta right>$



      Given the formula $ttimes(vecu(theta) - vecK_1)=vecK_2$ with $vecK_1, vecK_2 in mathbbR^2$, $theta in [0, 2pi)$ and $t in mathbbR^+$, how can I find a value of $theta$ that minimizes $t$?



      Note that $vecK_1$ and $vecK_2$ have values that guarantee infinitely many solutions to the equation above.



      PS. I'm new to this topic and learn on my own, so I couldn't really come up with a good title. Feel free to suggest a better one, I'll gladly change it.







      share|cite|improve this question











      Let $vecu(theta) = left<costheta, sintheta right>$



      Given the formula $ttimes(vecu(theta) - vecK_1)=vecK_2$ with $vecK_1, vecK_2 in mathbbR^2$, $theta in [0, 2pi)$ and $t in mathbbR^+$, how can I find a value of $theta$ that minimizes $t$?



      Note that $vecK_1$ and $vecK_2$ have values that guarantee infinitely many solutions to the equation above.



      PS. I'm new to this topic and learn on my own, so I couldn't really come up with a good title. Feel free to suggest a better one, I'll gladly change it.









      share|cite|improve this question










      share|cite|improve this question




      share|cite|improve this question









      asked 14 hours ago









      Kamil Koczurek

      1065




      1065




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          Take the derivative of the vector equation (using the chain rule), and find $fracrm dtrm dtheta=0$.



          $$ rm d t , ( vecu - vecK_1) + t , left( fracpartial vecupartial theta rm dtheta right) = 0 $$



          $$ rm dt = frac t , fracpartial vecupartial thetavecK_1 - vecu rm dtheta =0 $$



          which has the solution:



          $$ t,left< -sin theta, cos theta right> = 0$$



          or $$t=0$$






          share|cite|improve this answer























          • What is more interesting is finding $fracrm dthetarm dt=0$ which is $theta = rm atanleft( fracKy_1Kx_1 right) $.
            – ja72
            13 hours ago










          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%2f2873090%2foptimizing-a-parameter-of-an-equation-involving-2d-vectors%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote













          Take the derivative of the vector equation (using the chain rule), and find $fracrm dtrm dtheta=0$.



          $$ rm d t , ( vecu - vecK_1) + t , left( fracpartial vecupartial theta rm dtheta right) = 0 $$



          $$ rm dt = frac t , fracpartial vecupartial thetavecK_1 - vecu rm dtheta =0 $$



          which has the solution:



          $$ t,left< -sin theta, cos theta right> = 0$$



          or $$t=0$$






          share|cite|improve this answer























          • What is more interesting is finding $fracrm dthetarm dt=0$ which is $theta = rm atanleft( fracKy_1Kx_1 right) $.
            – ja72
            13 hours ago














          up vote
          1
          down vote













          Take the derivative of the vector equation (using the chain rule), and find $fracrm dtrm dtheta=0$.



          $$ rm d t , ( vecu - vecK_1) + t , left( fracpartial vecupartial theta rm dtheta right) = 0 $$



          $$ rm dt = frac t , fracpartial vecupartial thetavecK_1 - vecu rm dtheta =0 $$



          which has the solution:



          $$ t,left< -sin theta, cos theta right> = 0$$



          or $$t=0$$






          share|cite|improve this answer























          • What is more interesting is finding $fracrm dthetarm dt=0$ which is $theta = rm atanleft( fracKy_1Kx_1 right) $.
            – ja72
            13 hours ago












          up vote
          1
          down vote










          up vote
          1
          down vote









          Take the derivative of the vector equation (using the chain rule), and find $fracrm dtrm dtheta=0$.



          $$ rm d t , ( vecu - vecK_1) + t , left( fracpartial vecupartial theta rm dtheta right) = 0 $$



          $$ rm dt = frac t , fracpartial vecupartial thetavecK_1 - vecu rm dtheta =0 $$



          which has the solution:



          $$ t,left< -sin theta, cos theta right> = 0$$



          or $$t=0$$






          share|cite|improve this answer















          Take the derivative of the vector equation (using the chain rule), and find $fracrm dtrm dtheta=0$.



          $$ rm d t , ( vecu - vecK_1) + t , left( fracpartial vecupartial theta rm dtheta right) = 0 $$



          $$ rm dt = frac t , fracpartial vecupartial thetavecK_1 - vecu rm dtheta =0 $$



          which has the solution:



          $$ t,left< -sin theta, cos theta right> = 0$$



          or $$t=0$$







          share|cite|improve this answer















          share|cite|improve this answer



          share|cite|improve this answer








          edited 13 hours ago









          mathreadler

          13.5k71757




          13.5k71757











          answered 13 hours ago









          ja72

          7,16411641




          7,16411641











          • What is more interesting is finding $fracrm dthetarm dt=0$ which is $theta = rm atanleft( fracKy_1Kx_1 right) $.
            – ja72
            13 hours ago
















          • What is more interesting is finding $fracrm dthetarm dt=0$ which is $theta = rm atanleft( fracKy_1Kx_1 right) $.
            – ja72
            13 hours ago















          What is more interesting is finding $fracrm dthetarm dt=0$ which is $theta = rm atanleft( fracKy_1Kx_1 right) $.
          – ja72
          13 hours ago




          What is more interesting is finding $fracrm dthetarm dt=0$ which is $theta = rm atanleft( fracKy_1Kx_1 right) $.
          – ja72
          13 hours ago












           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2873090%2foptimizing-a-parameter-of-an-equation-involving-2d-vectors%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What is the equation of a 3D cone with generalised tilt?

          Relationship between determinant of matrix and determinant of adjoint?

          Color the edges and diagonals of a regular polygon