Geometry of Vectors. 1 Cartesian Coordinates. Carlo Tomasi



Similar documents
Section 1.1. Introduction to R n

MAT 1341: REVIEW II SANGHOON BAEK

28 CHAPTER 1. VECTORS AND THE GEOMETRY OF SPACE. v x. u y v z u z v y u y u z. v y v z

THREE DIMENSIONAL GEOMETRY

v 1 v 3 u v = (( 1)4 (3)2, [1(4) ( 2)2], 1(3) ( 2)( 1)) = ( 10, 8, 1) (d) u (v w) = (u w)v (u v)w (Relationship between dot and cross product)

Dot product and vector projections (Sect. 12.3) There are two main ways to introduce the dot product

Cross product and determinants (Sect. 12.4) Two main ways to introduce the cross product

Adding vectors We can do arithmetic with vectors. We ll start with vector addition and related operations. Suppose you have two vectors

13.4 THE CROSS PRODUCT

5.3 The Cross Product in R 3

Figure 1.1 Vector A and Vector F

One advantage of this algebraic approach is that we can write down

Lecture L3 - Vectors, Matrices and Coordinate Transformations

11.1. Objectives. Component Form of a Vector. Component Form of a Vector. Component Form of a Vector. Vectors and the Geometry of Space

1.3. DOT PRODUCT If θ is the angle (between 0 and π) between two non-zero vectors u and v,

Linear Algebra Notes for Marsden and Tromba Vector Calculus

v w is orthogonal to both v and w. the three vectors v, w and v w form a right-handed set of vectors.

Lectures notes on orthogonal matrices (with exercises) Linear Algebra II - Spring 2004 by D. Klain

Lecture 14: Section 3.3

Unified Lecture # 4 Vectors

discuss how to describe points, lines and planes in 3 space.

9 Multiplication of Vectors: The Scalar or Dot Product

Vector Algebra II: Scalar and Vector Products

Math 241, Exam 1 Information.

L 2 : x = s + 1, y = s, z = 4s Suppose that C has coordinates (x, y, z). Then from the vector equality AC = BD, one has

6. Vectors Scott Surgent (surgent@asu.edu)

Vector Algebra CHAPTER 13. Ü13.1. Basic Concepts

Math 215 HW #6 Solutions

Numerical Analysis Lecture Notes

Equations Involving Lines and Planes Standard equations for lines in space

Physics 235 Chapter 1. Chapter 1 Matrices, Vectors, and Vector Calculus

A vector is a directed line segment used to represent a vector quantity.

Solving Simultaneous Equations and Matrices

Recall that two vectors in are perpendicular or orthogonal provided that their dot

Chapter 17. Orthogonal Matrices and Symmetries of Space

9.4. The Scalar Product. Introduction. Prerequisites. Learning Style. Learning Outcomes

The Matrix Elements of a 3 3 Orthogonal Matrix Revisited

1 VECTOR SPACES AND SUBSPACES

Two vectors are equal if they have the same length and direction. They do not

Section 9.5: Equations of Lines and Planes

Section V.3: Dot Product

x1 x 2 x 3 y 1 y 2 y 3 x 1 y 2 x 2 y 1 0.

GCE Mathematics (6360) Further Pure unit 4 (MFP4) Textbook

LINEAR ALGEBRA W W L CHEN

Essential Mathematics for Computer Graphics fast

Mechanics 1: Vectors

12.5 Equations of Lines and Planes

Vectors 2. The METRIC Project, Imperial College. Imperial College of Science Technology and Medicine, 1996.

13 MATH FACTS a = The elements of a vector have a graphical interpretation, which is particularly easy to see in two or three dimensions.

The Dot and Cross Products

Vector has a magnitude and a direction. Scalar has a magnitude

Solutions to Practice Problems

Some Comments on the Derivative of a Vector with applications to angular momentum and curvature. E. L. Lady (October 18, 2000)

Linear Algebra: Vectors

1 Symmetries of regular polyhedra

Mathematics Course 111: Algebra I Part IV: Vector Spaces

MODERN APPLICATIONS OF PYTHAGORAS S THEOREM

A QUICK GUIDE TO THE FORMULAS OF MULTIVARIABLE CALCULUS

x R 2 x = (x 1, x 2 ) or p = (x, y) R 3

ISOMETRIES OF R n KEITH CONRAD

Problem set on Cross Product

FURTHER VECTORS (MEI)

