Vectors and Vector Operations

advertisement

1.2 Vector Operations

Row and column vectors, matrices, functions and directed line segments are all regarded as vectors because they can be added, negated and multiplied by numbers. Subtraction of vectors is sometimes regarded as a secondary operation because it can be expressed in terms of addition and negation, i.e.

(1) v - w = v + (- w )

In this section we look at these operations for row and column vectors, matrices, functions and directed line segments.

1.2.1. Addition, negation and subtraction

Row and column vectors and matrices.

One adds and negates row and column vectors and matrices by adding and negating corresponding components. Subtraction is defined in terms of addition by (1). The result is that one subtracts row and column vectors and matrices also by subtracting corresponding components. In order to add or subtract vectors of these types they have to have the same size. This means the same number of components for row and column vectors and the same number of rows and columns for matrices. For example, for triples one has v = ( v

1

, v

2

, v

3

) and w = ( w

1

, w

2

, w

3

)

 v + w = ( v

1

+ w

1

, v

2

+ w

2

, v

3

+ w

3

)

- v = ( - v

1

,- v

2

,- v

3

) v - w = v + (- w ) = ( v

1

, v

2

, v

3

) + ( -

( w

1

, w

2

, w

3

) ) = ( v

1

, v

2

, v

3

) + ( - w

1

,- w

2

,- w

3

)

= ( v

1

- w

1

, v

2

- w

2

, v

3

- w

3

)

Example 1.

If v = ( 2,-4, 3 ) and w = ( 1, 2,-3 ) then v + w = ( 2 + 1,-4 + 2, 3 + (-3) ) = ( 3,-2, 0 ) - v = ( -2, 4,-3 ) v - w =

( 2 - 1,-4 - 2, 3 - (-3) ) = ( 1,-6, 6 ) .

In general, for row and column vectors, the i th

component of v + w is the sum of the i th component of v and the i th

component of w , the i th

component of - v is the negative of the i th

component of v and the i th

component of v - w is the difference of the i th

component of v and the i th

component of w i.e.

( v + w ) i

= v i

+ w i

(v ) i

= - ( v i

)

( v - w ) i

= ( v + (w )) i

= v i

+ (- w ) i

= v i

+ (- ( w i

)) = = v i

- w i

1.2 - 1

for i = 1, …, n where n is the number of components in v and w .

For 3

2 matrices addition, negation and subtraction look like the following.

A = ( a

11 a

12

, a

21 a

22

, a

31 a

32

)

A + B = ( a

11

+ b

11 a

B = ( b

11 b

12

, b

21 b

22

, b

31 b

32

)

12

+ b

12

, a

21

+ b

21 a

22

+ b

22

, a

31

+ b

31 a

32

+ b

32

) - A =

( a

11

a

12

, a

21

a

22

, a

31

a

32

)

A - B = A + (- B ) = ( a

11 a

12

, a

21 a

22

, a

31 a

32

) + (

-

( b

11 b

12

, b

21 b

22

, b

31 b

32

) )

Example 2.

= ( a

11 a

12

, a

21 a

22

, a

31 a

32

) + ( - b

11

- b

12

,- b

21

- b

22

,- b

31

- b

32

)

= ( a

11

b

11 a

12

b

12

, a

21

b

21 a

22

b

22

, a

31

b

31 a

32

b

32

)

