Why are the two dot product definitions equal?

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











up vote
0
down vote

favorite












I have an intuitive understanding of why $adotb=|a||b|costheta$ geometrically. The projection of one vector onto another makes sense to me when explaining the origin of this geometric definition.



What I don't understand is why $adotb=a_xb_x + a_yb_y = |a||b|costheta$. How does the algebraic version of the dot product connect to the geometric version? Can you derive the algebraic definition from the geometric? I read the answers to this question, but the proofs seem to depend on the actual algebraic definition to arrive at it.



My main question is, why are the two definitions really equal?







share|cite|improve this question






















  • Can you prove it in two dimensions? Also, some places this is taken as the definition of angles in higher dimensions. So it's not a matter of proving that this is the case, but rather that $theta$ is defined so that it works.
    – Arthur
    Aug 2 '17 at 16:19











  • You can find a proof of $acdot b=|a||b|costheta$, if that's helpful for you, here: proofwiki.org/wiki/Cosine_Formula_for_Dot_Product
    – Edu
    Aug 2 '17 at 16:26










  • @Edu So the geometric version is derived from the algebraic, not the other way around?
    – name
    Aug 2 '17 at 16:27










  • Geometrically, consider the triangle formed by the vectors $a$, $b$, and $a-b$ (where we think of $a$ and $b$ having a common origin, and the origin of $a-b$ placed at the end of $a$). This triangle has sides of length $|a| = acdot a$, $|b| = bcdot b$, and $|a-b| = (a-b)cdot (a-b) = acdot a - 2acdot b + bcdot b$. Play with the Law of Cosines, and you should get what you want.
    – Xander Henderson
    Aug 2 '17 at 16:30











  • Absolutely. The dot product is a particular case of an inner product. For the Euclidean dot product you have this formula, which is slightly different for complex vectors, for instance.
    – Edu
    Aug 2 '17 at 16:32















up vote
0
down vote

favorite












I have an intuitive understanding of why $adotb=|a||b|costheta$ geometrically. The projection of one vector onto another makes sense to me when explaining the origin of this geometric definition.



What I don't understand is why $adotb=a_xb_x + a_yb_y = |a||b|costheta$. How does the algebraic version of the dot product connect to the geometric version? Can you derive the algebraic definition from the geometric? I read the answers to this question, but the proofs seem to depend on the actual algebraic definition to arrive at it.



My main question is, why are the two definitions really equal?







share|cite|improve this question






















  • Can you prove it in two dimensions? Also, some places this is taken as the definition of angles in higher dimensions. So it's not a matter of proving that this is the case, but rather that $theta$ is defined so that it works.
    – Arthur
    Aug 2 '17 at 16:19











  • You can find a proof of $acdot b=|a||b|costheta$, if that's helpful for you, here: proofwiki.org/wiki/Cosine_Formula_for_Dot_Product
    – Edu
    Aug 2 '17 at 16:26










  • @Edu So the geometric version is derived from the algebraic, not the other way around?
    – name
    Aug 2 '17 at 16:27










  • Geometrically, consider the triangle formed by the vectors $a$, $b$, and $a-b$ (where we think of $a$ and $b$ having a common origin, and the origin of $a-b$ placed at the end of $a$). This triangle has sides of length $|a| = acdot a$, $|b| = bcdot b$, and $|a-b| = (a-b)cdot (a-b) = acdot a - 2acdot b + bcdot b$. Play with the Law of Cosines, and you should get what you want.
    – Xander Henderson
    Aug 2 '17 at 16:30











  • Absolutely. The dot product is a particular case of an inner product. For the Euclidean dot product you have this formula, which is slightly different for complex vectors, for instance.
    – Edu
    Aug 2 '17 at 16:32













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have an intuitive understanding of why $adotb=|a||b|costheta$ geometrically. The projection of one vector onto another makes sense to me when explaining the origin of this geometric definition.



What I don't understand is why $adotb=a_xb_x + a_yb_y = |a||b|costheta$. How does the algebraic version of the dot product connect to the geometric version? Can you derive the algebraic definition from the geometric? I read the answers to this question, but the proofs seem to depend on the actual algebraic definition to arrive at it.



My main question is, why are the two definitions really equal?







share|cite|improve this question














I have an intuitive understanding of why $adotb=|a||b|costheta$ geometrically. The projection of one vector onto another makes sense to me when explaining the origin of this geometric definition.



What I don't understand is why $adotb=a_xb_x + a_yb_y = |a||b|costheta$. How does the algebraic version of the dot product connect to the geometric version? Can you derive the algebraic definition from the geometric? I read the answers to this question, but the proofs seem to depend on the actual algebraic definition to arrive at it.



