Math Lab
Home/Class XII/Ch 10/Vectors, magnitude, and components

Vectors, magnitude, and components

A vector is a quantity with both magnitude and direction. Examples: displacement of a particle, velocity, acceleration, force. By contrast, a scalar has magnitude only , mass, temperature, energy.

Two vectors are equal if they have the same magnitude and the same direction, regardless of where in space they are drawn. So a vector is genuinely a "free arrow" , translating it does not change it.

Geometric vs algebraic

Geometric: a vector a\vec{a} is an arrow from a tail point to a head point. Its length is the magnitude a|\vec{a}|; the direction is the orientation of the arrow.

Algebraic (in R3\mathbb{R}^3): a vector is a triple a=(a1,a2,a3)\vec{a} = (a_1, a_2, a_3), or equivalently a1i^+a2j^+a3k^a_1 \hat{i} + a_2 \hat{j} + a_3 \hat{k}, where i^,j^,k^\hat{i}, \hat{j}, \hat{k} are unit vectors along the coordinate axes.

The two views are equivalent. Given an arrow from PP to QQ, the components are (Q1P1,Q2P2,Q3P3)(Q_1 - P_1, Q_2 - P_2, Q_3 - P_3).

Position vectors

The position vector of a point P=(x,y,z)P = (x, y, z) with respect to the origin OO is OP=xi^+yj^+zk^\vec{OP} = x\hat{i} + y\hat{j} + z\hat{k}. We typically write r\vec{r} for the position vector of a generic point.

If two points AA and BB have position vectors a\vec{a} and b\vec{b}, then AB=ba\vec{AB} = \vec{b} - \vec{a} (head minus tail).

Magnitude

For a=a1i^+a2j^+a3k^\vec{a} = a_1 \hat{i} + a_2 \hat{j} + a_3 \hat{k}: a=a12+a22+a32.|\vec{a}| = \sqrt{a_1^2 + a_2^2 + a_3^2}. This is the Euclidean length. A unit vector has magnitude 11. Given any non-zero a\vec{a}, the unit vector in its direction is a^=a/a\hat{a} = \vec{a}/|\vec{a}|.

Direction cosines and direction ratios

The direction cosines of a\vec{a} are the cosines of the angles a\vec{a} makes with the positive xx, yy, zz axes: l=cosα=a1a,m=cosβ=a2a,n=cosγ=a3a.l = \cos\alpha = \frac{a_1}{|\vec{a}|}, \quad m = \cos\beta = \frac{a_2}{|\vec{a}|}, \quad n = \cos\gamma = \frac{a_3}{|\vec{a}|}. They satisfy the identity l2+m2+n2=1.l^2 + m^2 + n^2 = 1.

Any triple proportional to (l,m,n)(l, m, n) , e.g. the components a1,a2,a3a_1, a_2, a_3 themselves , gives the direction ratios. Direction ratios are not unique (scaling preserves them), but direction cosines are unique up to the sign of a\vec{a}.

Types of vectors

  • Zero vector 0\vec{0}: magnitude 00, direction undefined.
  • Unit vector: magnitude 11.
  • Equal vectors: same magnitude and direction.
  • Opposite (negative) vectors: same magnitude, opposite direction; a\vec{a} and a-\vec{a}.
  • Parallel/collinear vectors: same or opposite direction. Algebraically, ab\vec{a} \parallel \vec{b} iff b=λa\vec{b} = \lambda\vec{a} for some scalar λ\lambda.

Worked examples

Example 1. Find the magnitude of a=3i^4j^+12k^\vec{a} = 3\hat{i} - 4\hat{j} + 12\hat{k}.

a=9+16+144=169=13|\vec{a}| = \sqrt{9 + 16 + 144} = \sqrt{169} = 13.

Example 2. Find a unit vector in the direction of a=2i^+3j^+6k^\vec{a} = 2\hat{i} + 3\hat{j} + 6\hat{k}.

a=4+9+36=7|\vec{a}| = \sqrt{4 + 9 + 36} = 7. So a^=2i^+3j^+6k^7\hat{a} = \dfrac{2\hat{i} + 3\hat{j} + 6\hat{k}}{7}.

Example 3. Find the direction cosines of a=i^2j^+2k^\vec{a} = \hat{i} - 2\hat{j} + 2\hat{k}.

a=1+4+4=3|\vec{a}| = \sqrt{1 + 4 + 4} = 3. Direction cosines: (1/3,2/3,2/3)(1/3, -2/3, 2/3). Check: 1/9+4/9+4/9=9/9=11/9 + 4/9 + 4/9 = 9/9 = 1.

