Home · Lessons · Mathematics

Mathematics

Vectors

A vector carries magnitude and direction: representation and components, addition, subtraction and scalar multiplication, the dot product and projection, the angle between two vectors, the parallel and perpendicular conditions, and applications to lengths and angles.

In this lesson
  1. Basic Definitions and Concepts
  2. Laws and Main Formulas
  3. Illustrative Diagrams
  4. Detailed Solved Examples
  5. Comparison Tables
  6. CSCA Tips and Common Mistakes
  7. Additional Exercises with Solutions

Basic Definitions and Concepts

What a vector is

A vector is a quantity defined by both magnitude and direction, such as displacement, velocity and force. A scalar is defined by magnitude alone, such as mass, temperature or time.

A vector is written with an arrow over a letter, or in bold, and is drawn as an arrow whose length represents magnitude and whose head shows direction. In the coordinate plane a vector is written by its components: a = (x, y), with magnitude |a| = √(x² + y²).

The idea in one sentence

Read a vector as an instruction for a move: "3 steps east, then 4 steps north" is the vector (3, 4). The instruction says nothing about where you start. From the origin you land at (3, 4); from (10, 10) you land at (13, 14). Same arrow, drawn somewhere else. That one picture explains why equal vectors may sit in different places, why addition means "do the first move, then the second", and why subtraction answers "which move takes me from B to A".

Symbols and terms you must recognise

Properties that follow from the definition

For all vectors a, b, c and all real numbers k and m:

Special and degenerate cases

Where this appears in the CSCA paper

Vector items in the CSCA mathematics paper are short and computational. They seldom ask for a proof and almost never need an accurate drawing. The recurring shapes are:

All five reduce to the same three tools: components, the dot product and the magnitude formula. Nothing later in the section needs a new idea.

Laws and Main Formulas

Core operations

Addition: (x₁+x₂, y₁+y₂) — geometrically by the triangle or parallelogram rule. Subtraction: (x₁−x₂, y₁−y₂). Scalar multiple k: (kx, ky), which scales the magnitude and reverses direction when k is negative.

Dot product: a·b = |a||b|cos θ = x₁x₂ + y₁y₂. The result is a number, not a vector.

CaseConditionMeaning
Perpendiculara·b = 0angle 90°, vectors are orthogonal
Parallela = k·bsame or opposite direction, angle 0° or 180°
Anglecos θ = (a·b)/(|a||b|)the angle between the vectors
Projection(a·b)/|b|length of the projection of a onto b

Sign of the projection: positive for an acute angle, negative for an obtuse angle.

Notation, meaning and units

Units are not decoration. The dot product of two displacements is an area, while the dot product of force and displacement is energy. Keep the unit of every symbol in view whenever a question mixes quantities.

SymbolMeaningUnit or type
a, b, ABa vectorunit of the quantity (m, N, m/s)
|a|magnitude, the length of the arrowsame unit as a, never negative
x, y, zcomponents, signedsame unit as a
e_aunit vector along apure number, length 1
k, mscalar multiplierspure number
θangle between two vectors, 0° ≤ θ ≤ 180°degrees or radians
a·bdot productproduct of the two units (m², N·m = J)
proj_b ascalar projection of a on bsame unit as a

The complete formula set

Length in the plane. |a| = √(x² + y²). In space, |a| = √(x² + y² + z²).

Vector between two points. AB = (x₂ − x₁, y₂ − y₁), head minus tail, and |AB| = √((x₂ − x₁)² + (y₂ − y₁)²).

Unit vector. e_a = (1/|a|)(x, y), so |e_a| = 1. The two unit vectors along the line of a are ±e_a.

Midpoint and section. The midpoint of AB is ((x₁ + x₂)/2, (y₁ + y₂)/2). A point dividing AB in the ratio m : n has position ((n x₁ + m x₂)/(m + n), (n y₁ + m y₂)/(m + n)).

Addition, subtraction, scalar multiple. a ± b = (x₁ ± x₂, y₁ ± y₂) and k a = (k x₁, k y₁).

Dot product, two forms. a·b = x₁x₂ + y₁y₂ = |a||b| cos θ.

