The Inner Product (Many slides adapted from Octavia Camps and Amitabh Varshney) Much of material in Appendix A. Goals

Similar documents
Unit 11: Vectors in the Plane

2) If a=<2,-1> and b=<3,2>, what is a b and what is the angle between the vectors?

7.1 Projections and Components

Chapter 13: Vectors and the Geometry of Space

Chapter 13: Vectors and the Geometry of Space

The Dot Product

Distances in R 3. Last time we figured out the (parametric) equation of a line and the (scalar) equation of a plane:

11.1 Three-Dimensional Coordinate System

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

A Geometric Review of Linear Algebra

6.1.1 Angle between Two Lines Intersection of Two lines Shortest Distance from a Point to a Line

What you will learn today

A vector in the plane is directed line segment. The directed line segment AB

MATH 12 CLASS 2 NOTES, SEP Contents. 2. Dot product: determining the angle between two vectors 2

Section 13.4 The Cross Product

Mon Apr dot product, length, orthogonality, projection onto the span of a single vector. Announcements: Warm-up Exercise:

Multiple Choice Questions

12.1 Three Dimensional Coordinate Systems (Review) Equation of a sphere

Kevin James. MTHSC 206 Section 12.5 Equations of Lines and Planes

How can we find the distance between a point and a plane in R 3? Between two lines in R 3? Between two planes? Between a plane and a line?

G.CO.6-9 ONLY COMMON CORE QUESTIONS

SMT 2018 Geometry Test Solutions February 17, 2018

MAC Module 5 Vectors in 2-Space and 3-Space II

2) If a=<2,-1> and b=<3,2>, what is a b and what is the angle between the vectors?

UNDERSTAND MOTION IN ONE AND TWO DIMENSIONS

chapter 1 vector geometry solutions V Consider the parallelogram shown alongside. Which of the following statements are true?

Mathematics 2203, Test 1 - Solutions

MTH MTH Lecture 6. Yevgeniy Kovchegov Oregon State University

Vectors Mike Bailey Oregon State University Oregon State University Computer Graphics

Intro Vectors 2D implicit curves 2D parametric curves. Graphics 2011/2012, 4th quarter. Lecture 2: vectors, curves, and surfaces

Systems of Linear Equations

MAT1035 Analytic Geometry

15. LECTURE 15. I can calculate the dot product of two vectors and interpret its meaning. I can find the projection of one vector onto another one.

CHAPTER 10 VECTORS POINTS TO REMEMBER

Motion In Two Dimensions. Vectors in Physics

A Geometric Review of Linear Algebra

Vector equations of lines in the plane and 3-space (uses vector addition & scalar multiplication).

Announcements Wednesday, September 05

Blue and purple vectors have same magnitude and direction so they are equal. Blue and green vectors have same direction but different magnitude.

Covariance to PCA. CS 510 Lecture #8 February 17, 2014

Orthogonality. Orthonormal Bases, Orthogonal Matrices. Orthogonality

Intro Vectors 2D implicit curves 2D parametric curves. Graphics 2012/2013, 4th quarter. Lecture 2: vectors, curves, and surfaces

Section 6.1. Inner Product, Length, and Orthogonality

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

Dot product. The dot product is an inner product on a coordinate vector space (Definition 1, Theorem

Vectors Coordinate frames 2D implicit curves 2D parametric curves. Graphics 2008/2009, period 1. Lecture 2: vectors, curves, and surfaces

Vectors, dot product, and cross product

LINEAR ALGEBRA REVIEW

Covariance to PCA. CS 510 Lecture #14 February 23, 2018

8. Find r a! r b. a) r a = [3, 2, 7], r b = [ 1, 4, 5] b) r a = [ 5, 6, 7], r b = [2, 7, 4]

Lecture 3. (2) Last time: 3D space. The dot product. Dan Nichols January 30, 2018

Math 241, Exam 1 Information.

Higher Geometry Problems

Square Roots and Pythagoras Theorem

MATH 2433 Homework 1

Chapter 8. Rigid transformations

ISOMETRIES OF R n KEITH CONRAD

