Lecture 2: Vector-Vector Operations

Similar documents
Review of Coordinate Systems

Section 13.4 The Cross Product

Exercise Solutions for Introduction to 3D Game Programming with DirectX 10

Vectors. The standard geometric definition of vector is as something which has direction and magnitude but not position.

MAT 1339-S14 Class 8

The Cross Product. Philippe B. Laval. Spring 2012 KSU. Philippe B. Laval (KSU) The Cross Product Spring /

The geometry of least squares

The Cross Product. In this section, we will learn about: Cross products of vectors and their applications.

Section 10.7 The Cross Product

CSC 470 Introduction to Computer Graphics. Mathematical Foundations Part 2

Remark 3.2. The cross product only makes sense in R 3.

Omm Al-Qura University Dr. Abdulsalam Ai LECTURE OUTLINE CHAPTER 3. Vectors in Physics

Linear Algebra. 1.1 Introduction to vectors 1.2 Lengths and dot products. January 28th, 2013 Math 301. Monday, January 28, 13

Review: Linear and Vector Algebra

Linear Algebra V = T = ( 4 3 ).

Quiz No. 1: Tuesday Jan. 31. Assignment No. 2, due Thursday Feb 2: Problems 8.4, 8.13, 3.10, 3.28 Conceptual questions: 8.1, 3.6, 3.12, 3.

Math 425 Lecture 1: Vectors in R 3, R n

4.1 Distance and Length

Vector Geometry. Chapter 5

Quantities which have only magnitude are called scalars. Quantities which have magnitude and direction are called vectors.

Vectors and the Geometry of Space

CHAPTER 3 : VECTORS. Definition 3.1 A vector is a quantity that has both magnitude and direction.

(arrows denote positive direction)

The Cross Product. MATH 311, Calculus III. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan The Cross Product

Math 241, Exam 1 Information.

Course Name : Physics I Course # PHY 107

Matrices Gaussian elimination Determinants. Graphics 2009/2010, period 1. Lecture 4: matrices

Ch. 7.3, 7.4: Vectors and Complex Numbers

The Cross Product The cross product of v = (v 1,v 2,v 3 ) and w = (w 1,w 2,w 3 ) is

Notes: Vectors and Scalars

MATH Topics in Applied Mathematics Lecture 12: Evaluation of determinants. Cross product.

2- Scalars and Vectors

I&C 6N. Computational Linear Algebra

102 CHAPTER 3. VECTORS AND THE GEOMETRY OF SPACE

Last week we presented the following expression for the angles between two vectors u and v in R n ( ) θ = cos 1 u v

CE 201 Statics. 2 Physical Sciences. Rigid-Body Deformable-Body Fluid Mechanics Mechanics Mechanics

Solutions to Selected Questions from Denis Sevee s Vector Geometry. (Updated )

Section 2.3. The Cross Product

1.1 Single Variable Calculus versus Multivariable Calculus Rectangular Coordinate Systems... 4

Brief Review of Vector Algebra

Vectors and Matrices Lecture 2

Vectors in R n. P. Danziger

9.4 Polar Coordinates

Vector components and motion

Part I, Number Systems CS131 Mathematics for Computer Scientists II Note 3 VECTORS

The Cross Product of Two Vectors

Vectors. September 2, 2015

8.0 Definition and the concept of a vector:

Electromagnetic Field Theory

GEOMETRY AND VECTORS

Math 302 Test 1 Review

Objective 1. Lesson 87: The Cross Product of Vectors IBHL - SANTOWSKI FINDING THE CROSS PRODUCT OF TWO VECTORS

Math 416, Spring 2010 More on Algebraic and Geometric Properties January 21, 2010 MORE ON ALGEBRAIC AND GEOMETRIC PROPERTIES

Brief Review of Exam Topics

MATH 19520/51 Class 2

DATE: MATH ANALYSIS 2 CHAPTER 12: VECTORS & DETERMINANTS

Physics 40 Chapter 3: Vectors

22m:033 Notes: 1.3 Vector Equations

CHAPTER 10 VECTORS POINTS TO REMEMBER

vand v 3. Find the area of a parallelogram that has the given vectors as adjacent sides.

Chapter 8 Vectors and Scalars

