Find third triangle vertex given other 2 and lengths, without trigonometry












0














Problem setup

Given the coorinates of points A, B and lengths of all sides, point C should be found. I have a solution which relies on tangent equation and cosine rule




$φ_1 = arctan2(B_y - A_y, B_x - A_x)$



$φ_2 = arccosleft(dfrac{l_1^2 + l_3^2 - l_2^2}{2cdot l_1cdot l_3}right) $



$C = A + l_1cdot[cos(φ_1±φ_2)$; $sin(φ_1±φ_2)]$




Where $A_x$, $A_y$, $B_x$, $B_y$ are the given coordinates and $l_1$, $l_2$, $l_3$ are lengths of $AC$, $BC$ and $AB$ respectively. The $±$ sign is present because two triangles can satisfy the problem.



Now, the issue with such solution is that this is a part of a bigger problem. I will have to substitute these equations into other equations which I will substitute into other equations... And in the end I'll have to find the invert function of the whole thing. Such solution gives several levels of nested trigonometric functions and inverting that is nearly impossible. That's why I'm looking for an algebraic solution which won't rely on trigonometry.



My attempt was to write down two circle equations:




$(C_x-A_x)^2+(C_y-A_y)=l_1^2$



$(C_x-B_x)^2+(C_y-B_y)=l_2^2$




Then i open the parentheses and get:




$C_x^2+C_y^2+A_x^2+A_y^2-2C_xA_x-2C_yA_y=l_1^2$



$C_x^2+C_y^2+B_x^2+B_y^2-2C_xB_x-2C_yB_y=l_2^2$




And then I don't really know what to do with that. I tried substracting one equation from another and got the dot product equation:




$A_x^2+A_y^2-B_x^2-B_y^2-2C_xA_x-2C_yA_y+2C_xB_x+2C_yB_y=l_1^2-l_2^2$



$C_x(B_x-A_x)+C_y(B_y-A_y)=dfrac{l_1^2-l_2^2+|B|^2-|A|^2}{2}$



$Ccdot AB=dfrac{l_1^2-l_2^2+|B|^2-|A|^2}{2}$




That isn't really helping. No idea how to derive the coordinates from that.



I'd really appreciate a solution without trigonometry. It can help me with the big problem I was trying to solve for a very long while, the six-bar linkage.