The Dot Product Pg. 377 # 6ace, 7bdf, 9, 11, 14 Pg. 385 # 2, 3, 4, 6bd, 7, 9b, 10, 14 Sept. 25

The geometry of least squares

4.3 Equations in 3-space

(arrows denote positive direction)

Higher Geometry Problems

Physics 2A Chapter 3 - Motion in Two Dimensions Fall 2017

MATH 2374 Spring Worksheet 4

Scalar multiplication and algebraic direction of a vector

MA 460 Supplement: Analytic geometry

12.5 Equations of Lines and Planes

UNIT 1: SIMILARITY, CONGRUENCE, AND PROOFS. 1) Figure A'B'C'D'F' is a dilation of figure ABCDF by a scale factor of 1. 2 centered at ( 4, 1).

I. Vectors and Geometry in Two and Three Dimensions

Hanoi Open Mathematical Competition 2017

Section 4.3 Vector Fields

Dot Products. K. Behrend. April 3, Abstract A short review of some basic facts on the dot product. Projections. The spectral theorem.

VECTORS. 3-1 What is Physics? 3-2 Vectors and Scalars CHAPTER

Chapter 3 Motion in a Plane

VECTORS. Given two vectors! and! we can express the law of vector addition geometrically. + = Fig. 1 Geometrical definition of vector addition

Lecture 1.4: Inner products and orthogonality

Vector Multiplication. Directional Derivatives and the Gradient

Vectors Summary. can slide along the line of action. not restricted, defined by magnitude & direction but can be anywhere.

Distance Formula in 3-D Given any two points P 1 (x 1, y 1, z 1 ) and P 2 (x 2, y 2, z 2 ) the distance between them is ( ) ( ) ( )

Chapter 6. Orthogonality and Least Squares

Elementary maths for GMT

Status: Unit 2, Chapter 3

Review of Coordinate Systems

Department of Mathematical and Statistical Sciences University of Alberta

MATH 221: SOLUTIONS TO SELECTED HOMEWORK PROBLEMS

MATH 19520/51 Class 2

Chapter 10. Properties of Circles

Linear Algebra & Geometry why is linear algebra useful in computer vision?

DEFINITION AND CLASSIFICATION OF FORCES

Directional Derivatives and the Gradient

SYSTEM OF CIRCLES If d is the distance between the centers of two intersecting circles with radii r 1, r 2 and θ is the

Exercises for Unit I I (Vector algebra and Euclidean geometry)

1 The theoretical constructions

Math 234. What you should know on day one. August 28, You should be able to use general principles like. x = cos t, y = sin t, 0 t π.

DISCRETE DIFFERENTIAL GEOMETRY: AN APPLIED INTRODUCTION Keenan Crane CMU /858B Fall 2017

v = v 1 2 +v 2 2. Two successive applications of this idea give the length of the vector v R 3 :

UNIT 1: SIMILARITY, CONGRUENCE, AND PROOFS. 1) Figure A'B'C'D'F' is a dilation of figure ABCDF by a scale factor of 1. 2 centered at ( 4, 1).

Gauss Law. In this chapter, we return to the problem of finding the electric field for various distributions of charge.

CHAPTER 4 VECTORS. Before we go any further, we must talk about vectors. They are such a useful tool for

Essential Mathematics for Computer Graphics

Transcription:

The Inner Product (Many slides adapted from Octaia Camps and Amitabh Varshney) Much of material in Appendix A Goals Remember the inner product See that it represents distance in a specific direction. Use this to represent lines and planes. Use this to represent half-spaces. 1

Ordered set of numbers: (1,2,3,4) Example: (x,y,z) coordinates of pt in space. Vectors If ( x 1, x n i 1, 2 x i 2 1, is a, x n ) unit ector Vector Addition w ( x 1, x2) ( y1, y2) ( x1 y1, x2 y2) L 8 M M 2

Scalar Product a a( x1, x2) ( ax1, ax2) L =L Inner (dot) Product L M. w ( x1, x2).( y1, y2) x1 y1 x2. y2 The inner product is a SCALAR!. w 2 ( x1, x2).( y1, y ) w cos. w 0 w 3

