Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

6.2: Vectors from an Algebraic Point of View

( \newcommand{\kernel}{\mathrm{null}\,}\)

Focus Questions

The following questions are meant to guide our study of the material in this section. After studying this section, we should understand the concepts motivated by these questions and be able to write precise, coherent answers to these questions.

  • How do we find the component form of a vector?
  • How do we find the magnitude and the direction of a vector written in component form?
  • How do we add and subtract vectors written in component form and how do we find the scalar product of a vector written in component form?
  • What is the dot product of two vectors?
  • What does the dot product tell us about the angle between two vectors?
  • How do we find the projection of one vector onto another?

Introduction and Terminology

We have seen that a vector is completely determined by magnitude and direction. So two vectors that have the same magnitude and direction are equal. That means that we can position our vector in the plane and identify it in different ways. For one, we can place the tip of a vector v at the origin and the tail will wind up at some point (v1,v2) as illustrated in Figure 6.2.1.

3.27.png

Figure 6.2.1: A Vector in Standard Position

A vector with its initial point at the origin is said to be in standard position and is represent by v=v1,v2. Please note the important distinction in notation between the vector v=v1,v2 and the point (v1,v2). The coordinates of the terminal point (v1,v2) are called the components of the vector v. We call v=v1,v2 the component form of the vector v. The first coordinate v1 is called the x-component or the horizontal component of the vector v, and the first coordinate v2 is called the y-component or the vertical component of the vector v. The nonnegative angle θ between the vector and the positive x-axis (with 0θ360) is called the direction angle of the vector. See Figure 6.2.1.

Using Basis Vectors

There is another way to algebraically write a vector if the components of the vector are known. This uses the so-called standard basis vectors for vectors in the plane. These two vectors are denoted by i and j and are defined as follows and are shown in the diagram below.

i=1,0 and j=0,1

using basis v.png

The diagram in Figure 6.2.2 shows how to use the vectors i and j to represent a vector v=a,b.

3.28.png

Figure 6.2.2: Using the Vectors i and j

The diagram shows that if we place the base of the vector j at the tip of the vector i, we see that v=a,b=ai+bj

This is often called the i, j form of a vector, and the real number a is called the i-component of v and the real number b is called the j-component of v

Algebraic Formulas for Geometric Properties of a Vector

Algebraic ....png

Vectors have certain geometric properties such as length and a direction angle. With the use of the component form of a vector, we can write algebraic formulas for these properties. We will use the diagram to the right to help explain these formulas.

  • The magnitude (or length) of the vector v is the distance from the origin to the point (v1,v2) and so |v|=v21+v22
  • The direction angle of v is, where 0θ<360, and cos(θ)=v1|v| and sin(θ)=v2|v|
  • The horizontal and component and vertical component of the vector v and direction angle θ are v1=|v|cos(θ) and v2=|v|sin(θ)

ANOTHER WAY TO LOOK AT THE COMPONENT FORM OF A VECTOR

The component form of a vector represents the vector using two components. u=x,y indicates the vector represents a displacement of x units horizontally and y units vertically.

屏幕快照 2019-07-21 下午6.09.02.png

Notice how we can see the magnitude of the vector as the length of the hypotenuse of a right triangle, or in polar form as the radius, r.

ALTERNATE NOTATION FOR VECTOR COMPONENTS

Sometimes you may see vectors written as the combination of unit vectors i and j, where i points the right and j points up. In other words, i=1,0 and j=θ,1.

In this notation, the vector u=3,4 would be written as u=3i4j since both indicate a displacement of 3 units to the right, and 4 units down.

Exercise 6.2.1

  1. Suppose the horizontal component of a vector v is 7 and the vertical component is 3. So we have v=7i+(3)j=7i3j. Determine the magnitude and the direction angle of v.
  2. Suppose a vector w has a magnitude of 20 and a direction angle of 200. Determine the horizontal and vertical components of w and write w in i, j form.
Answer

1. v=7i+(3)j. So |v|=72+(3)2=58. In addition, cos(θ)=758 and sin(θ)=358

So the terminal side of θ is in the fourth quadrant, and we can write θ=360arccos(758). So θ336.80.

2. We are given |w|=20 and the direction angle θ of w is 200. So if we write w=w1i+w2j. Then

w1=20cos(200)1.794

w1=20cos(200)6.840

Operations on Vectors

In pervious sections we earned how to add two vectors and how to multiply a vector by a scalar. At that time, the descriptions of these operations was geometric in nature. We now know about the component form of a vector. So a good question is, “Can we use the component form of vectors to add vectors and multiply a vector by a scalar?”

