Dot Product; Projections
MAT1503 - Linear Algebra I · Vectors In 2-space and 3-space
Dot Product; Projections
The dot product is a fundamental operation in linear algebra that allows you to measure the relationship between two vectors. It is widely used in various fields, including physics, engineering, and computer science. Understanding the dot product helps you to determine the angle between vectors and to project one vector onto another. This topic is crucial for solving problems involving vectors in both 2-space and 3-space.
Key idea: After this topic, you should be able to:
- Define the dot product of two vectors.
- Calculate the dot product for 2-dimensional and 3-dimensional vectors.
- Understand and calculate the projection of one vector onto another.
1. The Dot Product
The dot product, also known as the scalar product, is an operation that takes two vectors and returns a single number (a scalar). For two vectors u and v, the dot product is denoted as u · v. If u has components (u1, u2) in 2-space or (u1, u2, u3) in 3-space, and v has components (v1, v2) or (v1, v2, v3), the dot product is calculated as follows:
1.1 Dot Product in 2-Dimensional Space
For vectors u = (u1, u2) and v = (v1, v2), the dot product is:
u · v = u1 × v1 + u2 × v2
**Example:** Let u = (2, -1) and v = (1, 2). Calculate u · v.
u · v = 2 × 1 + (-1) × 2 = 2 - 2 = 0**Example:** Let u = (3, 4) and v = (1, 2). Calculate u · v.
u · v = 3 × 1 + 4 × 2 = 3 + 8 = 111.2 Dot Product in 3-Dimensional Space
For vectors u = (u1, u2, u3) and v = (v1, v2, v3), the dot product is:
u · v = u1 × v1 + u2 × v2 + u3 × v3
**Example:** Let u = (2, -1, 3) and v = (1, 2, -1). Calculate u · v.
u · v = 2 × 1 + (-1) × 2 + 3 × (-1) = 2 - 2 - 3 = -3**Example:** Let u = (1, 2, 2) and v = (2, -1, 2). Calculate u · v.
u · v = 1 × 2 + 2 × (-1) + 2 × 2 = 2 - 2 + 4 = 42. Properties of the Dot Product
The dot product has several important properties:
- Commutative Property: u · v = v · u
- Distributive Property: u · (v + w) = u · v + u · w
- Associative Property with Scalars: (c * u) · v = c * (u · v) for any scalar c
- Non-negative Result: u · u ≥ 0, and u · u = 0 if and only if u is the zero vector.
3. Projections
The projection of one vector onto another is a way to express how much of one vector lies in the direction of another vector. The projection of vector u onto vector v is denoted as projv u. The formula for the projection is:
projv u = (u · v / v · v) × v
3.1 Example of Projection in 2-Dimensional Space
Let u = (3, 4) and v = (1, 2). Calculate the projection of u onto v.
u · v = 3 × 1 + 4 × 2 = 3 + 8 = 11v · v = 1 × 1 + 2 × 2 = 1 + 4 = 5projv u = (11 / 5) × (1, 2) = (11/5, 22/5)3.2 Example of Projection in 3-Dimensional Space
Let u = (2, -1, 3) and v = (1, 2, -1). Calculate the projection of u onto v.
u · v = 2 × 1 + (-1) × 2 + 3 × (-1) = 2 - 2 - 3 = -3v · v = 1 × 1 + 2 × 2 + (-1) × (-1) = 1 + 4 + 1 = 6projv u = (-3 / 6) × (1, 2, -1) = (-1/2, -1, 1/2)Watch out: Be careful to use the correct components for each vector when calculating the dot product and the projection. A small mistake in signs or multiplication can lead to incorrect answers.
4. Summary
- The dot product of two vectors results in a scalar.
- In 2-space, the dot product is calculated as u · v = u1 × v1 + u2 × v2.
- In 3-space, the dot product is calculated as u · v = u1 × v1 + u2 × v2 + u3 × v3.
- The projection of u onto v is given by projv u = (u · v / v · v) × v.
Check your understanding
- Let u = (3, 0, -1) and v = (1, -2, 2). Find u · v.
- Let u = (1, 2, 2) and v = (2, -1, 2). Find projv u.
- Let u = (4, 5) and v = (3, 1). Calculate u · v.
- Let u = (1, 1, 1) and v = (2, 2, 2). What is projv u?
Test yourself
5 quick questions on this lesson. Pick an answer to see if you're right.
1. What is the projection of vector u = (3, 4) onto vector v = (1, 2)?
2. What is the formula for the projection of vector u onto vector v?
3. Let u=(3,0,-1) and v=(1,-2,2). Find u·v.
4. If u = (2, 3) and v = (0, 1), what is the value of u · v?
5. What is the dot product of the vectors u = (4, 5) and v = (3, 1)?