Skip to content

Commit 00868cb

Browse files
authored
ON1_DotProductandAnglebetweentwovector (#149)
* Added_Angle_between_Two_Vectors_Did * DotProduct_afterchange
1 parent 747d91a commit 00868cb

1 file changed

Lines changed: 27 additions & 3 deletions

File tree

  • linear-algebra/source/future-ON

linear-algebra/source/future-ON/01.ptx

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,32 @@ The dot product combines two vectors and creates a scalar that gives us geometri
148148

149149
<p>Need to create a segue to the fact that you can find the angle between vectors using the Law of Cosines as a starting place.</p>
150150

151-
152-
151+
<definition>
152+
<statement>
153+
<p> Given two vectors <m>\vec u</m> and <m>\vec v</m> in <m>\IR^n</m>, such that <m>\vec u</m> and <m>\vec v</m> are not parallel, let <m>\theta</m> be the <term>angle</term> between the two vectors,
154+
then
155+
<me>
156+
\cos \theta = \frac{\vec u \cdot \vec v }{|\vec u||\vec v|}.
157+
</me>
158+
By the Law of Cosine:
159+
<me>
160+
|\vec u- \vec v|^2 = |\vec u|^2+|\vec v|^2- 2 |\vec u||\vec v| \cos \theta.
161+
</me>
162+
Using dot product of vector <m>\vec u-\vec v</m> with itself:
163+
164+
<md>
165+
<mrow> |\vec u- \vec v|^2 \amp = (\vec u- \vec v) \cdot (\vec u- \vec v) \amp </mrow>
166+
<mrow> \amp = \vec u \cdot \vec u - 2 ( \vec u \cdot \vec v) + \vec v \cdot \vec v \amp </mrow>
167+
<mrow> \amp = |\vec u|^2 - 2 ( \vec u.\vec v) + |\vec v|^2 \amp </mrow>
168+
</md>
169+
Hence from above, we have:
170+
<me>
171+
\vec u \cdot \vec v = |\vec u||\vec v| \cos \theta .
172+
</me>
173+
</p></statement>
174+
</definition>
175+
176+
<p> One of these activity should be deleted from here. </p>
153177

154178
<activity estimated-time="10">
155179
<introduction>
@@ -165,7 +189,7 @@ The dot product combines two vectors and creates a scalar that gives us geometri
165189
<introduction>
166190
<p>Consider two vectors <m>\vec u =\left[\begin{array}{c} 1 \\ 3 \\ 4 \\ -4 \end{array}\right]</m> and <m>\vec v = \left[\begin{array}{c} -1 \\ -3 \\ -4 \\ 4 \end{array}\right]</m>.</p>
167191
</introduction>
168-
<task><p>Use dot product to determine <m>||\vec u||</m> and <m> ||\vec v||</m>.</p></task>
192+
<task><p>Use dot product to determine <m>|\vec u| </m> and <m> |\vec v|</m>.</p></task>
169193
<task><p> Using dot product, find the distance between <m>\vec u</m> and <m>\vec v </m>.</p></task>
170194
<task><p>Find the angle between <m>\vec u</m> and <m>\vec v</m>.</p></task>
171195
</activity>

0 commit comments

Comments
 (0)