Angle. cos θ = (x₁x₂ + y₁y₂)/(|a||b|), with 0° ≤ θ ≤ 180°, so θ = arccos of that value.

Scalar projection. proj_b a = (a·b)/|b| = |a| cos θ. It is signed, not a length.

Vector projection. The shadow itself is the vector ((a·b)/|b|²) b.

Perpendicular test. a ⟂ b exactly when a·b = 0, that is x₁x₂ + y₁y₂ = 0.

Parallel test. a ∥ b exactly when x₁y₂ − x₂y₁ = 0. The same determinant is twice the signed area of the parallelogram built on a and b, so |x₁y₂ − x₂y₁| is that area.

Direction cosines in space. cos α = x/|a|, cos β = y/|a|, cos γ = z/|a|, and cos²α + cos²β + cos²γ = 1.

Work. W = F·d, in joules when F is in newtons and d in metres. Only the part of F along d does work.

Where the formulas come from, in words

The dot product from the cosine rule. Draw a and b from one point, so the third side of the triangle is a − b. The cosine rule gives |a − b|² = |a|² + |b|² − 2|a||b| cos θ. Expanding the left side with vector algebra gives |a|² − 2a·b + |b|². Both expressions contain |a|² + |b|², so −2a·b = −2|a||b| cos θ. That is the geometric form.

The component form. Write a = x₁i + y₁j and b = x₂i + y₂j, where i and j are the unit vectors along the axes. Multiply out and use i·i = j·j = 1 (a unit vector with itself) and i·j = 0 (the axes are perpendicular). Four terms appear, two vanish, and x₁x₂ + y₁y₂ remains. This is why the dot product is easy in components and awkward in geometry.

The unit vector. Dividing a by |a| multiplies it by the positive number 1/|a|, so the direction survives and the length becomes |a|/|a| = 1. Dividing by a negative number would flip the arrow, which is why the unit vectors come in the pair ±e_a.

The angle formula. Set the two expressions for a·b equal: x₁x₂ + y₁y₂ = |a||b| cos θ. Divide by the positive number |a||b|. The sign of cos θ, and with it the answer acute or obtuse, is decided entirely by the numerator.

Standards and cases at a glance

CaseComponent testAngleHow it is worded
Same directiona = k b with k > 00°"parallel and pointing the same way"
Opposite directiona = k b with k < 0180°"parallel but opposed"
Perpendicularx₁x₂ + y₁y₂ = 090°"find k so that a ⟂ b"
Acutex₁x₂ + y₁y₂ > 00° < θ < 90°"is the angle acute?"
Obtusex₁x₂ + y₁y₂ < 090° < θ < 180°"the projection is negative"
Equalx₁ = x₂ and y₁ = y₂0°, equal length"which vector equals AB?"

Illustrative Diagrams

Figure 1: adding two vectors with the parallelogram rule. Vectors a and b are drawn from the same point and the diagonal gives a+b. Note that a+b and b+a give the same diagonal.

aba + b

Figure 2: the projection is a shadow

Drop a perpendicular from the tip of a onto the line through b. The foot cuts that line at a signed distance from the common starting point, and that distance is the scalar projection (a·b)/|b|. With an acute angle the foot lands on the same side as b and the projection is positive. With an obtuse angle it lands behind the start and the projection is negative.

Projection of a onto bθbaproj = |a| cos θ|a| sin θ

What to notice: the yellow segment is the projection and its length is |a| cos θ, not |a|. The dashed height |a| sin θ never enters the dot product. If θ passes 90°, the foot crosses the origin and the yellow segment points to the left, which is exactly what the negative sign records.

Figure 3: components are a horizontal move plus a vertical move

Every vector splits into a horizontal part x i and a vertical part y j. Those two parts form a right triangle, so Pythagoras recovers the length and tan θ = y/x recovers the direction. Addition then becomes bookkeeping: add the horizontal parts, add the vertical parts.

Components of a vectorx iy jaxy

What to notice: the components are signed. A vector pointing left or down has a negative x or y, and the drawing would put that side behind the origin. The triangle is a picture of the algebra, not an argument that components are positive.

Detailed Solved Examples

Example 1: magnitude

If a = (3, 4), what is its magnitude?