A = ( B = ( 2 -1 , 4 -6 )

- A = A + B = ( 5+2 7+(-1) , 2+4 3+(-6) ) = (

( )

A - B = ( 5-2 7-(-1) , 2-4 3-(-6) ) = (

For general matrices

( A + B ) ij

= A ij

+ B ij

(A ) ij

= - ( A ij

)

( A - B ) ij

= ( A + (B )) ij

= A ij

+ (- B ) ij

= A ij

+ (- ( B ij

)) = A ij

- B ij for i = 1, …, m and j = 1, …, n where m is the number of rows in A and B and n is the number of columns.

For row and column vectors and matrices the zero vector is the vector all of whose components are 0. The zero vector is denoted by 0. For example, 0 = ( 0, 0, 0 ) and 0 =

( 0 0 , 0 0 , 0 0 ) are the zero vectors for triples and 3

2 zero matrices.

Functions.

One adds and negates functions by adding and negating their values for each value in the domain. Again, subtraction is defined in terms of addition by (1). The result is that one subtracts functions also by subtracting their values for each value in the domain. In order to add or subtract two functions they must have the same domain. If f and g are two functions with the same domain S , then the sum f + g , negative - f and difference f - g are defined by

1.2 - 2

( f + g )( x ) = f ( x ) + g ( x )

(- f )( x ) = - ( f ( x ))

( f - g )( x ) = ( f + (- g ))( x ) = f ( x ) + ((- g )( x )) = f ( x ) + (- g ( x )) = f ( x ) - g ( x ) for x in S .

Example 3.

If f ( x ) = 4 x

2

– 2 x + 3 and g ( x ) = 2 x

2

+ x - 5 then

( f + g )( x ) = 6 x 2 – x – 2

(- f )( x ) = - 6 x

2

+ x + 2

( f - g )( x ) = 2 x

2

– 3 x + 8.

Example 4.

If f ( t ) = ( t 2 , sin t , e t ) and g ( t ) = ( t 3 , cos t , e 2 t ) then

( f + g )( t ) = ( t

2

+ t

3

, sin t + cos t , e t

+ e

2 t )

(- f )( t ) = ( - t 2 , - sin t , - e t )

( f - g )( t ) = ( t 2 - t 3 , sin t - cos t , e t - e 2 t ) .

Note that the definition of addition, negation and subtraction of row and column vectors and matrices is consistent with the definition of addition, negation and subtraction of functions when row and column vectors and matrices are viewed as functions on their index set.

Directed line segments.

Let’s assume that directed line segments with the same length and direction represent the same vector.

First consider addition. Suppose u =

PQ ,



and v = RS ,



are directed line segments. The sum u + v is defined as follows. Consider the directed line segments PW ,



and QT ,



starting at

P and Q respectively and having the same length and direction as RS . So v = PW ,



= QT ,



also. Then PQTW is a parallelogram and the diagonal PT ,



of y v = PW

W u + v = PT T v = QT u - v = QW

Q

P u = PQ

R

S v = RS x

1.2 - 3

the parallelogram is the sum of u and v , i.e. u + v = PT ,



. Putting it another way, u + v

= PT ,



is the third side of the triangle, two of whose sides are u = PQ ,



and v = QT ,



It is not hard to show that this geometric definition of addition corresponds to the definition of addition of the numeric vectors corresponding to u and v .

If u = PQ ,



is a directed line segment, then - u is the directed line segment QP ,



.

Again this geometric definition of negation corresponds to the definition of negation of the numeric vector corresponding to u .

Subtraction is again defined in terms of addition and negation by (1). In terms of the notation in the definition of addition, v – u = QU ,



is the directed line segment from the tip of u to the tip of v .

For directed line segments, the zero vector is just a directed line segment which ends where it starts, i.e. 0 = PP ,



.

These definitions of addition, negation and subtraction of directed line segments are consistent with the definitions of addition, negation and subtraction of ordered pairs and triples when one associates ordered pairs and triples with directed line segments by means of a coordinate system.

1.2.2. Multiplication of a vector by a number

The product tv of a number t and a vector v is a vector of the same type as v and is often called a scalar multiple of v .

Row and column vectors and matrices.

One multiplies a row or column vector or a matrix by a number by multiplying each component by t . For example, for triples one has v = ( v

1

, v

2

, v

3

)

 tv = ( tv

1

, tv

2

, tv

3

)

Example 5. v = ( 2,-4, 5 ) t = 3

 tv = ( (3)(2),(3)(-4), (3)(5) ) = ( 6,-12, 15 )

In general, ( tv ) i

= t ( v i

) for i = 1, …, n where n is the number of components of v .

For 3

2 matrices one has

A = ( a

11 a

12

, a

21 a

22

, a

31 a

32

)

 tA = ( ta

11 ta

12

, ta

21 ta

22

, ta

31 ta

32

)

1.2 - 4

Example 6.

A = ( 5 7 , 2 3 )

3 A = ( 3

5 3

7 , 3

2 3

3 ) = ( 15 21 , 6 9 )

For general matrices

( tA ) ij

= t ( A ij

) for i = 1, …, m and j = 1, …, n where m is the number of rows in A and B and n is the number of columns.

Functions.

One multiplies a functions by a number by multiplying its value by the number for each value in the domain. If f is a function, then the product tf is defined by for x in S .

( tf )( x ) = t ( f ( x ))

Example 7.

If f ( x ) = 4 x

2

– 2 x + 3 and t = 3 then (3 f )( x ) = 12 x

2

– 3 x + 9.

Example 8.

If f ( t ) = ( t

2

, sin t , e t ) and t = 3 then (3 f )( t ) = ( 3 t

2

, 3 sin t , 3 e t ) then

The definition of multiplication by a number for row and column vectors and matrices is consistent with the definition of multiplication by a number for functions when row and column vectors and matrices are viewed as functions on their index set.

Geometric / physical vectors.

Multiplication of geometric / physical vectors by a number is defined as follows. Suppose u = PQ ,



and t is a number. Then tu has the same direction as u if t

0 and the opposite direction of u if t < 0. The length of tu is | t | times the y

R

Q length of u . It is not hard to show that this geometric definition multiplication of a vector by a number t corresponds to the definition of multiplication of the numeric vector corresponding to u by the number t . u = PQ

P tu = PR x

This definition of multiplication of a directed line segments by a number is consistent with the definitions of multiplication ordered pairs and triples by a number when one associates ordered pairs and triples with directed line segments by means of a coordinate system.

1.2.3. L inear combinations (or superpositions)

1.2 - 5

A linear combination (or superposition) of vectors is just a sum of scalar multiples of the vectors. More specifically, if u

1

, u

2

, …, u n

are vectors and t

1

, t

2

, …, t n

are numbers, then, then the vector v = t

1 u

1

+ t

2 u

2

+ … + t n u n

is called a linear combination (or superposition) of u

1

, u

2

, …, u n

. As we go on we shall see many situations when we want to write a given vector v as a linear combination of other given vectors. y v = 2 u

1

+ 3 u

2

= ( )

Example 9.

Suppose u

1

= ( 2 , 1 ) and u

2

= ( 1 , 2 ) and t

1

= 2 and t

2

= 3. Then the corresponding superposition is

8

7

3 u

2

= ( ) v = t

1 u

1

+ t

2

= 2 ( 2 , 1 ) u

2

+ 3 ( 1 , 2 )

6

5

( 7 , 8 )

= ( 4 , 2 ) + ( 3 , 6 ) =

4

3 u

2

= ( )

2 u

1

= ( )

1 u

1

= ( ) x

1 2 3 4 5 6 7

1.2 - 6

Download