operation on v.png
Figure 6.2.3: The Sum of Vector as Compared to Unit Vector Components

To illustrate the idea above in Figure 6.2.3, remember that a vector added to another vector is arranged tip to tail. Then we draw a new vector from the starting point (tail of first vector) to the ending point (tip of last vector). This new vector is the sum of the two. Although we did not use the component forms of these vectors in the previous section, we can now see that v=2,3=2i+3j and w=4,1=4i+(1)j

The diagram above now shows the vectors in a coordinate plane.

Notice that v+w=6i+2j v+w=(2+4)i+(3+(1))j

This means that we can add two vectors by adding their horizontal components and by adding their vertical components. See Figure 6.2.4

3.29.png

Figure 6.2.4: The Sum of Two Vectors

Exercise 6.2.2

Let v=3,2. Draw the vector v in standard position and then draw the vectors 2v and 2v in standard position. What are the component forms of the vectors 2v and 2v?

In general, how do you think a scalar multiple of a vector a=a1,a2 by a scalar c should be defined? Write a formal definition of a scalar multiple of a vector based on your intuition.

Answer

3.32.png

2. For a vector a=a1,a2 and a scalar c, we define the scalar multiple ca to be ca=ca1,ca2.

Based on the work we have done, we make the following formal definitions.

Definition

For vectors v=v1,v2=v1i+v2j and w=w1,w2=w1i+w2j and scalar c, we make the following definition:

v+w=v1+w1,v2+w2
v+w=(v1+w1)i+(v2+w2)j
vw=v1w1,v2w2
vw=(v1w1)i+(v2w2)j
cv=cv1,cv2
cv=(cv1)i+(cv2)j

Exercise 6.2.3

Let u=1,2, u=0,4, and u=5,7.

  1. Determine the component form of the vector 2u3v.
  2. Determine the magnitude and the direction angle for 2u3v.
  3. Determine the component form of the vector uu+2v7w.
Answer

Let u=1,2, and w=5,7.

1. 2u3v=2,40,12=2,16

2. |2u3v|=22+(16)2=260. So now let θ be the direction angle of 2u3v. Then

cos(θ)=2260 and sin(θ)=16260.

So the terminal side of θ is in the fourth quadfrant. We see that arcsin(16260)82.87. Since the direction angle θ must satisfy aθ<360circ, we see that θ82.87+360277.13.

3. u+2v7w=1,2+0,835,49=36,43.

The Dot Product of Two Vectors

Finding optimal solutions to systems is an important problem in applied mathematics. It is often the case that we cannot find an exact solution that satisfies certain constraints, so we look instead for the “best” solution that satisfies the constraints. An example of this is fitting a least squares curve to a set of data like our calculators do when computing a sine regression curve. The dot product is useful in these situations to find “best” solutions to certain types of problems. Although we won’t see it in this course, having collections of perpendicular vectors is very important in that it allows for fast and efficient computations. The dot product of vectors allows us to measure the angle between them and thus determine if the vectors are perpendicular. The dot product has many applications, e.g., finding components of forces acting in different directions in physics and engineering. We introduce and investigate dot products in this section.

We have seen how to add vectors and multiply vectors by scalars, but we have not yet introduced a product of vectors. In general, a product of vectors should give us another vector, but there turns out to be no really useful way to define such a product of vectors. However, there is a dot “product” of vectors whose output is a scalar instead of a vector, and the dot product is a very useful product (even though it isn’t a product of vectors in a technical sense).

Recall that the magnitude (or length) of the vector u=u1,u2 is: |u|=u21+u22=u1u1+u2u2

The expression under the second square root is an important one and we extend it and give it a special name.

Definition

Let u=u1,u2 and v=v1,v2 be vectors in the plane. The dot product of u and v is the scalar uv=u1v1+u2v2.

This may seem like a strange number to compute, but it turns out that the dot product of two vectors is useful in determining the angle between two vectors. Recall we can use the Law of Cosines to determine the sum of two vectors and then used the Law of Sines to determine the angle between the sum and one of those vectors. We have now seen how much easier it is to compute the sum of two vectors when the vectors are in component form. The dot product will allow us to determine the cosine of the angle between two vectors in component form. This is due to the following result:

The Dot Product and the Angle between Two Vectors

If θ is the angle between two nonzero vectors u and v (0θ180), then

uv=|u||v|cos(θ) or cos(θ)=uv|u||v|