Solution: |a| = √(3² + 4²) = √25 = 5. The vector has length 5 units.

Example 2: angle between two vectors

If a = (1, 0) and b = (1, 1), what is the angle between them?

Solution: a·b = 1·1 + 0·1 = 1, |a| = 1, |b| = √2, so cos θ = 1/√2 and θ = 45°.

Example 3: perpendicularity

Find k if a = (k, 2) and b = (3, −6) are perpendicular.

Solution: a·b = 3k − 12 = 0, so k = 4. Check: (4,2)·(3,−6) = 12 − 12 = 0 ✓

Example 4: from two points to a vector

A(1, 2) and B(4, 6). Find the vector AB and its length.

Answer: AB = (3, 4), |AB| = 5 units.

Example 5: a linear combination

a = (2, −1) and b = (−1, 3). Find 3a − 2b and its length.

Answer: 3a − 2b = (8, −9), length √145 ≈ 12.04.

Example 6: the unit vector in a given direction

Find the unit vector in the direction of a = (−6, 8).

Answer: e_a = (−0.6, 0.8).

Example 7: the angle between two vectors

a = (2, 1), b = (1, 3). Find the angle between them.

Answer: θ = 45°.

Example 8: projection onto a direction

Project a = (2, 3) onto b = (4, −1). Give the scalar projection and the vector projection.

Answer: scalar projection 5/√17 ≈ 1.21; vector projection (20/17, −5/17).

Example 9: two forces at 60°

A force of 5 N and a force of 3 N act at the same point with 60° between them. Find the magnitude of the resultant and its angle with the 5 N force.

Answer: |R| = 7 N, at about 21.8° from the 5 N force.

Example 10: a condition with an unknown k

a = (1, 2) and b = (2, −1). Find k so that (a + k b) is perpendicular to (a − b).

Answer: k = 1.

Comparison Tables

Vector or scalar?

PropertyScalarVector
Defined bymagnitude onlymagnitude and direction
Additionordinary arithmeticgeometric (parallelogram)
Examplesmass, time, temperaturedisplacement, velocity, force

Reading the sign of the dot product

a·b > 0 → acute angle. a·b = 0 → perpendicular. a·b < 0 → obtuse angle. The sign alone answers many exam options without computing the angle.

Two dimensions against three

QuantityIn the planeIn space
Vectora = (x, y)a = (x, y, z)
Magnitude√(x² + y²)√(x² + y² + z²)
Dot productx₁x₂ + y₁y₂x₁x₂ + y₁y₂ + z₁z₂
Unit vector(x, y)/|a|(x, y, z)/|a|
Parallel testx₁y₂ − x₂y₁ = 0all three of x₁y₂ = x₂y₁, x₁z₂ = x₂z₁, y₁z₂ = y₂z₁
Directionone angle θthree direction cosines cos α, cos β, cos γ

What each operation returns

OperationOutput typeExampleQuestion that uses it
a + bvector(2, 1) + (3, 5) = (5, 6)resultant of two displacements
k avector−2(3, 4) = (−6, −8)reverse and stretch a direction
a·bnumber(2, 1)·(3, 5) = 11angle, perpendicularity, work
|a|number|(3, 4)| = 5distance, force magnitude
e_avector(3, 4)/5 = (0.6, 0.8)direction only, length 1
proj_b anumber(a·b)/|b|component along a line

Three conditions side by side

ConditionAlgebraAngleComponent testUsual trap
Parallela = k b0° or 180°x₁y₂ − x₂y₁ = 0dividing by a component that is zero
Perpendiculara·b = 090°x₁x₂ + y₁y₂ = 0calling it parallel because the value is 0
Equalsame components0°x₁ = x₂ and y₁ = y₂comparing lengths only

CSCA Tips and Common Mistakes

In the exam: vector questions are usually single-choice on magnitude, angle or the perpendicular condition, and they need no drawing — compute the components directly.

Common mistakes:

Eight mistakes, with the repair

