<< Chapter < Page Chapter >> Page >

Definition

The angles formed by a nonzero vector and the coordinate axes are called the direction angles    for the vector ( [link] ). The cosines for these angles are called the direction cosines    .

This figure is the first octant of the 3-dimensional coordinate system. It has the standard unit vectors drawn on axes x, y, and z. There is also a vector drawn in the first octant labeled “v.” The angle between the x-axis and v is labeled “alpha.” The angle between the y-axis and vector v is labeled “beta.” The angle between the z-axis and vector v is labeled “gamma.”
Angle α is formed by vector v and unit vector i . Angle β is formed by vector v and unit vector j . Angle γ is formed by vector v and unit vector k .

In [link] , the direction cosines of v = 2 , 3 , 3 are cos α = 2 22 , cos β = 3 22 , and cos γ = 3 22 . The direction angles of v are α = 1.130 rad , β = 0.877 rad , and γ = 0.877 rad .

So far, we have focused mainly on vectors related to force, movement, and position in three-dimensional physical space. However, vectors are often used in more abstract ways. For example, suppose a fruit vendor sells apples, bananas, and oranges. On a given day, he sells 30 apples, 12 bananas, and 18 oranges. He might use a quantity vector, q = 30 , 12 , 18 , to represent the quantity of fruit he sold that day. Similarly, he might want to use a price vector, p = 0.50 , 0.25 , 1 , to indicate that he sells his apples for 50¢ each, bananas for 25¢ each, and oranges for $1 apiece. In this example, although we could still graph these vectors, we do not interpret them as literal representations of position in the physical world. We are simply using vectors to keep track of particular pieces of information about apples, bananas, and oranges.

This idea might seem a little strange, but if we simply regard vectors as a way to order and store data, we find they can be quite a powerful tool. Going back to the fruit vendor, let’s think about the dot product, q · p . We compute it by multiplying the number of apples sold (30) by the price per apple (50¢), the number of bananas sold by the price per banana, and the number of oranges sold by the price per orange. We then add all these values together. So, in this example, the dot product tells us how much money the fruit vendor had in sales on that particular day.

When we use vectors in this more general way, there is no reason to limit the number of components to three. What if the fruit vendor decides to start selling grapefruit? In that case, he would want to use four-dimensional quantity and price vectors to represent the number of apples, bananas, oranges, and grapefruit sold, and their unit prices. As you might expect, to calculate the dot product of four-dimensional vectors, we simply add the products of the components as before, but the sum has four terms instead of three.

Using vectors in an economic context

AAA Party Supply Store sells invitations, party favors, decorations, and food service items such as paper plates and napkins. When AAA buys its inventory, it pays 25¢ per package for invitations and party favors. Decorations cost AAA 50¢ each, and food service items cost 20¢ per package. AAA sells invitations for $2.50 per package and party favors for $1.50 per package. Decorations sell for $4.50 each and food service items for $1.25 per package.

During the month of May, AAA Party Supply Store sells 1258 invitations, 342 party favors, 2426 decorations, and 1354 food service items. Use vectors and dot products to calculate how much money AAA made in sales during the month of May. How much did the store make in profit?

The cost, price, and quantity vectors are

c = 0.25 , 0.25 , 0.50 , 0.20 p = 2.50 , 1.50 , 4.50 , 1.25 q = 1258 , 342 , 2426 , 1354 .

AAA sales for the month of May can be calculated using the dot product p · q . We have

p · q = 2.50 , 1.50 , 4.50 , 1.25 · 1258 , 342 , 2426 , 1354 = 3145 + 513 + 10917 + 1692.5 = 16267.5.

So, AAA took in $16,267.50 during the month of May.

To calculate the profit, we must first calculate how much AAA paid for the items sold. We use the dot product c · q to get

c · q = 0.25 , 0.25 , 0.50 , 0.20 · 1258 , 342 , 2426 , 1354 = 314.5 + 85.5 + 1213 + 270.8 = 1883.8.

So, AAA paid $1,883.30 for the items they sold. Their profit, then, is given by

p · q c · q = 16267.5 1883.8 = 14383.7.

Therefore, AAA Party Supply Store made $14,383.70 in May.

Got questions? Get instant answers now!
Got questions? Get instant answers now!
Practice Key Terms 7

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Calculus volume 3. OpenStax CNX. Feb 05, 2016 Download for free at http://legacy.cnx.org/content/col11966/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Calculus volume 3' conversation and receive update notifications?

Ask