document.write( "Question 1087143: Hey I am asking for the proof of this formula
\n" ); document.write( "a.b =|a|b|cos theta.\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #701667 by math_helper(2461)\"\" \"About 
You can put this solution on YOUR website!
You should revise your question. \r
\n" ); document.write( "\n" ); document.write( "——
\n" ); document.write( "You have provided the geometric definition for the dot product (aka inner product) of two vectors. The definition can be accepted straight away. Are you asking to prove the algebraic definition of the dot product is equal to the geometric definition of the dot product? \r
\n" ); document.write( "\n" ); document.write( "Algebraic:
\n" ); document.write( "\"+a_dot_b+=+a%5B1%5D%2Ab%5B1%5D+%2B+a%5B2%5D%2Ab%5B2%5D+%2B+a%5B3%5D%2Ab%5B3%5D+\" + … + \"+a%5Bn%5D%2Ab%5Bn%5D+\"\r
\n" ); document.write( "\n" ); document.write( "Geometric:
\n" ); document.write( "\"+a_dot_b+=+abs%28a%29abs%28b%29%2Acos%28theta%29+\" where \"theta\" = angle between the two vectors\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "As I thought about it, I figured that must be what you want. Here is the proof:
\n" ); document.write( "I will use capital letters for vectors, lower case for scalers.
\n" ); document.write( "Also |A| means the magnitude of A, found using ordinary root-of-squares method.\r
\n" ); document.write( "\n" ); document.write( "Let \"+E%5Bi%5D+\" be a set of unit vectors in the n-dimensional space.
\n" ); document.write( "So
\n" ); document.write( "\"+E%5Bi%5D%2AE%5Bj%5D+=+0++\" if \"++i%3C%3Ej+\"
\n" ); document.write( " \"++E%5Bi%5D%2AE%5Bj%5D+=+1+\" if \"+++i=j+%29+\"\r
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "\"+A+=+sum%28a%5Bi%5DE%5Bi%5D%2C+i=1%2C+n+%29+\"    (1)     and\r\n" );
document.write( "\"+B+=+sum%28b%5Bi%5DE%5Bi%5D%2C+i=1%2C+n%29+\"     (2)    <—<<<  Remember \"+a%5Bi%5D+\" and \"+b%5Bi%5D+\" are scalers \r\n" );
document.write( "
\r
\n" ); document.write( "\n" ); document.write( "and the algebraic dot product is defined as:
\n" ); document.write( "\"+A%2AB+=+sum%28a%5Bi%5Db%5Bi%5D%2C+i=1%2C+n%29+\" (*)
\n" ); document.write( "—\r
\n" ); document.write( "\n" ); document.write( "Now, use the geometric dot product definition to find \"+A%2AE%5Bi%5D+\" :
\n" ); document.write( " <—<<< Same \"+a%5Bi%5D+\" as in (1)
\n" ); document.write( "(and similarly for \"+B%2AE%5Bi%5D+\" )
\n" ); document.write( "\"+a%5Bi%5D+\" and \"+b%5Bi%5D+\" can be thought of as the magnitude of the component of A, B that project in the \"E%5Bi%5D\" direction, respectively. \r
\n" ); document.write( "\n" ); document.write( "and substituting for B:
\n" ); document.write( "\"+A%2AB+=+A%2Asum%28b%5Bi%5DE%5Bi%5D%2C+i=1%2C+n%29+\"
\n" ); document.write( "Finally, using the distributive property of dot products \"+C%2AkD+=+kC%2AD+\" :
\n" ); document.write( " <—<<< Same as (*)
\n" ); document.write( "
\n" );