Notice that if we have written the vectors v and w in component form, then we have formulas to compute |v|,|w|, and vw. This result may seem surprising but it is a fairly direct consequence of the Law of Cosines as we will now show. Let θ be the angle between u and v as illustrated in Figure 6.2.5

3.30.png

Figure 6.2.5: The angle between u and v

We can apply the Law of Cosines to determine the angle θ as follows:

|uv|2=|u|2+|v|22|u||v|cos(θ)
(uv)(uv)=|u|2+|v|22|u||v|cos(θ)
(uu)2(uv)+(vv)=|u|2+|v|22|u||v|cos(θ)
|u|22(uv)+|v|2=|u|2+|v|22|u||v|cos(θ)
2(uu)=2|u||v|cos(θ)
uu=|u||v|cos(θ)

Exercise 6.2.4

1. Determine the angle θ between the vectors u=3i+j and v=5i+2j.

2. Determine all vectors perpendicular to u=1,3. How many such vectors are there? Hint: Let v=a,b. Under what conditions will the angle between u and v be 90?

Answer

1. If θ is the angle between u=3i+j and v=5i+2j, then

cos(θ)=uv|u||v|=131029

θ=cos1(131029)

so θ139.764.

2. If v=a,b is perpendicular to u=1,3, then the angle θ between them is 90 and so cos(θ)=0. So we must have uv=0 and this means that a+3b=0. So any vector v=a,b where a=3b will be perpendicular to v, and there are infinitely many such vectors. One vector perpendicular to u is 3,1.

One purpose of Progress Check 3.34 was to use the formula cos(θ)=uv|u||v|

to determine when two vectors are perpendicular. Two vectors u and v will be perpendicular if and only if the angle θ between them is 90. Since cos(90)=0, we see that this formula implies that u and v will be perpendicular if and only if uv=0 (This is because a fraction will be equal to 0 only when the numerator is equal to 0 and the denominator is not zero.) So we have:

Two vectors are perpendicular if and only if their dot product is equal to 0.

Note

When two vectors are perpendicular, we also say that they are orthogonal.

Projections

Another useful application of the dot product is in finding the projection of one vector onto another. An example of where such a calculation is useful is the following.

Usain Bolt from Jamaica excited the world of track and field in 2008 with his world record performances on the track. Bolt won the 100 meter race in a world record time of 9.69 seconds. He has since bettered that time with a race of 9.58 seconds with a wind assistance of 0.9 meters per second in Berlin on August 16, 20092. The wind assistance is a measure of the wind speed that is helping push the runners down the track. It is much easier to run a very fast race if the wind is blowing hard in the direction of the race. So that world records aren’t dependent on the weather conditions, times are only recorded as record times if the wind aiding the runners is less than or equal to 2 meters per second. Wind speed for a race is recorded by a wind gauge that is set up close to the track. It is important to note, however, that weather is not always as cooperative as we might like. The wind does not always blow exactly in the direction of the track, so the gauge must account for the angle the wind makes with the track.

If the wind is blowing in the direction of the vector u and the track is in the direction of the vector v in Figure 6.2.6, then only part of the total wind vector is actually working to help the runners.

3.31.png

Figure 6.2.6: The Projection of u onto v

This part is called the projection of the vector u onto the vector v and is denoted projvu.

We can find this projection with a little trigonometry. To do so, we let θ be the angle between u and v as shown in Figure 6.2.5. Using right triangle trigonometry, we see that |projvu|=|u|cos(θ)=|u|uv|u||v|=uv|v|
The quantity we just derived is called the scalar projection (or component) of u onto v and is denoted by compvu. Thus compvu=uv|v|
This gives us the length of the vector projection. So to determine the vector, we use a scalar multiple of this length times a unit vector in the same direction, which is 1|v|v. So we obtain

projvu=|projvu|(1|v|)=uv|v|(1|v|)=uv|v|2v

We can also write the projection of u onto v as

projvu=uv|v|2v=uvvvv

The wind component that acts perpendicular to the direction of v in Figure 6.2.7 is called the projection of u orthogonal to v and is denoted projvu. Since u=projvu+projvu, we have that

3.32.png

Figure 6.2.7: The Projection of u onto v

projvu=uprojvu

Following is a summary of the results we have obtained.

For nonzero vectors u and v, the projection of the vector u onto the vector v projvu, is given by

projvu=uv|v|2v=uvvvv

See Figure 6.2.6. The projection of u orthogonal to v, denoted projvu, is

projvu=uprojvu

We note that u=projvu+projvu

Exercise 6.2.5

Let u=7,5 and v=10,2. Determine projvu and projvu, and verify that u=projvu+projvu. Draw a picture showing all of the vectors involved in this.

