Dot Product

Dot Product Calculation and Meaning
The dot product takes two vectors and produces a single scalar (a number, not a vector). You calculate it by multiplying corresponding components and adding the results.
- In 2D:
- In 3D:
But the dot product isn't just arithmetic. There's a geometric formula that connects it to the angle between the two vectors:
where is the angle between and . This is what makes the dot product so useful: it encodes directional information.
- Positive dot product โ vectors point in roughly the same direction (acute angle, )
- Zero dot product โ vectors are perpendicular ()
- Negative dot product โ vectors point in roughly opposite directions (obtuse angle, )
Angle Determination Using the Dot Product
Since both formulas compute the same dot product, you can set them equal and solve for the angle:
- Compute using components.
- Compute and (the magnitudes of each vector).
- Plug into the rearranged formula:
- Take the inverse cosine to get the angle:
Example: Find the angle between and .
- , and
Perpendicularity check: Are and perpendicular?
The dot product is zero, so yes, these vectors are orthogonal (perpendicular). You don't even need to compute magnitudes when checking for perpendicularity; a dot product of zero is sufficient.
Vector Projections

Vector Projection and Scalar Projection
Projecting onto answers the question: how much of points in the direction of ? Think of it as the "shadow" casts onto the line defined by when light shines straight down perpendicular to that line.
There are two versions to know:
Scalar projection (a number): the signed length of that shadow.
- Positive means has a component in the same direction as
- Negative means has a component in the opposite direction
Vector projection (a vector): the actual vector lying along that represents that component.
Notice the difference: the scalar projection divides by , while the vector projection divides by and then multiplies by itself. A good way to remember this: the vector projection takes the scalar projection and scales the unit vector by it, which is why you end up with in the denominator.
Example: Project onto .
This makes geometric sense: points along the x-axis, so the projection of onto it is just the x-component of .
Decomposing a Vector into Parallel and Perpendicular Components
Once you have the parallel component (), you can find the perpendicular component by subtraction:
This decomposes into two parts: one parallel to and one perpendicular to it. You can verify your work by checking that (they should be orthogonal).
Continuing the example above: . Check: . It works.
Applications in Geometric Problem-Solving
-
Work done by a force. If a force acts on an object that moves along displacement , the work is . Only the component of force in the direction of motion contributes to work.
-
Resolving forces on inclined planes. Project the weight vector onto the direction parallel to the surface and the direction perpendicular to it. The parallel component is the force pulling the object down the slope; the perpendicular component equals the normal force.
-
Finding force components in a given direction. Use to extract the part of a force that acts along a specific direction .
-
Distance from a point to a line. Project the vector from any point on the line to the given point onto the line's direction vector. The perpendicular component (what's left after subtracting the projection) has a magnitude equal to the distance from the point to the line.