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.
The Work-Energy Theorem tells us that the sign of work depends on whether the force acts along or opposite to the displacement. For a body raised upward, applied force does positive work and gravitational force does negative work.
The key is to think about the direction of each force relative to the motion. When you lift something, you push it upward — the displacement is upward too. Gravity, on the other hand, always pulls downward. So the two forces are literally pulling in opposite directions relative to the movement.
Work is defined as W=F⋅scosθ, where θ is the angle between the force and the displacement. The sign of work is simply the sign of cosθ — positive when the force helps the motion, negative when it opposes it.
Applied force: You apply an upward force to raise the body. The displacement is also upward. So the angle between them is 0∘, and cos0∘=1.
Hence, Wapplied=Fapplied⋅h⋅1>0.
Work done by applied force is positive.
Gravitational force: Gravity acts downward, while displacement is upward. The angle between them is 180∘, and cos180∘=−1.