Biggar High School Mathematics Department. National 5 Learning Intentions & Success Criteria: Assessing My Progress

Inner Product Spaces

Problem Set 5 Due: In class Thursday, Oct. 18 Late papers will be accepted until 1:00 PM Friday.

Geometric description of the cross product of the vectors u and v. The cross product of two vectors is a vector! u x v is perpendicular to u and v

Vector Math Computer Graphics Scott D. Anderson

Solutions to Homework 10

3 Orthogonal Vectors and Matrices

The Vector or Cross Product

C relative to O being abc,, respectively, then b a c.

EDEXCEL NATIONAL CERTIFICATE/DIPLOMA MECHANICAL PRINCIPLES AND APPLICATIONS NQF LEVEL 3 OUTCOME 1 - LOADING SYSTEMS

Vectors Math 122 Calculus III D Joyce, Fall 2012

Linear algebra and the geometry of quadratic equations. Similarity transformations and orthogonal matrices

MAT188H1S Lec0101 Burbulla

Chapter 6. Linear Transformation. 6.1 Intro. to Linear Transformation

Basic Linear Algebra

1.5 Equations of Lines and Planes in 3-D

Solutions to old Exam 1 problems

TWO-DIMENSIONAL TRANSFORMATION

Lecture 8 : Coordinate Geometry. The coordinate plane The points on a line can be referenced if we choose an origin and a unit of 20

GEOMETRY CONCEPT MAP. Suggested Sequence:

Solutions to Exercises, Section 5.1

Mechanics lecture 7 Moment of a force, torque, equilibrium of a body

Geometry. Higher Mathematics Courses 69. Geometry

Chapter 4. Moment - the tendency of a force to rotate an object

New York State Student Learning Objective: Regents Geometry

The Geometry of the Dot and Cross Products

Geometry Enduring Understandings Students will understand 1. that all circles are similar.

Mathematics Notes for Class 12 chapter 10. Vector Algebra

Chapter 3 Vectors. m = m1 + m2 = 3 kg + 4 kg = 7 kg (3.1)

Elementary Linear Algebra

(2,4,5).. ...

THEORETICAL MECHANICS

Content. Chapter 4 Functions Basic concepts on real functions 62. Credits 11

3. INNER PRODUCT SPACES

Inner product. Definition of inner product

Geometric Transformations

JUST THE MATHS UNIT NUMBER 8.5. VECTORS 5 (Vector equations of straight lines) A.J.Hobson

Factoring Patterns in the Gaussian Plane

Transcription:

Geometry of Vectors Carlo Tomasi This note explores the geometric meaning of norm, inner product, orthogonality, and projection for vectors. For vectors in three-dimensional space, we also examine the geometry of cross product and triple product. All these concepts are often introduced algebraically in textbooks, but understanding their geometry is particularly useful for computer vision. 1 Cartesian Coordinates The law of cosines 1 states that if a, b, c are the sides of a triangle and the angle between a and b is θ, then c 2 = a 2 + b 2 2ab cos θ. The special case for θ = π/2 radians is known as Pythagoras theorem. The definitions that follow focus on three-dimensional space. Two-dimensional geometry can be derived as a special case when the third coordinate of every point is set to zero. A Cartesian reference system for three-dimensional space is a point in space called the origin and three mutually perpendicular, directed lines though the origin called the axes. The order in which the axes are listed is fixed, and is part of the definition of the reference system. The plane that contains the second and third axis is the first reference plane. The plane that contains the third and firs axis is the second reference plane. The plane that contains the first and second axis is the third reference plane. It is customary to mark the axis directions by specifying a point on each axis and at unit distance from the origin. These points are called the unit points of the system, and the positive direction of an axis is from the origin towards the axis unit point. A Cartesian reference system is right-handed if the smallest rotation that brings the first unit point to the second is counterclockwise when viewed from the third unit point. The system is left-handed otherwise. The Cartesian coordinates of a point in three-dimensional space are the signed distances of the point from the first, second, and third reference plane, in this order, and collected into a vector. The sign for coordinate i is positive if the point is in the half-space (delimited by the i-th reference plane) that contains the positive half of the i-th reference axis. It follows that the Cartesian coordinates of the origin are o = (0, 0, 0), those of the unit points are the vectors e 1 = (1, 0, 0), e 2 = (0, 1, 0), and e 3 = (0, 0, 1), and the vector p = (x, y, z) of coordinates of an arbitrary point in space can also be written as follows: p = xe 1 + ye 2 + ze 3. The point p can be reached from the origin by the following polygonal path: o, xe 1, xe 1 + ye 2, p. 1 A proof of this law based on trigonometry is straightforward but tedious, and a useful exercise. 1

