Free coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology: four years, plus a graduate year

Vectors

Quantities with a size and a direction, how to add them, and how to describe them with numbers in a coordinate system.

On this page · 6 sections
  1. Vectors as arrows
  2. Try it
  3. Coordinate systems
  4. Components
  5. Adding vectors with components
  6. Summary

Physics needs two kinds of quantities. Some are fully described by a single number with units: a mass of 2 kg, a temperature of 300 K. These are scalars. Others also need a direction. A push of 10 newtons to the left is a different thing from a push of 10 newtons upward. Quantities like this are vectors. Position, displacement, velocity, acceleration, force and momentum are all vectors.

This first lesson is about the language of vectors. Almost everything that follows uses it, including, in the end, the motion of galaxies in an expanding universe.

Vectors as arrows#

We draw a vector A⃗\vec A as an arrow. The arrow points in the vector's direction, and its length shows the vector's magnitude, written ∣A⃗∣|\vec A| or just AA. Where the arrow is drawn does not matter. Two arrows with the same length and direction are the same vector, wherever they sit.

Vectors come with two operations.

Addition. To add B⃗\vec B to A⃗\vec A, place the tail of B⃗\vec B at the tip of A⃗\vec A. The sum C⃗=A⃗+B⃗\vec C = \vec A + \vec B is the arrow from the tail of A⃗\vec A to the tip of B⃗\vec B. You can also draw both arrows from the same point and complete the parallelogram; the diagonal is the same C⃗\vec C.

xyA⃗\vec AB⃗\vec BC⃗\vec C
Head-to-tail addition, drawn from the numbers: the green arrow is the sum C = A + B.

The order does not matter (adding is commutative), and when you add three vectors it does not matter which pair you add first (it is associative):

Rules of vector addition
A⃗+B⃗=B⃗+A⃗,(A⃗+B⃗)+C⃗=A⃗+(B⃗+C⃗)\vec A + \vec B = \vec B + \vec A, \qquad (\vec A + \vec B) + \vec C = \vec A + (\vec B + \vec C)
In words

vector A plus vector B equals vector B plus vector A , ( vector A plus vector B ) plus vector C equals vector A plus ( vector B plus vector C )

Source: 8.01SC Course Notes, Chapter 3: Vectors, Sections 3.1–3.3.2: properties, coordinate systems, Cartesian components, Eqs. (3.1.1)–(3.1.2)

There is a zero vector 0⃗\vec 0 that changes nothing when added, and every vector has an opposite, −A⃗-\vec A: same length, reversed direction, so that A⃗+(−A⃗)=0⃗\vec A + (-\vec A) = \vec 0. Subtracting a vector means adding its opposite.

Multiplication by a number. Multiplying A⃗\vec A by a number cc stretches its length by ∣c∣|c|. If cc is positive the direction stays the same; if cc is negative the direction flips. Dividing a vector by its own magnitude leaves an arrow of length exactly 1 that points the same way. This is a unit vector, marked with a hat:

Unit vector
A^=A⃗∣A⃗∣,∣A^∣=1\hat A = \frac{\vec A}{|\vec A|}, \qquad |\hat A| = 1
In words

A hat equals vector A over | vector A | , | A hat | equals 1

Source: 8.01SC Course Notes, Chapter 3: Vectors, Sections 3.1–3.3.2: properties, coordinate systems, Cartesian components, Eq. (3.1.10)

Try it#

Drag the arrows in the simulation, add them, and watch the components and the sum change. Compare what you see with the rules above.