General Physics I, Spring Vectors

Vector/Matrix operations. *Remember: All parts of HW 1 are due on 1/31 or 2/1

6. Vectors. Given two points, P 0 = (x 0, y 0 ) and P 1 = (x 1, y 1 ), a vector can be drawn with its foot at P 0 and

SECTION 6.3: VECTORS IN THE PLANE

What you will learn today

Introduction to Matrix Algebra

Prepared by: M. S. KumarSwamy, TGT(Maths) Page

VECTORS vectors & scalars vector direction magnitude scalar only magnitude

Detailed objectives are given in each of the sections listed below. 1. Cartesian Space Coordinates. 2. Displacements, Forces, Velocities and Vectors

REVIEW - Vectors. Vectors. Vector Algebra. Multiplication by a scalar

v = ( 2)

Worksheet 1.3: Introduction to the Dot and Cross Products

22A-2 SUMMER 2014 LECTURE Agenda

Vectors and Matrices

Vectors in Physics. Topics to review:

LINEAR ALGEBRA - CHAPTER 1: VECTORS

10.1 Vectors. c Kun Wang. Math 150, Fall 2017

11.1 Three-Dimensional Coordinate System

Chapter 2 A Mathematical Toolbox

2.1 Scalars and Vectors

Vectors a vector is a quantity that has both a magnitude (size) and a direction

Worksheet 1.4: Geometry of the Dot and Cross Products

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Linear Algebra /34

R n : The Cross Product

Chapter 3 Vectors. 3.1 Vector Analysis

Scalar & Vector tutorial

We use the overhead arrow to denote a column vector, i.e., a number with a direction. For example, in three-space, we write

Department of Physics, Korea University

Chapter 2 - Vector Algebra

Vectors Primer. M.C. Simani. July 7, 2007

45. The Parallelogram Law states that. product of a and b is the vector a b a 2 b 3 a 3 b 2, a 3 b 1 a 1 b 3, a 1 b 2 a 2 b 1. a c. a 1. b 1.

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Linear Algebra 1/33

CP3 REVISION LECTURES VECTORS AND MATRICES Lecture 1. Prof. N. Harnew University of Oxford TT 2013

1.1 Bound and Free Vectors. 1.2 Vector Operations

Applied Linear Algebra in Geoscience Using MATLAB

The Geometry of R n. Supplemental Lecture Notes for Linear Algebra Courses at Georgia Tech

EGR2013 Tutorial 8. Linear Algebra. Powers of a Matrix and Matrix Polynomial

FORCE TABLE INTRODUCTION

12.1. Cartesian Space

Transcription:

Lecture 2: Vector-Vector Operations Vector-Vector Operations Addition of two vectors Geometric representation of addition and subtraction of vectors Vectors and points Dot product of two vectors Geometric interpretation of the dot product of two vectors Computation of Dot product Dot product of perpendicular vectors Dot product of a vector with itself Examples: Decomposition of force vectors, Decomposition of a vector into orthogonal components, coordinates of a point in an orthogonal coordinate system. Cross product of two three dimensional vectors (Self-study) Geometric interpretation of a cross product Area of a triangle Cross product of orthogonal and parallel vectors Scalar Triple Product (Self-study) Geometric interpretation of a scalar triple product Volume of a parallelepiped 1

Vector-Vector Operations Vector addition (and subtraction) a + b, a b Vector Multiplication Dot Product: a & b Cross Product: a b 2

Vector Addition (Page 26) Two vector can be added only if they have the same dimension. The corresponding components of the two vector are added together. Two vector can be subtracted in the same way of adding, by subtracting components. Example: 2 1 + 1 1 = 3 0 1 0 1 2 1 0 = 1 2 0 1 1 0 = 1 2 1 1 3

When can two vectors be added? Only if two vectors have the same dimension they can be added. Row vectors and column vectors of the same dimension can be added. Example: 1 + 0 = 1 1 2 + 2 2 = 3 0 = 3 0 2 0 1 + 0.5 =? 1 4

How to represent addition of two vectors graphically (Ch. 1.3 P. 26) Draw one vector. Draw the other vector. Draw one vector along the diagonal of the parallelogram formed by P1 and P2. Example: P1+P2 (4,3) 3 1 + 1 2 = 4 3 P2 (1,2) P1 (3,1) 5

