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 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.

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.

Interpreting the Angle

Angle Relationships

The sign of the dot product reveals the nature of the angle between vectors:

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.

Scalar and Vector Projections

The 'Shadow' of a Vector

Projection measures how much of vector A lies along the direction of vector 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.

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.

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!

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.