Answer

Let u=7,5 and v=10,2. Then

projvu=uv|v|2v=600104,1201045.769,1.154
projvu=uuv|v|2v=7,5600104,120104=128104,6401041.231,6.154

3.35.png

While it can be convenient to think of the vector u=x,y as an arrow from the origin to the point (x, y), be sure to remember that most vectors can be situated anywhere in the plane, and simply indicate a displacement (change in position) rather than a position.
It is common to need to convert from a magnitude and angle to the component form of the vector and vice versa. Happily, this process is identical to converting from polar coordinates to Cartesian coordinates, or from the polar form of complex numbers to the a+bi form.

Example Applications

Example 6.2.1

Find the component form of a vector with length 7 at an angle of 135 degrees.

Solution

Using the conversion formulas x=rcos(θ) and y=rsin(θ), we can find the components

x=7cos(135)=722
y=7sin(135)=722

The vector can be written in component form as 722,722

Example 6.2.2

Find the magnitude and angle θ representing the vector u=3,2.

Solution

First we can find the magnitude by remembering the relationship between x, y and r:

r2=32+(2)2=13
r=13

Second we can find the angle. Using the tangent,

tan(θ)=23
θ=tan1(23)33.69or written as a coterminal positive angle, 326.31. This angle is in the 4th quadrant as desired.

Example 6.2.3

Using vector v from the first Exercise, the vector that travels from the origin to the point (3, 5), find the components, magnitude and angle θ that represent this vector.

Answer

v=3,5
magnitude=34
θ=tan1(53)=59.04

In addition to representing distance movements, vectors are commonly used in physics and engineering to represent any quantity that has both direction and magnitude, including velocities and forces.

Example 6.2.4

An object is launched with initial velocity 200 meters per second at an angle of 30 degrees. Find the initial horizontal and vertical velocities.

Solution

By viewing the initial velocity as a vector, we can resolve the vector into horizontal and vertical components.屏幕快照 2019-07-21 下午6.25.12.png

x=200cos(30=20032173.205 m/sec
y=200sin(30=20012=100 m/sec

This tells us that, absent wind resistance, the object will travel horizontally at about 173 meters each second. Gravity will cause the vertical velocity to change over time – we’ll leave a discussion of that to physics or calculus classes.

Adding and Scaling Vectors in Component Form

To add vectors in component form, we can simply add the corresponding components. To scale a vector by a constant, we scale each component by that constant.

COMBINING VECTORS IN COMPONENT FORM

To add, subtract, or scale vectors in component form

If u=u1,u2, v=v1,v2, and c is any constant, then

u+v=u1+v1,u2+v2
uv=u1v1,u2v2
cu=cu1,cu2

Example 6.2.5

Given u=3,2 and v=1,4, find a new vector w=3u2v

Solution

Using the vectors given,

w=3u2v=33,221,4                      Scale each vector=9,62,8                      Subtract corresponding components=11,14

By representing vectors in component form, we can find the resulting displacement vector after a multitude of movements without needing to draw a lot of complicated non- right triangles. For a simple example, we revisit the problem from the opening of the section. The general procedure we will follow is:

1) Convert vectors to component form
2) Add the components of the vectors
3) Convert back to length and direction if needed to suit the context of the question

Example 6.2.6

A woman leaves home, walks 3 miles north, then 2 miles southeast. How far is she from home, and what direction would she need to walk to return home? How far has she walked by the time she gets home?

Solution

Let’s begin by understanding the question in a little more depth. When we use vectors to describe a traveling direction, we often position thin屏幕快照 2019-07-21 下午6.40.06.pnggs so north points in the upward direction, east points to the right, and so on, as pictured here.

Consequently, travelling NW, SW, NE or SE, means we are travelling through the quadrant bordered by the given directions at a 45 degree angle.

With this in mind, we begin by converting each vector to components.

A walk 3 miles north would, in components, be 0,3.

A walk of 2 miles southeast would be at an angle of 45 South of East. Measuring from standard position the angle would be 315.

Converting to components, we choose to use the standard position angle so that we do not have to worry about whether the signs are negative or positive; they will work out automatically.

2cos(315),2sin(315)=222,2221.414,1.414

屏幕快照 2019-07-21 下午6.44.33.png

Adding these vectors gives the sum of the movements in component form

0,3+1.414,1.414=1.4141.586

To find how far she is from home and the direction she would need to walk to return home, we could find the magnitude and angle of this vector.

Length=1.4142+1.5862=2.125

To find the angle, we can use the tangent