2 2 INNER PRODUCT AND ORTHOGONALITY Each segment of the path is followed by a right-angle turn, so Pythagoras theorem can be applied twice to yield the distance of p from the origin: From the definition of norm of a vector we see that d(o, p) = x 2 + y 2 + z 2. d(o, p) = p. So the norm of the vector of coordinates of a point is the distance of the point from the origin. A vector is often drawn as an arrow pointing from the origin to the point whose coordinates are the components of the vector. Then, the result above shows that the length of that arrow is the norm of the vector. Because of this, the words length and norm are often used interchangeably. 2 Inner Product and Orthogonality The law of cosines yields a geometric interpretation of the inner product of two vectors a and b: a T b = a b cos θ (1) where θ is the acute angle between the two arrows that represent a and b geometrically. So the inner product of two vectors is the product of the lengths of the two arrows that represent them and of the cosine of the angle between them. To prove this result, consider a triangle with sides a = a, b = b, c = b a and with an angle θ between a and b. Then the law of cosines yields From the definition of norm we then obtain b a 2 = a 2 + b 2 2 a b cos θ. a 2 + b 2 2a T b = a 2 + b 2 2 a b cos θ. Canceling equal terms and dividing by 2 yields the desired result. Setting θ = π/2 in the result above yields another important corollary: The arrows that represent two vectors a and b are mutually perpendicular if an only if the two vectors are orthogonal: a T b = 0. Because of this result, the words perpendicular and orthogonal are often used interchangeably.

3 3 Vector Projection Given two vectors a and b, the projection 2 of a onto b is the vector p that represents the point p on the line through b that is nearest to the endpoint of a. See figure 1. a b p Figure 1: The vector from the origin to point p is the projection of a onto b. The line from the endpoint of a to p is orthogonal to b. The projection of a onto b is the vector p = P b a where P b is the following square, symmetric matrix: The magnitude of the projection is P b = bbt b T b. p = bt a b. (2) To prove this, observe that since by definition point p is on the line through b, the projection vector p has the form p = xb, where x is some real number. From elementary geometry, the line between p and the endpoint of a is shortest when it is perpendicular to b: which yields so that b T (a xb) = 0 x = bt a b T b p = xb = b x = bbt b T b a 2 The term vector projection may be used to avoid confusion with the very different notion of camera projection.

4 4 CROSS PRODUCT AND TRIPLE PRODUCT as advertised. The magnitude of p can be computed as follows. First, observe that so that the projection matrix P b is idempotent: Pb 2 = bbt bb T b T b b T b = bbt bb T (b T b) 2 = bbt b T b = P b P 2 b = P b. This means that applying the matrix once or multiple times has the same effect. Then, p 2 = p T p = a T Pb T P ba = a T P b P b a = a T P b a = a T bbt b T b a = (bt a) 2 b T b which yields equation (2). The scalar projection is defined as b T a b and is positive if and only if the angle between a and b has a magnitude smaller than π/2. From the definition of projection we also see the following fact. The coordinates of a point in space are the projections of the vector of coordinates of the point onto the three unit vectors that define the coordinate axes. This result is trivial in the basic Cartesian reference frame with unit points e 1 = (1, 0, 0), e 2 = (0, 1, 0), e 3 = (0, 0, 1). If p = (x, y, z), then obviously e 1 p = x, e 2 p = y, e 3 p = z. The result becomes less trivial in Cartesian reference systems where the axes have different orientations, as we will see soon. 4 Cross Product and Triple Product The cross product of two 3-dimensional vectors a = (a 1, a 2, a 3 ) and b = (b 1, b 2, b 3 ) is the 3-dimensional vector c = 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 ). The cross product c of a and b is orthogonal to both a and b: c T a = (a 2 b 3 a 3 b 2 )a 1 + (a 3 b 1 a 1 b 3 )a 2 + (a 1 b 2 a 2 b 1 )a 3 = 0 c T b = (a 2 b 3 a 3 b 2 )b 1 + (a 3 b 1 a 1 b 3 )b 2 + (a 1 b 2 a 2 b 1 )b 3 = 0 (check that all terms do indeed cancel). The vector c is oriented so that the triple a, b, c is right-handed. This fact is not proven here. If θ is the acute angle between a and b, then (a T b) 2 + a b 2 = a 2 b 2

