10.1 Vectors, Their Types and Components
Some quantities are fixed by one number; others also need a direction. A vector is an arrow with a length and a direction — and in three dimensions every vector can be written with just three numbers, its components along î, ĵ and k̂.
A delivery drone leaves its charging pad and hovers 30 m east, 40 m north and 120 m up. To describe where it is, “130 metres away” is not enough — 130 m in which direction? On the other hand, its battery holds 54 watt-hours, and that single number says everything there is to say about the charge. Physics and engineering are full of this split: mass, time, temperature and energy need only a number (with a unit), while displacement, velocity, force and acceleration need a number and a direction.
This section sets up the language for the second kind of quantity. A vector is drawn as an arrow: its length is the magnitude, and the way it points is the direction. You will describe directions in space by three angles and their cosines — the direction cosines — meet the special kinds of vectors (zero, unit, equal, negative, collinear, coinitial), and then see the key idea of the whole chapter: once the three unit vectors $\hat i,\hat j,\hat k$ along the axes are fixed, every vector in space is just $x\hat i+y\hat j+z\hat k$, three numbers you can calculate with.
Scalars, Vectors and Position Vectors
A vector quantity is one that has both a magnitude and a direction — for example displacement, velocity, acceleration, force, momentum. Geometrically a vector is represented by a directed line segment $\overrightarrow{AB}$: $A$ is its initial point, $B$ its terminal point, the arrow points from $A$ to $B$, and the length $AB$ is its magnitude, written $|\overrightarrow{AB}|$. A vector is also named by a single letter with an arrow, $\vec a$, with magnitude $|\vec a|$ (or simply $a$). A magnitude is never negative.
To work with vectors in space we fix a rectangular coordinate system: an origin $O$ and three mutually perpendicular axes $OX$, $OY$, $OZ$ (Class 11 Mathematics, Ch. 11 — Introduction to Three Dimensional Geometry). We always use a right-handed system: curl the fingers of your right hand from $OX$ towards $OY$ and your thumb points along $OZ$.
Why the formula holds. Drop a perpendicular from $P$ to the $xy$-plane, meeting it at $Q(x,y,0)$. In the $xy$-plane, $OQ^2=x^2+y^2$ (Pythagoras). The segment $QP$ is vertical, of length $|z|$, and perpendicular to $OQ$, so triangle $OQP$ is right-angled at $Q$ and $OP^2=OQ^2+QP^2=x^2+y^2+z^2$ — Pythagoras twice.
Now for the direction. The arrow $\overrightarrow{OP}$ makes an angle with each positive axis, and these three angles pin down which way it points.
Proof. Let $A$ be the foot of the perpendicular from $P$ to the $x$-axis; then $A=(x,0,0)$ and triangle $OAP$ has a right angle at $A$. The angle at $O$ is $\alpha$, so the signed length $OA$ along the positive $x$-axis is $r\cos\alpha$, that is $x=r\cos\alpha$. (If $x\lt0$ the angle $\alpha$ is obtuse and both sides are negative; if $x=0$, $\alpha=\tfrac\pi2$.) In the same way $y=r\cos\beta$ and $z=r\cos\gamma$. Dividing by $r$ gives $l,m,n$, and $$l^2+m^2+n^2=\frac{x^2+y^2+z^2}{r^2}=\frac{r^2}{r^2}=1.\ \square$$
So the direction cosines are not three free numbers: once two of them are known, the third is fixed up to its sign. And from any direction ratios $a,b,c$ (not all zero) you recover the direction cosines by dividing by $\sqrt{a^2+b^2+c^2}$: $$l=\pm\frac{a}{\sqrt{a^2+b^2+c^2}},\ \ m=\pm\frac{b}{\sqrt{a^2+b^2+c^2}},\ \ n=\pm\frac{c}{\sqrt{a^2+b^2+c^2}},$$ the same sign being taken throughout. The two choices of sign give two opposite directions along the same line.
Types of Vectors
In this chapter a vector is fixed by its magnitude and direction only; where it starts does not matter. Sliding an arrow parallel to itself does not change the vector. (Physicists call these free vectors. A force acting on a door at the hinge or at the handle has a different effect, but that is extra information about the point of application, not about the vector.)
Zero vector. A vector whose initial and terminal points coincide, such as $\overrightarrow{AA}$. Its magnitude is $0$ and it has no definite direction (it may be regarded as having any direction). It is written $\vec 0$.
Unit vector. A vector of magnitude $1$. The unit vector in the direction of a non-zero vector $\vec a$ is written $\hat a$ (“$a$ hat”).
Coinitial vectors. Two or more vectors with the same initial point, such as $\overrightarrow{OA}$, $\overrightarrow{OB}$, $\overrightarrow{OC}$.
Collinear vectors. Two or more vectors parallel to the same line, whatever their magnitudes and whichever way along the line they point. (Also called parallel vectors.)
Equal vectors. $\vec a=\vec b$ when they have the same magnitude and the same direction, regardless of their initial points.
Negative of a vector. The vector with the same magnitude as $\vec a$ but the opposite direction, written $-\vec a$. In particular $\overrightarrow{BA}=-\overrightarrow{AB}$.
1. Same length is not enough. Two vectors of magnitude $5$ pointing different ways are not equal. Equality needs magnitude and direction.
2. Collinear does not mean “on the same line”. Collinear vectors only need to be parallel to one line; $\overrightarrow{AB}$ and $\overrightarrow{DC}$ in a parallelogram lie on different lines and are collinear. They may also point in opposite senses.
3. Equal vectors may start anywhere. $\overrightarrow{AB}=\overrightarrow{DC}$ although $A\ne D$. Do not reject equality because the initial points differ.
4. $\vec 0$ is not the number $0$. Write $\overrightarrow{AA}=\vec 0$ (a vector) but $|\overrightarrow{AA}|=0$ (a number).
Components of a Vector
Here is the idea that turns geometry into arithmetic. Put a unit vector along each positive axis: $\hat i$ along $OX$, $\hat j$ along $OY$, $\hat k$ along $OZ$ — so $\hat i$ is the position vector of $(1,0,0)$, $\hat j$ of $(0,1,0)$, $\hat k$ of $(0,0,1)$. To reach $P(x,y,z)$ from $O$ you can walk $x$ units along $\hat i$, then $y$ units along $\hat j$, then $z$ units along $\hat k$. In Section 10.2 you will see that this “walk” is exactly a sum of vectors; for now we use it as a way of writing the vector.
(a) $|\vec a|=\sqrt{a_1^2+a_2^2+a_3^2}$.
(b) $\vec a=\vec b$ if and only if $a_1=b_1$, $a_2=b_2$ and $a_3=b_3$.
(c) If $\vec a\ne\vec 0$, its direction cosines are $\dfrac{a_1}{|\vec a|},\dfrac{a_2}{|\vec a|},\dfrac{a_3}{|\vec a|}$; its components $a_1,a_2,a_3$ are direction ratios; and the unit vector in its direction is
$$\hat a=\frac{a_1}{|\vec a|}\hat i+\frac{a_2}{|\vec a|}\hat j+\frac{a_3}{|\vec a|}\hat k=l\hat i+m\hat j+n\hat k.$$Why. Slide $\vec a$ so that it starts at $O$; it then ends at the point $(a_1,a_2,a_3)$. Part (a) is Definition 10.2 and part (c) is Theorem 10.1 for that point; the vector $l\hat i+m\hat j+n\hat k$ is the position vector of $(l,m,n)$, whose magnitude is $\sqrt{l^2+m^2+n^2}=1$ and whose direction is that of $\vec a$. For (b): two vectors are equal exactly when, both slid to start at $O$, they end at the same point — and two points are the same exactly when their coordinates agree. $\square$
1. Adding instead of squaring. $|2\hat i-3\hat j+6\hat k|$ is $\sqrt{4+9+36}=7$, not $2-3+6=5$.
2. Forgetting the sign choice. From $l^2+m^2+n^2=1$ you get $n$ only up to sign. Keep both answers unless the question says the angle is acute or obtuse.
3. Direction ratios are not unique. $1,-2,2$ and $3,-6,6$ and $-\tfrac12,1,-1$ are all direction ratios of the same line. Direction cosines are unique for a given vector.
4. The angles do not add to $180^\circ$. The identity is about cosines squared: $\cos^2\alpha+\cos^2\beta+\cos^2\gamma=1$. Equivalently $\sin^2\alpha+\sin^2\beta+\sin^2\gamma=2$. There is no rule for $\alpha+\beta+\gamma$.
5. The zero vector has no direction cosines — you would be dividing by $|\vec 0|=0$.
Exercises
- 1 Classify as scalar or vector: (a) $25$ kg; (b) $12$ m/s due north; (c) $300$ K; (d) $9.8$ m/s² vertically downwards; (e) $20$ J; (f) $4$ km to the south-west; (g) $1.2$ g/cm³.
- 2 Classify as scalar or vector: time period, displacement, speed, force, volume, momentum.
- 3 $ABCDEF$ is a regular hexagon with centre $O$, lettered anticlockwise. Using only the points $A,\dots,F,O$, name three vectors equal to $\overrightarrow{AB}$.
- 4 In the hexagon of part 3, name four vectors equal to $-\overrightarrow{AB}$.
- 5 True or false? (a) Two collinear vectors are always equal. (b) Two vectors with the same magnitude are equal. (c) Equal vectors are collinear. (d) The zero vector is collinear with every vector. (e) Coinitial vectors have the same initial point. (f) If $|\vec a|=|\vec b|$ then $\vec a=\pm\vec b$.
- 6 Draw a vector representing a displacement of $40$ km, $30^\circ$ east of north, using a scale of $1$ cm $=10$ km. How long is your arrow?
- 1 Find $|\overrightarrow{OP}|$ for $P(1,-2,2)$.
- 2 Find the magnitude and direction cosines of $\overrightarrow{OP}$ for $P(3,4,12)$.
- 3 Find the magnitude and direction cosines of $\overrightarrow{OP}$ for $P(-6,2,3)$.
- 4 Find the direction cosines of $\overrightarrow{OP}$ for $P(1,1,1)$ and the angle it makes with each axis.
- 5 Find the direction cosines of a vector with direction ratios $2,3,-6$.
- 6 Find the direction cosines of a vector with direction ratios $1,-1,0$, and the angles it makes with the axes (take the first sign).
- 7 Can $\tfrac12,\tfrac12,\tfrac12$ be the direction cosines of a vector? Explain.
- 8 A vector makes angles of $60^\circ$ with $OX$ and $45^\circ$ with $OY$. Find the angle it makes with $OZ$.
- 9 Find the direction cosines of a vector that is equally inclined to the three axes.
- 10 Write down the direction cosines of (a) the positive $z$-axis; (b) the negative $x$-axis.
- 1 Find $|\vec a|$ and $\hat a$ for $\vec a=3\hat i-4\hat j$.
- 2 Find $|\vec b|$ and $\hat b$ for $\vec b=\hat i+2\hat j-2\hat k$.
- 3 Find the unit vector in the direction of $\vec c=4\hat i+4\hat j-7\hat k$.
- 4 Find the vector of magnitude $10$ in the direction of $3\hat i+4\hat k$.
- 5 Find $x,y,z$ if $(x-2)\hat i+(y+3)\hat j+2z\hat k=5\hat i-\hat j+8\hat k$.
- 6 Are $\vec a=2\hat i+3\hat j$ and $\vec b=3\hat i+2\hat j$ equal? Compare their magnitudes.
- 7 Write down the scalar components and the vector components of $\vec a=-2\hat i+5\hat k$.
- 8 For which values of $p$ is $p\hat i+p\hat j+p\hat k$ a unit vector?
- 9 Find the vector of magnitude $6$ that makes equal acute angles with the three axes.
Whole-number components give an exact surd answer; decimals are accepted too.
- 1 Drone. With $x$ east, $y$ north and $z$ up (in metres), a drone is at $P(30,40,120)$ relative to its launch pad $O$. Find its distance from $O$ and the angle between $\overrightarrow{OP}$ and the vertical.
- 2 Show that no vector can make angles of $30^\circ$ with $OX$ and $45^\circ$ with $OY$.
- 3 If $\alpha,\beta,\gamma$ are the direction angles of a vector, show that $\sin^2\alpha+\sin^2\beta+\sin^2\gamma=2$ and $\cos2\alpha+\cos2\beta+\cos2\gamma=-1$.
- 4 A point $P$ has $|\overrightarrow{OP}|=6$, and the direction ratios of $\overrightarrow{OP}$ are $1,2,2$ with all angles acute. Find the coordinates of $P$.
- 5 Phone sensor (illustrative reading). A phone lying tilted on a desk reports the vector $(0,\ 5.88,\ 7.84)$ m/s² for gravity along its own $x$-, $y$- and $z$-axes. Find the magnitude of this vector and the angle between gravity and the phone's $z$-axis.
- 6 Find $k$ if $\tfrac13,\ k,\ \tfrac23$ are the direction cosines of a vector.
How this is examined: Board papers ask for a unit vector, a vector of given magnitude, or direction cosines (1–2 marks), and use the identity $l^2+m^2+n^2=1$ in MCQs and Assertion–Reason. JEE combines the identity with angle conditions and sign choices.
E1. Board · 1 mark If a vector makes angles $\alpha,\beta,\gamma$ with the coordinate axes, then $\sin^2\alpha+\sin^2\beta+\sin^2\gamma$ equals (A) $1$ (B) $2$ (C) $3$ (D) $0$
E2. Board · 1 mark Assertion–Reason. Assertion (A): $\tfrac1{\sqrt2},\tfrac12,\tfrac12$ can be the direction cosines of a vector. Reason (R): the direction cosines $l,m,n$ of any vector satisfy $l^2+m^2+n^2=1$. (A) Both A and R are true and R is the correct explanation of A (B) Both A and R are true but R is not the correct explanation of A (C) A is true but R is false (D) A is false but R is true
E3. Board · 2 marks Find a vector of magnitude $9$ units in the direction of $\vec a=2\hat i-\hat j+2\hat k$.
E4. Board · 2 marks Find $x$ and $y$ so that $\vec a=2x\hat i+3\hat j$ and $\vec b=8\hat i+(y-1)\hat j$ are equal. Then find $|\vec a|$ and the direction cosines of $\vec a$.
E5. JEE Main A vector $\vec r$ with $|\vec r|=6$ makes angles $\tfrac\pi4$ with $OX$ and $\tfrac\pi3$ with $OY$, and an obtuse angle with $OZ$. Then $\vec r$ equals (A) $3\sqrt2\,\hat i+3\hat j-3\hat k$ (B) $3\sqrt2\,\hat i+3\hat j+3\hat k$ (C) $3\hat i+3\sqrt2\,\hat j-3\hat k$ (D) $3\sqrt2\,\hat i-3\hat j+3\hat k$
E6. JEE Advanced (One or more correct options.) A non-zero vector makes an angle $\theta$ with $OX$, the same angle $\theta$ with $OY$, and the angle $2\theta$ with $OZ$, where $0\lt\theta\le\tfrac\pi2$. Then $\theta$ can be (A) $\tfrac\pi4$ (B) $\tfrac\pi2$ (C) $\tfrac\pi3$ (D) $\tfrac\pi6$
Research question. How does your phone know which way is “down” — and can you use direction cosines to measure the tilt of a ramp, a roof or a staircase?
Why it matters. Every smartphone has an accelerometer that reports a 3-D vector along the phone's own $x$-, $y$- and $z$-axes. At rest that vector is (very nearly) gravity, so its direction cosines tell you exactly how the phone is tilted. Screen rotation, spirit-level apps, step counters and fall detectors in fitness bands all use this.
What to do.
- Install a free sensor app that shows raw accelerometer readings (for example phyphox). Lay the phone flat and note the three components; check that the magnitude is close to $9.8$ m/s².
- Place the phone on five different slopes (a book propped up, a ramp, a staircase rail…). For each, record $(a_x,a_y,a_z)$, compute the magnitude and the direction cosines, and find the tilt angle $\gamma=\cos^{-1}\dfrac{a_z}{|\vec a|}$.
- Measure each slope with a protractor or by rise/run and compare with your vector answer.
- Compute $l^2+m^2+n^2$ for every reading, first dividing by the magnitude you calculated and then dividing by $9.8$ instead. Why is the first sum always exactly $1$ while the second is not?
Tools: Phone with a sensor app; spreadsheet (SQRT, ACOS, DEGREES); protractor or measuring tape.
Hand in: A table of readings, magnitudes, direction cosines and angles, a comparison with your direct measurements, and a short paragraph on the sources of error.
Going further. Hold the phone still in your hand for 20 seconds and record many readings. How much do the direction cosines wobble? How would a fitness band decide that a sudden change means a fall?
🧪 Self-check quiz
Q1. Which of these is a vector quantity?
Q2. $|2\hat i-3\hat j+6\hat k|$ equals
Q3. The direction cosines of $\hat i+\hat j+\hat k$ are
Q4. A vector makes angles $90^\circ$ with $OX$ and $60^\circ$ with $OY$. Then $\cos\gamma$ (for the angle with $OZ$) is
Q5. Which pair of vectors is collinear but not equal?