The Dot Product

The Dot Product

Jim Lambers MAT 169 Fall Semester 2009-10 Lecture 21 Notes These notes correspond to Section 10.3 in the text. The Dot Product One of the most fundamental problems concerning vectors is that of computing the angle between two given vectors. It has numerous applications in mathematics and other sciences. In physics, it plays a role in the decomposition of forces into component forces that act in various directions. In computer science, it is useful for creating two-dimensional visualizations of three-dimensional objects. In computational mathematics, it is a vital ingredient in algorithms for data fitting, approximation of functions, and other essential problems. Let u = hu1; u2; u3i and v = hv1; v2; v3i be two vectors with a common initial point. Then u, v and u − v form a triangle, as shown in Figure 1. By the Law of Cosines, ju − vj2 = juj2 + jvj2 − 2jujjvj cos ; where is the angle between u and v. Using the formula for the magnitude of a vector, we obtain 2 2 2 2 2 2 2 2 2 (u1 − v1) + (u2 − v2) + (u3 − v3) = (u1 + u2 + u3) + (v1 + v2 + v3) − 2jujjvj cos : Simplifying yields u1v1 + u2v2 + u3v3 = jujjvj cos : We therefore define the dot product, also known as the inner product, of u and v to be the number u ⋅ v given by u ⋅ v = u1v1 + u2v2 + u3v3: An equivalent definition, typically used in physics, is u ⋅ v = jujjvj cos ; where is the angle between u and v. Example Let u = h1; −1; 2i and v = ⟨−2; 1; 3i. Then u ⋅ v = 1(−2) + (−1)(1) + 2(3) = −2 − 1 + 6 = 3: To obtain the angle between u and v, we compute u ⋅ v 3 3 cos = = p p = p ; jujjvj 6 14 2 21 1 Figure 1: By the Triangle Law, the vectors u, v and u − v form a triangle. The angle between u and v is . which yields ≈ 1:237 radians, or 70.893 degrees. 2 Example Let u and v be vectors such that juj = 3, jvj = 4, and the angle between them is =3 radians, or 60 degrees. Then 1 u ⋅ v = 3(4) cos = 12 = 6: 3 2 2 The dot product has the following properties, which can be proved from the definition. 1. u ⋅ u = juj2 2. Commutativity: u ⋅ v = v ⋅ u 3. Distributive property: u ⋅ (v + w) = u ⋅ v + u ⋅ w 4. (cu) ⋅ v = c(u ⋅ v) = u ⋅ (cv), for any scalar c 2 5. 0 ⋅ u = 0 Example By the first, second and third properties, the length of a sum of vectors u + v can be expressed in terms of inner products as follows: ju + vj2 = (u + v) ⋅ (u + v) = u ⋅ u + v ⋅ u + u ⋅ v + v ⋅ v = juj2 + 2u ⋅ v + jvj2: 2 Suppose that two nonzero vectors u and v have an angle between them that is = =2. That is, u and v are perpendicular, or orthogonal. Then, we have u ⋅ v = jujjvj cos = 0: 2 On the other hand, if u ⋅ v = 0, then we must have cos = 0, where is the angle between them, which implies that = =2, and therefore u and v are orthogonal. In summary, u ⋅ v = 0 if and only if u and v are orthogonal. Example Let u = h ; i be any nonzero vector in V2. Then a vector that has the same length as u, and is orthogonal to u is v = h ; − i: To verify this, we compute u ⋅ v = h ; i ⋅ h ; − i = + (− ) = 0: By the fourth property of the dot product, w = ⟨− ; i also satisfies jwj = juj, and is orthogonal to u. 2 3 Summary ∙ The dot product, or inner product, of two vectors, is the sum of the products of corresponding components. Equivalently, it is the product of their magnitudes, times the cosine of the angle between them. ∙ The dot product of a vector with itself is the square of its magnitude. ∙ The dot product of two vectors is commutative; that is, the order of the vectors in the product does not matter. ∙ Multiplying a vector by a constant multiplies its dot product with any other vector by the same constant. ∙ The dot product of a vector with the zero vector is zero. ∙ Two nonzero vectors are perpendicular, or orthogonal, if and only if their dot product is equal to zero. 4.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    4 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us