Example 4. If A=(1,2,3)A = (1, 2, 3) and B=(4,5,6)B = (4, 5, 6), find AB\vec{AB} and AB|\vec{AB}|.

AB=BA=(3,3,3)=3(i^+j^+k^)\vec{AB} = B - A = (3, 3, 3) = 3(\hat{i} + \hat{j} + \hat{k}). Magnitude: 333\sqrt{3}.

Example 5. Are a=2i^4j^+6k^\vec{a} = 2\hat{i} - 4\hat{j} + 6\hat{k} and b=i^+2j^3k^\vec{b} = -\hat{i} + 2\hat{j} - 3\hat{k} parallel?

a=2b\vec{a} = -2\vec{b}, so yes , anti-parallel (opposite direction).

Example 6. A vector r\vec{r} has magnitude 14\sqrt{14} and direction cosines proportional to 1:2:31 : 2 : 3. Find r\vec{r}.

Direction ratios (1,2,3)(1, 2, 3); (1,2,3)=14|(1,2,3)| = \sqrt{14}. So direction cosines: (1/14,2/14,3/14)(1/\sqrt{14}, 2/\sqrt{14}, 3/\sqrt{14}). Vector r=14(l,m,n)=(1,2,3)=i^+2j^+3k^\vec{r} = \sqrt{14} \cdot (l, m, n) = (1, 2, 3) = \hat{i} + 2\hat{j} + 3\hat{k}.

Try it yourself

  1. Find the magnitude of a=5i^12j^\vec{a} = 5\hat{i} - 12\hat{j}.
  2. Find a unit vector in the direction of 4i^+3j^4\hat{i} + 3\hat{j}.
  3. Direction cosines of i^+j^+k^\hat{i} + \hat{j} + \hat{k}.
  4. If A=(2,1,0)A = (2, 1, 0), B=(1,3,4)B = (-1, 3, 4), find AB\vec{AB} and AB|\vec{AB}|.
  5. Are (2,4,6)(2, -4, 6) and (1,2,3)(1, -2, 3) collinear vectors?
  6. Find a vector of magnitude 55 parallel to i^+2j^+2k^\hat{i} + 2\hat{j} + 2\hat{k}.
  7. Verify that the direction cosines of i^\hat{i} are (1,0,0)(1, 0, 0).
  8. Find a\vec{a} if a=7|\vec{a}| = 7 and direction ratios are 2:3:62 : 3 : 6.
  9. Show that (2,3,1)(2, 3, -1) and (4,6,2)(-4, -6, 2) are anti-parallel.
  10. Find the angle which i^+j^\hat{i} + \hat{j} makes with the xx-axis.
  11. Find a unit vector parallel to ab\vec{a} - \vec{b} if a=i^+2j^k^\vec{a} = \hat{i} + 2\hat{j} - \hat{k}, b=2i^j^+3k^\vec{b} = 2\hat{i} - \hat{j} + 3\hat{k}.
  12. Find direction cosines of a line equally inclined to all three axes.
  13. Find r\vec{r} with r=9|\vec{r}| = 9 and direction i^2j^+2k^\hat{i} - 2\hat{j} + 2\hat{k}.
  14. A particle is at (1,2,3)(1, 2, 3) and moves to (4,2,8)(4, -2, 8). Find the displacement vector and its magnitude.

Pitfalls and tricks

  • Direction cosines square-sum to 1; direction ratios do not. Don't confuse them.
  • A vector is independent of its starting point. It's a free arrow, not a tethered one.
  • Zero vector has undefined direction. Avoid dividing by 0|\vec{0}|.
  • Equally-inclined direction: each direction cosine is ±1/3\pm 1/\sqrt{3}.
  • Parallel vs equal: parallel vectors share direction but may have any magnitude; equal vectors have both same magnitude and direction.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Vectors and components
6 questions · pick the best answer
Q1

Magnitude of 2i^+3j^+6k^2\hat i + 3\hat j + 6\hat k

Q2

Unit vector along 4i^3j^4\hat i - 3\hat j

Q3

Direction cosines square-sum to

Q4

If A=(1,2,3)A=(1,2,3) and B=(4,6,3)B=(4,6,3), AB=|\vec{AB}|=

Q5

Are (2,4,6)(2,4,6) and (1,2,3)(1,2,3) collinear vectors?

Q6

A vector of magnitude 33 along i^+2j^+2k^\hat i + 2\hat j + 2\hat k