How to represent addition of three vectors graphically Another way to add multiple vectors graphically is to link the tail of one vector with the head of another vector as shown below. The final vector is obtained by connecting the origin and the head of the last vector. Example: 3 2 + 1 0 + 0 1 = 4 3 P1 (3,2) P1+P2 + P3 (4,3) P2 (1,0) P3 (0,1) 6

How to represent subtraction of two vectors graphically (Ch. 1.3 P. 26) Draw one vector. Draw the other vector. Draw one vector originated at the tail of the first vector, and ends at the tail of the second vector. Example: 1 2 3 1 = 2 1 P2 (1,2) P2 P1 (-2,1) P1 (3,1) 7

How to compute vector between points? Given two points P 2 = (x 2, y 2, z 2 )and P 8 = x 8, y 8, z 8 x 2 The vector to P 2 from the origin is v 2 = y 2 z 2 the origin is v 8 = x 8 y 8 z 8 The vector from P 2 to P 8 is v 8 -v 2 = x 8 x 2 y 8 y 2 z 8 z 2 and vector to P 8 from A (1,1) AB (2,2) B (3,3) 8

Algebraic Properties of vector addition and subtraction 9

What is a dot product (Inner product)? Dot product or Inner product of vectors a and b is represented as: a & b = s Dot product of two vectors results in a scalar. Multiply the corresponding components of the two vectors The dot product equals to the result of addition of all the multiplied components a 2 a 8 a J & Example: b 2 b 8 b J = a 2 b 2 + a 8 b 8 + a J b J. 1 2 1 & 1 = 2 1 = 1 3 2 1 0 & 1 2 = 3 2 + 1 1 + 0 2 = 5 10

How to dot two vectors Dot product can be computed only between vectors of same dimension. Dot product is commutative a & b = b & a 3 1 0 & 2 1 2 = 2 1 2 & 3 1 0 = 3 2 + 1 1 + 0 2 = 5 11

Geometric interpretation of a dot product The result of a dot product of vectors is a scalar, and cannot be depicted as a vector. However, this scalar value is proportional to the cosine of the angle between the vectors. So dot product can be computed in two different ways. One as the sum of the product of the corresponding components as mentioned earlier, and the other as a & b = a b cos θ Both computation methods will yield the same result. Example: a = 3 1, b = 0 2, a & b = 2 2 cos 60 = 2 By earlier approach, a & b = 3 1 & 0 2 = 0+2=2 b θ a 12

Geometric interpretation of a dot product a & b = a b cos θ What if a is a unit vector ( a =1) a & b would be the length of the perpendicular projection of b on a Vector c is the image of b on a Direction of c is the same as a Magnitude of c is c = b cos θ = a&b a b c θ a 13

Dot product with itself From the geometrical representation of dot product it is inferred that the dot product of a vector with itself is its squared magnitude a & a = a a cos 0 = a 8 Now if the vector is a unit vector its dot product with itself equals to 1 ar & ar = ar ar cos 0 = 1 Example: a = 2 1, a & a = 28 + 1 8 = 5 = 2 8 + 1 8 8 ar = 0.6 0.8, ar & ar = 0.68 + 0.8 8 = 1 = 1 1 14

Dot product of perpendicular vectors From the geometric representation of dot product, it is inferred that the dot product of two perpendicular vector is equal to zero, since cos 90 = 0. Example: a = 2 2, b = 1 1 a & b = 2 1 + 2 1 = 0 a & b = 8 2 cos 90 = 0 15

Application of Dot product Decomposition of a vector into its orthogonal components. b = b cos θ XV + b sin θ YV Y b sin θ b θ b cos θ X

What is the cross product Cross product is computed between (N-1) vectors in a N-D space, where N 3 The result of cross product is a vector in N-D space. Hence it is also called vector product. The cross product vector is perpendicular to all the (N-1) vectors used to compute it. Let, a = [a 1, a 2, a 3 ] & b = [b 1, b 2, b 3 ] then, a x b = [ a 2 b 3 a 3 b 2, a 3 b 1 - a 1 b 3, a 1 b 2 - a 2 b 1 ] ( we will discuss about this again when we study determinants. ) 17