MistakeWhy it happensCorrection
Writing |a| = x + yadds the legs of the right triangle instead of using Pythagoras|a| = √(x² + y²); test on (3, 4): 5, not 7
Reporting a·b as a vectorconfuses the dot with the scalar multiplea·b is a number; k a is the vector
Setting cos θ = a·b and forgetting the denominatorthe formula is remembered in halfalways divide by |a||b|; a cosine must lie between −1 and 1
Treating a·b = 0 as parallelzero looks like "no difference"zero dot product means 90°; parallel uses the determinant
Computing AB as A − Bthe order of the letters is ignoredhead minus tail: AB = B − A
Taking arccos and then subtracting from 180°a habit from sine-rule questionsarccos already returns 0° to 180°; no supplement is needed
Writing |k a| = k|a| for negative kthe sign is carried into a length|k a| = |k||a|; a length is never negative
Finding k by dividing components when one is zerothe parallel test is applied as x₁/x₂use x₁y₂ − x₂y₁ = 0, which never divides

Exam-time strategy

Additional Exercises with Solutions

Exercise 1

If a = (−2, 5), what is |a|?

Solution: √(4 + 25) = √29 ≈ 5.39.

Exercise 2

Find a·b for a = (2, −1) and b = (3, 4).

Solution: 6 − 4 = 2.

Exercise 3

Are (1, 2) and (2, 4) parallel or perpendicular?

Solution: (2,4) = 2·(1,2), so they are parallel.

Exercise 4

If |a| = 3, |b| = 4 and the angle between them is 60°, find a·b.

Solution: 3·4·cos 60° = 12 × 0.5 = 6.

Exercise 5

Find the angle between (1, 1) and (1, −1).

Solution: a·b = 0, so the angle is 90°.

Exercise 6

Find the unit vector in the direction of a = (4, −3).

Solution: |a| = √(16 + 9) = 5, so e_a = (4/5, −3/5) = (0.8, −0.6). Check: 0.64 + 0.36 = 1.

Exercise 7

Find the distance between A(2, 1) and B(5, 5).

Solution: AB = (3, 4), so |AB| = √(9 + 16) = 5. The distance is 5 units.

Exercise 8

Find k so that (k, 6) is parallel to (2, 3).

Solution: the determinant test gives k·3 − 6·2 = 0, so 3k = 12 and k = 4. Check: (4, 6) = 2(2, 3).

Exercise 9

|a| = 5, |b| = 2 and a·b = −5. Find the angle between a and b.

Solution: cos θ = −5/(5·2) = −0.5. The negative sign places θ in the obtuse range, and cos 120° = −0.5, so θ = 120°.

Exercise 10

a = (1, 2) and b = (2, −1). Show that they are perpendicular and find |a + b|.

Solution: a·b = 2 − 2 = 0, so the angle is 90°. Then a + b = (3, 1) and |a + b| = √(9 + 1) = √10 ≈ 3.16.

Exercise 11

Find the scalar projection of a = (3, 4) onto b = (1, 0), and onto c = (0, 1).

Solution: onto b, (a·b)/|b| = 3/1 = 3, the horizontal component. Onto c, (a·c)/|c| = 4/1 = 4, the vertical component. The two projections together rebuild the vector.

Exercise 12

a = (1, 2, 2). Find |a| and the unit vector along a.

Solution: |a| = √(1 + 4 + 4) = 3, so e_a = (1/3, 2/3, 2/3). Check: 1/9 + 4/9 + 4/9 = 1.

Exercise 13

A force F = (8, −3) N moves an object through d = (2, 5) m. Find the work done.

Solution: W = F·d = 16 − 15 = 1 J. Most of the force acts across the motion, so almost no work is done.

Exercise 14

A(1, 1), B(4, 5), C(8, 2). Find the angle BAC.

Solution: AB = (3, 4) and AC = (7, 1). Then AB·AC = 21 + 4 = 25, |AB| = 5 and |AC| = √50 = 5√2. So cos θ = 25/(5·5√2) = 1/√2 and θ = 45°.

Exercise 15

Find every vector of length 10 parallel to (3, −4).

Solution: |(3, −4)| = 5, so the unit vector is (0.6, −0.8). Multiplying by 10 gives (6, −8), and the opposite direction gives (−6, 8). Two answers, because "parallel" allows both senses.

Practise this lesson

Free · three languages · works offline

CSCA Academy — Independent CSCA exam preparation. الدروس · CSCA