Topic 1.1

Scalars and vectors

Vector components, unit vectors and vector addition.

7 min read2 worked examples3 questions to check yourself

Big idea

A vector carries a size and a direction, and breaking it into components along the unit vectors i^\hat{i}, j^\hat{j} and k^\hat{k} turns vector addition into ordinary addition, one axis at a time.

Diagram showing arrow A = 5 m, arrow A_x = 4 m, arrow A_y = 3 m.θ = 37°A = 5 mAx = 4 mAy = 3 m

A 5 m5\ \text{m} displacement at 37∘37^\circ above the +x+x axis is the same as going 4 m4\ \text{m} along xx and then 3 m3\ \text{m} along yy: A⃗=(4i^+3j^) m\vec{A} = (4\hat{i} + 3\hat{j})\ \text{m}.

Explanation

Some quantities are complete once you give a number and a unit: a mass of 2 kg2\ \text{kg}, a time of 5 s5\ \text{s}, a speed of 12 m/s12\ \text{m/s}. These are scalars. Others also need a direction: a displacement of 5 m5\ \text{m} north is not the same as 5 m5\ \text{m} east. These are vectors, and position, displacement, velocity and acceleration are all vectors. A vector's magnitude (its size) is never negative.

Arrows are good for thinking; components are better for calculating. Pick perpendicular axes and ask how far the vector reaches along each. A vector of magnitude AA at angle θ\theta, measured counterclockwise from the +x+x axis, has Ax=Acos⁡θA_x = A\cos\theta and Ay=Asin⁡θA_y = A\sin\theta. A component is a signed number: negative means the vector points toward the negative end of that axis. The unit vectors i^\hat{i}, j^\hat{j} and k^\hat{k} have magnitude 1, no unit, and point along +x+x, +y+y and +z+z, so the whole vector is written A⃗=Axi^+Ayj^+Azk^\vec{A} = A_x\hat{i} + A_y\hat{j} + A_z\hat{k}.

To add vectors, add matching components: the xx-component of A⃗+B⃗\vec{A} + \vec{B} is Ax+BxA_x + B_x, and likewise for yy and zz. Subtracting means adding the opposite vector, and multiplying by a scalar multiplies every component. Magnitudes do not add unless the vectors point the same way. To go back from components to size and direction, use the Pythagorean theorem and an inverse tangent, then check the quadrant by looking at the signs of the components.

This matters more in a calculus-based course, because the unit vectors are constant. Differentiating or integrating a vector is done one component at a time, which is how every two- and three-dimensional problem in this unit is handled.

Equations

  • A⃗=Axi^+Ayj^+Azk^\vec{A} = A_x\hat{i} + A_y\hat{j} + A_z\hat{k}

    A vector is the sum of its components, each multiplied by the unit vector along its axis.

    A⃗\vec{A}

    the vector (same as its components)

    Ax, Ay, AzA_x,\ A_y,\ A_z

    components along x, y and z (signed) (e.g. m, m/s)

    i^, j^, k^\hat{i},\ \hat{j},\ \hat{k}

    unit vectors along +x, +y and +z (none)
    Use it when

    Always, before adding, subtracting, differentiating or integrating vectors.

    Not when

    Do not mix axes: an i^\hat{i} term never combines with a j^\hat{j} term.

  • Ax=Acos⁡θ,Ay=Asin⁡θA_x = A\cos\theta, \qquad A_y = A\sin\theta

    The components of a vector in a plane, from its magnitude and its angle from the +x axis.

    AA

    magnitude of the vector (e.g. m, m/s)

    Ax, AyA_x,\ A_y

    components along x and y (same as A)

    θ\theta

    angle measured counterclockwise from the +x axis (° or rad)
    Use it when

    You know a vector's size and direction and need its components.

    Not when

    If the angle is measured from the yy axis or from the −x-x axis, sine and cosine swap or a sign changes. Sketch the triangle rather than trusting the formula.

  • A=Ax2+Ay2+Az2,tan⁡θ=AyAxA = \sqrt{A_x^2 + A_y^2 + A_z^2}, \qquad \tan\theta = \frac{A_y}{A_x}

    The magnitude of a vector from its components, and its direction in the xy-plane.

    AA

    magnitude of the vector (e.g. m, m/s)

    Ax, Ay, AzA_x,\ A_y,\ A_z

    components (same as A)

    θ\theta

    angle from the +x axis, for a vector in the xy-plane (° or rad)
    Use it when

    You have components and want the size or direction.

    Not when

    The inverse tangent alone cannot tell opposite quadrants apart; when AxA_x is negative, add 180∘180^\circ.

  • R⃗=A⃗+B⃗=(Ax+Bx)i^+(Ay+By)j^\vec{R} = \vec{A} + \vec{B} = (A_x + B_x)\hat{i} + (A_y + B_y)\hat{j}

    Vectors add component by component.

    R⃗\vec{R}

    resultant (sum) vector (same as A and B)

    A⃗, B⃗\vec{A},\ \vec{B}

    the vectors being added (e.g. m)

    Ax, AyA_x,\ A_y

    components of the first vector (e.g. m)

    Bx, ByB_x,\ B_y

    components of the second vector (e.g. m)

    i^, j^\hat{i},\ \hat{j}

    unit vectors along +x and +y (none)
    Use it when

    Combining displacements, velocities or any vectors of the same kind.

    Not when

    Do not add magnitudes unless the vectors are parallel, and do not add vectors of different kinds (a velocity to a displacement).

