Skip to content

Vectors

By the end of this section, you will be able to:

  • View vectors geometrically
  • Find magnitude and direction
  • Perform vector addition and scalar multiplication
  • Find the component form of a vector
  • Find the unit vector in the direction of vv
  • Perform operations with vectors in terms of ii and jj
  • Find the dot product of two vectors

An airplane is flying at an airspeed of 200200 miles per hour headed on a SE bearing of 140140^\circ. A north wind (blowing from north to south) is blowing at 16.216.2 miles per hour, as shown below. What are the ground speed and actual bearing of the plane?

Ground speed refers to the speed of a plane relative to the ground. Airspeed refers to the speed a plane can travel relative to its surrounding air mass. These two quantities are not the same because of the effect of wind. In an earlier section, we used triangles to solve a similar problem involving the movement of boats. Later in this section, we will find the airplane’s ground speed and bearing while investigating another approach to problems of this type. First, however, let’s examine the basics of vectors.

A Geometric View of Vectors

A vector is a specific quantity drawn as a line segment with an arrowhead at one end. It has an initial point, where it begins, and a terminal point, where it ends. A vector is defined by its magnitude, or the length of the line, and its direction, indicated by an arrowhead at the terminal point. Thus, a vector is a directed line segment. There are various symbols that distinguish vectors from other quantities:

  • Lower case, boldfaced type, with or without an arrow on top, such as v\mathbf{v}, u\mathbf{u}, w\mathbf{w}, v\vec{\mathbf{v}}, u\vec{\mathbf{u}}, w\vec{\mathbf{w}}.
  • Given initial point PP and terminal point QQ, a vector can be represented as PQ\overrightarrow{PQ}. The arrowhead on top is what indicates that it is not just a line, but a directed line segment.
  • Given an initial point of (0,0)(0,0) and terminal point (a,b)(a,b), a vector may be represented as a,b\langle a,b\rangle.

This last symbol a,b\langle a,b\rangle has special significance. It is called the standard position. The position vector has an initial point (0,0)(0,0) and a terminal point (a,b)(a,b). To change any vector into the position vector, we think about the change in the xx-coordinates and the change in the yy-coordinates. Thus, if the initial point of a vector CD\overrightarrow{CD} is C(x1,y1)C(x_1,y_1) and the terminal point is D(x2,y2)D(x_2,y_2), then the position vector is found by calculating

AB=x2x1,y2y1=a,b \begin{array}{lrcl} & \overrightarrow{AB} &=& \langle x_2-x_1,y_2-y_1\rangle \\[4pt] & &=& \langle a,b\rangle \end{array}

In the figure below, we see the original vector CD\overrightarrow{CD} and the position vector AB\overrightarrow{AB}.

Properties of Vectors. A vector is a directed line segment with an initial point and a terminal point. Vectors are identified by magnitude, or the length of the line, and direction, represented by the arrowhead pointing toward the terminal point. The position vector has an initial point at (0,0)(0,0) and is identified by its terminal point (a,b)(a,b).

Example. Consider the vector whose initial point is P(2,3)P(2,3) and terminal point is Q(6,4)Q(6,4). Find the position vector.

Solution. The position vector is found by subtracting one xx-coordinate from the other xx-coordinate, and one yy-coordinate from the other yy-coordinate. Thus

v=62,43=4,1 \begin{array}{lrcl} & \mathbf{v} &=& \langle 6-2,4-3\rangle \\[4pt] & &=& \langle 4,1\rangle \end{array}

The position vector begins at (0,0)(0,0) and terminates at (4,1)(4,1). The graphs of both vectors are shown below.

We see that the position vector is 4,1\langle 4,1\rangle.

Example. Find the position vector given that vector v\mathbf{v} has an initial point at (3,2)(-3,2) and a terminal point at (4,5)(4,5), then graph both vectors in the same plane.

Solution. The position vector is found using the following calculation:

v=4(3),52=7,3 \begin{array}{lrcl} & \mathbf{v} &=& \langle 4-(-3),5-2\rangle \\[4pt] & &=& \langle 7,3\rangle \end{array}

Thus, the position vector begins at (0,0)(0,0) and terminates at (7,3)(7,3). See the figure below.

Write the vector from the origin to the point(3,5)(3,5)in terms ofiiandjj.

Finding Magnitude and Direction

To work with a vector, we need to be able to find its magnitude and its direction. We find its magnitude using the Pythagorean Theorem or the distance formula, and we find its direction using the inverse tangent function.

Magnitude and Direction of a Vector. Given a position vector v=a,b\mathbf{v}=\langle a,b\rangle, the magnitude is found by v=a2+b2\lvert\mathbf{v}\rvert=\sqrt{a^2+b^2}. The direction is equal to the angle formed with the xx-axis, or with the yy-axis, depending on the application. For a position vector, the direction is found by tanθ=(ba)θ=tan1(ba)\tan\theta=\left(\tfrac{b}{a}\right)\Rightarrow\theta=\tan^{-1}\left(\tfrac{b}{a}\right), as illustrated in the figure below.

Two vectors v\mathbf{v} and u\mathbf{u} are considered equal if they have the same magnitude and the same direction. Additionally, if both vectors have the same position vector, they are equal.

Example. Find the magnitude and direction of the vector with initial point P(8,1)P(-8,1) and terminal point Q(2,5)Q(-2,-5). Draw the vector.