Vector Addition. Simulation by PhET Interactive Simulations, University of Colorado Boulder, licensed under CC BY-NC 4.0 (https://phet.colorado.edu). Open full screen

Coordinate systems#

Arrows are good for intuition, but to calculate we need numbers. A coordinate system turns vectors into numbers. Setting one up takes four choices:

  1. an origin, the point every position is measured from;
  2. a set of axes;
  3. a positive direction on each axis;
  4. a set of unit vectors at every point.

These choices are ours to make. A good choice can turn a messy problem into an easy one, which is why it pays to draw the coordinate system before calculating anything.

Cartesian coordinates use three perpendicular axes xx, yy, zz. At every point the unit vectors i^\hat i, j^\hat j, k^\hat k point toward increasing xx, yy and zz. They point the same way everywhere, which makes Cartesian coordinates the simplest system to calculate in.

Polar coordinates describe a point in a plane by its distance rr from the origin and the angle θ\theta from the +x+x axis, measured counterclockwise. Adding a height zz gives cylindrical coordinates. The two descriptions are linked by

Polar ↔ Cartesian
x=rcos⁡θ,y=rsin⁡θ⟺r=x2+y2,θ=tan⁡−1(y/x)x = r\cos\theta,\quad y = r\sin\theta \qquad\Longleftrightarrow\qquad r = \sqrt{x^2 + y^2},\quad \theta = \tan^{-1}(y/x)
In words

x equals r cos theta , y equals r sine theta is equivalent to r equals the square root of x squared plus y squared , theta equals inverse tan (y/x)

Source: 8.01SC Course Notes, Chapter 3: Vectors, Sections 3.1–3.3.2: properties, coordinate systems, Cartesian components, Eqs. (3.2.2)–(3.2.5)

(The inverse tangent needs care about which quadrant the point is in; more on that below.) Polar coordinates also have their own unit vectors: r^\hat r points straight away from the origin and θ^\hat\theta points around the circle, counterclockwise. Unlike i^\hat i and j^\hat j, these change direction from point to point. That will matter when we study circular motion.

Components#

Once we have unit vectors, any vector can be split into pieces along the axes. The numbers in front of the unit vectors are the components:

A vector in components
A⃗=Ax i^+Ay j^+Az k^\vec A = A_x\,\hat i + A_y\,\hat j + A_z\,\hat k
In words

vector A equals A sub x i hat plus A sub y j hat plus A sub z k hat

Source: 8.01SC Course Notes, Chapter 3: Vectors, Sections 3.1–3.3.2: properties, coordinate systems, Cartesian components, Eq. (3.3.4)

A component is a signed number: AxA_x is negative if A⃗\vec A points partly toward −x-x. So one vector in three dimensions is described by three numbers (Ax,Ay,Az)(A_x, A_y, A_z).

Magnitude. By Pythagoras, the length of the arrow is

Magnitude
A=∣A⃗∣=Ax2+Ay2+Az2A = |\vec A| = \sqrt{A_x^2 + A_y^2 + A_z^2}
In words

A equals | vector A | equals the square root of A sub x squared plus A sub y squared plus A sub z squared

Source: 8.01SC Course Notes, Chapter 3: Vectors, Sections 3.1–3.3.2: properties, coordinate systems, Cartesian components, Eq. (3.3.5)

Direction. For a vector in the xyxy-plane that makes an angle θ\theta with the +x+x axis,

Components from magnitude and angle
Ax=Acos⁡θ,Ay=Asin⁡θ,tan⁡θ=AyAxA_x = A\cos\theta, \qquad A_y = A\sin\theta, \qquad \tan\theta = \frac{A_y}{A_x}
In words

A sub x equals A cos theta , A sub y equals A sine theta , tan theta equals A sub y over A sub x

Source: 8.01SC Course Notes, Chapter 3: Vectors, Sections 3.1–3.3.2: properties, coordinate systems, Cartesian components, Eqs. (3.3.6)–(3.3.8)
xyθ\thetaA⃗\vec A
A vector and its component vectors (dashed). Here A = 5, Ax = 4, Ay = 3, and θ ≈ 36.9°.

Adding vectors with components#

Adding arrows head to tail is exactly the same as adding their components separately:

Addition by components
C⃗=A⃗+B⃗⟺Cx=Ax+Bx,Cy=Ay+By\vec C = \vec A + \vec B \quad\Longleftrightarrow\quad C_x = A_x + B_x, \quad C_y = A_y + B_y
In words

vector C equals vector A plus vector B is equivalent to C sub x equals A sub x plus B sub x , C sub y equals A sub y plus B sub y

Source: 8.01SC Course Notes, Chapter 3: Vectors, Sections 3.1–3.3.2: properties, coordinate systems, Cartesian components, Eq. (3.3.14)

That is the real reason components are useful. Adding arrows takes geometry; adding numbers takes arithmetic.

Worked example

Two displacements

A rover drives 5.0 m in a direction 30∘30^\circ above the +x+x axis, then 3.0 m in a direction 120∘120^\circ from the +x+x axis. How far is it from where it started, and in which direction?

Choose the coordinate system

Put the origin at the start, +x+x to the east and +y+y to the north, with angles measured counterclockwise from +x+x. Call the two displacements A⃗\vec A and B⃗\vec B.

Find the components of each vector

Ax=5.0cos⁡30∘=4.33A_x = 5.0\cos 30^\circ = 4.33 m, Ay=5.0sin⁡30∘=2.50A_y = 5.0\sin 30^\circ = 2.50 m.

Bx=3.0cos⁡120∘=−1.50B_x = 3.0\cos 120^\circ = -1.50 m, By=3.0sin⁡120∘=2.60B_y = 3.0\sin 120^\circ = 2.60 m.

BxB_x is negative because the second leg points partly west.

Add component by component

Cx=4.33+(−1.50)=2.83C_x = 4.33 + (-1.50) = 2.83 m and Cy=2.50+2.60=5.10C_y = 2.50 + 2.60 = 5.10 m.

Convert back to magnitude and direction

C=2.832+5.102=5.83C = \sqrt{2.83^2 + 5.10^2} = 5.83 m. Both components are positive, so the vector is in the first quadrant and θC=tan⁡−1(5.10/2.83)=61.0∘\theta_C = \tan^{-1}(5.10/2.83) = 61.0^\circ.

Check the answer another way

The two legs differ in direction by exactly 90∘90^\circ, so they form a right triangle: C=5.02+3.02=5.83C = \sqrt{5.0^2 + 3.0^2} = 5.83 m, and CC points tan⁡−1(3/5)=31.0∘\tan^{-1}(3/5) = 31.0^\circ beyond the first leg, at 30∘+31.0∘=61.0∘30^\circ + 31.0^\circ = 61.0^\circ. The two methods agree.

xyA⃗\vec AB⃗\vec BC⃗\vec C
The rover's two legs and the resultant displacement (green), drawn from the components computed above.

Summary#

  • A vector has a magnitude and a direction; it adds head to tail, and multiplying by a number stretches or flips it.
  • A coordinate system needs an origin, axes, positive directions and unit vectors.
  • In components, A⃗=Axi^+Ayj^+Azk^\vec A = A_x\hat i + A_y\hat j + A_z\hat k, with A=Ax2+Ay2+Az2A = \sqrt{A_x^2 + A_y^2 + A_z^2}.
  • Vectors add component by component. Watch the quadrant when you convert components back into an angle.

Symbols on this page

Show the 12 symbols used here
θ\theta theta
An angle. Say it: “theta” (sounds like “thay-ta or thee-ta”).
∘\circ degree
Degrees of angle (as in 45°). Say it: “degrees”.
≈\approx approximately equal
Is approximately equal to. Say it: “is approximately”.
⟺\Longleftrightarrow if and only if
If and only if: each statement implies the other. Say it: “is equivalent to”.
sin⁡\sin sine
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine
Cosine of an angle. Say it: “cos”.
tan⁡\tan tangent
Tangent of an angle, sin/cos. Say it: “tan”.
v⃗\vec v vector arrow
A vector: a quantity with a size and a direction. Say it: “vector”.
ı^\hat\imath hat
A unit vector: a vector of length 1 that only gives a direction (î, r̂). Say it: “hat”.
HH H
The Hubble parameter H = ȧ/a: the expansion rate of the universe. Say it: “H”.
zz z
The z coordinate: the third axis, with x and y. Say it: “z”.
kk k
With a hat, k̂ is the unit vector along the z axis. Say it: “k”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Where this leads

In cosmology

42 more cosmology pages that build on this

Pages that build on this

Check your understanding

  1. Which of these is a scalar quantity?
  2. A vector has components Ax=−3A_x = -3 and Ay=4A_y = 4. What is its magnitude?
  3. For the same vector (Ax=−3A_x = -3, Ay=4A_y = 4), a calculator gives tan⁡−1(4/(−3))≈−53∘\tan^{-1}(4/(-3)) \approx -53^\circ. What is the actual angle from the +x+x axis?
  4. Multiplying a vector A⃗\vec A by −2-2 gives a vector that…
  5. What is special about the Cartesian unit vectors i^,j^,k^\hat i, \hat j, \hat k compared with the polar unit vectors r^,θ^\hat r, \hat\theta?
0 of 5 answered

Flashcards

1 / 6

Credits and license

This page is a rewritten explanation based on MIT 8.01SC Lesson 0: Vectors (0.1–0.6) from MIT 8.01SC Classical Mechanics (Fall 2016), taught by Prof. Deepto Chakrabarty, Dr. Peter Dourmashkin, Dr. Michelle Tomasik, Prof. Anna Frebel and Prof. Vladan Vuletic, published on MIT OpenCourseWare under CC BY-NC-SA 4.0.

MIT readings used: 8.01SC Course Notes, Chapter 3: Vectors (Sections 3.1–3.3.2: properties, coordinate systems, Cartesian components).

MIT and the instructors do not endorse this site. All diagrams and plots on this page are generated by this site. This page is licensed CC BY-NC-SA 4.0: you may share and adapt it for non-commercial use with attribution, under the same license.