Class 12Mathematics · Vectors & 3D GeometryFull chapter

Vector Algebra

The whole chapter in one place — read it, then test yourself. Clear notes, formula sheet, a practice quiz, and worked NCERT solutions & PYQs.

Basic Concepts of Vectors

Quick answer Introduces the difference between scalars and vectors, and the key special types of vectors (zero, unit, coinitial, collinear, equal, negative) used throughout the chapter.

Physical quantities are broadly divided into two kinds. A scalar quantity, such as mass, length, time or temperature, is completely described by a magnitude (a number with an appropriate unit). A vector quantity, such as displacement, velocity, force or acceleration, needs both a magnitude and a direction to be fully described.

Geometrically, a vector is represented by a directed line segment. If a vector starts at a point A (the initial point) and ends at a point B (the terminal point), it is written as vector AB, and its magnitude is the length of the segment AB, written |AB|. The direction of the arrowhead shows the direction of the vector.

Several special types of vectors appear repeatedly in this chapter:

  • Zero (null) vector: a vector whose initial and terminal points coincide, so its magnitude is 0. It is written as 0; its direction is not defined.
  • Unit vector: a vector whose magnitude is exactly 1. A unit vector in the direction of a is written â ("a cap") and â = a / |a|.
  • Coinitial vectors: two or more vectors having the same initial point.
  • Collinear vectors: vectors that are parallel to the same line, irrespective of their magnitudes or direction.
  • Equal vectors: two vectors are equal if they have the same magnitude and the same direction, regardless of where their initial points are.
  • Negative of a vector: a vector with the same magnitude as a given vector but the opposite direction; the negative of a is written −a.

Worked Example: Find the unit vector in the direction of a = 3i − 4k.

Magnitude: |a| = √(3² + 0² + (−4)²) = √(9+16) = √25 = 5. So the required unit vector is â = a/|a| = (3i − 4k)/5 = (3/5)i − (4/5)k. As a check, its magnitude is √((3/5)² + (4/5)²) = √(9/25+16/25) = √(25/25) = 1, confirming it is indeed a unit vector.

Magnitude of a vector AB |AB| = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²) distance formula applied to the directed segment AB
Unit vector along a â = a / |a| â has magnitude 1 and the same direction as a
Remember
  • A scalar has magnitude only; a vector has both magnitude and direction.
  • The zero vector has magnitude 0 and no defined direction.
  • A unit vector has magnitude 1, given by a-cap = a/|a|.
  • Equal vectors need the same magnitude and direction, not the same location.
  • Collinear vectors are parallel to a common line; coinitial vectors share the same starting point.

Position Vector, Direction Cosines and Direction Ratios

Quick answer Explains how a point in space corresponds to a position vector, and how direction cosines and direction ratios describe the orientation of a vector relative to the coordinate axes.

Every point P(x, y, z) in space can be associated with a unique vector called its position vector, obtained by joining the origin O to P: OP = x i + y j + z k, where i, j, k are the standard unit vectors along the x, y and z axes. The magnitude of the position vector is |OP| = √(x² + y² + z²).

If a vector makes angles α, β, γ with the positive x, y and z axes respectively, then cos α, cos β, cos γ are called its direction cosines, usually denoted l, m, n. Direction cosines always satisfy l² + m² + n² = 1. Any three numbers a, b, c that are proportional to the direction cosines (l : m : n = a : b : c) are called the direction ratios of the vector.

Given direction ratios a, b, c of a vector, the actual direction cosines are recovered by dividing each by the magnitude √(a²+b²+c²): l = a/√(a²+b²+c²), m = b/√(a²+b²+c²), n = c/√(a²+b²+c²) (all three signs reverse together if the opposite direction is required).

Worked Example: Find the direction cosines of the vector a = 2i − 3j + 6k.

|a| = √(2² + (−3)² + 6²) = √(4+9+36) = √49 = 7. So l = 2/7, m = −3/7, n = 6/7. Check: l² + m² + n² = 4/49 + 9/49 + 36/49 = 49/49 = 1, as required.