5 as can be shown by straightforward manipulation: (a T b) 2 = (a 1 b 1 + a 2 b 2 + a 3 b 3 ) (a 1 b 1 + a 2 b 2 + a 3 b 3 ) = a 2 1b 2 1 + a 1 b 1 a 2 b 2 + a 1 b 1 a 3 b 3 +a 2 2b 2 2 + a 1 b 1 a 2 b 2 + a 2 b 2 a 3 b 3 +a 2 3b 2 3 + a 1 b 1 a 3 b 3 + a 2 b 2 a 3 b 3 = a 2 1b 2 1 + a 2 2b 2 2 + a 2 3b 2 3 + 2a 1 b 1 a 2 b 2 + 2a 2 b 2 a 3 b 3 + 2a 1 b 1 a 3 b 3 and a b 2 = (a 2 b 3 a 3 b 2 ) 2 + (a 3 b 1 a 1 b 3 ) 2 + (a 1 b 2 a 2 b 1 ) 2 = a 2 2b 2 3 + a 2 3b 2 2 2a 2 b 2 a 3 b 3 +a 2 1b 2 3 + a 2 3b 2 1 2a 1 b 1 a 3 b 3 +a 2 1b 2 2 + a 2 2b 2 1 2a 1 b 1 a 2 b 2 = a 2 1b 2 2 + a 2 2b 2 1 + a 2 2b 2 3 + a 2 3b 2 2 + a 2 1b 2 3 + a 2 3b 2 1 2a 1 b 1 a 2 b 2 2a 2 b 3 a 2 b 2 2a 1 b 1 a 3 b 3 so that but also so that (a T b) 2 + a b 2 = a 2 1b 2 1 + a 2 1b 2 2 + a 2 1b 2 3 + a 2 2b 2 1 + a 2 2b 2 2 + a 2 2b 2 3 + a 2 3b 2 1 + a 2 3b 2 2 + a 2 3b 2 3 a 2 b 2 = a 2 1b 2 1 + a 2 1b 2 2 + a 2 1b 2 3 + a 2 2b 2 1 + a 2 2b 2 2 + a 2 2b 2 3 + a 2 3b 2 1 + a 2 3b 2 2 + a 2 3b 2 3 (a T b) 2 + a b 2 = a 2 b 2 (3) as desired. The following geometric interpretation of the cross product then follows: The cross product of two three-dimensional vectors a and b is a vector c orthogonal to both a and b, oriented so that the triple a, b, c is right-handed, and with magnitude where θ is the acute angle between a and b. c = a b = a b sin θ (4) The orthogonality of c to both a and b and right-handedness of a, b, c has already been shown. The result on the magnitude is a consequence of equation (3). From this equation we obtain or a b 2 = a 2 b 2 (a T b) 2 = a 2 b 2 a 2 b 2 cos 2 θ = a 2 b 2 sin 2 θ a b = ± a b sin θ. Since the angle θ is acute (from equation (1)), all quantities in the last equation are nonnegative, so that the sign yields an impossible equation. This results in equation (4).

6 4 CROSS PRODUCT AND TRIPLE PRODUCT From its expression, we see that the magnitude of a b is the area of a rectangle with sides a and b. Suppose that we need to compute cross products of the form a p where a is a fixed vector but p changes. It is then convenient to write the cross product as the product of a matrix a that depends on a and of p. Spelling out the definition of the cross product yields the following anti-symmetric matrix: a = 0 a 3 a 2 a 3 0 a 1 a 2 a 1 0 The triple product of three-dimensional vectors a, b, c is defined as follows: It is immediate to verify that a T (b c) = a 1 (b 2 c 3 b 3 c 2 ) + a 2 (b 1 c 3 b 3 c 1 ) + a 3 (b 1 c 2 b 2 c 1 ). a T (b c) = b T (c a) = c T (a b) = a T (c b) = c T (b a) = b T (a c). Again, from its expression, we see that the triple product of vectors a, b, c is the volume of a parallelepiped with edges a, b, c: the cross product p = b c is a vector orthogonal to the plane of b and c, and with magnitude equal to the base of the parallelepiped. The inner product of p and a is the magnitude of p times that of a times the cosine of the angle between them, that is, the base area of the parallelepiped times its height. This gives the volume of the solid. See Figure 2.. a θ c b Figure 2: The triple product of the vectors a, b, c is the volume of the parallelepiped with edges a, b, c.