share|cite|improve this question



























    0














    Problem setup

    Given the coorinates of points A, B and lengths of all sides, point C should be found. I have a solution which relies on tangent equation and cosine rule




    $φ_1 = arctan2(B_y - A_y, B_x - A_x)$



    $φ_2 = arccosleft(dfrac{l_1^2 + l_3^2 - l_2^2}{2cdot l_1cdot l_3}right) $



    $C = A + l_1cdot[cos(φ_1±φ_2)$; $sin(φ_1±φ_2)]$




    Where $A_x$, $A_y$, $B_x$, $B_y$ are the given coordinates and $l_1$, $l_2$, $l_3$ are lengths of $AC$, $BC$ and $AB$ respectively. The $±$ sign is present because two triangles can satisfy the problem.



    Now, the issue with such solution is that this is a part of a bigger problem. I will have to substitute these equations into other equations which I will substitute into other equations... And in the end I'll have to find the invert function of the whole thing. Such solution gives several levels of nested trigonometric functions and inverting that is nearly impossible. That's why I'm looking for an algebraic solution which won't rely on trigonometry.



    My attempt was to write down two circle equations:




    $(C_x-A_x)^2+(C_y-A_y)=l_1^2$



    $(C_x-B_x)^2+(C_y-B_y)=l_2^2$




    Then i open the parentheses and get:




    $C_x^2+C_y^2+A_x^2+A_y^2-2C_xA_x-2C_yA_y=l_1^2$



    $C_x^2+C_y^2+B_x^2+B_y^2-2C_xB_x-2C_yB_y=l_2^2$




    And then I don't really know what to do with that. I tried substracting one equation from another and got the dot product equation:




    $A_x^2+A_y^2-B_x^2-B_y^2-2C_xA_x-2C_yA_y+2C_xB_x+2C_yB_y=l_1^2-l_2^2$



    $C_x(B_x-A_x)+C_y(B_y-A_y)=dfrac{l_1^2-l_2^2+|B|^2-|A|^2}{2}$



    $Ccdot AB=dfrac{l_1^2-l_2^2+|B|^2-|A|^2}{2}$




    That isn't really helping. No idea how to derive the coordinates from that.



    I'd really appreciate a solution without trigonometry. It can help me with the big problem I was trying to solve for a very long while, the six-bar linkage.










    share|cite|improve this question

























      0












      0








      0







      Problem setup

      Given the coorinates of points A, B and lengths of all sides, point C should be found. I have a solution which relies on tangent equation and cosine rule




      $φ_1 = arctan2(B_y - A_y, B_x - A_x)$



      $φ_2 = arccosleft(dfrac{l_1^2 + l_3^2 - l_2^2}{2cdot l_1cdot l_3}right) $



      $C = A + l_1cdot[cos(φ_1±φ_2)$; $sin(φ_1±φ_2)]$




      Where $A_x$, $A_y$, $B_x$, $B_y$ are the given coordinates and $l_1$, $l_2$, $l_3$ are lengths of $AC$, $BC$ and $AB$ respectively. The $±$ sign is present because two triangles can satisfy the problem.



      Now, the issue with such solution is that this is a part of a bigger problem. I will have to substitute these equations into other equations which I will substitute into other equations... And in the end I'll have to find the invert function of the whole thing. Such solution gives several levels of nested trigonometric functions and inverting that is nearly impossible. That's why I'm looking for an algebraic solution which won't rely on trigonometry.



      My attempt was to write down two circle equations:




      $(C_x-A_x)^2+(C_y-A_y)=l_1^2$



      $(C_x-B_x)^2+(C_y-B_y)=l_2^2$




      Then i open the parentheses and get:




      $C_x^2+C_y^2+A_x^2+A_y^2-2C_xA_x-2C_yA_y=l_1^2$



      $C_x^2+C_y^2+B_x^2+B_y^2-2C_xB_x-2C_yB_y=l_2^2$




      And then I don't really know what to do with that. I tried substracting one equation from another and got the dot product equation:




      $A_x^2+A_y^2-B_x^2-B_y^2-2C_xA_x-2C_yA_y+2C_xB_x+2C_yB_y=l_1^2-l_2^2$



      $C_x(B_x-A_x)+C_y(B_y-A_y)=dfrac{l_1^2-l_2^2+|B|^2-|A|^2}{2}$



      $Ccdot AB=dfrac{l_1^2-l_2^2+|B|^2-|A|^2}{2}$




      That isn't really helping. No idea how to derive the coordinates from that.



      I'd really appreciate a solution without trigonometry. It can help me with the big problem I was trying to solve for a very long while, the six-bar linkage.










      share|cite|improve this question













      Problem setup

      Given the coorinates of points A, B and lengths of all sides, point C should be found. I have a solution which relies on tangent equation and cosine rule




      $φ_1 = arctan2(B_y - A_y, B_x - A_x)$



      $φ_2 = arccosleft(dfrac{l_1^2 + l_3^2 - l_2^2}{2cdot l_1cdot l_3}right) $



      $C = A + l_1cdot[cos(φ_1±φ_2)$; $sin(φ_1±φ_2)]$




      Where $A_x$, $A_y$, $B_x$, $B_y$ are the given coordinates and $l_1$, $l_2$, $l_3$ are lengths of $AC$, $BC$ and $AB$ respectively. The $±$ sign is present because two triangles can satisfy the problem.



      Now, the issue with such solution is that this is a part of a bigger problem. I will have to substitute these equations into other equations which I will substitute into other equations... And in the end I'll have to find the invert function of the whole thing. Such solution gives several levels of nested trigonometric functions and inverting that is nearly impossible. That's why I'm looking for an algebraic solution which won't rely on trigonometry.



      My attempt was to write down two circle equations:




      $(C_x-A_x)^2+(C_y-A_y)=l_1^2$



      $(C_x-B_x)^2+(C_y-B_y)=l_2^2$




      Then i open the parentheses and get:




      $C_x^2+C_y^2+A_x^2+A_y^2-2C_xA_x-2C_yA_y=l_1^2$



      $C_x^2+C_y^2+B_x^2+B_y^2-2C_xB_x-2C_yB_y=l_2^2$




      And then I don't really know what to do with that. I tried substracting one equation from another and got the dot product equation:




      $A_x^2+A_y^2-B_x^2-B_y^2-2C_xA_x-2C_yA_y+2C_xB_x+2C_yB_y=l_1^2-l_2^2$



      $C_x(B_x-A_x)+C_y(B_y-A_y)=dfrac{l_1^2-l_2^2+|B|^2-|A|^2}{2}$



      $Ccdot AB=dfrac{l_1^2-l_2^2+|B|^2-|A|^2}{2}$




      That isn't really helping. No idea how to derive the coordinates from that.



      I'd really appreciate a solution without trigonometry. It can help me with the big problem I was trying to solve for a very long while, the six-bar linkage.







      linear-algebra analytic-geometry triangle






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Dec 1 '18 at 14:41









      Naiten

      134




      134






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Let
          begin{align}
          hat u_x &= frac{B_x - A_x}{l_3}, & hat u_y &= frac{B_y - A_y}{l_3},\
          hat v_x &= -hat u_y, & hat v_y &= hat v_x.
          end{align}

          That is, $hat u = (1/l_3) AB,$ so $hat u$ is a unit vector in the direction $AB,$ and $hat v$ is a unit vector orthogonal to $hat u.$



          Then
          $ C = A + (ACcdothat u) hat u pm (ACcdothat v) hat v,$ where



          begin{align}
          ACcdothat u &= frac{AC cdot AB}{l_3}
          = lVert ACrVert cosphi_2
          = l_1 left(frac{l_1^2 + l_3^2 - l_2^2}{2 l_1 l_3}right)
          = frac{l_1^2 + l_3^2 - l_2^2}{2 l_3},\
          ACcdothat v &= lVert ACrVert sinphi_2
          = l_1 sqrt{1 - left(frac{l_1^2 + l_3^2 - l_2^2}{2 l_1 l_3}right)^2}
          = frac{sqrt{4 l_1^2 l_3^2 - (l_1^2 + l_3^2 - l_2^2)^2}}{2 l_3}.
          end{align}



          The $pm$ sign represents the two possible placements for $C.$



          While this derivation happens to mention a sine and cosine in passing, notice that there will be no trig functions in the final result.
          In fact, you could have gotten this result from your last equation with some inspiration and additional effort.



          Another way to look at this is to consider the question
          How to plot a triangle, given three side lengths?
          In order to plot $A$ and $B$ in general position we have to use $hat u$ and $hat v$ as a basis for the coordinates found in the answers to that question.






          share|cite|improve this answer























          • Thanks, you really nailed it. Not sure if I'll be able to solve the linkage with this, but it's a totally legit solution.
            – Naiten
            Dec 2 '18 at 0:54













          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%2f3021422%2ffind-third-triangle-vertex-given-other-2-and-lengths-without-trigonometry%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Let
          begin{align}
          hat u_x &= frac{B_x - A_x}{l_3}, & hat u_y &= frac{B_y - A_y}{l_3},\
          hat v_x &= -hat u_y, & hat v_y &= hat v_x.
          end{align}

          That is, $hat u = (1/l_3) AB,$ so $hat u$ is a unit vector in the direction $AB,$ and $hat v$ is a unit vector orthogonal to $hat u.$



          Then
          $ C = A + (ACcdothat u) hat u pm (ACcdothat v) hat v,$ where



          begin{align}
          ACcdothat u &= frac{AC cdot AB}{l_3}
          = lVert ACrVert cosphi_2
          = l_1 left(frac{l_1^2 + l_3^2 - l_2^2}{2 l_1 l_3}right)
          = frac{l_1^2 + l_3^2 - l_2^2}{2 l_3},\
          ACcdothat v &= lVert ACrVert sinphi_2
          = l_1 sqrt{1 - left(frac{l_1^2 + l_3^2 - l_2^2}{2 l_1 l_3}right)^2}
          = frac{sqrt{4 l_1^2 l_3^2 - (l_1^2 + l_3^2 - l_2^2)^2}}{2 l_3}.
          end{align}



          The $pm$ sign represents the two possible placements for $C.$



          While this derivation happens to mention a sine and cosine in passing, notice that there will be no trig functions in the final result.
          In fact, you could have gotten this result from your last equation with some inspiration and additional effort.



          Another way to look at this is to consider the question
          How to plot a triangle, given three side lengths?
          In order to plot $A$ and $B$ in general position we have to use $hat u$ and $hat v$ as a basis for the coordinates found in the answers to that question.






          share|cite|improve this answer























          • Thanks, you really nailed it. Not sure if I'll be able to solve the linkage with this, but it's a totally legit solution.
            – Naiten
            Dec 2 '18 at 0:54


















          0














          Let
          begin{align}
          hat u_x &= frac{B_x - A_x}{l_3}, & hat u_y &= frac{B_y - A_y}{l_3},\
          hat v_x &= -hat u_y, & hat v_y &= hat v_x.
          end{align}

          That is, $hat u = (1/l_3) AB,$ so $hat u$ is a unit vector in the direction $AB,$ and $hat v$ is a unit vector orthogonal to $hat u.$



          Then
          $ C = A + (ACcdothat u) hat u pm (ACcdothat v) hat v,$ where



          begin{align}
          ACcdothat u &= frac{AC cdot AB}{l_3}
          = lVert ACrVert cosphi_2
          = l_1 left(frac{l_1^2 + l_3^2 - l_2^2}{2 l_1 l_3}right)
          = frac{l_1^2 + l_3^2 - l_2^2}{2 l_3},\
          ACcdothat v &= lVert ACrVert sinphi_2
          = l_1 sqrt{1 - left(frac{l_1^2 + l_3^2 - l_2^2}{2 l_1 l_3}right)^2}
          = frac{sqrt{4 l_1^2 l_3^2 - (l_1^2 + l_3^2 - l_2^2)^2}}{2 l_3}.
          end{align}



          The $pm$ sign represents the two possible placements for $C.$



          While this derivation happens to mention a sine and cosine in passing, notice that there will be no trig functions in the final result.
          In fact, you could have gotten this result from your last equation with some inspiration and additional effort.



          Another way to look at this is to consider the question
          How to plot a triangle, given three side lengths?
          In order to plot $A$ and $B$ in general position we have to use $hat u$ and $hat v$ as a basis for the coordinates found in the answers to that question.






          share|cite|improve this answer























          • Thanks, you really nailed it. Not sure if I'll be able to solve the linkage with this, but it's a totally legit solution.
            – Naiten
            Dec 2 '18 at 0:54
















          0












          0








          0






          Let
          begin{align}
          hat u_x &= frac{B_x - A_x}{l_3}, & hat u_y &= frac{B_y - A_y}{l_3},\
          hat v_x &= -hat u_y, & hat v_y &= hat v_x.
          end{align}

          That is, $hat u = (1/l_3) AB,$ so $hat u$ is a unit vector in the direction $AB,$ and $hat v$ is a unit vector orthogonal to $hat u.$



          Then
          $ C = A + (ACcdothat u) hat u pm (ACcdothat v) hat v,$ where



          begin{align}
          ACcdothat u &= frac{AC cdot AB}{l_3}
          = lVert ACrVert cosphi_2
          = l_1 left(frac{l_1^2 + l_3^2 - l_2^2}{2 l_1 l_3}right)
          = frac{l_1^2 + l_3^2 - l_2^2}{2 l_3},\
          ACcdothat v &= lVert ACrVert sinphi_2
          = l_1 sqrt{1 - left(frac{l_1^2 + l_3^2 - l_2^2}{2 l_1 l_3}right)^2}
          = frac{sqrt{4 l_1^2 l_3^2 - (l_1^2 + l_3^2 - l_2^2)^2}}{2 l_3}.
          end{align}



          The $pm$ sign represents the two possible placements for $C.$



          While this derivation happens to mention a sine and cosine in passing, notice that there will be no trig functions in the final result.
          In fact, you could have gotten this result from your last equation with some inspiration and additional effort.



          Another way to look at this is to consider the question
          How to plot a triangle, given three side lengths?
          In order to plot $A$ and $B$ in general position we have to use $hat u$ and $hat v$ as a basis for the coordinates found in the answers to that question.






          share|cite|improve this answer














          Let
          begin{align}
          hat u_x &= frac{B_x - A_x}{l_3}, & hat u_y &= frac{B_y - A_y}{l_3},\
          hat v_x &= -hat u_y, & hat v_y &= hat v_x.
          end{align}

          That is, $hat u = (1/l_3) AB,$ so $hat u$ is a unit vector in the direction $AB,$ and $hat v$ is a unit vector orthogonal to $hat u.$



          Then
          $ C = A + (ACcdothat u) hat u pm (ACcdothat v) hat v,$ where



          begin{align}
          ACcdothat u &= frac{AC cdot AB}{l_3}
          = lVert ACrVert cosphi_2
          = l_1 left(frac{l_1^2 + l_3^2 - l_2^2}{2 l_1 l_3}right)
          = frac{l_1^2 + l_3^2 - l_2^2}{2 l_3},\
          ACcdothat v &= lVert ACrVert sinphi_2
          = l_1 sqrt{1 - left(frac{l_1^2 + l_3^2 - l_2^2}{2 l_1 l_3}right)^2}
          = frac{sqrt{4 l_1^2 l_3^2 - (l_1^2 + l_3^2 - l_2^2)^2}}{2 l_3}.
          end{align}



          The $pm$ sign represents the two possible placements for $C.$



          While this derivation happens to mention a sine and cosine in passing, notice that there will be no trig functions in the final result.
          In fact, you could have gotten this result from your last equation with some inspiration and additional effort.



          Another way to look at this is to consider the question
          How to plot a triangle, given three side lengths?
          In order to plot $A$ and $B$ in general position we have to use $hat u$ and $hat v$ as a basis for the coordinates found in the answers to that question.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Dec 1 '18 at 17:37

























          answered Dec 1 '18 at 17:30









          David K

          52.6k340115




          52.6k340115












          • Thanks, you really nailed it. Not sure if I'll be able to solve the linkage with this, but it's a totally legit solution.
            – Naiten
            Dec 2 '18 at 0:54




















          • Thanks, you really nailed it. Not sure if I'll be able to solve the linkage with this, but it's a totally legit solution.
            – Naiten
            Dec 2 '18 at 0:54


















          Thanks, you really nailed it. Not sure if I'll be able to solve the linkage with this, but it's a totally legit solution.
          – Naiten
          Dec 2 '18 at 0:54






          Thanks, you really nailed it. Not sure if I'll be able to solve the linkage with this, but it's a totally legit solution.
          – Naiten
          Dec 2 '18 at 0:54




















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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.


          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%2f3021422%2ffind-third-triangle-vertex-given-other-2-and-lengths-without-trigonometry%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

          Wiesbaden

          Marschland

          Dieringhausen