Solution. First, find the position vector.

u=2(8),51=6,6 \begin{array}{lrcl} & \mathbf{u} &=& \langle -2-(-8),-5-1\rangle \\[4pt] & &=& \langle 6,-6\rangle \end{array}

We use the Pythagorean Theorem to find the magnitude.

u=(6)2+(6)2=72=62 \begin{array}{lrcl} & \lvert\mathbf{u}\rvert &=& \sqrt{(6)^2+(-6)^2} \\[4pt] & &=& \sqrt{72} \\[4pt] & &=& 6\sqrt2 \end{array}

The direction is given as

tanθ=66=1θ=tan1(1)=45 \begin{array}{lrcl} & \tan\theta &=& \tfrac{-6}{6}=-1\Rightarrow\theta=\tan^{-1}(-1) \\[4pt] & &=& -45^\circ \end{array}

However, the angle terminates in the fourth quadrant, so we add 360360^\circ to obtain a positive angle. Thus, 45+360=315-45^\circ+360^\circ=315^\circ. See the figure below.

Example. Show that vector v\mathbf{v} with initial point at (5,3)(5,-3) and terminal point at (1,2)(-1,2) is equal to vector u\mathbf{u} with initial point at (1,3)(-1,-3) and terminal point at (7,2)(-7,2). Draw the position vector on the same grid as v\mathbf{v} and u\mathbf{u}. Next, find the magnitude and direction of each vector.

Solution. Draw the vector v\mathbf{v} starting at initial point (5,3)(5,-3) and terminal point (1,2)(-1,2). Draw the vector u\mathbf{u} with initial point (1,3)(-1,-3) and terminal point (7,2)(-7,2). Find the standard position for each.

Next, find and sketch the position vector for v\mathbf{v} and u\mathbf{u}. We have

v=15,2(3)=6,5 \begin{array}{lrcl} & \mathbf{v} &=& \langle -1-5,2-(-3)\rangle \\[4pt] & &=& \langle -6,5\rangle \end{array} u=7(1),2(3)=6,5 \begin{array}{lrcl} & \mathbf{u} &=& \langle -7-(-1),2-(-3)\rangle \\[4pt] & &=& \langle -6,5\rangle \end{array}

Since the position vectors are the same, v\mathbf{v} and u\mathbf{u} are the same.

An alternative way to check for vector equality is to show that the magnitude and direction are the same for both vectors. To show that the magnitudes are equal, use the Pythagorean Theorem.

v=(15)2+(2(3))2=(6)2+(5)2=36+25=61 \begin{array}{lrcl} & \lvert\mathbf{v}\rvert &=& \sqrt{(-1-5)^2+(2-(-3))^2} \\[4pt] & &=& \sqrt{(-6)^2+(5)^2} \\[4pt] & &=& \sqrt{36+25} \\[4pt] & &=& \sqrt{61} \end{array} u=(7(1))2+(2(3))2=(6)2+(5)2=36+25=61 \begin{array}{lrcl} & \lvert\mathbf{u}\rvert &=& \sqrt{(-7-(-1))^2+(2-(-3))^2} \\[4pt] & &=& \sqrt{(-6)^2+(5)^2} \\[4pt] & &=& \sqrt{36+25} \\[4pt] & &=& \sqrt{61} \end{array}

As the magnitudes are equal, we now need to verify the direction. Using the tangent function with the position vector gives

tanθ=56θ=tan1(56)=39.8 \begin{array}{lrcl} & \tan\theta &=& -\tfrac{5}{6}\Rightarrow\theta=\tan^{-1}\left(-\tfrac{5}{6}\right) \\[4pt] & &=& -39.8^\circ \end{array}

However, we can see that the position vector terminates in the second quadrant, so we add 180180^\circ. Thus, the direction is 39.8+180=140.2-39.8^\circ+180^\circ=140.2^\circ.

Performing Vector Addition and Scalar Multiplication

Now that we understand the properties of vectors, we can perform operations involving them. While it is convenient to think of the vector u=x,y\mathbf{u}=\langle x,y\rangle as an arrow or directed line segment from the origin to the point (x,y)(x,y), vectors can be situated anywhere in the plane. The sum of two vectors u\mathbf{u} and v\mathbf{v}, or vector addition, produces a third vector u+v\mathbf{u}+\mathbf{v}, the resultant vector.

To find u+v\mathbf{u}+\mathbf{v}, we first draw the vector u\mathbf{u}, and from the terminal end of u\mathbf{u}, we draw the vector v\mathbf{v}. In other words, we have the initial point of v\mathbf{v} meet the terminal end of u\mathbf{u}. This position corresponds to the notion that we move along the first vector and then, from its terminal point, we move along the second vector. The sum u+v\mathbf{u}+\mathbf{v} is the resultant vector because it results from addition or subtraction of two vectors. The resultant vector travels directly from the beginning of u\mathbf{u} to the end of v\mathbf{v} in a straight path, as shown below.

Vector subtraction is similar to vector addition. To find uv\mathbf{u}-\mathbf{v}, view it as u+(v)\mathbf{u}+(-\mathbf{v}). Adding v-\mathbf{v} is reversing the direction of v\mathbf{v} and adding it to the end of u\mathbf{u}. The new vector begins at the start of u\mathbf{u} and stops at the end point of v-\mathbf{v}. See the figure below for a visual that compares vector addition and vector subtraction using parallelograms.