Position vector OP = x i + y j + z k vector from the origin to the point P(x,y,z)
Fundamental relation of direction cosines l² + m² + n² = 1 always true for the direction cosines of a line or vector
Direction cosines from direction ratios a,b,c l = a/√(a²+b²+c²), m = b/√(a²+b²+c²), n = c/√(a²+b²+c²) a, b, c are direction ratios, proportional to l, m, n
Remember
  • Position vector of P(x,y,z) is OP = xi + yj + zk.
  • Direction cosines l, m, n are cosines of the angles the vector makes with the x, y, z axes.
  • l² + m² + n² = 1 always holds for direction cosines.
  • Direction ratios are any numbers proportional to the direction cosines.
  • Divide direction ratios by the vector's magnitude to get the direction cosines.

Addition of Vectors and Multiplication by a Scalar

Quick answer Covers the triangle and parallelogram laws of vector addition, the algebraic properties of addition, and how multiplying a vector by a real number scales and/or reverses it.

Two vectors are added geometrically using the triangle law of addition: if AB represents vector a and BC (coinitial with the terminal point of a) represents vector b, then the third side AC of the triangle represents the sum a + b. Equivalently, the parallelogram law states that if two vectors are represented as the two adjacent sides of a parallelogram drawn from the same point, their sum is the diagonal of the parallelogram from that point.

Vector addition obeys the same familiar algebraic rules as addition of numbers: it is commutative (a + b = b + a) and associative ((a + b) + c = a + (b + c)). Adding the zero vector leaves a vector unchanged (a + 0 = a), and a + (−a) = 0, which is how subtraction a − b is defined, namely as a + (−b).

Multiplication by a scalar: If λ is a real number (scalar) and a is a vector, then λa is a vector whose magnitude is |λ||a| and whose direction is the same as a if λ > 0, opposite to a if λ < 0, and the zero vector if λ = 0. Scalar multiplication is distributive over vector addition: λ(a + b) = λa + λb, and over scalar addition: (λ + μ)a = λa + μa.

Worked Example: If a = 2i + 3j − k and b = i − 2j + 3k, find (i) a + b, (ii) a − b, (iii) 2a − 3b.

(i) a + b = (2+1)i + (3−2)j + (−1+3)k = 3i + j + 2k.
(ii) a − b = (2−1)i + (3−(−2))j + (−1−3)k = i + 5j − 4k.
(iii) 2a = 4i + 6j − 2k and 3b = 3i − 6j + 9k, so 2a − 3b = (4−3)i + (6−(−6))j + (−2−9)k = i + 12j − 11k.

Triangle law of addition AB + BC = AC vectors placed head to tail give the resultant AC
Scalar multiplication magnitude |λa| = |λ| |a| λ is a real scalar
Vector subtraction a − b = a + (−b)
Remember
  • Triangle law: place vectors head to tail; the resultant runs from the first tail to the last head.
  • Parallelogram law gives the same resultant as the diagonal through the common point.
  • Vector addition is commutative and associative.
  • λa scales the magnitude by |λ| and reverses direction if λ is negative.
  • Subtraction a − b is defined as a + (−b).

Components of a Vector, Vector Joining Two Points, and Section Formula

Quick answer Shows how to write a vector using its scalar components along i, j, k, how to find the vector joining two given points, and how the section formula locates a point dividing a segment in a given ratio.

Any vector a in three-dimensional space can be written in terms of the standard unit vectors i, j, k as a = a₁i + a₂j + a₃k, where a₁, a₂, a₃ are called the scalar components (or simply components) of a along the x, y and z axes. The magnitude is then |a| = √(a₁² + a₂² + a₃²).

If P(x₁, y₁, z₁) and Q(x₂, y₂, z₂) are any two points, the vector joining them, directed from P to Q, is PQ = (x₂ − x₁)i + (y₂ − y₁)j + (z₂ − z₁)k, and its magnitude |PQ| gives the distance between P and Q.