Where it comes from

Worked examples

  1. Adding two displacements by components

    Step by step

    A warehouse robot rolls 6.0 m6.0\ \text{m} in a direction 30∘30^\circ counterclockwise from the +x+x axis, then 4.0 m4.0\ \text{m} in a direction 135∘135^\circ counterclockwise from the +x+x axis. How far is it from where it started, and in what direction?

    0 of 5 steps
  2. Speed and climb angle of a three-dimensional velocity

    Written as an exam answer

    A light aircraft climbs with velocity v⃗=(60i^+80j^+15k^) m/s\vec{v} = (60\hat{i} + 80\hat{j} + 15\hat{k})\ \text{m/s}, where i^\hat{i} points east, j^\hat{j} points north and k^\hat{k} points straight up. Determine the aircraft's speed, its speed over the ground, and the angle its path makes above the horizontal. Then explain why the speed is not 60+80+15=155 m/s60 + 80 + 15 = 155\ \text{m/s}.

    1. Step 1:

      Speed over the ground is the magnitude of the horizontal part of v⃗\vec{v}, the shadow of the vector on the ground: vh=vx2+vy2=602+802 m/s=100 m/sv_h = \sqrt{v_x^2 + v_y^2} = \sqrt{60^2 + 80^2}\ \text{m/s} = 100\ \text{m/s}.

    2. Step 2:

      The speed is the magnitude of the whole vector: ∣v⃗∣=602+802+152 m/s=10 225 m/s=101 m/s|\vec{v}| = \sqrt{60^2 + 80^2 + 15^2}\ \text{m/s} = \sqrt{10\,225}\ \text{m/s} = 101\ \text{m/s}. The small, perpendicular vertical component adds only 1 m/s1\ \text{m/s}.

    3. Step 3:

      The vertical component and the horizontal part form a right triangle, so the climb angle is θ=tan⁡−1(vz/vh)=tan⁡−1(15/100)=8.5∘\theta = \tan^{-1}(v_z/v_h) = \tan^{-1}(15/100) = 8.5^\circ.

    4. Step 4:

      Adding the components gives 155 m/s155\ \text{m/s}, which would be right only if all three pointed the same way. They are mutually perpendicular, so they combine by the Pythagorean theorem.

    Answer

    Speed 101 m/s101\ \text{m/s}, ground speed 100 m/s100\ \text{m/s}, climbing at 8.5° above the horizontal; the perpendicular components combine by Pythagoras, not by addition

Common mistakes

  • Mistake

    A 3 m3\ \text{m} displacement followed by a 4 m4\ \text{m} displacement always makes a 7 m7\ \text{m} displacement.

    What is true

    Only when the two point the same way. In general the result can be anything from 1 m1\ \text{m} (opposite directions) to 7 m7\ \text{m}, and it is 5 m5\ \text{m} when they are perpendicular. Add components, not magnitudes.

  • Mistake

    The magnitude of the displacement is the distance travelled.

    What is true

    Displacement depends only on the start and end points; distance is the length of the path between them. Run once round a 400 m400\ \text{m} track and your distance is 400 m400\ \text{m} but your displacement is zero.

  • Mistake

    tan⁡−1(Ay/Ax)\tan^{-1}(A_y/A_x) always gives the vector's direction.

    What is true

    A calculator returns an angle between −90∘-90^\circ and 90∘90^\circ, so it cannot tell opposite quadrants apart. For A⃗=(−3i^+4j^) m\vec{A} = (-3\hat{i} + 4\hat{j})\ \text{m} it gives −53∘-53^\circ, but the vector points up and to the left, at 127∘127^\circ. When AxA_x is negative, add 180∘180^\circ.

Check yourself

  1. 1.

    Vector A⃗\vec{A} has magnitude 10 m10\ \text{m} and points 37∘37^\circ above the −x-x axis. What are its components?

  2. 2.

    Two displacements have magnitudes 5 m5\ \text{m} and 12 m12\ \text{m}. What are the largest and smallest possible magnitudes of their sum, and what is it when they are perpendicular?

  3. 3.

    If A⃗=2i^−3j^\vec{A} = 2\hat{i} - 3\hat{j} and B⃗=−5i^+j^\vec{B} = -5\hat{i} + \hat{j}, both in metres, what is A⃗−2B⃗\vec{A} - 2\vec{B}?

Try it

Swing a 5 m5\ \text{m} vector round. Past 90∘90^\circ the xx-component turns negative, while the magnitude never changes.

35 °
Diagram showing arrow A = 5 m, arrow A_x = 4.1 m, arrow A_y = 2.9 m.θA = 5 mAx = 4.1 mAy = 2.9 m

Practice 1.1 with feedback

Problem sets for Unit 1 grade themselves, and Raise hints at the next step instead of giving the answer.

Spotted a mistake in this lesson? Tell us and we will fix it.