Example. Given u=3,2\mathbf{u}=\langle 3,-2\rangle and v=1,4\mathbf{v}=\langle -1,4\rangle, find two new vectors u+v\mathbf{u}+\mathbf{v} and uv\mathbf{u}-\mathbf{v}.

Solution. To find the sum of two vectors, we add the components. Thus,

u+v=3,2+1,4=3+(1),2+4=2,2 \begin{array}{lrcl} & \mathbf{u}+\mathbf{v} &=& \langle 3,-2\rangle+\langle -1,4\rangle \\[4pt] & &=& \langle 3+(-1),-2+4\rangle \\[4pt] & &=& \langle 2,2\rangle \end{array}

See figure (a) below.

(a) Sum of two vectors.

To find the difference of two vectors, add the negative components of v\mathbf{v} to u\mathbf{u}. Thus,

u+(v)=3,2+1,4=3+1,2+(4)=4,6 \begin{array}{lrcl} & \mathbf{u}+(-\mathbf{v}) &=& \langle 3,-2\rangle+\langle 1,-4\rangle \\[4pt] & &=& \langle 3+1,-2+(-4)\rangle \\[4pt] & &=& \langle 4,-6\rangle \end{array}

See figure (b) below.

(b) Difference of two vectors.

Multiplying by a Scalar

While adding and subtracting vectors gives us a new vector with a different magnitude and direction, the process of multiplying a vector by a scalar, a constant, changes only the magnitude of the vector or the length of the line. Scalar multiplication has no effect on the direction unless the scalar is negative, in which case the direction of the resulting vector is opposite the direction of the original vector.

Scalar Multiplication. Scalar multiplication involves the product of a vector and a scalar. Each component of the vector is multiplied by the scalar. Thus, to multiply v=a,b\mathbf{v}=\langle a,b\rangle by kk, we have

kv=ka,kbk\mathbf{v}=\langle ka,kb\rangle

Only the magnitude changes, unless kk is negative, and then the vector reverses direction.

Example. Given vector v=3,1\mathbf{v}=\langle 3,1\rangle, find 3v3\mathbf{v}, 12v\tfrac12\mathbf{v}, and v-\mathbf{v}.

Solution. See the figure below for a geometric interpretation. If v=3,1\mathbf{v}=\langle 3,1\rangle, then

3v=33,31=9,312v=123,121=32,12v=3,1 \begin{array}{lrcl} & 3\mathbf{v} &=& \langle 3\cdot3,3\cdot1\rangle \\[4pt] & &=& \langle 9,3\rangle \\[4pt] & \tfrac12\mathbf{v} &=& \left\langle \tfrac12\cdot3,\tfrac12\cdot1\right\rangle \\[4pt] & &=& \left\langle \tfrac32,\tfrac12\right\rangle \\[4pt] & -\mathbf{v} &=& \langle -3,-1\rangle \end{array}

Analysis. Notice that the vector 3v3\mathbf{v} is three times the length of v\mathbf{v}, 12v\tfrac12\mathbf{v} is half the length of v\mathbf{v}, and v-\mathbf{v} is the same length as v\mathbf{v}, but in the opposite direction.

Find the scalar multiple3u3\mathbf{u}givenu=5,4\mathbf{u}=\langle 5,4\rangle, and write the result in terms ofiiandjj.

Example. Given u=3,2\mathbf{u}=\langle 3,-2\rangle and v=1,4\mathbf{v}=\langle -1,4\rangle, find a new vector w=3u+2v\mathbf{w}=3\mathbf{u}+2\mathbf{v}.

Solution. First, we must multiply each vector by the scalar.

3u=33,2=9,62v=21,4=2,8 \begin{array}{lrcl} & 3\mathbf{u} &=& 3\langle 3,-2\rangle \\[4pt] & &=& \langle 9,-6\rangle \\[4pt] & 2\mathbf{v} &=& 2\langle -1,4\rangle \\[4pt] & &=& \langle -2,8\rangle \end{array}

Then, add the two together.

w=3u+2v=9,6+2,8=92,6+8=7,2 \begin{array}{lrcl} & \mathbf{w} &=& 3\mathbf{u}+2\mathbf{v} \\[4pt] & &=& \langle 9,-6\rangle+\langle -2,8\rangle \\[4pt] & &=& \langle 9-2,-6+8\rangle \\[4pt] & &=& \langle 7,2\rangle \end{array}

So, w=7,2\mathbf{w}=\langle 7,2\rangle.

Finding Component Form

In some applications involving vectors, it is helpful for us to be able to break a vector down into its components. Vectors are comprised of two components: the horizontal component is the xx direction, and the vertical component is the yy direction. For example, we can see in the figure below that the position vector 2,3\langle 2,3\rangle comes from adding the vectors v1\mathbf{v}_1 and v2\mathbf{v}_2. We have v1\mathbf{v}_1 with initial point (0,0)(0,0) and terminal point (2,0)(2,0).

v1=20,00=2,0 \begin{array}{lrcl} & \mathbf{v}_1 &=& \langle 2-0,0-0\rangle \\[4pt] & &=& \langle 2,0\rangle \end{array}

We also have v2\mathbf{v}_2 with initial point (0,0)(0,0) and terminal point (0,3)(0,3).

v2=00,30=0,3 \begin{array}{lrcl} & \mathbf{v}_2 &=& \langle 0-0,3-0\rangle \\[4pt] & &=& \langle 0,3\rangle \end{array}

