The scalar (dot) product: component formula, geometric formula, angle between vectors and orthogonality
“Compute the scalar product of two vectors in component or geometric form and use it to find the angle between vectors and test orthogonality”
The scalar (dot) product is , a number whose sign tells you whether the angle is acute, right or obtuse. Perpendicular vectors satisfy , and the angle between vectors is .
Jump to a section
What this dot point is asking
NESA wants you to compute the scalar (dot) product of two vectors using either the component formula or the geometric formula, understand it as a measure of how much two vectors point the same way, and use it for the two jobs it does in this course: finding the angle between vectors, and testing whether they are perpendicular. The dot product is also the engine of the next dot point, projection, and shows up constantly in geometric proofs, so it is worth knowing cold.
The answer
For two-dimensional vectors and there are two formulas for the same number.
Component form (the one you compute with):
Geometric form (the one that gives it meaning):
where is the angle between the two arrows when their tails are placed together.
Why the two formulas agree
This is worth seeing once. Apply the cosine rule to the triangle whose sides are , and (the side opposite the angle ):
Now expand the left side in components: . Comparing the two right-hand sides, the terms cancel and we are left with . The component formula and the geometric formula are the same number, which is exactly why one can be used to compute the other.
The result is a scalar (a number), not a vector. Three consequences carry most of the marks in this topic: (a vector dotted with itself is its length squared); the angle satisfies ; and two non-zero vectors are perpendicular if and only if .
The sign of the dot product tells you the angle
Because and are positive, the sign of matches the sign of . So without computing the angle at all you can read off whether it is acute, right or obtuse.
Acute angle: the dot product is positive. The vectors broadly agree in direction, , so .
Right angle: the dot product is zero. Perpendicular vectors have , so . This is the orthogonality test.
Obtuse angle: the dot product is negative. The vectors broadly oppose, , so .
Finding the angle between two vectors
Rearranging the geometric formula gives the angle directly:
This works for any two non-zero vectors. Because , returns exactly the right range (no quadrant ambiguity to resolve), which is one reason the dot product is the standard tool for angles between vectors.
Properties (bilinearity)
The scalar product behaves like ordinary multiplication, with one caveat: the output is a scalar. It is commutative, , and bilinear (linear in each slot):
These rules let you expand brackets exactly as in algebra. In particular, since ,
which is the vector analogue of and a workhorse in proofs.
How exam questions ask about the scalar product
- "Show that and are perpendicular" or "... orthogonal": compute and show it is .
- "Find the value of so that and are perpendicular": set and solve for .
- "Find the angle between ...": use , then round if asked.
- "Find a vector perpendicular to ": in 2D, swap the components and negate one, ; check with a dot product.
- "Hence find given , and the angle": expand with .
- " and ; find ": a bilinearity drill, distribute the dot product.
Decide first which formula the question hands you. If you are given components, use ; if you are given magnitudes and an angle (or asked for the angle), use . For a "perpendicular" question, do not compute the angle and check it is , just write "" and solve, it is faster and is the response markers expect. For an angle, keep the dot product and the magnitudes exact, substitute into , and only round at the very last line (state the degree of accuracy asked for, and include the degree or radian symbol). Sign-check obtuse answers: a negative dot product must give an angle bigger than .
Apply the component formula directly
Compute . Multiply corresponding components and add:
The result is a positive scalar, so the angle between these two vectors is acute.
Test orthogonality using the zero-dot-product criterion
Are and perpendicular? The quickest test is whether the dot product is zero:
Since the dot product is zero, the vectors are perpendicular.
Find an unknown so that two vectors are perpendicular
Find so that and are perpendicular. Set the dot product to zero and solve:
Find the angle using the geometric formula
Find the angle between and . Compute the dot product and the two magnitudes, then apply the angle formula:
Construct a perpendicular vector by inspection
Find a non-zero vector perpendicular to . For a 2D vector , the vector is always perpendicular (a rotation). Here that gives , and equally :
Exploit bilinearity to simplify a computation
If and , find . The dot product is linear in each slot, so it distributes like ordinary multiplication:
Use the expansion of a squared magnitude to find a length
If , , and , find . Expand the squared magnitude using the dot product, exactly as one expands :
- Confusing scalar product with a vector product
- The scalar (dot) product returns a number. There is no cross product in HSC Extension 1; do not produce a vector from .
- Squaring without expanding
- , just like . You cannot square term by term.
- Rounding too early
- Keep and the magnitudes exact, then round once at the end. Rounding the cosine first throws off the final degree.
- Forgetting bilinearity
- ; you must distribute, you cannot "factor out" a vector the way you factor a number.
- Angle outside
- The angle between two vectors is conventionally in , which is exactly the range returns. A negative cosine gives an obtuse angle, not a reflex one.
Exam-style questions
Questions in the style of NESA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.
HSC-style3 marksVectors and are perpendicular. Find .Show worked answer →
Perpendicular vectors satisfy .
Compute: .
Set to zero: , so .
Markers reward stating the orthogonality condition, the dot product computation, and the algebra.
HSC-style4 marksFind the angle between the vectors and in degrees to the nearest degree.Show worked answer →
.
, .
.
, so about .
Markers reward the formula, the magnitudes, the angle formula, and the rounded numerical answer.