The section formula gives the position vector of a point R that divides the line segment joining two points A and B (with position vectors a and b) in a given ratio. If R divides AB internally in the ratio m : n, then r = (mb + na)/(m + n). If R divides AB externally in the ratio m : n, then r = (mb − na)/(m − n). When R is the midpoint of AB, this reduces to r = (a + b)/2.

Worked Example: Find the position vector of the point R that divides the join of A and B, with position vectors a = i − 2j + k and b = 4i + 3j − k, internally in the ratio 2 : 1.

Here m = 2, n = 1. r = (2b + 1·a)/(2+1) = [2(4i+3j−k) + (i−2j+k)]/3 = (8i+6j−2k + i−2j+k)/3 = (9i + 4j − k)/3 = 3i + (4/3)j − (1/3)k.

Components of a vector a = a₁ i + a₂ j + a₃ k a₁, a₂, a₃ are the scalar components along x, y, z
Magnitude from components |a| = √(a₁² + a₂² + a₃²)
Vector joining two points PQ = (x₂−x₁) i + (y₂−y₁) j + (z₂−z₁) k
Section formula (internal division) r = (m b + n a) / (m + n) R divides AB internally in ratio m:n
Section formula (external division) r = (m b − n a) / (m − n) R divides AB externally in ratio m:n
Midpoint formula r = (a + b) / 2
Remember
  • a = a₁i + a₂j + a₃k, with |a| = √(a₁²+a₂²+a₃²).
  • Vector joining P to Q is PQ = (x₂−x₁)i + (y₂−y₁)j + (z₂−z₁)k.
  • Internal section formula: r = (mb+na)/(m+n).
  • External section formula: r = (mb−na)/(m−n).
  • Midpoint formula: r = (a+b)/2.

Scalar (Dot) Product of Vectors

Quick answer Defines the dot product of two vectors, its key algebraic properties, its component formula, and how it is used to find angles and projections.

The scalar product (or dot product) of two nonzero vectors a and b, inclined at angle θ (0 ≤ θ ≤ π) to each other, is the scalar defined by a · b = |a| |b| cos θ. When either vector is the zero vector, the dot product is taken to be 0.

The dot product has several important consequences. Since cos θ = 1 when θ = 0, a · a = |a|². Since cos(π/2) = 0, two nonzero vectors are perpendicular exactly when a · b = 0. For the standard unit vectors, i · i = j · j = k · k = 1 and i · j = j · k = k · i = 0. The dot product is commutative (a · b = b · a) and distributes over addition (a · (b + c) = a · b + a · c). In component form, if a = a₁i+a₂j+a₃k and b = b₁i+b₂j+b₃k, then a · b = a₁b₁ + a₂b₂ + a₃b₃.

Once a·b is known, the angle between the vectors follows from cos θ = (a · b)/(|a||b|). A related idea is the projection of a on b, which is the scalar (a · b)/|b|; geometrically it is the length of the "shadow" of a cast on the line along b.

Worked Example: Find the angle between a = i + j − k and b = i − j + k.

a · b = (1)(1) + (1)(−1) + (−1)(1) = 1 − 1 − 1 = −1. |a| = √(1+1+1) = √3, |b| = √(1+1+1) = √3. So cos θ = −1/(√3·√3) = −1/3, giving θ = cos⁻¹(−1/3), an obtuse angle since the dot product is negative.

Scalar (dot) product a · b = |a| |b| cos θ
Dot product in components a · b = a₁b₁ + a₂b₂ + a₃b₃
Angle between two vectors cos θ = (a · b) / (|a| |b|)
Projection of a on b Projection = (a · b) / |b|
Self dot product a · a = |a|²
Remember
  • a · b = |a||b| cos θ; the result is a scalar, not a vector.
  • a · b = 0 (for nonzero vectors) means the vectors are perpendicular.
  • In components, a · b = a₁b₁ + a₂b₂ + a₃b₃.
  • a · a = |a|², so |a| = √(a · a).
  • Projection of a on b is (a · b)/|b|.

Vector (Cross) Product of Vectors

Quick answer Defines the cross product of two vectors, the right-hand rule, its component (determinant) formula, and its use in finding areas of triangles and parallelograms.