Therefore, the position vector is

v=2+0,3+0=2,3 \begin{array}{lrcl} & \mathbf{v} &=& \langle 2+0,3+0\rangle \\[4pt] & &=& \langle 2,3\rangle \end{array}

Using the Pythagorean Theorem, the magnitude of v1\mathbf{v}_1 is 22, and the magnitude of v2\mathbf{v}_2 is 33. To find the magnitude of v\mathbf{v}, use the formula with the position vector.

v=v12+v22=22+32=13 \begin{array}{lrcl} & \lvert\mathbf{v}\rvert &=& \sqrt{\lvert\mathbf{v}_1\rvert^2+\lvert\mathbf{v}_2\rvert^2} \\[4pt] & &=& \sqrt{2^2+3^2} \\[4pt] & &=& \sqrt{13} \end{array}

The magnitude of v\mathbf{v} is 13\sqrt{13}. To find the direction, we use the tangent function tanθ=yx\tan\theta=\tfrac{y}{x}.

tanθ=v2v1tanθ=32θ=tan1(32)=56.3 \begin{array}{lrcl} & \tan\theta &=& \tfrac{\lvert\mathbf{v}_2\rvert}{\lvert\mathbf{v}_1\rvert} \\[4pt] & \tan\theta &=& \tfrac32 \\[4pt] & \theta &=& \tan^{-1}\left(\tfrac32\right)=56.3^\circ \end{array}

Thus, the magnitude of v\mathbf{v} is 13\sqrt{13} and the direction is 56.356.3^\circ off the horizontal.

Example. Find the components of the vector v\mathbf{v} with initial point (3,2)(3,2) and terminal point (7,4)(7,4).

Solution. First find the standard position.

v=73,42=4,2 \begin{array}{lrcl} & \mathbf{v} &=& \langle 7-3,4-2\rangle \\[4pt] & &=& \langle 4,2\rangle \end{array}

See the illustration below.

The horizontal component is v1=4,0\mathbf{v}_1=\langle 4,0\rangle and the vertical component is v2=0,2\mathbf{v}_2=\langle 0,2\rangle.

Finding the Unit Vector in the Direction of vv

In addition to finding a vector’s components, it is also useful in solving problems to find a vector in the same direction as the given vector, but of magnitude 11. We call a vector with a magnitude of 11 a unit vector. We can then preserve the direction of the original vector while simplifying calculations.

Unit vectors are defined in terms of components. The horizontal unit vector is written as i=1,0\mathbf{i}=\langle 1,0\rangle and is directed along the positive horizontal axis. The vertical unit vector is written as j=0,1\mathbf{j}=\langle 0,1\rangle and is directed along the positive vertical axis. See the figure below.

The Unit Vectors. If v\mathbf{v} is a nonzero vector, then vv\tfrac{\mathbf{v}}{\lvert\mathbf{v}\rvert} is a unit vector in the direction of v\mathbf{v}. Any vector divided by its magnitude is a unit vector. Notice that magnitude is always a scalar, and dividing by a scalar is the same as multiplying by the reciprocal of the scalar.

Example. Find a unit vector in the same direction as v=5,12\mathbf{v}=\langle -5,12\rangle.

Solution. First, we will find the magnitude.

v=(5)2+(12)2=25+144=169=13 \begin{array}{lrcl} & \lvert\mathbf{v}\rvert &=& \sqrt{(-5)^2+(12)^2} \\[4pt] & &=& \sqrt{25+144} \\[4pt] & &=& \sqrt{169} \\[4pt] & &=& 13 \end{array}

Then we divide each component by v\lvert\mathbf{v}\rvert, which gives a unit vector in the same direction as v\mathbf{v}:

vv=513i+1213j\frac{\mathbf{v}}{\lvert\mathbf{v}\rvert}=-\tfrac{5}{13}i+\tfrac{12}{13}j

or, in component form

vv=513,1213\frac{\mathbf{v}}{\lvert\mathbf{v}\rvert}=\left\langle -\tfrac{5}{13},\tfrac{12}{13}\right\rangle

See the figure below.

Verify that the magnitude of the unit vector equals 11. The magnitude of 513i+1213j-\tfrac{5}{13}i+\tfrac{12}{13}j is given as

(513)2+(1213)2=25169+144169=169169=1 \begin{array}{lrcl} & \sqrt{\left(-\tfrac{5}{13}\right)^2+\left(\tfrac{12}{13}\right)^2} &=& \sqrt{\tfrac{25}{169}+\tfrac{144}{169}} \\[4pt] & &=& \sqrt{\tfrac{169}{169}}=1 \end{array}

The vector u=513i+1213j\mathbf{u}=-\tfrac{5}{13}i+\tfrac{12}{13}j is the unit vector in the same direction as v=5,12\mathbf{v}=\langle -5,12\rangle. (Source note: the printed text states this final coefficient as 513\tfrac{5}{13}, but v\mathbf{v} terminates in Quadrant II, so its horizontal component must be negative — matching the computation above; corrected here.)

Performing Operations with Vectors in Terms of ii and jj

So far, we have investigated the basics of vectors: magnitude and direction, vector addition and subtraction, scalar multiplication, the components of vectors, and the representation of vectors geometrically. Now that we are familiar with the general strategies used in working with vectors, we will represent vectors in rectangular coordinates in terms of ii and jj.

