Dot Product Examples: 47 Problems with Answers

Worked examples of Dot Product to try before you open each solution, then practice problems with answers.

Worked Examples

Example 1

easy
Find ⟨1,2⟩⋅⟨3,−1⟩.
Show solution

Answer

1

First step

1.
Step 1: Multiply corresponding components and sum: 1(3)+2(−1).

Full solution

  1. 2.
    Step 2: =3−2=1.
  2. 3.
    Note: The result is a scalar (number), not a vector.
The dot product multiplies corresponding components and sums the results, producing a scalar. A positive dot product means the vectors point in roughly the same direction (angle < 90°).

Example 2

medium
Find the angle between a=⟨1,0⟩ and b=⟨1,1⟩.

Example 3

easy
Compute ⟨2,5⟩⋅⟨2,5⟩ and interpret it.

Example 4

medium
Use the distributive property to expand (a+b)⋅c for a=⟨1,2⟩, b=⟨3,0⟩, c=⟨4,−1⟩.

Example 5

hard
Show that (a−b)⋅(a+b)=∥a∥2−∥b∥2.

Practice Problems

Try each one, then open the solution to compare your method.

Example 1

easy
Are ⟨2,3⟩ and ⟨−3,2⟩ perpendicular?

Example 2

hard
Find ⟨2,−1,3⟩⋅⟨4,5,−2⟩.

Example 3

easy
Compute ⟨2,3⟩⋅⟨4,1⟩.

Example 4

easy
Compute ⟨1,0⟩⋅⟨0,1⟩.

Example 5

easy
Compute ⟨5,2⟩⋅⟨3,4⟩.

Example 6

easy
Compute ⟨−2,3⟩⋅⟨4,−1⟩.

Example 7

easy
Compute ⟨1,2,3⟩⋅⟨4,5,6⟩.

Example 8

easy
Are ⟨3,6⟩ and ⟨−2,1⟩ perpendicular?

Example 9

easy
Compute ⟨0,0⟩⋅⟨7,9⟩.

Example 10

easy
Compute ⟨4,4⟩⋅⟨4,4⟩.

Example 11

medium
Find k so that ⟨2,k⟩ and ⟨6,−3⟩ are perpendicular.

Example 12

medium
Use a⋅b=∥a∥∥b∥cos⁡θ to find cos⁡θ for a=⟨3,4⟩, b=⟨4,3⟩.

Example 13

medium
Compute (2a)⋅b where a=⟨1,2⟩, b=⟨3,4⟩.

Example 14

medium
Compute a⋅(b+c) for a=⟨2,1⟩, b=⟨1,3⟩, c=⟨4,−1⟩.

Example 15

medium
Is the angle between ⟨1,2⟩ and ⟨3,−1⟩ acute, right, or obtuse?

Example 16

medium
Find the projection length of a=⟨4,3⟩ onto b=⟨1,0⟩.

Example 17

medium
Compute the work done by force F=⟨3,4⟩ over displacement d=⟨2,1⟩.

Example 18

medium
For what value of t is ⟨t,2⟩⋅⟨t,−8⟩=0?

Example 19

challenge
Vectors a=⟨1,2⟩ and b=⟨3,c⟩ make a 45∘ angle. The dot product is positive. Show the condition a⋅b>0 in terms of c.

Example 20

challenge
Prove that for any vectors, ∥a+b∥2=∥a∥2+2(a⋅b)+∥b∥2.

Example 21

challenge
Three points A=(0,0), B=(4,0), C=(1,3) form a triangle. Use the dot product to find the angle at A (give cos⁡).

Example 22

medium
Compute ⟨7,−2,1⟩⋅⟨1,3,−4⟩.

Example 23

easy
Compute ⟨3,4⟩⋅⟨1,2⟩.

Example 24

easy
Compute ⟨−1,5⟩⋅⟨2,3⟩.

Example 25

easy
Are ⟨4,1⟩ and ⟨−1,4⟩ perpendicular?

Example 26

easy
Compute ⟨1,1,1⟩⋅⟨2,3,4⟩.

Example 27

easy
Compute ⟨−3,6⟩⋅⟨4,−2⟩.

Example 28

medium
Find k so that ⟨5,k⟩ and ⟨2,3⟩ are perpendicular.

Example 29

medium
Find cos⁡θ for a=⟨1,1⟩ and b=⟨1,0⟩.

Example 30

medium
Given a=⟨3,4⟩ and b=⟨4,−3⟩, find the angle between them.

Example 31

medium
Find the scalar projection of a=⟨5,2⟩ onto b=⟨1,0⟩.

Example 32

medium
Is the angle between ⟨2,5⟩ and ⟨6,−1⟩ acute, right, or obtuse?

Example 33

medium
Compute the work done by force F=⟨5,12⟩ over displacement d=⟨3,4⟩.

Example 34

medium
Find k so that ⟨k,4⟩ is perpendicular to ⟨8,k⟩.

Example 35

medium
Find the vector projection of a=⟨3,4⟩ onto b=⟨1,0⟩.

Example 36

hard
Given ∥a∥=3, ∥b∥=5, and the angle between them is 60∘, find a⋅b.

Example 37

hard
If ∥a∥=4 and ∥b∥=3 and a⋅b=6, find ∥a+b∥.

Example 38

hard
Find a unit vector perpendicular to ⟨3,4⟩.

Example 39

hard
Triangle has vertices A=(1,1), B=(5,1), C=(1,4). Use the dot product to confirm the angle at A.

Example 40

hard
Compute ⟨2,−1,4⟩⋅⟨3,6,2⟩.

Example 41

hard
For what value(s) of t is the angle between ⟨1,t⟩ and ⟨t,4⟩ acute?

Example 42

challenge
Vectors a and b satisfy ∥a∥=∥b∥=1 and ∥a−b∥=1. Find a⋅b.

What to focus on

Core idea: The dot product multiplies matching components and adds, giving one number that is positive when vectors point alike, zero when perpendicular, negative when opposed.

Common stuck point: The procedure for dot product is the easy part; the trap is reporting a vector as the answer. Asking "Do I have two vectors and need one number measuring their directional agreement (not a new vector)?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

Ask yourself: Do I have two vectors and need one number measuring their directional agreement (not a new vector)?

Concept recap

The dot product of two vectors a=⟨a1,a2⟩ and b=⟨b1,b2⟩ is the scalar a⋅b=a1b1+a2b2. Equivalently, a⋅b=∥a∥∥b∥cos⁡θ, where θ is the angle between the vectors.

The dot product is a shadow measurement: shine light straight down onto the line of b, measure the shadow that a casts, and multiply by the length of b. A vector at right angles casts no shadow, so the result is 0, and one pointing backwards casts its shadow on the far side, a negative result. Unlike a real shadow, swapping the two roles gives the same answer.

Read the full lesson on Dot Product

Background knowledge

These ideas may be useful before you work through the harder examples.

vector operationsvector magnitude direction