The vector product (or cross product) of two nonzero, non-parallel vectors a and b inclined at angle θ is itself a vector, defined as a × b = |a| |b| sin θ n̂, where n̂ is the unit vector perpendicular to both a and b, with direction fixed by the right-hand rule (curl the fingers of the right hand from a to b; the thumb points along n̂). If a and b are parallel (θ = 0 or π) or either is the zero vector, a × b = 0.

The cross product is anti-commutative: b × a = −(a × b), because reversing the order reverses the direction given by the right-hand rule (though the magnitude stays the same). It distributes over addition: a × (b + c) = a × b + a × c, and a × a = 0 for every vector a. For the standard unit vectors, i × i = j × j = k × k = 0, while i × j = k, j × k = i, and k × i = j (cyclic order); reversing any pair flips the sign, e.g. j × i = −k.

In component form, if a = a₁i+a₂j+a₃k and b = b₁i+b₂j+b₃k, the cross product is computed from the determinant of i, j, k over the two rows of components, which expands to a × b = (a₂b₃ − a₃b₂)i − (a₁b₃ − a₃b₁)j + (a₁b₂ − a₂b₁)k. Two very useful geometric applications follow directly from |a × b| = |a||b| sin θ: the area of a triangle with adjacent sides a and b is (1/2)|a × b|, and the area of a parallelogram with adjacent sides a and b is |a × b|.

Worked Example: Find a × b for a = i + 2j + 3k and b = 2i − j + k, and hence find the area of the triangle with adjacent sides a and b.

a × b = (a₂b₃ − a₃b₂)i − (a₁b₃ − a₃b₁)j + (a₁b₂ − a₂b₁)k = ((2)(1)−(3)(−1))i − ((1)(1)−(3)(2))j + ((1)(−1)−(2)(2))k = (2+3)i − (1−6)j + (−1−4)k = 5i + 5j − 5k. Its magnitude is |a × b| = √(25+25+25) = √75 = 5√3. So the area of the triangle is (1/2)(5√3) = (5√3)/2 square units.

Vector (cross) product a × b = |a| |b| sin θ n̂
Cross product in components a × b = (a₂b₃ − a₃b₂) i − (a₁b₃ − a₃b₁) j + (a₁b₂ − a₂b₁) k
Area of triangle Area = (1/2) |a × b| square units
Area of parallelogram Area = |a × b| square units
Remember
  • a × b is a vector with magnitude |a||b| sin θ, perpendicular to both a and b (right-hand rule).
  • Cross product is anti-commutative: a × b = −(b × a).
  • a × a = 0 for any vector a; a × b = 0 when a, b are parallel or either is zero.
  • i×j=k, j×k=i, k×i=j (cyclic); reversing the order flips the sign.
  • Triangle area = (1/2)|a×b|; parallelogram area = |a×b|.

The formula sheet

Every formula in this chapter, in one place — screenshot it before your exam.

|AB| = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²)
Magnitude of a vector AB
â = a / |a|
Unit vector along a
OP = x i + y j + z k
Position vector
l² + m² + n² = 1
Fundamental relation of direction cosines
l = a/√(a²+b²+c²), m = b/√(a²+b²+c²), n = c/√(a²+b²+c²)
Direction cosines from direction ratios a,b,c
AB + BC = AC
Triangle law of addition
|λa| = |λ| |a|
Scalar multiplication magnitude
a − b = a + (−b)
Vector subtraction
a = a₁ i + a₂ j + a₃ k
Components of a vector
|a| = √(a₁² + a₂² + a₃²)
Magnitude from components
PQ = (x₂−x₁) i + (y₂−y₁) j + (z₂−z₁) k
Vector joining two points
r = (m b + n a) / (m + n)
Section formula (internal division)
r = (m b − n a) / (m − n)
Section formula (external division)
r = (a + b) / 2
Midpoint formula
a · b = |a| |b| cos θ
Scalar (dot) product
a · b = a₁b₁ + a₂b₂ + a₃b₃
Dot product in components
cos θ = (a · b) / (|a| |b|)
Angle between two vectors
Projection = (a · b) / |b|
Projection of a on b
a · a = |a|²
Self dot product
a × b = |a| |b| sin θ n̂
Vector (cross) product
a × b = (a₂b₃ − a₃b₂) i − (a₁b₃ − a₃b₁) j + (a₁b₂ − a₂b₁) k
Cross product in components
Area = (1/2) |a × b|
Area of trianglesquare units
Area = |a × b|
Area of parallelogramsquare units

