37
1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and science. Throughout the text thus far, the term has been used to refer to row or column matrices according to the standard conventions of matrix algebra, and these conventions are in turn employed by MATLAB.

1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

Embed Size (px)

Citation preview

Page 1: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

1

Chapter 14Introduction to Spatial Vector Analysis

The term vector has slightly different meanings in different areas of mathematics, engineering and science. Throughout the text thus far, the term has been used to refer to row or column matrices according to the standard conventions of matrix algebra, and these conventions are in turn employed by MATLAB.

Page 2: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

2

Another widely used definition for vector is associated with spatial quantities that have specific directions in terms of the three-dimensional coordinate system in which we live. Examples of such quantities are forces, velocities, displacements, electric fields, magnetic fields, and many other physical variables. A three-dimensional spatial vector can be represented in terms of a row or column vector in MATLAB. There are certain mathematical operations that are useful in describing these quantities and the subject area is called vector analysis.

Page 3: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

3

For the purposes of this chapter, a spatial vector will be defined as a quantity that has both a magnitude and a direction. Since the focus throughout the chapter will be on spatial vectors, the adjective spatial will often be omitted. At any point at which a MATLAB vector is created, the terms row vector and column vector will be used as appropriate.

Page 4: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

4

Rectangular Coordinate System

x

z

y

Page 5: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

5

Unit Vectors in Rectangular Coordinate System

x

z

y

i

j

k

Page 6: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

6

Vector Representation:

x y zA A A A i j k

2 2 2

Magnitude or Absolute Value:

x y zA A A A A

The unit vectors , , and should not be

confused with the imaginary number or .i j

i j k

Page 7: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

7

Direction Angles

x

z

y

z

yx

A

xA

yA

zA

Page 8: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

8

Relationships for Direction Angles

2 2 2cos x x

x

x y z

A A

A A A A

2 2 2cos z z

z

x y z

A A

A A A A

2 2 2cos y y

y

x y z

A A

A A A A

Page 9: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

9

Example 14-1. A force has x, y, and z components of 3, 4, and –12 N, respectively. Express the force as a vector in rectangular coordinates.

3 4 12 F i j k

Page 10: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

10

Example 14-2. Determine the magnitude of the force in Example 14-1.

3 4 12 F i j k

2 2 2(3) (4) ( 12)

13 N

F

Page 11: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

11

Example 14-3. Determine the three direction angles for the force of Examples 14-1 and 14-2.

3cos 0.2308

13x

x

A

A

1cos 0.2308 76.66 1.338 radx

4cos 0.3077

13y

y

A

A

1cos 0.3077 72.08 1.258 rady

Page 12: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

12

Example 14-3. Continuation.

12cos 0.9231

13z

z

A

A

1cos ( 0.9231) 157.4 2.747 radz

Note that since the -component is negative,

the angle of the vector with respect to the

positive -axis is greater than 90 .

z

z

Page 13: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

13

Vector Operations to be Considered

• Scalar or Dot Product A•B

• Vector or Cross Product AxB

• Triple Scalar Product (AxB)•C

Page 14: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

14

Consider two vectors A and B oriented in different directions.

A

B

Page 15: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

15

Scalar or Dot Product

Definition:

cosAB A •B

Computation:

x x y y z zA B A B A B A •B

Page 16: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

16

First Interpretation of Dot Product: Projection of A on B times the length of B.

cosA B

B

A

A

(a)

Page 17: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

17

Second Interpretation of Dot Product:Projection of B on A times the length of A.

cosB

B

B

AA

(b)

Page 18: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

18

Some Implications of Dot Product

0

The vectors are parallel to each other and

AB

A B

90

The vectors are to each other and

0

A B

Page 19: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

19

Example 14-4. Perform several scalar operations on the following vectors:

2 2 A i j k3 4 12 B i j k2 2 2

2 2 2(2) ( 2) (1) 3

x y zA A A A

2 2 2

2 2 2(3) (4) (12) 13

x y zB B B B

Page 20: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

20

Example 14-4. Continuation.

(2)(3) (-2)(4) (1)(12) 10

x x y y z zA B A B A B

A •B

cosAB A •B

10 10cos 0.2564

3 13 39AB

A •B

1 ocos 0.2564 75.14 1.311 rad

Page 21: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

21

Vector or Cross Product

Definition:

sinAB nA×B u

Computation:

x y z

x y z

A A A

B B B

i j k

A×B

Page 22: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

22

Cross Product AxB

A

B

Direction of AxB isout of the page.

A×B

(a)

Page 23: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

23

Cross Product BxA

B

A

Direction of BxA isinto the page.

B A

(b)

Page 24: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

24

Area of parallelogram below is the magnitude of the cross product.

A

B

Page 25: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

25

Some Implications of Cross Product

0

The vectors are parallel to each other and

0

A×B

90

The vectors are to each other and

AB

nA×B u

Page 26: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

26

2 2 1

3 4 12x y z

x y z

A A A

B B B

i j k i j k

A×B

Example 14-5. Determine the cross product of the vectors of Example 14-4.

( 2)(12) (1)(4) (2)(12) (1)(3)

(2)(4) ( 2)(3)

28 21 14

A×B i j

k

i j k

Page 27: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

27

Example 14-6. Determine a unit vector perpendicular to the vectors of Examples 14-4 and 14-5.

2 2 2( 28) ( 21) (14) 37.70 A×B

28 21 14

37.70

0.7428 0.5571 0.3714

n

A B i j ku

A B

i j k

Page 28: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

28

Triple Scalar Product

Definition:

( )A B C

Computation:

( )x y z

x y z

x y z

A A A

B B B

C C C

A B •C

Page 29: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

29

Volume of parallelepiped below is the triple scalar product of the vectors.

B

A

C

Page 30: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

30

Example 14-7. Determine the triple scalar product of the vectors

2 2 A i j k3 4 12 B i j k3 5 6 C i j k

2 2 1

( ) 3 4 12

3 5 6

2( 24 60) 2( 18 36) (15 12)

168 108 3 273

x y z

x y z

x y z

A A A

B B B

C C C

A B •C

Page 31: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

31

Work and Energy

Let F represent a constant force vector and let L represent a vector path length over which the work W is performed. The first equation below will determine the work. If the force is a function of the position, the differential form is required.

W F •LdW F •dL

Page 32: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

32

Force on Current Carrying Conductor

I

L

BF

The force vector isdirected into the page.

I F L B

Page 33: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

33

Force Resulting in Torque Vector

L

F

The torque vector ispointed out of the page.

T L F

Page 34: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

34

Voltage Induced in Moving Conductor

Assume that a conductor of vector length L is moving with vector velocity v through a magnetic field vector B. The voltage measured across the length is given by the triple scalar product that follows.

V ν B •L

Page 35: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

35

MATLAB Dot Product

>> A = [Ax Ay Az]

>> B = [Bx By Bz]

>> P_dot = dot(A, B)

The magnitude of a vector A can be determined by the following command:

>>A_mag = sqrt(dot(A, A))

Page 36: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

36

MATLAB Cross Product

>> A = [Ax Ay Az]

>> B = [Bx By Bz]

>> P_cross = cross(A,B)

Page 37: 1 Chapter 14 Introduction to Spatial Vector Analysis The term vector has slightly different meanings in different areas of mathematics, engineering and

37

MATLAB Triple Scalar Product

>> A = [Ax Ay Az]

>> B = [Bx By Bz]

>> C = [Cx Cy Cz]

>> P_triple = det([A; B; C])