Vectors in the Rectangular Plane. Given a vector v\mathbf{v} with initial point P=(x1,y1)P=(x_1,y_1) and terminal point Q=(x2,y2)Q=(x_2,y_2), v\mathbf{v} is written as

v=(x2x1)i+(y2y1)j\mathbf{v}=(x_2-x_1)i+(y_2-y_1)j

The position vector from (0,0)(0,0) to (a,b)(a,b), where (x2x1)=a(x_2-x_1)=a and (y2y1)=b(y_2-y_1)=b, is written as v=ai+bj\mathbf{v}=ai+bj. This vector sum is called a linear combination of the vectors ii and jj.

The magnitude of v=ai+bj\mathbf{v}=ai+bj is given as v=a2+b2\lvert\mathbf{v}\rvert=\sqrt{a^2+b^2}. See the figure below.

Example. Given a vector v\mathbf{v} with initial point P=(2,6)P=(2,-6) and terminal point Q=(6,6)Q=(-6,6), write the vector in terms of ii and jj.

Solution. Begin by writing the general form of the vector. Then replace the coordinates with the given values.

v=(x2x1)i+(y2y1)j=(62)i+(6(6))j=8i+12j \begin{array}{lrcl} & \mathbf{v} &=& (x_2-x_1)i+(y_2-y_1)j \\[4pt] & &=& (-6-2)i+(6-(-6))j \\[4pt] & &=& -8i+12j \end{array}

Example. Given initial point P1=(1,3)P_1=(-1,3) and terminal point P2=(2,7)P_2=(2,7), write the vector v\mathbf{v} in terms of ii and jj.

Solution. Begin by writing the general form of the vector. Then replace the coordinates with the given values.

v=(x2x1)i+(y2y1)jv=(2(1))i+(73)j=3i+4j \begin{array}{lrcl} & \mathbf{v} &=& (x_2-x_1)i+(y_2-y_1)j \\[4pt] & \mathbf{v} &=& (2-(-1))i+(7-3)j \\[4pt] & &=& 3i+4j \end{array}

Write the vectoru\mathbf{u}with initial pointP=(1,6)P=(-1,6)and terminal pointQ=(7,5)Q=(7,-5)in terms ofiiandjj.

Performing Operations on Vectors in Terms of ii and jj

When vectors are written in terms of ii and jj, we can carry out addition, subtraction, and scalar multiplication by performing operations on corresponding components.

Adding and Subtracting Vectors in Rectangular Coordinates. Given v=ai+bj\mathbf{v}=ai+bj and u=ci+dj\mathbf{u}=ci+dj, then

v+u=(a+c)i+(b+d)jvu=(ac)i+(bd)j \begin{array}{lrcl} & \mathbf{v}+\mathbf{u} &=& (a+c)i+(b+d)j \\[4pt] & \mathbf{v}-\mathbf{u} &=& (a-c)i+(b-d)j \end{array}

Example. Find the sum of v1=2i3j\mathbf{v}_1=2i-3j and v2=4i+5j\mathbf{v}_2=4i+5j.

Solution. According to the formula, we have

v1+v2=(2+4)i+(3+5)j=6i+2j \begin{array}{lrcl} & \mathbf{v}_1+\mathbf{v}_2 &=& (2+4)i+(-3+5)j \\[4pt] & &=& 6i+2j \end{array}

Calculating the Component Form of a Vector: Direction

We have seen how to draw vectors according to their initial and terminal points and how to find the position vector. We have also examined notation for vectors drawn specifically in the Cartesian coordinate plane using ii and jj. For any of these vectors, we can calculate the magnitude. Now, we want to combine the key points, and look further at the ideas of magnitude and direction.

Calculating direction follows the same straightforward process we used for polar coordinates. We find the direction of the vector by finding the angle to the horizontal. We do this by using the basic trigonometric identities, but with v\lvert\mathbf{v}\rvert replacing rr.

Vector Components in Terms of Magnitude and Direction. Given a position vector v=x,y\mathbf{v}=\langle x,y\rangle and a direction angle θ\theta,

cosθ=xvandsinθ=yvx=vcosθy=vsinθ \begin{array}{lrcl} & \cos\theta &=& \tfrac{x}{\lvert\mathbf{v}\rvert}\quad\text{and}\quad\sin\theta=\tfrac{y}{\lvert\mathbf{v}\rvert} \\[4pt] & x &=& \lvert\mathbf{v}\rvert\cos\theta\qquad y=\lvert\mathbf{v}\rvert\sin\theta \end{array}

Thus, v=xi+yj=vcosθi+vsinθj\mathbf{v}=xi+yj=\lvert\mathbf{v}\rvert\cos\theta\, i+\lvert\mathbf{v}\rvert\sin\theta\, j, and magnitude is expressed as v=x2+y2\lvert\mathbf{v}\rvert=\sqrt{x^2+y^2}.

Example. Given a vector with length 77 and an angle of 135135^\circ, write it in component form.

Solution. Using the conversion formulas x=vcosθx=\lvert\mathbf{v}\rvert\cos\theta and y=vsinθy=\lvert\mathbf{v}\rvert\sin\theta, we find that

x=7cos(135)=722y=7sin(135)=722 \begin{array}{lrcl} & x &=& 7\cos(135^\circ) \\[4pt] & &=& -\tfrac{7\sqrt2}{2} \\[4pt] & y &=& 7\sin(135^\circ) \\[4pt] & &=& \tfrac{7\sqrt2}{2} \end{array}

