04.03.2017 Views

3295263856329

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Vectors 397<br />

MULTIPLICATION OF A VECTOR BY A SCALAR<br />

To multiply a vector by a scalar quantity such as a real number, multiply both the x<br />

and y components of the vector by that scalar. That makes the vector longer or<br />

shorter if the real number is positive, but doesn’t change its direction. If the real<br />

number is negative, the direction of the vector is exactly reversed, and its length may<br />

change as well.<br />

Multiplication by a scalar is commutative. This means that it doesn’t matter whether the<br />

scalar comes before or after the vector in the product. If we have a vector a (x a<br />

,y a<br />

)<br />

and a scalar k, then<br />

ka ak (kx a<br />

,ky a<br />

)<br />

You multiply both the x and y values by the scalar k to get the result.<br />

When you multiply a vector by a scalar, it isn’t true vector multiplication because the<br />

multiplicand and the multiplier aren’t both vectors. You can multiply vectors by other<br />

vectors, however—and things get interesting then! There are two ways to multiply a<br />

vector by another vector. The first way gives you a scalar as the product. The second<br />

(and somewhat more complicated) way gives you a vector as the product. Let’s look at<br />

the first of these two operations now. Later in this chapter, you’ll learn about the second<br />

method.<br />

DOT PRODUCT OF TWO VECTORS<br />

Imagine two vectors a (x a<br />

,y a<br />

) and b (x b<br />

,y b<br />

) such as those shown in Fig. 26-1. If all<br />

four of the variables x a<br />

, x b<br />

, y a<br />

, and y b<br />

are real numbers, then the dot product, also known<br />

as the scalar product and written a · b, of the vectors a and b is a real number and can<br />

be found by using this formula:<br />

a·b x a<br />

x b<br />

y a<br />

y b<br />

The dot product of a and b is called “a dot b” in informal talk.<br />

As an example, let’s find the dot product of the two vectors a (3,–5) and b (2,6).<br />

Use the formula given above.<br />

a · b (3 · 2) (–5 · 6)<br />

6 (–30)<br />

–24<br />

Now let’s see what happens if the order of the dot product is reversed. Does the value<br />

change? If not, the dot product is commutative. Let’s try a general proof. Take the formula

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!