the magnitude (length) of the vector a = a₁î + a₂ĵ + a₃k̂
a1
the î component of a
a2
the ĵ component of a
a3
the k̂ component of a
The length (magnitude) of the vector a₁î + a₂ĵ + a₃k̂ is √(a₁² + a₂² + a₃²).
Why it works
The vector goes a₁ along the x-axis, a₂ along the y-axis and a₃ along the z-axis. Its length is the distance from the origin to the point (a₁, a₂, a₃), which is the distance formula in space: Pythagoras used twice.
When to use it
Lengths of vectors, speeds from velocities, unit vectors (divide a vector by its magnitude), and the angle between two vectors.
How to use it
Square the three components.
Add the squares.
Take the square root.
To remember: Pythagoras in three directions.
Other forms
Special case∣a∣=a12+a22When the vector lies in the xy-plane (a₃ = 0).
To remember itThe unit vector along a is a ÷ |a|: same direction, length 1.
Worked examples
Story
A drone flies with velocity 3î + 4ĵ + 12k̂ metres per second. What is its speed?
9+16+144=13
Answer: 13
Picture
The vector î + ĵ + k̂ runs along the long diagonal of a unit cube. How long is the diagonal, and what is the unit vector along it?
1+1+1=3
The unit vector along it is (î + ĵ + k̂) ÷ √3.
Answer: 1.7320508075688772
Direct
Find the magnitude of 2î + 3ĵ + 6k̂.
4+9+36=7
Answer: 7
Reverse
The vector 2î − ĵ + zk̂ has magnitude 3, with z positive. Find z.
Try it first, then show the working
4+1+4=3
Answer: 2
Exam
Find a vector of magnitude 14 in the direction of 2î + 3ĵ + 6k̂.
Try it first, then show the working
The magnitude of 2î + 3ĵ + 6k̂ is 7, so the unit vector is (2î + 3ĵ + 6k̂) ÷ 7.
Multiply it by 14 to get 4î + 6ĵ + 12k̂. Check:
16+36+144=14
Answer: 4î + 6ĵ + 12k̂
Common mistake: Adding the components before squaring, or squaring a negative component to a negative number.
Class 12
Dot product in components
a⋅b=a1b1+a2b2+a3b3
What each letter means
a⋅b
the dot (scalar) product of a and b: a number, not a vector
a1
the î component of a
a2
the ĵ component of a
a3
the k̂ component of a
b1
the î component of b
b2
the ĵ component of b
b3
the k̂ component of b
The dot product of two vectors is found by multiplying their matching components and adding: a₁b₁ + a₂b₂ + a₃b₃.
Why it works
Multiply out (a₁î + a₂ĵ + a₃k̂) · (b₁î + b₂ĵ + b₃k̂). Since î · î = ĵ · ĵ = k̂ · k̂ = 1 and the dot product of two different unit vectors is 0 (they are perpendicular), only the matching terms survive.
When to use it
Testing whether two vectors are perpendicular (dot product 0), the work done by a force, the angle between vectors, and projections.
How to use it
Multiply the î components, the ĵ components and the k̂ components.
Add the three products.
To remember: Match, multiply, add.
Other forms
Special casea⋅a=a12+a22+a32When b = a: the dot product of a vector with itself is the square of its magnitude.
To remember itî · î = ĵ · ĵ = k̂ · k̂ = 1, and î · ĵ = ĵ · k̂ = k̂ · î = 0.
Worked examples
Story
A force 3î + 4ĵ + 5k̂ newtons moves a box through 2î + ĵ metres. How much work does it do (the dot product of force and movement)?
3×2+4×1+5×0=10
Answer: 10
Picture
Show that 2î + ĵ + k̂ and î − ĵ − k̂ are perpendicular.
2×1+1×(−1)+1×(−1)=0
The dot product is 0, so the vectors are perpendicular.
Answer: 0
Direct
Find (î + 2ĵ + 3k̂) · (4î − ĵ + 2k̂).
1×4+2×(−1)+3×2=8
Answer: 8
Reverse
Find λ so that î − 2ĵ + 3k̂ is perpendicular to 2î + λĵ + k̂.
Try it first, then show the working
1×2−2×2.5+3×1=0
Answer: 2.5
Exam
Find |a − b| if |a| = 2, |b| = 3 and a · b = 4.
Try it first, then show the working
Expand: |a − b|² = (a − b) · (a − b) = |a|² + |b|² − 2 a · b.
4+9−8=5
So |a − b| = √5.
Answer: √5
Common mistake: Multiplying across (a₁b₂) or giving the answer as a vector: the dot product is a single number.
Class 12
Angle between two vectors
cosθ=∣a∣∣b∣a⋅b
What each letter means
cosθ
the cosine of the angle θ between a and b
a⋅b
the dot product a · b
∣a∣
the magnitude of a
∣b∣
the magnitude of b
The cosine of the angle between two vectors is their dot product divided by the product of their lengths.
Why it works
The dot product is defined as a · b = |a| |b| cos θ. Dividing both sides by |a| |b| leaves cos θ.
When to use it
Finding the angle between two vectors (or two lines in space, through their direction vectors), and telling acute, right and obtuse angles apart by the sign of the dot product.
How to use it
Find a · b from the components.
Find |a| and |b|.
Divide, then take cos⁻¹ if the angle itself is wanted.
To remember: Dot over lengths gives the cosine.
Other forms
Rearrangeda⋅b=∣a∣∣b∣cosθThe definition of the dot product.
Worked examples
Story
Two robot arms point along î + ĵ and ĵ + k̂. What angle is there between them?
The dot product is 0 + 1 + 0 = 1, and each vector has length √2.
221=21
cos θ = ½, so the arms are at 60° to each other.
Answer: 60°
Picture
Find the angle between î + ĵ (the diagonal of a unit square) and î (its side).
a · b = 1, |a| = √2 and |b| = 1.
2×11=22
That is cos 45°, so the angle is 45°.
Answer: 45°
Direct
a · b = 6, |a| = 3 and |b| = 4. Find cos θ and θ.
3×46=21
So θ = 60°.
Answer: 0.5
Reverse
The angle between a and b is 60°, |a| = 2 and |b| = 5. Find a · b.
Try it first, then show the working
0.5×2×5=5
Answer: 5
Exam
Find the angle between î − 2ĵ + 3k̂ and 3î − 2ĵ + k̂.
Try it first, then show the working
a · b = 3 + 4 + 3 = 10, and both vectors have length √14.
141410=75
So θ = cos⁻¹(5/7).
Answer: θ = cos⁻¹(5/7)
Common mistake: Dividing by |a| + |b| instead of |a| × |b|.
Class 12
Projection of one vector on another
p=∣b∣a⋅b
What each letter means
p
the (scalar) projection of a on b: how far a reaches along the direction of b
a⋅b
the dot product a · b
∣b∣
the magnitude of b
The projection of a on b is the length of the shadow a casts on the line of b: the dot product divided by the length of b.
Why it works
The shadow of a on the line of b is |a| cos θ long. Since a · b = |a| |b| cos θ, the shadow is (a · b) ÷ |b|.
When to use it
The part of a force or velocity in a given direction, the component of one vector along another, and distances in space.
How to use it
Find a · b.
Divide by the length of b (the vector you project onto).
To remember: The shadow of a on b: dot, then divide by b's length.
Other forms
Special casep=∣a∣cosθWhen written with the angle θ between a and b.
Worked examples
Story
A wind of 3î + 4ĵ metres per second blows while a runner heads due east, along î. How much of the wind's speed is along the runner's path?
13=3
Answer: 3
Picture
A stick a, 5 units long, makes 60° with the ground line b, and |b| = 2, so a · b = 5 × 2 × cos 60° = 5. How long is the stick's shadow on the ground line?
25=2.5
That is 5 cos 60°, as it should be.
Answer: 2.5
Direct
Find the projection of 2î + 3ĵ + 2k̂ on î + 2ĵ + k̂.
a · b = 2 + 6 + 2 = 10 and |b| = √6.
610=356
Answer: 5√6/3
Reverse
The projection of a on b is 4 and |b| = 3. Find a · b.
Try it first, then show the working
4×3=12
Answer: 12
Exam
Find the projection of î − ĵ on ĵ + k̂.
Try it first, then show the working
a · b = 0 − 1 + 0 = −1 and |b| = √2.
2−1=−22
A negative projection means the angle between them is more than 90°.
Answer: −1/√2
Common mistake: Dividing by |a| instead of |b|: you divide by the length of the vector being projected onto.
Class 12
Magnitude of the cross product
∣a×b∣=∣a∣∣b∣sinθ
What each letter means
∣a×b∣
the magnitude of the cross product a × b: the area of the parallelogram on a and b
∣a∣
the magnitude of a
∣b∣
the magnitude of b
θ
the angle between a and b (degrees)
The cross product a × b is a vector at right angles to both a and b, and its length is |a| |b| sin θ: the area of the parallelogram with sides a and b.
Why it works
A parallelogram with sides |a| and |b| at an angle θ has base |b| and height |a| sin θ, so its area is |a| |b| sin θ. The cross product is defined to have exactly this length.
When to use it
Areas of parallelograms and triangles in space, testing whether two vectors are parallel (cross product 0), and the moment (turning effect) of a force.
How to use it
Find the lengths |a| and |b| and the angle θ between them.
Multiply |a| × |b| × sin θ.
For a triangle on a and b, take half of it.
To remember: Cross gives area: base times height, with sin.
Other forms
Special case∣a×b∣=∣a∣∣b∣When a and b are perpendicular (θ = 90°).
To remember itThe area of the triangle on a and b is ½ |a × b|.
Worked examples
Story
A spanner 0.5 m long is pushed with a force of 20 N at 90° to it. The turning effect is the magnitude of the cross product. How big is it?
0.5×20×sin90=10
Answer: 10
Picture
Find the area of a parallelogram with sides 6 and 5 at an angle of 150°.
6×5×sin150=15
Answer: 15
Direct
|a| = 3, |b| = 4 and the angle between them is 30°. Find |a × b|.
3×4×sin30=6
Answer: 6
Reverse
Two vectors of lengths 4 and 5 make a parallelogram of area 10√3. What is the angle between them (less than 90°)?
Try it first, then show the working
sin θ = 10√3 ÷ (4 × 5) = √3/2, and so θ = 60°.
4×5×sin60=103
Answer: 60°
Exam
Find the area of the triangle with sides along a = î + ĵ and b = ĵ.
Try it first, then show the working
a × b = (î + ĵ) × ĵ = î × ĵ = k̂, whose length is 1.
The triangle is half the parallelogram, so its area is ½.
21×2×1×sin45=21
Answer: 1/2
Common mistake: Using cos θ (that is the dot product), or forgetting to halve for a triangle.