This vector can be written as v=7cos(135)+7sin(135)\mathbf{v}=7\cos(135^\circ)+7\sin(135^\circ) or simplified as

v=722i+722j\mathbf{v}=-\tfrac{7\sqrt2}{2}i+\tfrac{7\sqrt2}{2}j

A vector travels from the origin to the point(3,5)(3,5). Find its magnitude in exact form.

A vector travels from the origin to the point(3,5)(3,5). Find its direction angleθ\theta, with0θ<3600^\circ\le\theta<360^\circ. Round to two decimal places.

Finding the Dot Product of Two Vectors

As we discussed earlier in the section, scalar multiplication involves multiplying a vector by a scalar, and the result is a vector. If we multiply a vector by a vector, there are two possibilities: the dot product and the cross product. We will only examine the dot product here; you may encounter the cross product in more advanced mathematics courses.

The dot product of two vectors involves multiplying two vectors together, and the result is a scalar.

Dot Product. The dot product of two vectors v=a,b\mathbf{v}=\langle a,b\rangle and u=c,d\mathbf{u}=\langle c,d\rangle is the sum of the product of the horizontal components and the product of the vertical components.

vu=ac+bd\mathbf{v}\cdot\mathbf{u}=ac+bd

To find the angle between the two vectors, use the formula below.

cosθ=vvuu\cos\theta=\tfrac{\mathbf{v}}{\lvert\mathbf{v}\rvert}\cdot\tfrac{\mathbf{u}}{\lvert\mathbf{u}\rvert}

Example. Find the dot product of v=5,12\mathbf{v}=\langle 5,12\rangle and u=3,4\mathbf{u}=\langle -3,4\rangle.

Solution. Using the formula, we have

vu=5,123,4=5(3)+124=15+48=33 \begin{array}{lrcl} & \mathbf{v}\cdot\mathbf{u} &=& \langle 5,12\rangle\cdot\langle -3,4\rangle \\[4pt] & &=& 5\cdot(-3)+12\cdot4 \\[4pt] & &=& -15+48 \\[4pt] & &=& 33 \end{array}

Example. Find the dot product of v1=5i+2j\mathbf{v}_1=5i+2j and v2=3i+7j\mathbf{v}_2=3i+7j. Then, find the angle between the two vectors.

Solution. Finding the dot product, we multiply corresponding components.

v1v2=5,23,7=53+27=15+14=29 \begin{array}{lrcl} & \mathbf{v}_1\cdot\mathbf{v}_2 &=& \langle 5,2\rangle\cdot\langle 3,7\rangle \\[4pt] & &=& 5\cdot3+2\cdot7 \\[4pt] & &=& 15+14 \\[4pt] & &=& 29 \end{array}

To find the angle between them, we use the formula cosθ=vvuu\cos\theta=\tfrac{\mathbf{v}}{\lvert\mathbf{v}\rvert}\cdot\tfrac{\mathbf{u}}{\lvert\mathbf{u}\rvert}.

vvuu=529,229358,758=529358+229758=151682+141682=291682=0.707107cos1(0.707107)=45 \begin{array}{lrcl} & \tfrac{\mathbf{v}}{\lvert\mathbf{v}\rvert}\cdot\tfrac{\mathbf{u}}{\lvert\mathbf{u}\rvert} &=& \left\langle \tfrac{5}{\sqrt{29}},\tfrac{2}{\sqrt{29}}\right\rangle\cdot\left\langle \tfrac{3}{\sqrt{58}},\tfrac{7}{\sqrt{58}}\right\rangle \\[4pt] & &=& \tfrac{5}{\sqrt{29}}\cdot\tfrac{3}{\sqrt{58}}+\tfrac{2}{\sqrt{29}}\cdot\tfrac{7}{\sqrt{58}} \\[4pt] & &=& \tfrac{15}{\sqrt{1682}}+\tfrac{14}{\sqrt{1682}}=\tfrac{29}{\sqrt{1682}} \\[4pt] & &=& 0.707107 \\[4pt] & \cos^{-1}(0.707107) &=& 45^\circ \end{array}

See the figure below.

Example. Find the angle between u=3,4\mathbf{u}=\langle -3,4\rangle and v=5,12\mathbf{v}=\langle 5,12\rangle.

Solution. Using the formula, we have

θ=cos1(uuvv)(uuvv)=3i+4j55i+12j13=(35513)+(451213)=1565+4865=3365θ=cos1(3365)=59.5 \begin{array}{lrcl} & \theta &=& \cos^{-1}\left(\tfrac{\mathbf{u}}{\lvert\mathbf{u}\rvert}\cdot\tfrac{\mathbf{v}}{\lvert\mathbf{v}\rvert}\right) \\[4pt] & \left(\tfrac{\mathbf{u}}{\lvert\mathbf{u}\rvert}\cdot\tfrac{\mathbf{v}}{\lvert\mathbf{v}\rvert}\right) &=& \tfrac{-3i+4j}{5}\cdot\tfrac{5i+12j}{13} \\[4pt] & &=& \left(-\tfrac35\cdot\tfrac{5}{13}\right)+\left(\tfrac45\cdot\tfrac{12}{13}\right) \\[4pt] & &=& -\tfrac{15}{65}+\tfrac{48}{65} \\[4pt] & &=& \tfrac{33}{65} \\[4pt] & \theta &=& \cos^{-1}\left(\tfrac{33}{65}\right) \\[4pt] & &=& 59.5^\circ \end{array}

