Imagine you're pushing a heavy box across the floor. You push at an angle — not straight forward, but partly downward and partly forward. The part of your push that actually moves the box is only the forward component. The downward part just presses the box into the floor.
That's the core intuition behind the dot product: it measures how much one vector "goes in the direction of" another vector.
Step 1: What is a dot product?
Given two vectors a and b in 2D or 3D space, their dot product (also called the scalar product) is defined algebraically as:
a⋅b=a1b1+a2b2+a3b3
You multiply corresponding components and add them up. The result is a single number (a scalar), not a vector.
For example, if a=(3,4) and b=(2,−1), then:
a⋅b=3×2+4×(−1)=6−4=2
Step 2: The geometric meaning — the angle connection
Here's the beautiful part. The dot product also has a completely different geometric definition:
a⋅b=∣a∣∣b∣cosθ
where ∣a∣ and ∣b∣ are the magnitudes (lengths) of the vectors, and θ is the angle between them when they're placed tail-to-tail.
This is the dot product angle formula. It connects algebra (component multiplication) to geometry (angle and length).
Step 3: Why does this make sense?
Think about the extreme cases:
Vectors point in the same direction (θ=0∘): cos0=1, so a⋅b=∣a∣∣b∣ — the maximum possible value. All of one vector's "push" is in the other's direction.
Vectors are perpendicular (θ=90∘): cos90∘=0, so a⋅b=0. Neither vector has any component along the other. This is a crucial test for orthogonality.
Vectors point opposite (θ=180∘): cos180∘=−1, so a⋅b=−∣a∣∣b∣ — the most negative value. They're completely against each other.
Any other angle: the dot product is somewhere between these extremes, proportional to how much one vector "projects" onto the other.
Tip
The dot product is positive when the angle is acute (<90∘), zero when perpendicular, and negative when obtuse (>90∘). This sign alone tells you whether the vectors are generally aligned or opposed.
Step 4: Finding the angle from the dot product
If you know the components of two vectors, you can find the angle between them by rearranging the formula:
cosθ=∣a∣∣b∣a⋅b
Then use θ=cos−1(that value).
Example: Find the angle between a=(1,2) and b=(3,4).
Compute dot product: 1×3+2×4=3+8=11
Compute magnitudes: ∣a∣=12+22=5, ∣b∣=32+42=5
cosθ=5×511=5511≈0.9839
θ=cos−1(0.9839)≈10.3∘
The vectors are nearly aligned.
Watch out
The dot product formula gives cosθ, not θ itself. Always take the inverse cosine. Also, the formula works for vectors of any dimension — 2D, 3D, even 100D — as long as you use the component definition.
We use the dot product to find the angle between the vectors, yielding θ=arccos(258), and then apply the projection formula to find the projection of F on d as 582 units.
To find the angle between two vectors and the projection of one vector onto another, the dot product is our fundamental tool. The dot product, also known as the scalar product, provides a way to relate the algebraic components of vectors to their geometric relationship, specifically the angle between them.
Finding the Angle Between Vectors
The dot product of two vectors A and B can be defined in two ways:
Algebraically: If A=Axi^+Ayj^+Azk^ and B=Bxi^+Byj^+Bzk^, then A⋅B=AxBx+AyBy+AzBz.
Geometrically:A⋅B=∣A∣∣B∣cosθ, where ∣A∣ and ∣B∣ are the magnitudes of the vectors, and θ is the angle between them.
By equating these two definitions, we get a powerful formula to find the angle:
cosθ=∣A∣∣B∣A⋅B
This formula allows us to calculate the cosine of the angle using only the components of the vectors.
Let's apply this to our problem:
Identify the vectors.
We are given the force vector F and the displacement vector d:
F=3i^+4j^−5k^
d=5i^+4j^+3k^
Calculate the dot product F⋅d.
We multiply the corresponding components and sum them up:
F⋅d=(3)(5)+(4)(4)+(−5)(3)
F⋅d=15+16−15
F⋅d=16
Calculate the magnitudes of F and d.
The magnitude of a vector V=Vxi^+Vyj^+Vzk^ is given by ∣V∣=Vx2+Vy2+Vz2.
For F:
∣F∣=32+42+(−5)2
∣F∣=9+16+25
∣F∣=50
∣F∣=52
For d:
∣d∣=52+42+32
∣d∣=25+16+9
∣d∣=50
∣d∣=52
Tip
Notice that both vectors have the same magnitude, 50. This simplifies calculations slightly.
Apply the dot product formula to find cosθ.
Substitute the calculated dot product and magnitudes into the formula cosθ=∣F∣∣d∣F⋅d:
cosθ=(52)(52)16
cosθ=25⋅216
cosθ=5016
cosθ=258
Find the angle θ.
To find θ, we take the inverse cosine (arccosine) of the value: