HSC Study

The Scalar Product and Projection

The dot product in its two forms, why they agree, and how to use it to find angles, test for parallel and perpendicular vectors, expand lengths and project one vector onto another.

55 min · Vectors

Assumes you have read Introduction to Vectors.

The full teaching. Start here.

The short version

For and with angle between them:

  • The answer is a number (a scalar), not a vector.
  • Angle: . A negative dot product means an obtuse angle.
  • Length: . Use it to expand things like .
  • Perpendicular: (for non-zero vectors).
  • Parallel: for some scalar . A negative still counts.
  • Projection of onto : , the shadow of along .

Defining the dot product

Scalar (dot) product

For and , the scalar product is the number

Multiply matching components and add. In column form, .

The name "scalar product" is a reminder of what comes out. Two vectors go in and a single real number comes out. The "dot" is the symbol, and it must be written: means nothing.

CheckpointAnswer before reading on.

Find where and .

Hint 1Multiply matching components.

Hint 2 and .

Hint 3Add them.

CheckpointAnswer before reading on.

Find .

Hint 1Top times top, bottom times bottom.

Hint 2 and .

Hint 3Add.

CheckpointAnswer before reading on.

What kind of quantity is ?

Select one answer

Hint 1Look at the formula .

Hint 2Is there an in it?

Hint 3It is a number.

The dot product follows most of the rules of ordinary multiplication:

  • (commutative)
  • (distributive, so brackets expand as usual)
  • (scalars come out)

One rule fails. has no meaning, because is a number and you cannot dot a number with a vector.

CheckpointAnswer before reading on.

Which property of the scalar product is FALSE?

Select one answer

Hint 1Test each with components.

Hint 2Dot products give scalars.

Hint 3Can you dot a scalar with ?

A vector dotted with itself

Dot with itself:

This is the single most useful fact in the topic. It lets you turn any length into a dot product, expand it with the ordinary rules, and turn it back.

Worked example3 marks

Components, then a length by expanding

(a) Find for and .

(b) Establish that for any .

(c) Given , and , find .

Multiply and add

The component definition. The answer is a number.

.

Dot a vector with itself

"Establish" means prove it from the definition, not quote it.

. Since , this is .

Turn the length into a dot product

There is no formula for the length of a sum in terms of the lengths. There is one for the dot product of a sum.

The two middle terms and combine because the dot product is commutative.

Substitute

Each term is now a known number.

, so .

Answer

(a) . (c) .

Is that answer sensible?

The length of a sum can be at most (when the vectors point the same way) and at least . is in range, and near the top because means the vectors point broadly the same way.

CheckpointAnswer before reading on.

If , find .

Hint 1 between a vector and itself.

Hint 2.

Hint 3.

CheckpointAnswer before reading on.

Establish that using the component form of . (2 marks)

Hint 1Dot the vector with itself.

Hint 2.

Hint 3Compare with the magnitude formula.

CheckpointAnswer before reading on.

Given , and , find correct to two decimal places.

Hint 1.

Hint 2Expand like brackets.

Hint 3.

Common mistake

|a + b|² = |a|² + |b|²

Why it happens: Brackets are expanded without the middle term, as if squaring a sum of numbers.

has four terms, and two of them are . The statement without the middle term is Pythagoras, and it is only true when .

CheckpointAnswer before reading on.

A student writes for any vectors. When is this true?

Select one answer

Hint 1Expand .

Hint 2There is a term.

Hint 3When is it zero?

The geometric form

The same number has a second description, in terms of lengths and the angle between the vectors:

Here is the angle between the vectors when they are drawn tail to tail, from the same point.

The special cases and are worth noticing, because they are the reason the component formula works. Expanding gives four terms, and the two mixed ones vanish.

CheckpointAnswer before reading on.

Which is correct?

Select one answer

Hint 1 and are perpendicular unit vectors.

Hint 2.

Hint 3.

CheckpointAnswer before reading on.

Vectors and have magnitudes and and the angle between them is . Find .

Hint 1.

Hint 2.

Hint 3.

Why the two forms agree

The syllabus asks you to demonstrate this. The proof uses the cosine rule on the triangle formed by two vectors and their difference.

θOuvu − v
Drawn tail to tail, the vectors u and v and the side joining their tips, u − v, form a triangle.

Worked example3 marks

The two forms of the dot product are equal

Let and with angle between them. Show that .

Find a triangle

The cosine rule connects two sides, the angle between them and the third side. Here the two sides are the vectors.

Draw and from the same point. The third side goes from the tip of to the tip of , so it is (end minus start). By the cosine rule:

Write each length in components

The target has components on one side, so convert everything else to components.

, so

Expand and cancel

The squared terms appear on both sides and cancel, leaving only the cross terms.

The left side is . Cancelling the four squares:

Answer

Dividing by , , so both expressions are .

Is that answer sensible?

Test with , : the left side is and the right side is .

Exam question

Harder · about 5 min

3 marks

Let and with angle between them. Use the cosine rule in the triangle formed by , and to show that . (3 marks)

Hint 1The third side is .

Hint 2Cosine rule: .

Hint 3Expand the squared magnitudes in components.