See the figure below.

Example. We now have the tools to solve the problem we introduced at the opening of the section.

An airplane is flying at an airspeed of 200200 miles per hour headed on a SE bearing of 140140^\circ. A north wind (from north to south) is blowing at 16.216.2 miles per hour. What are the ground speed and actual bearing of the plane? See the figure above.

Solution. The ground speed is represented by xx in the diagram, and we need to find the angle α\alpha in order to calculate the adjusted bearing, which will be 140+α140^\circ+\alpha.

Notice that angle BCOBCO must be equal to angle AOCAOC by the rule of alternating interior angles, so angle BCOBCO is 140140^\circ. We can find xx by the Law of Cosines:

x2=(16.2)2+(200)22(16.2)(200)cos(140)x2=45,226.41x=45,226.41x=212.7 \begin{array}{lrcl} & x^2 &=& (16.2)^2+(200)^2-2(16.2)(200)\cos(140^\circ) \\[4pt] & x^2 &=& 45{,}226.41 \\[4pt] & x &=& \sqrt{45{,}226.41} \\[4pt] & x &=& 212.7 \end{array}

The ground speed is approximately 213213 miles per hour. Now we can calculate the bearing using the Law of Sines.

sinα16.2=sin(140)212.7sinα=16.2sin(140)212.7=0.04896sin1(0.04896)=2.8 \begin{array}{lrcl} & \tfrac{\sin\alpha}{16.2} &=& \tfrac{\sin(140^\circ)}{212.7} \\[4pt] & \sin\alpha &=& \tfrac{16.2\sin(140^\circ)}{212.7} \\[4pt] & &=& 0.04896 \\[4pt] & \sin^{-1}(0.04896) &=& 2.8^\circ \end{array}

Therefore, the plane has a SE bearing of 140+2.8=142.8140^\circ+2.8^\circ=142.8^\circ. The ground speed is 212.7212.7 miles per hour.

Key concepts

  • The position vector has its initial point at the origin.
  • If the position vector is the same for two vectors, they are equal.
  • Vectors are defined by their magnitude and direction.
  • If two vectors have the same magnitude and direction, they are equal.
  • Vector addition and subtraction result in a new vector found by adding or subtracting corresponding elements.
  • Scalar multiplication is multiplying a vector by a constant. Only the magnitude changes; the direction stays the same.
  • Vectors are comprised of two components: the horizontal component along the positive xx-axis, and the vertical component along the positive yy-axis.
  • The unit vector in the same direction of any nonzero vector is found by dividing the vector by its magnitude.
  • The magnitude of a vector in the rectangular coordinate system is v=a2+b2\lvert\mathbf{v}\rvert=\sqrt{a^2+b^2}.
  • In the rectangular coordinate system, unit vectors may be represented in terms of ii and jj, where ii represents the horizontal component and jj represents the vertical component. Then, v=ai+bj\mathbf{v}=ai+bj is a scalar multiple of v\mathbf{v} by real numbers aa and bb.
  • Adding and subtracting vectors in terms of ii and jj consists of adding or subtracting corresponding coefficients of ii and corresponding coefficients of jj.
  • A vector v=ai+bj\mathbf{v}=ai+bj is written in terms of magnitude and direction as v=vcosθi+vsinθj\mathbf{v}=\lvert\mathbf{v}\rvert\cos\theta\, i+\lvert\mathbf{v}\rvert\sin\theta\, j.
  • The dot product of two vectors is the product of the ii terms plus the product of the jj terms.
  • We can use the dot product to find the angle between two vectors.
  • Dot products are useful for many types of physics applications.

Practice

View vectors geometrically

Determine whether the vectorsu\mathbf{u}andv\mathbf{v}are equal, whereu\mathbf{u}has initial pointP1=(5,1)P_1=(5,1)and terminal pointP2=(3,2)P_2=(3,-2), andv\mathbf{v}has initial pointP3=(1,3)P_3=(-1,3)and terminal pointP4=(9,4)P_4=(9,-4).

Determine whether the vectorsu\mathbf{u}andv\mathbf{v}are equal, whereu\mathbf{u}has initial pointP1=(8,3)P_1=(8,3)and terminal pointP2=(6,5)P_2=(6,5), andv\mathbf{v}has initial pointP3=(11,8)P_3=(11,8)and terminal pointP4=(9,10)P_4=(9,10).

Find magnitude and direction

Find the magnitude of the vector6,5\langle 6,5\rangle. Round to the nearest thousandth.

Find the direction angleθ\thetaof the vector6,5\langle 6,5\rangle, with0θ<3600^\circ\le\theta<360^\circ. Round to the nearest thousandth of a degree.

Find the magnitude of the vector4,6\langle -4,-6\rangle. Round to the nearest thousandth.

Find the direction angleθ\thetaof the vector4,6\langle -4,-6\rangle, with0θ<3600^\circ\le\theta<360^\circ. Round to the nearest thousandth of a degree.

Perform vector addition and scalar multiplication

Givenu=3,4\mathbf{u}=\langle -3,4\rangleandv=2,1\mathbf{v}=\langle -2,1\rangle, findu+v\mathbf{u}+\mathbf{v}in terms ofiiandjj.