Test yourself

Tap an answer to check it instantly — you'll see why it's right, and what to revise if it isn't.

0 correct · 0/12 answered
Q1 Basic Concepts easy

Which of the following best describes a zero (null) vector?

Q2 Basic Concepts easy

Two vectors a and b are said to be equal when:

Q3 Direction Cosines easy

If l, m, n are the direction cosines of a vector, then l² + m² + n² equals:

Q4 Unit Vectors easy

The unit vector in the direction of a = 4i − 3k is:

Q5 Addition of Vectors medium

If a = 2i + 3j − k and b = i − j + 2k, then a + b equals:

Q6 Magnitude of a Vector medium

The magnitude of the vector 3i − 4j + 12k is:

Q7 Dot Product medium

For nonzero vectors a and b, if a · b = 0, then a and b are:

Q8 Dot Product medium

If a = i + j − k and b = i − j + k, the value of a · b is:

Q9 Dot Product hard

The angle between a = i + j − k and b = i − j + k is:

Q10 Cross Product hard

For a = i + 2j + 3k and b = 2i − j + k, a × b equals:

Q11 Cross Product — Area hard

The area of the triangle with vertices A(1,0,0), B(0,1,0) and C(0,0,1) is:

Q12 Section Formula hard

The position vector of the point dividing the join of A (position vector i − 2j + k) and B (position vector 4i + 3j − k) internally in the ratio 2:1 is:

NCERT solutions & previous-year questions

Step-by-step model answers — tap a question to reveal the full solution.

NCERT questions 6

1 Find the unit vector in the direction of the vector a = i + j + 2k.Unit Vectors

The magnitude of a is |a| = √(1² + 1² + 2²) = √(1+1+4) = √6.

The unit vector in the direction of a is â = a/|a| = (i + j + 2k)/√6 = (1/√6) i + (1/√6) j + (2/√6) k.

Check: |â|² = 1/6 + 1/6 + 4/6 = 6/6 = 1, confirming â is a unit vector.

2 Find the direction cosines of the vector joining the points A(1, 2, −3) and B(−1, −2, 1), directed from A to B.Direction Cosines

The vector AB (from A to B) is AB = (−1−1) i + (−2−2) j + (1−(−3)) k = −2i − 4j + 4k.

Its magnitude is |AB| = √((−2)² + (−4)² + 4²) = √(4+16+16) = √36 = 6.

Therefore the direction cosines are l = −2/6 = −1/3, m = −4/6 = −2/3, n = 4/6 = 2/3.

Check: l² + m² + n² = 1/9 + 4/9 + 4/9 = 9/9 = 1, as required.

3 Show that the points A(2, 3, 4), B(−1, −2, 1) and C(5, 8, 7) are collinear.Collinearity of Points using Vectors

Find the vectors AB and AC using the position vectors of A, B, C.

AB = (−1−2) i + (−2−3) j + (1−4) k = −3i − 5j − 3k.

AC = (5−2) i + (8−3) j + (7−4) k = 3i + 5j + 3k.

Observe that AC = −1 × AB, i.e. AC = −AB. Since AB and AC are scalar multiples of each other, they are parallel; and since they share the common point A, the points A, B and C must lie on the same straight line.

Hence A, B, C are collinear.

4 Find the angle between two vectors a and b with magnitudes √3 and 2 respectively, given that a · b = √6.Dot Product — Angle Between Vectors

Using cos θ = (a · b)/(|a||b|):

cos θ = √6 / (√3 × 2) = √6 / (2√3).