My main question is, why are the two definitions really equal?









share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Aug 2 '17 at 16:25

























asked Aug 2 '17 at 16:17









name

955




955











  • Can you prove it in two dimensions? Also, some places this is taken as the definition of angles in higher dimensions. So it's not a matter of proving that this is the case, but rather that $theta$ is defined so that it works.
    – Arthur
    Aug 2 '17 at 16:19











  • You can find a proof of $acdot b=|a||b|costheta$, if that's helpful for you, here: proofwiki.org/wiki/Cosine_Formula_for_Dot_Product
    – Edu
    Aug 2 '17 at 16:26










  • @Edu So the geometric version is derived from the algebraic, not the other way around?
    – name
    Aug 2 '17 at 16:27










  • Geometrically, consider the triangle formed by the vectors $a$, $b$, and $a-b$ (where we think of $a$ and $b$ having a common origin, and the origin of $a-b$ placed at the end of $a$). This triangle has sides of length $|a| = acdot a$, $|b| = bcdot b$, and $|a-b| = (a-b)cdot (a-b) = acdot a - 2acdot b + bcdot b$. Play with the Law of Cosines, and you should get what you want.
    – Xander Henderson
    Aug 2 '17 at 16:30











  • Absolutely. The dot product is a particular case of an inner product. For the Euclidean dot product you have this formula, which is slightly different for complex vectors, for instance.
    – Edu
    Aug 2 '17 at 16:32

















  • Can you prove it in two dimensions? Also, some places this is taken as the definition of angles in higher dimensions. So it's not a matter of proving that this is the case, but rather that $theta$ is defined so that it works.
    – Arthur
    Aug 2 '17 at 16:19











  • You can find a proof of $acdot b=|a||b|costheta$, if that's helpful for you, here: proofwiki.org/wiki/Cosine_Formula_for_Dot_Product
    – Edu
    Aug 2 '17 at 16:26










  • @Edu So the geometric version is derived from the algebraic, not the other way around?
    – name
    Aug 2 '17 at 16:27










  • Geometrically, consider the triangle formed by the vectors $a$, $b$, and $a-b$ (where we think of $a$ and $b$ having a common origin, and the origin of $a-b$ placed at the end of $a$). This triangle has sides of length $|a| = acdot a$, $|b| = bcdot b$, and $|a-b| = (a-b)cdot (a-b) = acdot a - 2acdot b + bcdot b$. Play with the Law of Cosines, and you should get what you want.
    – Xander Henderson
    Aug 2 '17 at 16:30











  • Absolutely. The dot product is a particular case of an inner product. For the Euclidean dot product you have this formula, which is slightly different for complex vectors, for instance.
    – Edu
    Aug 2 '17 at 16:32
















Can you prove it in two dimensions? Also, some places this is taken as the definition of angles in higher dimensions. So it's not a matter of proving that this is the case, but rather that $theta$ is defined so that it works.
– Arthur
Aug 2 '17 at 16:19





Can you prove it in two dimensions? Also, some places this is taken as the definition of angles in higher dimensions. So it's not a matter of proving that this is the case, but rather that $theta$ is defined so that it works.
– Arthur
Aug 2 '17 at 16:19













You can find a proof of $acdot b=|a||b|costheta$, if that's helpful for you, here: proofwiki.org/wiki/Cosine_Formula_for_Dot_Product
– Edu
Aug 2 '17 at 16:26




You can find a proof of $acdot b=|a||b|costheta$, if that's helpful for you, here: proofwiki.org/wiki/Cosine_Formula_for_Dot_Product
– Edu
Aug 2 '17 at 16:26












@Edu So the geometric version is derived from the algebraic, not the other way around?
– name
Aug 2 '17 at 16:27




@Edu So the geometric version is derived from the algebraic, not the other way around?
– name
Aug 2 '17 at 16:27












Geometrically, consider the triangle formed by the vectors $a$, $b$, and $a-b$ (where we think of $a$ and $b$ having a common origin, and the origin of $a-b$ placed at the end of $a$). This triangle has sides of length $|a| = acdot a$, $|b| = bcdot b$, and $|a-b| = (a-b)cdot (a-b) = acdot a - 2acdot b + bcdot b$. Play with the Law of Cosines, and you should get what you want.
– Xander Henderson
Aug 2 '17 at 16:30





Geometrically, consider the triangle formed by the vectors $a$, $b$, and $a-b$ (where we think of $a$ and $b$ having a common origin, and the origin of $a-b$ placed at the end of $a$). This triangle has sides of length $|a| = acdot a$, $|b| = bcdot b$, and $|a-b| = (a-b)cdot (a-b) = acdot a - 2acdot b + bcdot b$. Play with the Law of Cosines, and you should get what you want.
– Xander Henderson
Aug 2 '17 at 16:30













