ExamSaathi learning library · School · CBSE Class 12 Mathematics 2026-27; teacher review pending · Mathematics
Vector algebra for Class 12: components, dot product and cross product
Write vectors in i, j, k form and find magnitudes, direction cosines and section points; then use the dot product for angles and projections and the cross product for perpendicular vectors and the areas of parallelograms and triangles.
Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.
You will learn to
- Write vectors in i, j, k components and find their magnitudes, direction cosines and direction ratios.
- Add vectors, multiply a vector by a scalar and locate the point that divides a line segment in a given ratio using position vectors.
- Use the scalar (dot) product of vectors to find angles, test perpendicular vectors and find projections.
- Use the vector (cross) product to find perpendicular vectors, test parallel vectors and find areas of parallelograms and triangles.
Before you start
Recap in one line: the Class 11 physics lesson on motion in a plane used vectors for displacement and velocity, the lesson on work used the dot product, and the Class 11 lesson on three-dimensional geometry gave coordinates and the section formula; here the same ideas are built up as algebra. A scalar has only a size, such as a mass of 5 kg or a temperature of 30 degrees Celsius. A vector has a size, called its magnitude, and a direction, such as a displacement of 5 km towards the north-east or a force of 20 newtons straight down. A directed line segment AB, from the initial point A to the terminal point B, represents a vector, and its length |AB| is the magnitude. In this lesson the small letters a, b, c, p, q and r stand for vectors, |a| is the magnitude of a, and i, j and k are the unit vectors along the axes OX, OY and OZ. Because the letter x is kept for multiplication, the vector product is written in words as a cross b, the scalar product as a . b, and a number that multiplies a vector is called lambda.
Position vectors, components and direction cosines
For the point P(2, -3, 6), the position vector from the origin O is OP = 2i - 3j + 6k. In general, a point with coordinates (r1, r2, r3) has the position vector r = r1 i + r2 j + r3 k, whose components along the axes are r1, r2 and r3 and whose magnitude is |r| = sqrt(r1^2 + r2^2 + r3^2). For OP, |OP| = sqrt(4 + 9 + 36) = 7. If r makes the angles alpha, beta and gamma with the positive directions of OX, OY and OZ, its direction cosines are l = cos alpha = r1/|r|, m = cos beta = r2/|r| and n = cos gamma = r3/|r|, and l^2 + m^2 + n^2 = 1. For OP they are 2/7, -3/7 and 6/7. Any three numbers proportional to l, m and n are direction ratios; the components 2, -3 and 6 are one such set. Types of vectors: the zero vector has magnitude 0 and no definite direction; a unit vector has magnitude 1, and a/|a| is the unit vector along a nonzero a; co-initial vectors start at the same point; collinear (parallel) vectors lie along the same or parallel lines, whatever their sizes and senses; equal vectors have the same magnitude and direction, wherever they start; and -a has the magnitude of a but the opposite direction.
Adding vectors, scalar multiples and the section formula
Triangle law: if a is AB and b is BC, then a + b = AC. The parallelogram law gives the same sum as the diagonal drawn from the common starting point. Addition is commutative (a + b = b + a) and associative ((a + b) + c = a + (b + c)), adding the zero vector changes nothing, and a + (-a) = 0. Multiplying a by a scalar lambda gives a vector of magnitude |lambda| |a|, in the direction of a if lambda > 0 and the opposite way if lambda < 0. In components you add, or multiply, term by term. For points A and B with position vectors a and b, AB = b - a: from A(1, 2, -1) to B(4, 6, 11), AB = 3i + 4j + 12k and |AB| = sqrt(9 + 16 + 144) = 13. Two nonzero vectors are collinear exactly when one is a scalar multiple of the other, that is, when their components are proportional. Section formula: if R divides PQ in the ratio m : n (two positive numbers) and P and Q have position vectors p and q, then R has position vector (m q + n p)/(m + n) for an internal division and (m q - n p)/(m - n) for an external one, with m not equal to n. The midpoint of PQ is (p + q)/2. This is the coordinate section formula of Class 11, now written with vectors.
The scalar (dot) product: angles and projections
For nonzero vectors a and b, the scalar product is a . b = |a| |b| cos theta, where theta, from 0 to 180 degrees, is the angle between them when both are drawn from the same point; if either vector is the zero vector, a . b = 0. The result is a number, not a vector. It is commutative (a . b = b . a), it distributes over addition (a . (b + c) = a . b + a . c), (lambda a) . b = lambda (a . b), and a . a = |a|^2. For the unit vectors, i . i = j . j = k . k = 1 and i . j = j . k = k . i = 0. So with a = a1 i + a2 j + a3 k and b = b1 i + b2 j + b3 k, a . b = a1 b1 + a2 b2 + a3 b3. This gives the angle between two nonzero vectors: cos theta = (a . b)/(|a| |b|). For nonzero vectors, a . b = 0 exactly when they are perpendicular; a . b > 0 means an acute angle and a . b < 0 an obtuse one. For a nonzero b, the scalar projection of a on b is (a . b)/|b|, which equals |a| cos theta when a is also nonzero: the signed length of the shadow of a along b. The projection vector of a on b is ((a . b)/|b|^2) b. In physics, the work done by a constant force F over a displacement d is the scalar F . d.
The vector (cross) product and areas
For nonzero vectors a and b that are not parallel, the vector product a cross b is a vector of magnitude |a| |b| sin theta that is perpendicular to both and points so that a, b and a cross b form a right-handed system: curl the fingers of the right hand from a towards b, and the thumb gives its direction. If either vector is zero or the two are parallel, a cross b is the zero vector, which has no direction. Properties: b cross a = -(a cross b), so the order matters; a cross a = 0; two nonzero vectors are parallel exactly when a cross b = 0; the product distributes over addition; and (lambda a) cross b = lambda (a cross b). For the unit vectors, i cross j = k, j cross k = i and k cross i = j, while j cross i = -k, k cross j = -i and i cross k = -j, and each unit vector crossed with itself gives 0. In components, a cross b is the determinant with the rows (i, j, k), (a1, a2, a3) and (b1, b2, b3): a cross b = (a2 b3 - a3 b2) i - (a1 b3 - a3 b1) j + (a1 b2 - a2 b1) k. The magnitude |a cross b| is the area of the parallelogram with adjacent sides a and b, so the triangle on the same two sides has area (1/2)|a cross b|. When a cross b is not the zero vector, a unit vector perpendicular to both a and b is (a cross b)/|a cross b|, or its negative.
Common mistakes
1. Calling the components 2, -3 and 6 the direction cosines; divide each by the magnitude first. 2. Taking the vector AB as a - b instead of b - a (end point minus starting point). 3. Pairing m with p in the section formula; in (m q + n p)/(m + n) the first part of the ratio goes with the far end Q. 4. Treating a . b as a vector, or a cross b as a number. 5. Writing a cross b = b cross a; reversing the order changes the sign. 6. Using |a| |b| as an area and forgetting sin theta, or using the full |a cross b| for a triangle instead of half of it. 7. Concluding from a . b = 0 that one vector must be zero; for nonzero vectors it means they are perpendicular.
A short routine
1. Write every vector in i, j, k form, using end point minus starting point for a vector joining two points. 2. Find a magnitude as the square root of the sum of the squares of the components, and the direction cosines by dividing each component by the magnitude. 3. For a point dividing a segment, use (m q + n p)/(m + n), or the minus form for an external division. 4. For an angle, a perpendicularity test or a projection, use the dot product. 5. For a perpendicular vector, a test for parallel vectors or an area, use the cross product written as a determinant. 6. Check your work: l^2 + m^2 + n^2 = 1, a . b = 0 for perpendicular vectors, and (a cross b) . a = 0.
Worked examples
The points A(1, -2, 3) and B(7, 1, 9) are given. Find the vector AB, its magnitude and its direction cosines, and the position vector of the point R that divides AB internally in the ratio 2 : 1.
- 1. AB = (7 - 1) i + (1 - (-2)) j + (9 - 3) k = 6i + 3j + 6k.
- 2. |AB| = sqrt(36 + 9 + 36) = sqrt(81) = 9.
- 3. Direction cosines: 6/9, 3/9 and 6/9, that is 2/3, 1/3 and 2/3; check: 4/9 + 1/9 + 4/9 = 1.
- 4. With a = i - 2j + 3k and b = 7i + j + 9k, the section formula with m = 2 and n = 1 gives R = (2b + a)/3 = (14i + 2j + 18k + i - 2j + 3k)/3 = (15i + 21k)/3 = 5i + 7k.
- 5. Check: R = a + (2/3) AB = (1 + 4) i + (-2 + 2) j + (3 + 4) k = 5i + 7k.
Answer: AB = 6i + 3j + 6k, |AB| = 9, the direction cosines are 2/3, 1/3 and 2/3, and R = 5i + 7k, the point (5, 0, 7).
Find the angle between a = 2i + 2j + k and b = 6i + 2j - 3k, and the projection of a on b.
- 1. a . b = 2 x 6 + 2 x 2 + 1 x (-3) = 12 + 4 - 3 = 13.
- 2. |a| = sqrt(4 + 4 + 1) = 3 and |b| = sqrt(36 + 4 + 9) = 7.
- 3. cos theta = 13/(3 x 7) = 13/21, about 0.6190, so theta = cos^-1(13/21), about 51.8 degrees: an acute angle, as a . b > 0 suggests.
- 4. Projection of a on b = (a . b)/|b| = 13/7, about 1.8571.
Answer: theta = cos^-1(13/21), about 51.8 degrees, and the projection of a on b is 13/7, about 1.8571.
Find the area of the triangle with vertices A(1, 0, 2), B(2, 2, 4) and C(3, 1, 0), and a unit vector perpendicular to its plane.
- 1. AB = i + 2j + 2k and AC = 2i + j - 2k.
- 2. AB cross AC = (2 x (-2) - 2 x 1) i - (1 x (-2) - 2 x 2) j + (1 x 1 - 2 x 2) k = -6i + 6j - 3k.
- 3. |AB cross AC| = sqrt(36 + 36 + 9) = sqrt(81) = 9, so the parallelogram on AB and AC has an area of 9 square units.
- 4. Area of the triangle = (1/2) x 9 = 4.5 square units.
- 5. A unit vector perpendicular to the plane: (-6i + 6j - 3k)/9 = (-2i + 2j - k)/3; its negative also works.
- 6. Check: AB . AC = 2 + 2 - 4 = 0, so the angle at A is 90 degrees, and (1/2) x |AB| x |AC| = (1/2) x 3 x 3 = 4.5.
Answer: The area is 4.5 square units, and (-2i + 2j - k)/3 is a unit vector perpendicular to the plane ABC.
Practice checks
- What are the direction cosines of the vector 2i - 3j + 6k?
- For which value of lambda are the vectors 2i + lambda j + k and i - 2j + 3k perpendicular?
- What is the projection of a = 3i + 4j - k on b = 2i + 2j + k?
- What is the area of the parallelogram whose adjacent sides are a = 2i + 3j + 2k and b = -2i + j + 2k?
- What is (i + j) cross (i - j)?
Sources checked
- CBSE Mathematics (041), Classes XI-XII (2026-27) — Class XII Unit IV Vectors and Three-dimensional Geometry, Chapter 1 Vectors
- NCERT Mathematics Part II, Class XII, Chapter 10 Vector Algebra — Basic concepts, types of vectors, addition, multiplication by a scalar, components, the section formula, the scalar product and projections, the vector product and areas
- OpenStax Calculus Volume 3, 2.2 Vectors in Three Dimensions — Vectors in component form, magnitudes and unit vectors in three dimensions
- OpenStax Calculus Volume 3, 2.3 The Dot Product — The dot product, the angle between vectors, direction cosines and projections
- OpenStax Calculus Volume 3, 2.4 The Cross Product — The cross product, the right-hand rule, the determinant form and areas of parallelograms