Where students lose marks on this one
  • Using $\underset{\sim}{u}+\underset{\sim}{v}$ as the third side.

    Why it happens: The parallelogram diagonal is misremembered.

    Vectors from a common point: the side joining their tips is the difference.

Written for this site.

The angle between two vectors

Rearranging the geometric form gives the angle:

The lengths are always positive, so the sign of the dot product tells you the type of angle before you calculate anything:

angle
positivepositiveacute,
zerozeroright angle
negativenegativeobtuse,

CheckpointAnswer before reading on.

If for non-zero vectors, what can you say about the angle between them?

Select one answer

Hint 1Magnitudes are positive.

Hint 2So the sign comes from .

Hint 3Where is cosine negative on ?

Worked example2 marks

An obtuse angle

Find the angle between and , correct to one decimal place.

Dot product

Its sign already tells you what to expect.

. Negative, so the angle is obtuse.

Lengths

The denominator of the cosine formula.

and .

Inverse cosine

Keep the negative sign. Inverse cosine returns angles from 0° to 180°, exactly the range needed, so no quadrant work is required.

Answer

.

Is that answer sensible?

points into the fourth quadrant and into the second, nearly opposite ways, so an angle close to makes sense.

CheckpointAnswer before reading on.

Find the angle, in degrees, between and .

Hint 1.

Hint 2, .

Hint 3.

CheckpointAnswer before reading on.

Find the angle, in degrees correct to one decimal place, between and .

Hint 1.

Hint 2, .

Hint 3Negative cosine means obtuse.

Common mistake

Using AB and CA to find angle A in a triangle.

Why it happens: The vectors are read off the diagram without checking they start at the same point.

The formula gives the angle between vectors drawn tail to tail. For the angle at , use and , both starting at . Reversing one of them gives the supplement, , instead.

CheckpointAnswer before reading on.

Triangle has vertices , and . Use vectors to find in degrees, correct to one decimal place.

Hint 1Use and , both starting at .

Hint 2.

Hint 3.

Exam question

Harder · about 3 min

2 marks

The vectors and satisfy , and . Find the angle between and , in degrees.

Hint 1Expand .

Hint 2.

Hint 3Then .

Where students lose marks on this one
  • Expanding $\left|\underset{\sim}{a}-\underset{\sim}{b}\right|^{2}$ as $\left|\underset{\sim}{a}\right|^{2}-\left|\underset{\sim}{b}\right|^{2}$.

    Why it happens: Treating it like ordinary subtraction.

    Expand fully.

Written for this site.

Parallel and perpendicular vectors

Two tests, and they are different in kind.

Perpendicular. For non-zero vectors, is zero exactly when , that is when . So

Parallel. Parallel vectors point along the same line, the same way or opposite ways. One is a scalar multiple of the other:

A positive means the same direction and a negative means the opposite direction. Both are parallel. (In terms of angle, parallel means or , so . The scalar multiple test is quicker.)

CheckpointAnswer before reading on.

Explain why two non-zero vectors and are perpendicular if and only if . (2 marks)

Hint 1.

Hint 2The magnitudes are not zero.

Hint 3 on .

Worked example3 marks

Solving for a parallel and a perpendicular vector

Let and . Find if (a) , (b) .

Perpendicular: dot product zero

One equation, one unknown.

, so .

Parallel: scalar multiple

Write one as a multiple of the other and match components. The j components involve no k, so they give the multiple.

. Matching components: , so . Matching components: .

Answer

(a) . (b) .

Is that answer sensible?

(a) . (b) , and the negative multiple means the two point opposite ways.

CheckpointAnswer before reading on.

Find such that is perpendicular to .

Hint 1Perpendicular means dot product zero.

Hint 2.

Hint 3Solve.

CheckpointAnswer before reading on.

Find such that is parallel to .

Hint 1Parallel means one is a scalar multiple of the other.

Hint 2.

Hint 3.

CheckpointAnswer before reading on.

Consider , and . Which statement is true?

Select one answer

Hint 1Is a multiple of ?

Hint 2Compute .

Hint 3Test each pair.

A quick way to write down a vector perpendicular to : swap the components and change one sign, giving (or ). The dot product is .

CheckpointAnswer before reading on.

Which is a unit vector perpendicular to ?

Select one answer

Hint 1Swap the components and change one sign.

Hint 2 is perpendicular.

Hint 3Divide by its length, 5.

Dot products in geometry

Perpendicularity plus is enough to prove classical geometry theorems. The pattern is always the same: write the two lines as vectors, expand their dot product, and use a known equal length to make it zero.

What lifts this to a Band 6

In a proof, say out loud each property you use. Write "since the dot product is commutative" when you cancel against , and "since (sides of a rhombus)" when you cancel the squares. Markers look for the reason, not just the algebra.

Exam question

Harder · about 5 min

3 marks

is a rhombus with and . Use the scalar product to prove that the diagonals of the rhombus are perpendicular. (3 marks)

Hint 1The diagonals are and .

Hint 2Expand their dot product.

Hint 3In a rhombus .