First, we note that if we scale a ector, we scale its inner product. That is, <s,w> = s<,w>. This follows pretty directly from the definition. This means that the statement <,w> = w cos(alpha) is true if and only if it is the case that when and w are unit ectors, <,w> = cos(alpha), because: <,w> = <(/ ),(w/ w )> w. So from now on, we can assume that w, are unit ector. Then, as an example, we can consider the case where w = (1,0). It follows from the definition of cosine that <,w> = cos(alpha). We can also see that taking <,(1,0)> and <,(0,1)> produces the (x,y) coordinates of. That is, if (1,0) and (0,1) are an orthonormal basis, taking inner products with them gies the coordinates of a point relatie to that basis. This is why the inner product is so useful. We just hae to show that this is true for any orthonormal basis, not just (1,0) and (0,1). How do we proe these properties of the inner product? Let s start with the fact that orthogonal ectors hae 0 inner product. Suppose one ector is (x,y), and WLOG x,y>0. Then, if we rotate that by 90 degrees counterclockwise, we ll get (y, -x). Rotating the ector is just like rotating the coordinate system in the opposite direction. And (x,y)*(y,-x) = xy yx = 0. Next, note that if w1 + w2 = w, then *w = *(w1+w2) = *w1 + *w2. For any w, we can write it as the sum of w1+w2, where w1 is perpendicular to, and w2 is in the same direction as. So *w1 = 0. *w2 = w2, since *w2/ w2 = 1. Then, if we just draw a picture, we can see that cos alpha = w2 = *w2 = *w. Inner product and direction w This tells us that if is a unit ector (and w isn t) that <,w> = w cos This is the projection of w onto. It means that to get to w, we go a distance of <,w> in the direction, and then some distance in a direction orthogonal to. 4

p c, p c 2D Lines p x, y a, b ax by c Consider any line. Suppose =(a,b) is a unit ector in the direction orthogonal to it. Then we can describe any point, p=(x,y), on the line by saying we go a fixed distance c in the direction, and then some distance orthogonal to. So, <,p> = c and the equation for a line is: ax+by=c 2D Half-spaces c A line diides the plane in two hales. If we go less than c in the direction, we are in one halfspace. More than c, we cross the line and enter the other half space. So a half-space is defined by: ax+by < c 5

Implicit Equation of a Plane n n, p d p dn p x, y, z n a, b, c ax by cz d Likewise, we reach any point in a plane by going a distance d in a direction n=(a,b,c) that is perpendicular to it, and then moing within the plane. n is orthogonal to any ector in the plane. Normal of a Plane Plane: sum of a point and two ectors P = P 1 + u + P - P 1 = u + If n is orthogonal to u and (n = u ) : n T P - P 1 ) = n T u + n T = 0 n P 1 P 1 u u 6

The Cross-Product (a,b,c)x(d,e,f) = (bf-ce, cd af, ae-bd) Verify <(a,b,c)x(d,e,f), (a,b,c)> = (abf-ace+bcd-baf+cae-cbd) = 0. Similar for <(a,b,c)x(d,e,f), (d,e,f)> Direction obeys right-hand rule. Length x w = w sin 3D Half-spaces Similar to 2D with lines. Plane diides space into two parts. In one part, we go less than d in direction n, in other part we go more than d. ax + by + cd < d, ax + by + cz > d 7

3D Lines There are two direction orthogonal to line. Moe some amount in each direction to get to line, then any amount in 3 rd direction orthogonal to both of these. a1x + b1y + c1z = d1 & a2x + b2y + c2z = d2 (Two equations with three unknowns). Equialently, a line is the intersection of two planes. Or: start at some point, p=(x0,y0,z0), on the line, and moe in the tangent direction (a,b,c) by some distance t: (x,y,z) = (x0, y0, z0) + t(a,b,c) (Three equations with four unknowns. Points Using these facts, we can represent points. Note: (x,y,z) = x(1,0,0) + y(0,1,0) + z(0,0,1) x = (x,y,z).(1,0,0) z = (x,y,z).(0,0,1) y = (x,y,z).(0,1,0) 8