tan(θ)=1.5861.414
θ=tan1(1.5861.414)=48.273 north of east

Of course, this is the angle from her starting point to her ending point. To return home, she would need to head the opposite direction, which we could either describe as 180+48.273=228.273 measured in standard position, or as 48.273 south of west (or 41.727 west of south).

She has walked a total distance of 3 + 2 + 2.125 = 7.125 miles.

Keep in mind that total distance traveled is not the same as the length of the resulting displacement vector or the “return” vector.

Example 6.2.7

In a scavenger hunt, directions are given to find a buried treasure. From a starting point at a flag pole you must walk 30 feet east, turn 30 degrees to the north and travel 50 feet, and then turn due south and travel 75 feet. Sketch a picture of these vectors, find their components, and calculate how far and in what direction you must travel to go directly to the treasure from the flag pole without following the map.

Answer

屏幕快照 2019-07-21 下午7.07.19.png

v1=30,0v2=50cos(30),50sin(30circ)v3=0,75
vf=30+50cos(30),50sin(30)75=73.301,50
Magnitude = 88.73 feet at an angle of 34.3 south of east.

While using vectors is not much faster than using law of cosines with only two movements, when combining three or more movements, forces, or other vector quantities, using vectors quickly becomes much more efficient than trying to use triangles.

Example 6.2.8

Three forces are acting on an object as shown below, each measured in Newtons (N). What force must be exerted to keep the object in equilibrium (where the sum of the forces is zero)?

屏幕快照 2019-07-21 下午6.50.32.png

Solution

We start by resolving each vector into components.

The first vector with magnitude 6 Newtons at an angle of 30 degrees will have components

6cos(30).6sin(30)=632,612=333

The second vector is only in the horizontal direction, so can be written as 7,0.

The third vector with magnitude 4 Newtons at an angle of 300 degrees will have components

4cos(300),4sin(300)=412,432=2,23

To keep the object in equilibrium, we need to find a force vector x, y so the sum of the four vectors is the zero vector, 0,0.

33,3+7,0+2,23+x,y=0,0Add component-wise
337+2,3+023+x,y=0,0Simplify
335,323+x,y=0,0Solve
x,y=0,0335,323
x,y=33+5,3+230.196,0.464

This vector gives in components the force that would need to be applied to keep the object in equilibrium. If desired, we could find the magnitude of this force and direction it would need to be applied in.

Magnitude=(0.196)2+0.4642=0.504 N

Angle:

tan(θ)=0.4640.196
θ=tan1(0.4640.196=67.089

This is in the wrong quadrant, so we adjust by finding the next angle with the same tangent value by adding a full period of tangent:

θ=67.089+180=112.911circ

To keep the object in equilibrium, a force of 0.504 Newtons would need to be applied at an angle of 112.911

Summary of Section

In this section, we studied the following important concepts and ideas:

The component form of a vector v is written as v=v1,v2 and thei,j form of the same vector is v=v1i+v2j. Using this notation, we have

  • The magnitude (or length) of the vector v is v=v21+v22.
  • The direction angle of v is θ, where 0θ<360, and cos(θ)=v1|v| and sin(θ)=v2|v|
  • The horizontal and component and vertical component of the vector v and direction angle θ are v1=|v|cos(θ) and v2=|v|sin(θ)

For two vectors v and w with v=v1,v2=v1i+v2j and w=w1,w2=w1i+w2j and a scalar c:

  • v+w=v1+w1,v2+w2=(v1+w1)i+(v2+w2)j
  • vw=v1w1,v2w2=(v1w1)i+(v2w2)j
  • cv=cv1,cv2=(cv1)i+(cv2)j
  • The dot product of v and w is uv=u1v1+u2v2.
  • If θ is the angle between v and w, then uu=|u||v|cos(θ) or cos(θ)=uv|u||v|
  • The projection of the vector v onto the vector w projwv, is given by

    projwv=vw|w|2w=vwwww

    The projection of v orthogonal to w, denoted projwv, is
    projwv=vprojwv

    We note that w=projwv+projwv See Figure 6.2.8.

3.33.png

Figure 6.2.8: The Projection of v onto w

  • Scaling of vectors
  • Components of vectors
  • Vectors as velocity
  • Vectors as forces
  • Adding & Scaling vectors in component form - Total distance traveled vs. total displacement

This page titled 6.2: Vectors from an Algebraic Point of View is shared under a CC BY-NC-SA license and was authored, remixed, and/or curated by Ted Sundstrom & Steven Schlicker (ScholarWorks @Grand Valley State University) .

Support Center

How can we help?