Skip to main content
Physics LibreTexts

2.1: Math Tutorial — Vectors

  • Page ID
    32925
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    clipboard_e33482e7dac70fab06e1a3ec530959a62.png
    Figure \(\PageIndex{2}\): .1: Displacement vectors in a plane. Vector A represents the displacement of George from Mary, while vector B represents the displacement of Paul from George. Vector C represents the displacement of Paul from Mary and C = A + B. The quantities Ax, Ay, etc., represent the Cartesian components of the vectors.
    clipboard_e1905a69bb4d651a150c707b51da60ca2.png
    Figure \(\PageIndex{2}\): .2: Definition sketch for the angle θ representing the orientation of a two dimensional vector.

    Before we can proceed further we need to explore the idea of a vector. A vector is a quantity which expresses both magnitude and direction. Graphically we represent a vector as an arrow. In typeset notation a vector is represented by a boldface character, while in handwriting an arrow is drawn over the character representing the vector.

    Figure 2.1 shows some examples of displacement vectors, i. e., vectors which represent the displacement of one object from another, and introduces the idea of vector addition. The tail of vector B is collocated with the head of vector A, and the vector which stretches from the tail of A to the head of B is the sum of A and B, called C in figure 2.1.

    The quantities \(A_{x}, A_{y}\) etc., represent the Cartesian components of the vectors in figure 2.1. A vector can be represented either by its Cartesian components, which are just the projections of the vector onto the Cartesian coordinate axes, or by its direction and magnitude. The direction of a vector in two dimensions is generally represented by the counterclockwise angle of the vector relative to the x axis, as shown in figure 2.2. Conversion from one form to the other is given by the equations

    \[A=\left(A_{x}^{2}+A_{y}^{2}\right)^{1 / 2} \quad \theta=\tan ^{-1}\left(A_{y} / A_{x}\right)\label{2.1}\]

    \[A_{x}=A \cos (\theta) \quad A_{y}=A \sin (\theta)\label{2.2}\]

    where A is the magnitude of the vector. A vector magnitude is sometimes represented by absolute value notation: A ≡|A|.

    Notice that the inverse tangent gives a result which is ambiguous relative to adding or subtracting integer multiples of π. Thus the quadrant in which the angle lies must be resolved by independently examining the signs of Ax and Ay and choosing the appropriate value of θ.

    To add two vectors, A and B, it is easiest to convert them to Cartesian component form. The components of the sum C = A + B are then just the sums of the components:

    \[C_{x}=A_{x}+B_{x} \quad C_{y}=A_{y}+B_{y}\label{2.3}\]

    Subtraction of vectors is done similarly, e. g., if A = C - B, then

    \[A_{x}=C_{x}-B_{x} \quad A_{y}=C_{y}-B_{y}\label{2.4}\]

    A unit vector is a vector of unit length. One can always construct a unit vector from an ordinary (non-zero) vector by dividing the vector by its length: n = A|A|. This division operation is carried out by dividing each of the vector components by the number in the denominator. Alternatively, if the vector is expressed in terms of length and direction, the magnitude of the vector is divided by the denominator and the direction is unchanged.

    Unit vectors can be used to define a Cartesian coordinate system. Conventionally, i, j, and k indicate the x, y, and z axes of such a system. Note that i, j, and k are mutually perpendicular. Any vector can be represented in terms of unit vectors and its Cartesian components: A = Axi + Ayj + Azk. An alternate way to represent a vector is as a list of components: A = (Ax,Ay,Az). We tend to use the latter representation since it is somewhat more economical notation.

    There are two ways to multiply two vectors, yielding respectively what are known as the dot product and the cross product. The cross product yields another vector while the dot product yields a number. Here we will discuss only the dot product. The cross product will be presented later when it is needed.

    clipboard_edcc223742a328bd6bf0a02feabb5b9c8.png
    Figure 2.3: Definition sketch for dot product.

    Given vectors A and B, the dot product of the two is defined as

    \[\mathbf{A} \cdot \mathbf{B} \equiv|\mathbf{A} \| \mathbf{B}| \cos \theta\label{2.5}\]

    where θ is the angle between the two vectors. In two dimensions an alternate expression for the dot product exists in terms of the Cartesian components of the vectors:

    \[\mathbf{A} \cdot \mathbf{B}=A_{x} B_{x}+A_{y} B_{y}\label{2.6}\]

    It is easy to show that this is equivalent to the cosine form of the dot product when the x axis lies along one of the vectors, as in figure 2.3. Notice in particular that Ax = |A| cos θ, while Bx = |B| and By = 0. Thus, AB = |A| cos θ|B| in this case, which is identical to the form given in equation (2.5).

    clipboard_e22eac359bd511325997bc26f8659777f.png
    Figure \(\PageIndex{2}\): .4: Definition figure for rotated coordinate system. The vector R has components X and Y in the unprimed coordinate system and components X′ and Y ′ in the primed coordinate system.

    All that remains to be proven for Equation \ref{2.6} to hold in general is to show that it yields the same answer regardless of how the Cartesian coordinate system is oriented relative to the vectors. To do this, we must show that AxBx + AyBy = AxBx′ + AyBy′, where the primes indicate components in a coordinate system rotated from the original coordinate system.

    Figure 2.4 shows the vector R resolved in two coordinate systems rotated with respect to each other. From this figure it is clear that \(X^{\prime}=a+b\). Focusing on the shaded triangles, we see that \(a=X \cos \theta \text { and } b=Y \sin \theta\). Thus, we find \(X^{\prime}=X \cos \theta+Y \sin \theta\). Similar reasoning shows that \(Y^{\prime}=-X \sin \theta+Y \cos \theta\). Substituting these and using the trigonometric identity cos 2θ + sin 2θ = 1 results in

    \[\begin{equation}
    \begin{aligned}
    A_{x}^{\prime} B_{x}^{\prime}+A_{y}^{\prime} B_{y}^{\prime} &=\left(A_{x} \cos \theta+A_{y} \sin \theta\right)\left(B_{x} \cos \theta+B_{y} \sin \theta\right) \\
    &+\left(-A_{x} \sin \theta+A_{y} \cos \theta\right)\left(-B_{x} \sin \theta+B_{y} \cos \theta\right) \\
    &=A_{x} B_{x}+A_{y} B_{y}
    \end{aligned}
    \end{equation}\label{2.7}\]

    thus proving the complete equivalence of the two forms of the dot product as given by equations (2.5) and (2.6). Multiply out the above expression to verify this.

    A numerical quantity that doesn’t depend on which coordinate system is being used is called a scalar. The dot product of two vectors is a scalar. However, the components of a vector, taken individually, are not scalars, since the components change as the coordinate system changes. Since the laws of physics cannot depend on the choice of coordinate system being used, we insist that physical laws be expressed in terms of scalars and vectors, but not in terms of the components of vectors.

    In three dimensions the cosine form of the dot product remains the same, while the component form is

    \[\mathbf{A} \cdot \mathbf{B}=A_{x} B_{x}+A_{y} B_{y}+A_{z} B_{z}\label{2.8}\]


    This page titled 2.1: Math Tutorial — Vectors is shared under a CC BY-NC-SA 3.0 license and was authored, remixed, and/or curated by David J. Raymond (The New Mexico Tech Press) via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.