Geometric interpretation of cross product a x b = a b sin θnc, where θ is the angle between the two vectors and nc is a unit vector representing the direction of the resultant vector. Direction of a x b is perpendicular to both vectors a and b following the right hand rule. a x b represents the area of the parallelogram determined by these vectors as adjacent sides. 18

Cross product (using Determinants) EXAMPLE 1 Compute u! v and v! u for u = h2; 3; 5i and v = h6; 7; 9i : Solution: To do so, we construct the vector of determinants in (2), "!!! #!!! 3 5!!! u! v = 7 9! ; 5 2!!! 9 6! ; 2 3 6 7! and then we use (1) to evaluate the determinants: u! v = h3 # 9 $ 7 # 5; 5 # 6 $ 9 # 2; 2 # 7 $ 6 # 3i = h$8; 12; $4i (3) Notice however that v! u is!" " """ 7 9 """ v! u = 3 5 " ; 9 6 5 2 " """ " ; 6 7 2 3 # " = h8; $12; 4i That is, v! u = $ (u! v), which can be shown to be true in general. Indeed, each of the following follow from direct calculation.

Cross product (using Determinants) Taking the dot product of u x v with either u or v results in a zero vector. This proves that u x v is orthogonal to both u and v. 8, 12, 4 & 2, 3, 5 = 0, 0, 0 8, 12, 4 & 6, 7, 9 = [0, 0, 0]

Cross product of parallel vectors From the geometrical representation of cross product it is inferred that the cross product of parallel vectors is a zero vector a x b = a b sin 0 = 0 i.e. cross product of a vector with itself is zero vector a x a = a a sin 0 = 0 21

Cross product of orthogonal vectors From the geometric representation of cross product, it is inferred that the cross product of two orthogonal vector is the product of their magnitude. a x b = a b sin 90 = a b 22

Application of Cross product To find the area of a triangle. Area of triangle = 2 8 h B A = 2 8 A sinθ B h = 2 8 A x B q O B

Application of Cross product Example of Area of Triangle Find the area of triangle with vertices P1 (2,2), P2(4,4) and P3(6,1) : Note the area of the parallelogram formed by u and v will be 2 * 5 units 2 = 10units 2 Solution: It is easy to see that u = h2; 2i and v = h4; #1i. As vectors in R 3, we have u = h2; 2; 0i and v = h4; #1; 0i : Thus, their cross product is!" " " # """ 2 0 """ u $ v = 4 0 " ; 0 2 """ 0 #1 " ; 2 2 4 #1 " = h0; 0; 2 % (#1) # 4 % 2 i = h0; 0; #10i Since the triangle has half of the area of the parallelogram formed by u and v; the area of the triangle is Area = ku $ vk = 1 q 0 2 2 +0 2 +(#10) 2 =5units 2

Algebraic Properties of dot and cross products

Dot Product vs Cross Product Dot product Result of a dot product is a scalar quantity. It follows commutative law. Dot product of vectors in the same direction is maximum. Dot product of orthogonal vectors is zero. It doesn t follow right hand system. It is used to find projection of vectors. It is represented by a dot (.) Cross product Result of a cross product is a vector quantity. It doesn t follow commutative law. Cross product of vectors in same direction is zero. Cross product of orthogonal vectors is maximum. It follows right hand system. It is used to find a third vector. It is represented by a cross (x)

Scalar Triple Product Scalar triple product of vectors a, b, c is referred to as a & b x c Geometrically it represents the volume of a parallelopiped Volume of the parallelepiped = (height H) (area of the parallelogram L) = ( a cos θ ) ( b x c ) = a ( b x c ) cos θ = a. ( b x c ) H L

Scalar Triple Product EXAMPLE 7 Find the volume of the parallelpiped spanned by u = h2; 0; 0i ; v = h1; 3; 0i, and w = h1; 0; 3i. The Ögure below is drawn as if all vectors have their initial points at the origin. The dot product with w yields the volume: V olume = j(u " v) # wj = jh1; 0; 3i#h0; 0; 6ij = 18 Solution: The cross product of u and v is!" " " """ 0 0 """ u " v = 3 0 " ; 0 2 """ 0 1 " ; 2 0 1 3 # " = h0; 0; 6i