Why are the two dot product definitions equal?
Clash 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?
geometry vectors
 |Â
show 1 more comment
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?
geometry vectors
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
 |Â
show 1 more comment
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?
geometry vectors
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?
geometry vectors
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
 |Â
show 1 more comment
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
 |Â
show 1 more comment
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).
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.
$$
add a comment |Â
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.
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
add a comment |Â
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)$
add a comment |Â
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(ø)
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
add a comment |Â
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).
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.
$$
add a comment |Â
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).
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.
$$
add a comment |Â
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).
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.
$$
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).
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.
$$
answered Aug 2 '17 at 17:17
Aretino
21.9k21442
21.9k21442
add a comment |Â
add a comment |Â
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.
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
add a comment |Â
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.
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
add a comment |Â
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.
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.
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
add a comment |Â
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
add a comment |Â
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)$
add a comment |Â
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)$
add a comment |Â
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)$
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)$
answered Aug 16 at 5:58
Kevin Colour
12
12
add a comment |Â
add a comment |Â
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(ø)
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
add a comment |Â
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(ø)
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
add a comment |Â
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(ø)
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(ø)
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
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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