Absolutely. The dot product is a particular case of an inner product. For the Euclidean dot product you have this formula, which is slightly different for complex vectors, for instance.
– Edu
Aug 2 '17 at 16:32





Absolutely. The dot product is a particular case of an inner product. For the Euclidean dot product you have this formula, which is slightly different for complex vectors, for instance.
– Edu
Aug 2 '17 at 16:32











4 Answers
4






active

oldest

votes

















up vote
2
down vote













First of all you can prove from the geometrical definition that distributive property holds for scalar product: $(vec a+vec b)cdotvec c=vec acdotvec c+vec bcdotvec c$ (see diagram below for a sketch of the proof).



enter image description here



Then, you just have to decompose two vectors along an orthonormal coordinate system: $vec a= a_xvec i+a_yvec j+a_zvec k$,$quad$ $vec b= b_xvec i+b_yvec j+b_zvec k$, and apply twice the distributive property, taking into account that $vec icdotvec i=vec jcdotvec j=vec kcdotvec k=1$
and $vec icdotvec j=vec jcdotvec k=vec kcdotvec i=0$:
$$
vec acdotvec b=
(a_xvec i+a_yvec j+a_zvec k)cdot(b_xvec i+b_yvec j+b_zvec k)=
a_xb_x+a_yb_y+a_zb_z.
$$