Simplify: √6/√3 = √(6/3) = √2, so cos θ = √2/2 = 1/√2.

Therefore θ = cos⁻¹(1/√2) = 45° (i.e. π/4 radians).

5 Find λ and μ if (2i + 6j + 27k) × (i + λj + μk) = 0.Cross Product — Parallel Vectors

The cross product of two nonzero vectors is the zero vector only when the vectors are parallel, i.e. when their components are proportional:

2/1 = 6/λ = 27/μ.

From 2/1 = 6/λ: λ = 6/2 = 3.

From 2/1 = 27/μ: μ = 27/2.

So λ = 3 and μ = 27/2.

6 Find the area of the triangle whose vertices are A(1, 1, 2), B(2, 3, 5) and C(1, 5, 5).Cross Product — Area of a Triangle

Find two side vectors from A: AB = (2−1) i + (3−1) j + (5−2) k = i + 2j + 3k, and AC = (1−1) i + (5−1) j + (5−2) k = 4j + 3k.

Compute AB × AC using the determinant expansion:

AB × AC = (2×3 − 3×4) i − (1×3 − 3×0) j + (1×4 − 2×0) k = (6−12) i − (3−0) j + (4−0) k = −6i − 3j + 4k.

Magnitude: |AB × AC| = √((−6)² + (−3)² + 4²) = √(36+9+16) = √61.

Area of triangle ABC = (1/2)|AB × AC| = √61/2 square units.

Previous-year board questions 4

Q1 Find |a| and |b|, if (a + b)·(a − b) = 8 and |a| = 8|b|. 2020 2 marks

Expand the given dot product: (a + b)·(a − b) = a·a − a·b + b·a − b·b = |a|² − |b|² (since a·b = b·a).

So |a|² − |b|² = 8. Since |a| = 8|b|, substitute |a|² = 64|b|²:

64|b|² − |b|² = 8 ⟹ 63|b|² = 8 ⟹ |b|² = 8/63.

|b| = √(8/63) = (2√2)/(3√7) = (2√14)/21 (after rationalising the denominator).

|a| = 8|b| = (16√14)/21.

Q2 If a, b, c are unit vectors such that a + b + c = 0, find the value of a·b + b·c + c·a. 2019 3 marks

Since a + b + c = 0, taking the dot product of both sides with itself gives (a+b+c)·(a+b+c) = 0.

Expanding: a·a + b·b + c·c + 2(a·b + b·c + c·a) = 0.

Since a, b, c are unit vectors, a·a = b·b = c·c = 1, so: 1 + 1 + 1 + 2(a·b + b·c + c·a) = 0, i.e. 3 + 2(a·b+b·c+c·a) = 0.

Therefore a·b + b·c + c·a = −3/2.

Q3 If a = i + j + k, b = i − j + 2k and c = i + 2j − k, find the value of λ for which a + λb is perpendicular to c. 2022 4 marks

a + λb = (1 + λ) i + (1 − λ) j + (1 + 2λ) k.

For (a + λb) to be perpendicular to c = i + 2j − k, their dot product must be zero:

(a + λb)·c = (1+λ)(1) + (1−λ)(2) + (1+2λ)(−1) = 0.

Expand: (1+λ) + (2−2λ) + (−1−2λ) = 0 ⟹ (1+2−1) + (λ−2λ−2λ) = 0 ⟹ 2 − 3λ = 0.

Solving, λ = 2/3.

Q4 Show that the vector i + j + k is equally inclined to the axes OX, OY and OZ. 2018 2 marks

Let a = i + j + k. Its magnitude is |a| = √(1²+1²+1²) = √3.

The direction cosines are l = 1/√3, m = 1/√3, n = 1/√3.

Since l = m = n, the angles that a makes with the x, y and z axes are all equal, each equal to cos⁻¹(1/√3).

Hence the vector i + j + k is equally inclined to the three coordinate axes.

Part of Priodemy for School

Interactive Maths & Science — free with every school on Priodemy EduSuite. Explore more chapters and labs on the Priodemy for School hub.

Ask AI