Where students lose marks on this one
  • Cancelling $\underset{\sim}{a}\cdot \underset{\sim}{c}$ and $\underset{\sim}{c}\cdot \underset{\sim}{a}$ without saying why.

    Why it happens: Commutativity is used silently.

    State so the cancellation is justified.

Written for this site.

Exam question

Hardest asked · about 5 min

3 marks

is a diameter of a circle with centre and is another point on the circle. Let and . Prove that . (3 marks)

Hint 1.

Hint 2 and .

Hint 3All radii have the same length.

Where students lose marks on this one
  • Writing $\overrightarrow{PA}=\underset{\sim}{p}-\underset{\sim}{a}$.

    Why it happens: Getting the direction backwards.

    = position of minus position of .

Written for this site.

Projection

Projection of a onto b

The vector projection of onto a non-zero vector is

It is the component of in the direction of .

Picture light shining perpendicular to . The projection is the shadow that casts on the line of .

θOabprojection of a onto b
The projection is the part of the line of b under a, found by dropping a perpendicular from the tip of a.

Where the formula comes from: the shadow has length (the adjacent side of a right-angled triangle with hypotenuse ), and it points along the unit vector . So

The division by is not a typo. One factor of undoes the inside the dot product, and the other makes a unit vector. If the angle is obtuse, the dot product is negative and the projection points opposite to .

CheckpointAnswer before reading on.

Geometrically, the projection of onto is:

Select one answer

Hint 1Think of a shadow.

Hint 2Light shines perpendicular to .

Hint 3It lies along .

CheckpointAnswer before reading on.

What is the projection of onto ?

Select one answer

Hint 1.

Hint 2.

Hint 3Scale .

Common mistake

proj of a onto b = (a·b / |b|) b

Why it happens: The scalar projection (a length) and the vector projection are mixed up.

is a number, the signed length of the shadow. To make it a vector, multiply by the unit vector , not by itself. That brings the second into the denominator.

CheckpointAnswer before reading on.

Find the projection of onto .

Select one answer

Hint 1.

Hint 2.

Hint 3.

CheckpointAnswer before reading on.

Find the scalar projection (signed length of the projection) of onto .

Hint 1.

Hint 2.

Hint 3.

CheckpointAnswer before reading on.

If , the projection of onto is:

Select one answer

Hint 1What is ?

Hint 2The projection has as a factor.

Hint 3A shadow of zero length.

Splitting a vector into two pieces

Projection splits any vector into a piece along and a piece perpendicular to :

The perpendicular piece is the shortest route from the tip of to the line of . That makes projection the way to find the distance from a point to a line with vectors.

Worked example3 marks

Parallel and perpendicular parts

Write as the sum of a vector parallel to and a vector perpendicular to .

Project

The parallel part is the projection.

and , so .

Subtract

Whatever is left over has no component along b.

.

Answer

.

Is that answer sensible?

, so the second piece is perpendicular to , and is parallel to it.

CheckpointAnswer before reading on.

Write as the sum of a vector parallel to and a vector perpendicular to . (3 marks)

Hint 1The parallel part is the projection.

Hint 2, .

Hint 3The perpendicular part is what is left.

Exam question

Hardest asked · about 5 min

3 marks

The line passes through the origin in the direction of . Use projection to find the shortest distance from the point to .

Hint 1Project onto .

Hint 2The perpendicular part is the shortest distance.

Hint 3.

Where students lose marks on this one
  • Giving the length of the projection.

    Why it happens: Reporting the wrong component.

    The distance to the line is the perpendicular component.

Written for this site.

Exam question

Harder · about 3 min

2 marks

Show that the length of the projection of onto is , where is the angle between them, and explain what this means in the diagram. (2 marks)

Hint 1Take the magnitude of .

Hint 2Replace with the cosine form.

Hint 3Think right-angled triangle.

Where students lose marks on this one
  • Leaving the answer as $\left|\underset{\sim}{a}\right|\cos\theta$ with no absolute value.

    Why it happens: Forgetting obtuse angles.

    Lengths are non-negative. The sign only tells you the direction.

Written for this site.

Drag the components below. When the angle between and is obtuse, the projection points the opposite way to . When they are perpendicular, the projection is the zero vector.

The projection of a onto ba = (3, 3) and b = (4, 1). The dot product is 15.00 and the projection of a onto b is (3.53, 0.88).baproj-5-4-3-2-1012345-5-4-3-2-1012345xy
The projection is the shadow of a on the line of b. When the angle between them passes 90° the dot product turns negative and the projection points the opposite way to b.
3.0
3.0
4.0
1.0
a · b
15.00
Angle between a and b
31.0°
proj of a onto b = (a · b / b · b) b
(3.53, 0.88)
Scalar projection a · b / |b|
3.638

Every slider is a normal range input, so the arrow keys move it one step and Home and End jump to the extremes.

The Cauchy–Schwarz inequality

Since , the geometric form gives at once. In components this says

a purely algebraic inequality that is surprisingly awkward to prove directly. Equality holds exactly when , that is when the vectors are parallel.

The triangle inequality follows. , so . A side of a triangle is never longer than the other two together. This is a good model for Extension 2 inequality proofs, where a geometric fact is used to prove an algebraic one.