The Dot Product (Scalar Product)
Introduction to the Dot Product
What is a Dot Product?
The Dot Product, also known as the Scalar Product, is a mathematical operation that takes two vectors and combines them into a single number called a scalar.
Unlike vector addition, the result has no direction—it only represents the degree to which two vectors point in the same direction.
Welcome! Today we're exploring the dot product. Imagine two vectors, A and B. When we calculate their dot product, we aren't creating a new vector; we're finding a single number that tells us how much they overlap or align.
- The dot product results in a scalar, not a vector.
- It measures the 'alignment' between two vectors.
- Essential for physics concepts like Work and Power.
The Algebraic Definition
Calculating with Components
If you know the Cartesian components (x, y, z) of your vectors, calculation is straightforward. You simply sum the products of the corresponding components.
Formula:
A · B = (Aₓ × Bₓ) + (Aᵧ × Bᵧ) + (A₂ × B₂)
When vectors are given in components, the dot product is easy to find. First, multiply the x-components. Then, multiply the y-components. Finally, add them all up. The result is your scalar product.
- Multiply x with x, y with y, and z with z.
- Sum the results for the final scalar value.
- Works in any number of dimensions.
The Geometric Definition
Calculating with Magnitude and Angle
If you have the magnitudes of the vectors and the angle (θ) between them, use the geometric formula.
Formula:
A · B = |A| |B| cos(θ)
Sometimes we don't have components, but we know how long the vectors are and the angle between them. By multiplying the magnitudes of A and B by the cosine of the angle θ, we get the same dot product value as the algebraic method.
- |A| and |B| are the lengths of the vectors.
- θ is the angle between the vectors when placed tail-to-tail.
- The cosine term accounts for the alignment.
Interpreting the Angle
Angle Relationships
The sign of the dot product reveals the nature of the angle between vectors:
- Positive (> 0): Acute angle (0° to 90°).
- Zero (= 0): Orthogonal (90°).
- Negative (< 0): Obtuse angle (90° to 180°).
The dot product acts like a compass for alignment. When the product is positive, the angle is acute. If it hits zero, the vectors are perpendicular—or orthogonal. And a negative result means they've crossed into an obtuse angle.
- A positive result means the vectors generally point in the same direction.
- A negative result means they generally point in opposite directions.
- Zero means they are perfectly perpendicular.
Scalar and Vector Projections
The 'Shadow' of a Vector
Projection measures how much of vector A lies along the direction of vector B.
- Scalar Projection: The length of the shadow.
- Vector Projection: The shadow as a vector pointing along B.
Think of projection as a shadow. Imagine a light shining perpendicular to vector B. The shadow cast by vector A onto B is the projection. The length of this shadow is the scalar projection, while the shadow itself, as a vector, is the vector projection.
- Scalar Projection = (A · B) / |B|
- Vector Projection = [(A · B) / |B|²] × B
- The projection is independent of the length of A.
Physics Application: Work
Work = Force · Displacement
In physics, Work (W) is the dot product of the Force vector (F) and the Displacement vector (d).
W = F · d = |F| |d| cos(θ)
Let's apply this to physics. You're pulling a crate with a force of 50 Newtons at a 30-degree angle. The crate moves 10 meters. Only the force acting *along* the floor contributes to the work. Using our formula, we find the work is about 433 Joules.
- Only the component of force in the direction of motion does work.
- Work is zero if force is perpendicular to displacement.
- Units are Joules (J).
Socratic Tutor: Solving for the Angle
Given two vectors A = (3, 4) and B = (4, -3), let's find the angle between them. Ask me a question if you're stuck on the steps!
Now it's your turn. We have two vectors: A and B. Your goal is to find the angle between them. Don't just guess—think about the steps we've covered. If you're unsure how to start, just ask me!
- Calculate the dot product first.
- Find the magnitudes of both vectors.
- Use cos(θ) = (A · B) / (|A| |B|).
Diagnosis: The Common Pitfall
Check the Calculation
A student calculated the dot product of A = (2, 5) and B = (3, 1) as the vector (6, 5). Explain why this is incorrect and provide the right answer.
Look at this student's work. They think the dot product of (2, 5) and (3, 1) is (6, 5). In the box below, explain the mistake they made and calculate the correct scalar value.
- The dot product results in a scalar, not a vector.
- Components are multiplied and then added.