share|cite|improve this answer



























    up vote
    1
    down vote













    Note that with $a$ and $b$ two sides of a triangle and $theta$ the angle between them, the third side is $b-a$ and (cosine rule) $$|b-a|^2=|a|^2+|b|^2-2|a||b|cos theta$$ so that $$2|a||b|costheta=Sigma a_i^2+Sigma b_i^2-Sigma (b_i-a_i)^2=2Sigma a_ib_i$$ so that $$|a||b|costheta=Sigma a_ib_i$$ and the two definitions coincide. You can work the calculations backwards if necessary.






    share|cite|improve this answer




















    • You are missing the case in which $a$ and $b$ are scalar multiples.
      – Edu
      Aug 2 '17 at 16:43










    • @Edu then $cos theta=1$ and everything works? The cosine rule applies to the degenerate triangle you get.
      – Mark Bennet
      Aug 2 '17 at 17:00










    • Of course, is a trivial case, no problems with your proof, not even close to think about downvoting or something. I just think is worth it mention what happens if $a=cb$, for some scalar $c$.
      – Edu
      Aug 2 '17 at 17:03











    • Btw, $costheta=pm 1$ in that case, depending on the sign of $c$.
      – Edu
      Aug 2 '17 at 17:07

















    up vote
    0
    down vote













    Assuming $acdot b = |a||b|cos( theta)$



    and that $|a| = sqrt(x_1)^2 + (y_1)^2$



    and that $|b| = sqrt(x_2)^2 + (y_2)^2$



    Let $gamma -theta = alpha$



    For $theta$ is the angle between the two vectors, $a$ and $b$, and not necessarily the angle between the 'outermost' line and say the x-axis.



    Thus $gamma$ is the angle between the outermost vector and the x-axis, whilst $alpha$ is the angle between the other line and the x-axis.



    Thus $theta=gamma-alpha$ and more importantly by the trig identity: $cos(a+b) = cos(a)cos(b)-sin(a)sin(b)$



    $$beginequationbeginaligned
    acdot b &= |a||b|cos(theta)\
    &=|a||b|cos(gamma - alpha)\
    &=|a||b|biggl(cos(gamma)cos(alpha) - sin(gamma)sin(alpha)biggl)\
    &=|a||b|cos(gamma)cos(-alpha) - |a||b|sin(gamma)sin(-alpha)\
    endalignedendequationtag1$$



    Then if $|a|$ was the outermost vector you realize that



    $|a|cos(gamma) = (x_1)$, and that



    $|a|sin(gamma) = (y_1)$



    Making $|b|$ the innermost line, and that



    $|b|cos(-alpha) = |b|cos(alpha) = (x_2)$, and that



    $|b|sin(-alpha) = -|b|sin(alpha) = (-y_1)$



    Because $cos(-a) = cos(a)$ and $sin(-a) = -sin(a)$



    Plugging all that into 1 you get that $acdot b = (x_1)(x_2) - (y_1)(-y_2)$



    And you finally get $acdot b = (x_1)(x_2) + (y_1)(y_2)$






    share|cite|improve this answer



























      up vote
      -1
      down vote













      Define A, B, C is vector, and a, b and c scale value (distance) of A,B,C

      define C=A-B, so A, B and C become a triangle



      based on Law of cosines, c² = a² + b² - 2abcos(θ)



      because c.c=C²

      C.C=A.A + B.B - 2abcos(θ)

      because C = A - B

      C·C => (A -B)·(A - B) => (A·A - 2A·B + B·B)

      so A·A - 2A·B + B·B=A.A + B.B - 2abcos(θ)

      because A.A=A.A and B.B=B.B

      => - 2A·B B=- 2abcos(θ)

      => A.B=abcos(θ)






      share|cite|improve this answer




















      • Try to use math formatting for better readability. See notation help.
        – ja72
        Aug 2 '17 at 17:36










      • Thanks I just joined this community, I will try to use the math formatting next time
        – Bin Yu
        Aug 2 '17 at 20:27











      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%2f2380217%2fwhy-are-the-two-dot-product-definitions-equal%23new-answer', 'question_page');

      );

      Post as a guest






























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      2
      down vote













      First of all you can prove from the geometrical definition that distributive property holds for scalar product: $(vec a+vec b)cdotvec c=vec acdotvec c+vec bcdotvec c$ (see diagram below for a sketch of the proof).



      enter image description here



      Then, you just have to decompose two vectors along an orthonormal coordinate system: $vec a= a_xvec i+a_yvec j+a_zvec k$,$quad$ $vec b= b_xvec i+b_yvec j+b_zvec k$, and apply twice the distributive property, taking into account that $vec icdotvec i=vec jcdotvec j=vec kcdotvec k=1$
      and $vec icdotvec j=vec jcdotvec k=vec kcdotvec i=0$:
      $$
      vec acdotvec b=
      (a_xvec i+a_yvec j+a_zvec k)cdot(b_xvec i+b_yvec j+b_zvec k)=
      a_xb_x+a_yb_y+a_zb_z.
      $$






      share|cite|improve this answer
























        up vote
        2
        down vote













        First of all you can prove from the geometrical definition that distributive property holds for scalar product: $(vec a+vec b)cdotvec c=vec acdotvec c+vec bcdotvec c$ (see diagram below for a sketch of the proof).



        enter image description here



        Then, you just have to decompose two vectors along an orthonormal coordinate system: $vec a= a_xvec i+a_yvec j+a_zvec k$,$quad$ $vec b= b_xvec i+b_yvec j+b_zvec k$, and apply twice the distributive property, taking into account that $vec icdotvec i=vec jcdotvec j=vec kcdotvec k=1$
        and $vec icdotvec j=vec jcdotvec k=vec kcdotvec i=0$:
        $$
        vec acdotvec b=
        (a_xvec i+a_yvec j+a_zvec k)cdot(b_xvec i+b_yvec j+b_zvec k)=
        a_xb_x+a_yb_y+a_zb_z.
        $$






        share|cite|improve this answer






















          up vote
          2
          down vote










          up vote
          2
          down vote









          First of all you can prove from the geometrical definition that distributive property holds for scalar product: $(vec a+vec b)cdotvec c=vec acdotvec c+vec bcdotvec c$ (see diagram below for a sketch of the proof).



          enter image description here



          Then, you just have to decompose two vectors along an orthonormal coordinate system: $vec a= a_xvec i+a_yvec j+a_zvec k$,$quad$ $vec b= b_xvec i+b_yvec j+b_zvec k$, and apply twice the distributive property, taking into account that $vec icdotvec i=vec jcdotvec j=vec kcdotvec k=1$
          and $vec icdotvec j=vec jcdotvec k=vec kcdotvec i=0$:
          $$
          vec acdotvec b=
          (a_xvec i+a_yvec j+a_zvec k)cdot(b_xvec i+b_yvec j+b_zvec k)=
          a_xb_x+a_yb_y+a_zb_z.
          $$






          share|cite|improve this answer












          First of all you can prove from the geometrical definition that distributive property holds for scalar product: $(vec a+vec b)cdotvec c=vec acdotvec c+vec bcdotvec c$ (see diagram below for a sketch of the proof).



          enter image description here



          Then, you just have to decompose two vectors along an orthonormal coordinate system: $vec a= a_xvec i+a_yvec j+a_zvec k$,$quad$ $vec b= b_xvec i+b_yvec j+b_zvec k$, and apply twice the distributive property, taking into account that $vec icdotvec i=vec jcdotvec j=vec kcdotvec k=1$
          and $vec icdotvec j=vec jcdotvec k=vec kcdotvec i=0$:
          $$
          vec acdotvec b=
          (a_xvec i+a_yvec j+a_zvec k)cdot(b_xvec i+b_yvec j+b_zvec k)=
          a_xb_x+a_yb_y+a_zb_z.
          $$







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Aug 2 '17 at 17:17









          Aretino

          21.9k21442




          21.9k21442




















              up vote
              1
              down vote













              Note that with $a$ and $b$ two sides of a triangle and $theta$ the angle between them, the third side is $b-a$ and (cosine rule) $$|b-a|^2=|a|^2+|b|^2-2|a||b|cos theta$$ so that $$2|a||b|costheta=Sigma a_i^2+Sigma b_i^2-Sigma (b_i-a_i)^2=2Sigma a_ib_i$$ so that $$|a||b|costheta=Sigma a_ib_i$$ and the two definitions coincide. You can work the calculations backwards if necessary.






              share|cite|improve this answer




















              • You are missing the case in which $a$ and $b$ are scalar multiples.
                – Edu
                Aug 2 '17 at 16:43










              • @Edu then $cos theta=1$ and everything works? The cosine rule applies to the degenerate triangle you get.
                – Mark Bennet
                Aug 2 '17 at 17:00










              • Of course, is a trivial case, no problems with your proof, not even close to think about downvoting or something. I just think is worth it mention what happens if $a=cb$, for some scalar $c$.
                – Edu
                Aug 2 '17 at 17:03











              • Btw, $costheta=pm 1$ in that case, depending on the sign of $c$.
                – Edu
                Aug 2 '17 at 17:07














              up vote
              1
              down vote













              Note that with $a$ and $b$ two sides of a triangle and $theta$ the angle between them, the third side is $b-a$ and (cosine rule) $$|b-a|^2=|a|^2+|b|^2-2|a||b|cos theta$$ so that $$2|a||b|costheta=Sigma a_i^2+Sigma b_i^2-Sigma (b_i-a_i)^2=2Sigma a_ib_i$$ so that $$|a||b|costheta=Sigma a_ib_i$$ and the two definitions coincide. You can work the calculations backwards if necessary.






              share|cite|improve this answer




















              • You are missing the case in which $a$ and $b$ are scalar multiples.
                – Edu
                Aug 2 '17 at 16:43










              • @Edu then $cos theta=1$ and everything works? The cosine rule applies to the degenerate triangle you get.
                – Mark Bennet
                Aug 2 '17 at 17:00










              • Of course, is a trivial case, no problems with your proof, not even close to think about downvoting or something. I just think is worth it mention what happens if $a=cb$, for some scalar $c$.
                – Edu
                Aug 2 '17 at 17:03











              • Btw, $costheta=pm 1$ in that case, depending on the sign of $c$.
                – Edu
                Aug 2 '17 at 17:07












              up vote
              1
              down vote










              up vote
              1
              down vote









              Note that with $a$ and $b$ two sides of a triangle and $theta$ the angle between them, the third side is $b-a$ and (cosine rule) $$|b-a|^2=|a|^2+|b|^2-2|a||b|cos theta$$ so that $$2|a||b|costheta=Sigma a_i^2+Sigma b_i^2-Sigma (b_i-a_i)^2=2Sigma a_ib_i$$ so that $$|a||b|costheta=Sigma a_ib_i$$ and the two definitions coincide. You can work the calculations backwards if necessary.






              share|cite|improve this answer












              Note that with $a$ and $b$ two sides of a triangle and $theta$ the angle between them, the third side is $b-a$ and (cosine rule) $$|b-a|^2=|a|^2+|b|^2-2|a||b|cos theta$$ so that $$2|a||b|costheta=Sigma a_i^2+Sigma b_i^2-Sigma (b_i-a_i)^2=2Sigma a_ib_i$$ so that $$|a||b|costheta=Sigma a_ib_i$$ and the two definitions coincide. You can work the calculations backwards if necessary.







              share|cite|improve this answer












              share|cite|improve this answer



              share|cite|improve this answer










              answered Aug 2 '17 at 16:37









              Mark Bennet

              76.8k773172




              76.8k773172











              • You are missing the case in which $a$ and $b$ are scalar multiples.
                – Edu
                Aug 2 '17 at 16:43










              • @Edu then $cos theta=1$ and everything works? The cosine rule applies to the degenerate triangle you get.
                – Mark Bennet
                Aug 2 '17 at 17:00










              • Of course, is a trivial case, no problems with your proof, not even close to think about downvoting or something. I just think is worth it mention what happens if $a=cb$, for some scalar $c$.
                – Edu
                Aug 2 '17 at 17:03











              • Btw, $costheta=pm 1$ in that case, depending on the sign of $c$.
                – Edu
                Aug 2 '17 at 17:07
















              • You are missing the case in which $a$ and $b$ are scalar multiples.
                – Edu
                Aug 2 '17 at 16:43










              • @Edu then $cos theta=1$ and everything works? The cosine rule applies to the degenerate triangle you get.
                – Mark Bennet
                Aug 2 '17 at 17:00










              • Of course, is a trivial case, no problems with your proof, not even close to think about downvoting or something. I just think is worth it mention what happens if $a=cb$, for some scalar $c$.
                – Edu
                Aug 2 '17 at 17:03











              • Btw, $costheta=pm 1$ in that case, depending on the sign of $c$.
                – Edu
                Aug 2 '17 at 17:07















              You are missing the case in which $a$ and $b$ are scalar multiples.
              – Edu
              Aug 2 '17 at 16:43




              You are missing the case in which $a$ and $b$ are scalar multiples.
              – Edu
              Aug 2 '17 at 16:43












              @Edu then $cos theta=1$ and everything works? The cosine rule applies to the degenerate triangle you get.
              – Mark Bennet
              Aug 2 '17 at 17:00




              @Edu then $cos theta=1$ and everything works? The cosine rule applies to the degenerate triangle you get.
              – Mark Bennet
              Aug 2 '17 at 17:00












              Of course, is a trivial case, no problems with your proof, not even close to think about downvoting or something. I just think is worth it mention what happens if $a=cb$, for some scalar $c$.
              – Edu
              Aug 2 '17 at 17:03





              Of course, is a trivial case, no problems with your proof, not even close to think about downvoting or something. I just think is worth it mention what happens if $a=cb$, for some scalar $c$.
              – Edu
              Aug 2 '17 at 17:03













              Btw, $costheta=pm 1$ in that case, depending on the sign of $c$.
              – Edu
              Aug 2 '17 at 17:07




              Btw, $costheta=pm 1$ in that case, depending on the sign of $c$.
              – Edu
              Aug 2 '17 at 17:07










              up vote
              0
              down vote













              Assuming $acdot b = |a||b|cos( theta)$



              and that $|a| = sqrt(x_1)^2 + (y_1)^2$



              and that $|b| = sqrt(x_2)^2 + (y_2)^2$



              Let $gamma -theta = alpha$



              For $theta$ is the angle between the two vectors, $a$ and $b$, and not necessarily the angle between the 'outermost' line and say the x-axis.



              Thus $gamma$ is the angle between the outermost vector and the x-axis, whilst $alpha$ is the angle between the other line and the x-axis.



              Thus $theta=gamma-alpha$ and more importantly by the trig identity: $cos(a+b) = cos(a)cos(b)-sin(a)sin(b)$



              $$beginequationbeginaligned
              acdot b &= |a||b|cos(theta)\
              &=|a||b|cos(gamma - alpha)\
              &=|a||b|biggl(cos(gamma)cos(alpha) - sin(gamma)sin(alpha)biggl)\
              &=|a||b|cos(gamma)cos(-alpha) - |a||b|sin(gamma)sin(-alpha)\
              endalignedendequationtag1$$



              Then if $|a|$ was the outermost vector you realize that



              $|a|cos(gamma) = (x_1)$, and that



              $|a|sin(gamma) = (y_1)$



              Making $|b|$ the innermost line, and that



              $|b|cos(-alpha) = |b|cos(alpha) = (x_2)$, and that



              $|b|sin(-alpha) = -|b|sin(alpha) = (-y_1)$



              Because $cos(-a) = cos(a)$ and $sin(-a) = -sin(a)$



              Plugging all that into 1 you get that $acdot b = (x_1)(x_2) - (y_1)(-y_2)$



              And you finally get $acdot b = (x_1)(x_2) + (y_1)(y_2)$






              share|cite|improve this answer
























                up vote
                0
                down vote













                Assuming $acdot b = |a||b|cos( theta)$



                and that $|a| = sqrt(x_1)^2 + (y_1)^2$



                and that $|b| = sqrt(x_2)^2 + (y_2)^2$



                Let $gamma -theta = alpha$



                For $theta$ is the angle between the two vectors, $a$ and $b$, and not necessarily the angle between the 'outermost' line and say the x-axis.



                Thus $gamma$ is the angle between the outermost vector and the x-axis, whilst $alpha$ is the angle between the other line and the x-axis.



                Thus $theta=gamma-alpha$ and more importantly by the trig identity: $cos(a+b) = cos(a)cos(b)-sin(a)sin(b)$



                $$beginequationbeginaligned
                acdot b &= |a||b|cos(theta)\
                &=|a||b|cos(gamma - alpha)\
                &=|a||b|biggl(cos(gamma)cos(alpha) - sin(gamma)sin(alpha)biggl)\
                &=|a||b|cos(gamma)cos(-alpha) - |a||b|sin(gamma)sin(-alpha)\
                endalignedendequationtag1$$



                Then if $|a|$ was the outermost vector you realize that



                $|a|cos(gamma) = (x_1)$, and that



                $|a|sin(gamma) = (y_1)$



                Making $|b|$ the innermost line, and that



                $|b|cos(-alpha) = |b|cos(alpha) = (x_2)$, and that



                $|b|sin(-alpha) = -|b|sin(alpha) = (-y_1)$



                Because $cos(-a) = cos(a)$ and $sin(-a) = -sin(a)$



                Plugging all that into 1 you get that $acdot b = (x_1)(x_2) - (y_1)(-y_2)$



                And you finally get $acdot b = (x_1)(x_2) + (y_1)(y_2)$






                share|cite|improve this answer






















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  Assuming $acdot b = |a||b|cos( theta)$



                  and that $|a| = sqrt(x_1)^2 + (y_1)^2$



                  and that $|b| = sqrt(x_2)^2 + (y_2)^2$



                  Let $gamma -theta = alpha$



                  For $theta$ is the angle between the two vectors, $a$ and $b$, and not necessarily the angle between the 'outermost' line and say the x-axis.



                  Thus $gamma$ is the angle between the outermost vector and the x-axis, whilst $alpha$ is the angle between the other line and the x-axis.



                  Thus $theta=gamma-alpha$ and more importantly by the trig identity: $cos(a+b) = cos(a)cos(b)-sin(a)sin(b)$



                  $$beginequationbeginaligned
                  acdot b &= |a||b|cos(theta)\
                  &=|a||b|cos(gamma - alpha)\
                  &=|a||b|biggl(cos(gamma)cos(alpha) - sin(gamma)sin(alpha)biggl)\
                  &=|a||b|cos(gamma)cos(-alpha) - |a||b|sin(gamma)sin(-alpha)\
                  endalignedendequationtag1$$



                  Then if $|a|$ was the outermost vector you realize that



                  $|a|cos(gamma) = (x_1)$, and that



                  $|a|sin(gamma) = (y_1)$



                  Making $|b|$ the innermost line, and that



                  $|b|cos(-alpha) = |b|cos(alpha) = (x_2)$, and that



                  $|b|sin(-alpha) = -|b|sin(alpha) = (-y_1)$



                  Because $cos(-a) = cos(a)$ and $sin(-a) = -sin(a)$



                  Plugging all that into 1 you get that $acdot b = (x_1)(x_2) - (y_1)(-y_2)$



                  And you finally get $acdot b = (x_1)(x_2) + (y_1)(y_2)$






                  share|cite|improve this answer












                  Assuming $acdot b = |a||b|cos( theta)$



                  and that $|a| = sqrt(x_1)^2 + (y_1)^2$



                  and that $|b| = sqrt(x_2)^2 + (y_2)^2$



                  Let $gamma -theta = alpha$



                  For $theta$ is the angle between the two vectors, $a$ and $b$, and not necessarily the angle between the 'outermost' line and say the x-axis.



                  Thus $gamma$ is the angle between the outermost vector and the x-axis, whilst $alpha$ is the angle between the other line and the x-axis.



                  Thus $theta=gamma-alpha$ and more importantly by the trig identity: $cos(a+b) = cos(a)cos(b)-sin(a)sin(b)$



                  $$beginequationbeginaligned
                  acdot b &= |a||b|cos(theta)\
                  &=|a||b|cos(gamma - alpha)\
                  &=|a||b|biggl(cos(gamma)cos(alpha) - sin(gamma)sin(alpha)biggl)\
                  &=|a||b|cos(gamma)cos(-alpha) - |a||b|sin(gamma)sin(-alpha)\
                  endalignedendequationtag1$$



                  Then if $|a|$ was the outermost vector you realize that



                  $|a|cos(gamma) = (x_1)$, and that



                  $|a|sin(gamma) = (y_1)$



                  Making $|b|$ the innermost line, and that



                  $|b|cos(-alpha) = |b|cos(alpha) = (x_2)$, and that



                  $|b|sin(-alpha) = -|b|sin(alpha) = (-y_1)$



                  Because $cos(-a) = cos(a)$ and $sin(-a) = -sin(a)$



                  Plugging all that into 1 you get that $acdot b = (x_1)(x_2) - (y_1)(-y_2)$



                  And you finally get $acdot b = (x_1)(x_2) + (y_1)(y_2)$







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Aug 16 at 5:58









                  Kevin Colour

                  12




                  12




















                      up vote
                      -1
                      down vote













                      Define A, B, C is vector, and a, b and c scale value (distance) of A,B,C

                      define C=A-B, so A, B and C become a triangle



                      based on Law of cosines, c² = a² + b² - 2abcos(θ)



                      because c.c=C²

                      C.C=A.A + B.B - 2abcos(θ)

                      because C = A - B

                      C·C => (A -B)·(A - B) => (A·A - 2A·B + B·B)

                      so A·A - 2A·B + B·B=A.A + B.B - 2abcos(θ)

                      because A.A=A.A and B.B=B.B

                      => - 2A·B B=- 2abcos(θ)

                      => A.B=abcos(θ)






                      share|cite|improve this answer




















                      • Try to use math formatting for better readability. See notation help.
                        – ja72
                        Aug 2 '17 at 17:36










                      • Thanks I just joined this community, I will try to use the math formatting next time
                        – Bin Yu
                        Aug 2 '17 at 20:27















                      up vote
                      -1
                      down vote













                      Define A, B, C is vector, and a, b and c scale value (distance) of A,B,C

                      define C=A-B, so A, B and C become a triangle



                      based on Law of cosines, c² = a² + b² - 2abcos(θ)



                      because c.c=C²

                      C.C=A.A + B.B - 2abcos(θ)

                      because C = A - B

                      C·C => (A -B)·(A - B) => (A·A - 2A·B + B·B)

                      so A·A - 2A·B + B·B=A.A + B.B - 2abcos(θ)

                      because A.A=A.A and B.B=B.B

                      => - 2A·B B=- 2abcos(θ)

                      => A.B=abcos(θ)






                      share|cite|improve this answer




















                      • Try to use math formatting for better readability. See notation help.
                        – ja72
                        Aug 2 '17 at 17:36










                      • Thanks I just joined this community, I will try to use the math formatting next time
                        – Bin Yu
                        Aug 2 '17 at 20:27













                      up vote
                      -1
                      down vote










                      up vote
                      -1
                      down vote









                      Define A, B, C is vector, and a, b and c scale value (distance) of A,B,C

                      define C=A-B, so A, B and C become a triangle



                      based on Law of cosines, c² = a² + b² - 2abcos(θ)



                      because c.c=C²

                      C.C=A.A + B.B - 2abcos(θ)

                      because C = A - B

                      C·C => (A -B)·(A - B) => (A·A - 2A·B + B·B)

                      so A·A - 2A·B + B·B=A.A + B.B - 2abcos(θ)

                      because A.A=A.A and B.B=B.B

                      => - 2A·B B=- 2abcos(θ)

                      => A.B=abcos(θ)






                      share|cite|improve this answer












                      Define A, B, C is vector, and a, b and c scale value (distance) of A,B,C

                      define C=A-B, so A, B and C become a triangle



                      based on Law of cosines, c² = a² + b² - 2abcos(θ)



                      because c.c=C²

                      C.C=A.A + B.B - 2abcos(θ)

                      because C = A - B

                      C·C => (A -B)·(A - B) => (A·A - 2A·B + B·B)

                      so A·A - 2A·B + B·B=A.A + B.B - 2abcos(θ)

                      because A.A=A.A and B.B=B.B

                      => - 2A·B B=- 2abcos(θ)

                      => A.B=abcos(θ)







                      share|cite|improve this answer












                      share|cite|improve this answer



                      share|cite|improve this answer










                      answered Aug 2 '17 at 16:53









                      Bin Yu

                      1




                      1











                      • Try to use math formatting for better readability. See notation help.
                        – ja72
                        Aug 2 '17 at 17:36










                      • Thanks I just joined this community, I will try to use the math formatting next time
                        – Bin Yu
                        Aug 2 '17 at 20:27

















                      • Try to use math formatting for better readability. See notation help.
                        – ja72
                        Aug 2 '17 at 17:36










                      • Thanks I just joined this community, I will try to use the math formatting next time
                        – Bin Yu
                        Aug 2 '17 at 20:27
















                      Try to use math formatting for better readability. See notation help.
                      – ja72
                      Aug 2 '17 at 17:36




                      Try to use math formatting for better readability. See notation help.
                      – ja72
                      Aug 2 '17 at 17:36












                      Thanks I just joined this community, I will try to use the math formatting next time
                      – Bin Yu
                      Aug 2 '17 at 20:27





                      Thanks I just joined this community, I will try to use the math formatting next time
                      – Bin Yu
                      Aug 2 '17 at 20:27













                       

                      draft saved


                      draft discarded


























                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2380217%2fwhy-are-the-two-dot-product-definitions-equal%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      這個網誌中的熱門文章

                      Is there any way to eliminate the singular point to solve this integral by hand or by approximations?

                      Why am i infinitely getting the same tweet with the Twitter Search API?

                      Carbon dioxide