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
- Perform operations with vectors in terms of and
- Find the dot product of two vectors
An airplane is flying at an airspeed of miles per hour headed on a SE bearing of . A north wind (blowing from north to south) is blowing at 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 , , , , , .
- Given initial point and terminal point , a vector can be represented as . The arrowhead on top is what indicates that it is not just a line, but a directed line segment.
- Given an initial point of and terminal point , a vector may be represented as .
This last symbol has special significance. It is called the standard position. The position vector has an initial point and a terminal point . To change any vector into the position vector, we think about the change in the -coordinates and the change in the -coordinates. Thus, if the initial point of a vector is and the terminal point is , then the position vector is found by calculating
In the figure below, we see the original vector and the position vector .
Example. Consider the vector whose initial point is and terminal point is . Find the position vector.
Solution. The position vector is found by subtracting one -coordinate from the other -coordinate, and one -coordinate from the other -coordinate. Thus
The position vector begins at and terminates at . The graphs of both vectors are shown below.
We see that the position vector is .
Example. Find the position vector given that vector has an initial point at and a terminal point at , then graph both vectors in the same plane.
Solution. The position vector is found using the following calculation:
Thus, the position vector begins at and terminates at . See the figure below.
Write the vector from the origin to the pointin terms ofand.
Since the vector begins at the origin, its component form uses the terminal point’s coordinates as the coefficients ofand.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 , the magnitude is found by . The direction is equal to the angle formed with the -axis, or with the -axis, depending on the application. For a position vector, the direction is found by , as illustrated in the figure below.
Two vectors and 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 and terminal point . Draw the vector.
Solution. First, find the position vector.
We use the Pythagorean Theorem to find the magnitude.
The direction is given as
However, the angle terminates in the fourth quadrant, so we add to obtain a positive angle. Thus, . See the figure below.
Example. Show that vector with initial point at and terminal point at is equal to vector with initial point at and terminal point at . Draw the position vector on the same grid as and . Next, find the magnitude and direction of each vector.
Solution. Draw the vector starting at initial point and terminal point . Draw the vector with initial point and terminal point . Find the standard position for each.
Next, find and sketch the position vector for and . We have
Since the position vectors are the same, and 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.
As the magnitudes are equal, we now need to verify the direction. Using the tangent function with the position vector gives
However, we can see that the position vector terminates in the second quadrant, so we add . Thus, the direction is .
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 as an arrow or directed line segment from the origin to the point , vectors can be situated anywhere in the plane. The sum of two vectors and , or vector addition, produces a third vector , the resultant vector.
To find , we first draw the vector , and from the terminal end of , we draw the vector . In other words, we have the initial point of meet the terminal end of . 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 is the resultant vector because it results from addition or subtraction of two vectors. The resultant vector travels directly from the beginning of to the end of in a straight path, as shown below.
Vector subtraction is similar to vector addition. To find , view it as . Adding is reversing the direction of and adding it to the end of . The new vector begins at the start of and stops at the end point of . See the figure below for a visual that compares vector addition and vector subtraction using parallelograms.
Example. Given and , find two new vectors and .
Solution. To find the sum of two vectors, we add the components. Thus,
See figure (a) below.
(a) Sum of two vectors.
To find the difference of two vectors, add the negative components of to . Thus,
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 by , we have
Only the magnitude changes, unless is negative, and then the vector reverses direction.
Example. Given vector , find , , and .
Solution. See the figure below for a geometric interpretation. If , then
Analysis. Notice that the vector is three times the length of , is half the length of , and is the same length as , but in the opposite direction.
Find the scalar multiplegiven, and write the result in terms ofand.
Multiply each component ofby, then write the result as a linear combination ofand.Example. Given and , find a new vector .
Solution. First, we must multiply each vector by the scalar.
Then, add the two together.
So, .
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 direction, and the vertical component is the direction. For example, we can see in the figure below that the position vector comes from adding the vectors and . We have with initial point and terminal point .
We also have with initial point and terminal point .
Therefore, the position vector is
Using the Pythagorean Theorem, the magnitude of is , and the magnitude of is . To find the magnitude of , use the formula with the position vector.
The magnitude of is . To find the direction, we use the tangent function .
Thus, the magnitude of is and the direction is off the horizontal.
Example. Find the components of the vector with initial point and terminal point .
Solution. First find the standard position.
See the illustration below.
The horizontal component is and the vertical component is .
Finding the Unit Vector in the Direction of
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 . We call a vector with a magnitude of 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 and is directed along the positive horizontal axis. The vertical unit vector is written as and is directed along the positive vertical axis. See the figure below.
Example. Find a unit vector in the same direction as .
Solution. First, we will find the magnitude.
Then we divide each component by , which gives a unit vector in the same direction as :
or, in component form
See the figure below.
Verify that the magnitude of the unit vector equals . The magnitude of is given as
The vector is the unit vector in the same direction as . (Source note: the printed text states this final coefficient as , but terminates in Quadrant II, so its horizontal component must be negative — matching the computation above; corrected here.)
Performing Operations with Vectors in Terms of and
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 and .
Vectors in the Rectangular Plane. Given a vector with initial point and terminal point , is written as
The position vector from to , where and , is written as . This vector sum is called a linear combination of the vectors and .
The magnitude of is given as . See the figure below.
Example. Given a vector with initial point and terminal point , write the vector in terms of and .
Solution. Begin by writing the general form of the vector. Then replace the coordinates with the given values.
Example. Given initial point and terminal point , write the vector in terms of and .
Solution. Begin by writing the general form of the vector. Then replace the coordinates with the given values.
Write the vectorwith initial pointand terminal pointin terms ofand.
Subtract the-coordinates for the coefficient of, and subtract the-coordinates for the coefficient of.Performing Operations on Vectors in Terms of and
When vectors are written in terms of and , we can carry out addition, subtraction, and scalar multiplication by performing operations on corresponding components.
Adding and Subtracting Vectors in Rectangular Coordinates. Given and , then
Example. Find the sum of and .
Solution. According to the formula, we have
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 and . 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 replacing .
Vector Components in Terms of Magnitude and Direction. Given a position vector and a direction angle ,
Thus, , and magnitude is expressed as .
Example. Given a vector with length and an angle of , write it in component form.
Solution. Using the conversion formulas and , we find that
This vector can be written as or simplified as
A vector travels from the origin to the point. Find its magnitude in exact form.
Use the Pythagorean Theorem with the point’s coordinates as the vector’s components.A vector travels from the origin to the point. Find its direction angle, with. Round to two decimal places.
Use the inverse tangent of the-coordinate over the-coordinate.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 and is the sum of the product of the horizontal components and the product of the vertical components.
To find the angle between the two vectors, use the formula below.
Example. Find the dot product of and .
Solution. Using the formula, we have
Example. Find the dot product of and . Then, find the angle between the two vectors.
Solution. Finding the dot product, we multiply corresponding components.
To find the angle between them, we use the formula .
See the figure below.
Example. Find the angle between and .
Solution. Using the formula, we have
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 miles per hour headed on a SE bearing of . A north wind (from north to south) is blowing at 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 in the diagram, and we need to find the angle in order to calculate the adjusted bearing, which will be .
Notice that angle must be equal to angle by the rule of alternating interior angles, so angle is . We can find by the Law of Cosines:
The ground speed is approximately miles per hour. Now we can calculate the bearing using the Law of Sines.
Therefore, the plane has a SE bearing of . The ground speed is 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 -axis, and the vertical component along the positive -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 .
- In the rectangular coordinate system, unit vectors may be represented in terms of and , where represents the horizontal component and represents the vertical component. Then, is a scalar multiple of by real numbers and .
- Adding and subtracting vectors in terms of and consists of adding or subtracting corresponding coefficients of and corresponding coefficients of .
- A vector is written in terms of magnitude and direction as .
- The dot product of two vectors is the product of the terms plus the product of the 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 vectorsandare equal, wherehas initial pointand terminal point, andhas initial pointand terminal point.
Find the position vector for each; two vectors are equal only if both their magnitude and their direction match.Determine whether the vectorsandare equal, wherehas initial pointand terminal point, andhas initial pointand terminal point.
Find the position vector for each; two vectors are equal only if both their magnitude and their direction match.Find magnitude and direction
Find the magnitude of the vector. Round to the nearest thousandth.
Use the Pythagorean Theorem: the magnitude is the square root of the sum of the squares of the components.Find the direction angleof the vector, with. Round to the nearest thousandth of a degree.
Use the inverse tangent of the-component over the-component; the vector lies in the first quadrant.Find the magnitude of the vector. Round to the nearest thousandth.
Use the Pythagorean Theorem: the magnitude is the square root of the sum of the squares of the components.Find the direction angleof the vector, with. Round to the nearest thousandth of a degree.
The vector lies in the third quadrant, so addto the inverse tangent of the ratio of its components.Perform vector addition and scalar multiplication
Givenand, findin terms ofand.
Add the corresponding components ofand.Givenand, findin terms ofand.
Subtract the corresponding components offrom.Givenand, findin terms ofand.
Multiply each vector by its scalar first, then subtract the corresponding components.Let. Find a vector that is twice the length ofand points in the opposite direction.
Multiplyby: doubling the length and negating the scalar reverses the direction.Find the component form of a vector
Given a vector with initial pointand terminal point, find an equivalent vector whose initial point is, and write the result in terms ofand.
Subtract the-coordinates for the coefficient of, and subtract the-coordinates for the coefficient of.Given initial pointand terminal point, write the vectorin terms ofand.
Subtract the-coordinates for the coefficient of, and subtract the-coordinates for the coefficient of.Find the unit vector in the direction of
Find a unit vector in the same direction as.
Divide each component ofby its magnitude,.Find a unit vector in the same direction as.
Divide each component ofby its magnitude,.Perform operations with vectors in terms of and
For,, and, find.
Scale each vector by its coefficient first, then add the corresponding components.A vector has magnitudeand direction anglein standard position. Write the vector in component form usingand.
Useand.Find the dot product of two vectors
Givenand, calculate.
Multiply the corresponding-coefficients, multiply the corresponding-coefficients, then add the two products.Givenand, calculate.
Multiply the corresponding horizontal components, multiply the corresponding vertical components, then add the two products.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 mph wind vector relative to the mph airspeed vector for label legibility, matching the source’s own schematic (non-scaled) rendering, and both angle labels ( and ) 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 notation — every vector-valued Try It and Practice answer is keyed in bare unit-vector form (never \mathbf{i}/\mathbf{j}, which MathLive cannot type), with the question reworded to ask “in terms of and ” wherever the source’s own wording asked for component form ; prose and worked examples keep the source’s 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 ”) 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 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 -coefficient as (positive), contradicting its own immediately-preceding computation of and the fact that terminates in Quadrant II; corrected to 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.