Givenu=3,4\mathbf{u}=\langle -3,4\rangleandv=2,1\mathbf{v}=\langle -2,1\rangle, finduv\mathbf{u}-\mathbf{v}in terms ofiiandjj.

Givenu=3,4\mathbf{u}=\langle -3,4\rangleandv=2,1\mathbf{v}=\langle -2,1\rangle, find2u3v2\mathbf{u}-3\mathbf{v}in terms ofiiandjj.

Letv=5i+2j\mathbf{v}=5i+2j. Find a vector that is twice the length ofv\mathbf{v}and points in the opposite direction.

Find the component form of a vector

Given a vector with initial point(4,2)(-4,2)and terminal point(3,3)(3,-3), find an equivalent vector whose initial point is(0,0)(0,0), and write the result in terms ofiiandjj.

Given initial pointP1=(4,1)P_1=(4,-1)and terminal pointP2=(3,2)P_2=(-3,2), write the vectorv\mathbf{v}in terms ofiiandjj.

Find the unit vector in the direction of vv

Find a unit vector in the same direction asb=2i+5j\mathbf{b}=-2i+5j.

Find a unit vector in the same direction asd=13i+52j\mathbf{d}=-\tfrac13 i+\tfrac52 j.

Perform operations with vectors in terms of ii and jj

Foru=i+5j\mathbf{u}=i+5j,v=2i3j\mathbf{v}=-2i-3j, andw=4ij\mathbf{w}=4i-j, find4v+2u4\mathbf{v}+2\mathbf{u}.

A vector has magnitude66and direction angleθ=45\theta=45^\circin standard position. Write the vector in component form usingiiandjj.

Find the dot product of two vectors

Givenu=ij\mathbf{u}=-i-jandv=i+5j\mathbf{v}=i+5j, calculateuv\mathbf{u}\cdot\mathbf{v}.

Givenu=1,6\mathbf{u}=\langle -1,6\rangleandv=6,1\mathbf{v}=\langle 6,-1\rangle, calculateuv\mathbf{u}\cdot\mathbf{v}.


This section is adapted from Precalculus 2e, Section 8.8: Vectors by Jay Abramson and OpenStax, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: omitted the decorative airplane clip-art overlaid on the source’s opening and Example-17 figures, keeping only the instructional vector triangle; the source repeats that triangle verbatim as two separate figures (the opener and Example 17’s), so this page consolidates them into the one figure that opens the section, and Example 17 refers back to “the figure above” instead of redrawing an identical copy — the not-to-scale opener/Example-17 diagram exaggerates the drawn length of the 16.216.2 mph wind vector relative to the 200200 mph airspeed vector for label legibility, matching the source’s own schematic (non-scaled) rendering, and both angle labels (140140^\circ and α\alpha) and every distance label are reproduced from the exact recomputed geometry. Recreated every other instructional figure as an accessible spec-first SVG — both head-to-tail addition/subtraction triangles, both addition/subtraction parallelograms, the four parallel scalar-multiple vectors, and every position-vector diagram — plotted from the exact printed coordinates and angles, independently recomputed rather than eyeballed from the source art. The grader cannot take \langle a,b\rangle as a submitted answer, so — following the source’s own i,ji,j notation — every vector-valued Try It and Practice answer is keyed in bare i,ji,j unit-vector form (never \mathbf{i}/\mathbf{j}, which MathLive cannot type), with the question reworded to ask “in terms of ii and jj” wherever the source’s own wording asked for component form a,b\langle a,b\rangle; prose and worked examples keep the source’s a,b\langle a,b\rangle notation throughout, since KaTeX renders it and only submitted answers are affected. The source’s own “find the magnitude and direction” prompts were split into two fillins per exercise (magnitude, then direction), because the two quantities need different answerForm tokens that cannot both apply to one comma-separated answer. A grader defect surfaced while composing these: the documented answerForm="degrees decimal" composition self-rejects its own keyed answer against the current grader (confirmed directly, and reproducible right now against this book’s own shipped 8.1 page, which fails verify-section on that exact combination) — degrees alone already accepts a decimal-headed angle, so every decimal-degree answer here declares answerForm="degrees" alone; this is reported to the parent as a tooling defect, not authored around silently. Try It 1 (“draw a vector from the origin to (3,5)(3,5)”) and Try It 4 (“write the vector in terms of magnitude and direction”) were recast as real graded fillins — the first asks for the vector in i,ji,j form, the second is split into a magnitude fillin (exact-radical) and a direction-angle fillin (degrees, range stated) — since a magnitude-and-direction restatement is otherwise retype-passable against the source’s own polar-form key. A confirmed upstream defect corrected in place: Example 9’s closing sentence prints the unit vector’s ii-coefficient as 513\tfrac{5}{13} (positive), contradicting its own immediately-preceding computation of 513i+1213j-\tfrac{5}{13}i+\tfrac{12}{13}j and the fact that v=5,12\mathbf{v}=\langle -5,12\rangle terminates in Quadrant II; corrected to 513i+1213j-\tfrac{5}{13}i+\tfrac{12}{13}j with a visible source note. Fourteen selected end-of-section exercises were adapted into interactive Practice components, one group per objective, every one independently re-derived (including by running the arithmetic in Node) rather than read off the source key; the two “are these vectors equal” exercises became multiple-choice, since a categorical equal/not-equal claim has no free-response answer.