Vector and Affine Math

Size: px
Start display at page:

Download "Vector and Affine Math"

Transcription

1 Vector and Affine Math Computer Science Department The Universit of Teas at Austin

2 Vectors A vector is a direction and a magnitude Does NOT include a point of reference Usuall thought of as an arrow in space Vectors can be added together and multiplied b scalars Zero vector has no length or direction

3 Vector Spaces Set of vectors Closed under the following operations Vector addition: v + v 2 = v 3 Scalar multiplication: s v = v 2 Linear combinations: Scalars come from some field F e.g. real or comple numbers Linear independence Basis Dimension n i= a i v = v i

4 Vector Space Aioms Vector addition is associative and commutative Vector addition has a unique) identit element the 0 vector) Each vector has an additive inverse So we can define vector subtraction as adding an inverse Scalar multiplication has an identit element ) Scalar multiplication distributes over vector addition and field addition Multiplications are compatible abv)=ab)v)

5 Coordinate Representation Pick a basis, order the vectors in it, then all vectors in the space can be represented as sequences of coordinates, i.e. coefficients of the basis vectors, in order. Eample: Cartesian 3-space Basis: [i j k] Linear combination: i + j + zk Coordinate representation: [ z] a [ z] + b[ 2 2 z2] = [ a + b2 a + b2 az + bz2]

6 Row and Column Vectors We can represent a vector, v =,), in the plane as a column vector as a row vector [ ]

7 Linear Transformations Given vector spaces V and W A function f :V W is a linear map or linear transformation if f a v a m v m ) = a f v ) a m f v m )

8 Transformation Representation We can represent a 2-D transformation M b a matri M = a b c d If v is a column vector, M goes on the left: If v is a row vector, M T goes on the right: We will use column vectors.!!!! v = Mv = a b c d v = vm T = a b c d

9 Two-dimensional transformations Heres all ou get with a 2 2 transformation matri M: = a b c d So: = a + b = c + d We will develop some intimac with the elements a, b, c, d

10 Identit Suppose we choose a=d=, b=c=0: Gives the identit matri: 0 0 Doesnt change anthing

11 Scaling Suppose b=c=0, but let a and d take on an positive value: Gives a scaling matri: a 0 0 d 2 2 Provides differential non-uniform) scaling in and : = a = d

12 Reflection Suppose b=c=0, but let either a or d go negative. Eamples:

13 Shear Now leave a=d= and eperiment with b The matri b 0 gives: = + b = 0

14 Effect on unit square Lets see how a general 2 2 transformation M affects the unit square: a c b p q r s d [ ] = [ p q r s ] a b 0 0 = 0 a a + b b c d c c + d d s r p q

15 Effect on unit square, cont. Observe: Origin invariant under M M can be determined just b knowing how the corners,0) and 0,) are mapped a and d give - and -scaling b and c give - and -shearing

16 Rotation From our observations of the effect on the unit square, it should be eas to write down a matri for rotation about the origin : cosθ) 0 sinθ) 0 sinθ) cosθ) Thus M R = Rθ) = cosθ) sinθ) sinθ) ) cosθ)

17 Linear transformations The unit square observations also tell us the 22 matri transformation implies that we are representing a vector in a new coordinate sstem: v = Mv! = a b c d =! u w where u=[a c] T and w=[b d] T are vectors that define a new basis for a linear space. The transformation to this new basis a.k.a., change of basis) is a linear transformation.!! = u + w

18 Limitations of the 2 2 matri A 2 2 linear transformation matri allows Scaling Rotation Reflection Shearing Q: What important operation does that leave out?

19 Points A point is a location in space Cannot be added or multiplied together Subtract two points to get the vector between them Points are not vectors

20 Affine transformations In order to incorporate the idea that both the basis and the origin can change, we augment the linear space u, w with an origin t. Note that while u and w are basis vectors, the origin t is a point. We call u, w, and t basis and origin) a frame for an affine space. Then, we can represent a change of frame as: p! = u + w + t This change of frame is also known as an affine transformation. How do we write an affine transformation with matrices?

21 Basic Vector Arithmetic! u = r s t! v = z! u + v = r + s + t + z! av = a a az v = z 2 normv) = v v

22 Parametric line segment Or line, or ra, or just linear interpolation p = p 0 + tp p 0 ) = t)p 0 + tp! z! = 0 0 z 0! + t 0 0 z z 0! = t) 0 + t t) 0 + t t)z 0 + tz Line segment Ra Line 0 t 0 t t

23 Vector dot product u v = r + s + tz = u v cosφ)

24 Projection Projection u component parallel to v) w = u v v v v Rejection u component orthogonal to v) u w Particularl useful when vectors are normalized

25 Cross product w = u v = i j k r s t z w is orthogonal to u and v w = u v sinφ) w area of parallelogram use right-hand rule u v = v u) = u v) w u v w) sz t t rz r s

26 Determinants a b c d = ad bc a b c d e f g h i = a e f h i b d f g i + c d e g h = aei afh + bfg bdi + cdh ceg detm T ) = detm) detab) = deta)detb) if detm) = 0, M is singular, has no inverse

27 Plane equation Given normal vector N orthogonal to the plane and an point p in the plane N p + d = 0! a b c For a triangle! N = normv 2 v 0 ) v v 0 )) Order matters, usuall CCW z + d = a + b + cz + d = 0

28 Homogeneous Coordinates To represent transformations among affine frames, we can loft the problem up into 3-space, adding a third component to ever point: p! = Mp = a b t c d t 0 0 = u w t = u + w + t Note that [a c 0] T and [b d 0] T represent vectors and [t t ] T, [ ] T and [ ] T represent points.

29 Homogeneous coordinates This allows us to perform translation as well as the linear transformations as a matri operation: p = M T p 0 t = 0 t 0 0 = + t = + t

30 Rotation about arbitrar points Until now, we have onl considered rotation about the origin. With homogeneous coordinates, ou can specif a rotation, R q, about an point q = [q q ] T with a matri: q θ. Translate q to origin 2. Rotate 3. Translate back Line up the matrices for these step in right to left order and multipl. Note: Transformation order is important!!

31 Points and vectors From now on, we can represent points as have an additional coordinate of w=. Vectors have an additional coordinate of w=0. Thus, a change of origin has no effect on vectors. Q: What happens if we multipl a matri b a vector? These representations reflect some of the rules of affine operations on points and vectors: vector + vector vector vector point point point + vector point + point One useful combination of affine operations is: pt) = p 0 + tv Q: What does this describe?

32 Barcentric coordinates A set of points can be used to create an affine frame. Consider a triangle ABC and a point p: A p C B We can form a frame with an origin C and the vectors from C to the other vertices: u = A C v = B C t = C We can then write P in this coordinate frame p = αu + βv + t The coordinates α, β, γ) are called the barcentric coordinates of p relative to A, B, and C.

33 Computing barcentric coordinates For the triangle eample we can compute the barcentric coordinates of P: α Cramer s rule gives the solution: A B C p * * * α A + βb + γc = A B C * β * = p * )* γ )* )* p B C A p C A B p α = p B C A B C β = A p C A B C γ = A B p A B C A B C A B C A B C Computing the determinant of the denominator gives: B C B C + A C A C + A B A B

34 Cross products Consider the cross-product of two vectors, u and v. What is the geometric interpretation of this cross-product? A cross-product can be computed as: u v = i j k u u u z v v v z = u v z u z v )i + u z v u v z )j + u v u v )k u v z u z v ) = u z v u v z ) u v u v ) What happens when u and v lie in the - plane? What is the area of the triangle the span?

35 Barcentric coords from area ratios Now, let s rearrange the equation from two slides ago: B C B C + A C A C + A B A B = B A )C A ) B A )C A ) The determinant is then just the z-component of B-A) C-A), which is two times the area of triangle ABC! Thus, we find: α = SAreapBC) SAreaABC) β = SAreaApC) SAreaABC) γ = SAreaABp) SAreaABC) Where SAreaRST) is the signed area of a triangle, which can be computed with cross-products.

36 Affine and conve combinations Note that we seem to have added points together, which we said was illegal, but as long as the have coefficients that sum to one, it s ok. We call this an affine combination. More generall is a proper affine combination if: n i= α = i p = α p + + α n p n Note that if the α i s are all positive, the result is more specificall called a conve combination. Q: Wh is it called a conve combination?

37 Basic 3-D transformations: scaling Some of the 3-D transformations are just like the 2-D ones. For eample, scaling: z z z = s s s z z

38 Translation in 3D z z z = 0 0 t 0 0 t 0 0 t z z

39 Rotation in 3D Rotation now has more possibilities in 3D: ) 0 cosθ) sinθ) 0 R θ) = ) 0 sinθ) cosθ) 0) ) cosθ) 0 sinθ) 0 ) R θ) = ) sinθ) 0 cosθ) 0) ) cosθ) sinθ) 0 0 ) sinθ) cosθ) 0 0 R z θ) = ) 0 0 0) ) z R z R R Use right hand rule

40 Shearing in 3D Shearing is also more complicated. Here is one eample: We call this a shear with respect to the -z plane. z z z = b z

41 Preservation of affine combinations A transformation F is an affine transformation if it preserves affine combinations: where the p i are points, and: Fα p + + α n p n ) = α Fp ) + + α n Fp n ) i= = Clearl, the matri form of F has this propert. One special eample is a matri that drops a dimension. For eample: This transformation, known as an orthographic projection, is an affine transformation. We ll use this fact later n α = z i

42 Properties of affine transformations Here are some useful properties of affine transformations: Lines map to lines Parallel lines remain parallel Midpoints map to midpoints in fact, ratios are alwas preserved) s p : t q r s p q : t r! ratio = pq qr = s t = p q q r

43 Net Lecture More Math and Transforms

44 Programming tips 3D graphics, whether OpenGL or Direct3D or an other API, can be frustrating You write a bunch of code and the result is Nothing but black window; where did our rendering go??

45 Things to Tr Set our clear color to something other than black! It is eas to draw things black accidentall so don t make black the clear color But black is the initial clear color Did ou draw something for one frame, but the net frame draws nothing? Are ou using depth buffering? Did ou forget to clear the depth buffer? Remember there are near and far clip planes so clipping in Z, not just X Y Have ou checked for glgeterror? Call glgeterror once per frame while debugging so ou can see errors that occur For release code, take out the glgeterror calls Not sure what state ou are in? Use glgetintegerv or glgetfloatv or other quer functions to make sure that OpenGL s state is what ou think it is Use glutswapbuffers to flush our rendering and show to the visible window Likewise glfinish makes sure all pending commands have finished Tr reading This is well worth the time wasted debugging a problem that could be avoided

46 Thanks Material for these slides provided b Christian Miller

Reading. 4. Affine transformations. Required: Watt, Section 1.1. Further reading:

Reading. 4. Affine transformations. Required: Watt, Section 1.1. Further reading: Reading Required: Watt, Section.. Further reading: 4. Affine transformations Fole, et al, Chapter 5.-5.5. David F. Rogers and J. Alan Adams, Mathematical Elements for Computer Graphics, 2 nd Ed., McGraw-Hill,

More information

Affine transformations

Affine transformations Reading Required: Affine transformations Brian Curless CSE 557 Fall 2009 Shirle, Sec. 2.4, 2.7 Shirle, Ch. 5.-5.3 Shirle, Ch. 6 Further reading: Fole, et al, Chapter 5.-5.5. David F. Rogers and J. Alan

More information

Affine transformations

Affine transformations Reading Optional reading: Affine transformations Brian Curless CSE 557 Autumn 207 Angel and Shreiner: 3., 3.7-3. Marschner and Shirle: 2.3, 2.4.-2.4.4, 6..-6..4, 6.2., 6.3 Further reading: Angel, the rest

More information

Affine transformations. Brian Curless CSE 557 Fall 2014

Affine transformations. Brian Curless CSE 557 Fall 2014 Affine transformations Brian Curless CSE 557 Fall 2014 1 Reading Required: Shirle, Sec. 2.4, 2.7 Shirle, Ch. 5.1-5.3 Shirle, Ch. 6 Further reading: Fole, et al, Chapter 5.1-5.5. David F. Rogers and J.

More information

CS 378: Computer Game Technology

CS 378: Computer Game Technology CS 378: Computer Game Technolog 3D Engines and Scene Graphs Spring 202 Universit of Teas at Austin CS 378 Game Technolog Don Fussell Representation! We can represent a point, p =,), in the plane! as a

More information

CS 354R: Computer Game Technology

CS 354R: Computer Game Technology CS 354R: Computer Game Technolog Transformations Fall 207 Universit of Teas at Austin CS 354R Game Technolog S. Abraham Transformations What are the? Wh should we care? Universit of Teas at Austin CS 354R

More information

Reading. Affine transformations. Vector representation. Geometric transformations. x y z. x y. Required: Angel 4.1, Further reading:

Reading. Affine transformations. Vector representation. Geometric transformations. x y z. x y. Required: Angel 4.1, Further reading: Reading Required: Angel 4.1, 4.6-4.10 Further reading: Affine transformations Angel, the rest of Chapter 4 Fole, et al, Chapter 5.1-5.5. David F. Rogers and J. Alan Adams, Mathematical Elements for Computer

More information

Affine transformations

Affine transformations Reading Required: Affine transformations Brian Curless CSEP 557 Fall 2016 Angel 3.1, 3.7-3.11 Further reading: Angel, the rest of Chapter 3 Fole, et al, Chapter 5.1-5.5. David F. Rogers and J. Alan Adams,

More information

2D Geometric Transformations. (Chapter 5 in FVD)

2D Geometric Transformations. (Chapter 5 in FVD) 2D Geometric Transformations (Chapter 5 in FVD) 2D geometric transformation Translation Scaling Rotation Shear Matri notation Compositions Homogeneous coordinates 2 2D Geometric Transformations Question:

More information

CS 4300 Computer Graphics. Prof. Harriet Fell Fall 2011 Lecture 11 September 29, 2011

CS 4300 Computer Graphics. Prof. Harriet Fell Fall 2011 Lecture 11 September 29, 2011 CS 4300 Computer Graphics Prof. Harriet Fell Fall 2011 Lecture 11 September 29, 2011 October 8, 2011 College of Computer and Information Science, Northeastern Universit 1 Toda s Topics Linear Algebra Review

More information

Computer Graphics: 2D Transformations. Course Website:

Computer Graphics: 2D Transformations. Course Website: Computer Graphics: D Transformations Course Website: http://www.comp.dit.ie/bmacnamee 5 Contents Wh transformations Transformations Translation Scaling Rotation Homogeneous coordinates Matri multiplications

More information

Linear and affine transformations

Linear and affine transformations Linear and affine transformations Linear Algebra Review Matrices Transformations Affine transformations in Euclidean space 1 The linear transformation given b a matri Let A be an mn matri. The function

More information

Chapter 8. Rigid transformations

Chapter 8. Rigid transformations Chapter 8. Rigid transformations We are about to start drawing figures in 3D. There are no built-in routines for this purpose in PostScript, and we shall have to start more or less from scratch in extending

More information

Graphics Example: Type Setting

Graphics Example: Type Setting D Transformations Graphics Eample: Tpe Setting Modern Computerized Tpesetting Each letter is defined in its own coordinate sstem And positioned on the page coordinate sstem It is ver simple, m she thought,

More information

Some linear transformations on R 2 Math 130 Linear Algebra D Joyce, Fall 2013

Some linear transformations on R 2 Math 130 Linear Algebra D Joyce, Fall 2013 Some linear transformations on R 2 Math 3 Linear Algebra D Joce, Fall 23 Let s look at some some linear transformations on the plane R 2. We ll look at several kinds of operators on R 2 including reflections,

More information

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

Math 416, Spring 2010 More on Algebraic and Geometric Properties January 21, 2010 MORE ON ALGEBRAIC AND GEOMETRIC PROPERTIES Math 46, Spring 2 More on Algebraic and Geometric Properties January 2, 2 MORE ON ALGEBRAIC AND GEOMETRIC PROPERTIES Algebraic properties Algebraic properties of matrix/vector multiplication Last time

More information

M. Matrices and Linear Algebra

M. Matrices and Linear Algebra M. Matrices and Linear Algebra. Matrix algebra. In section D we calculated the determinants of square arrays of numbers. Such arrays are important in mathematics and its applications; they are called matrices.

More information

Lecture 5. Equations of Lines and Planes. Dan Nichols MATH 233, Spring 2018 University of Massachusetts.

Lecture 5. Equations of Lines and Planes. Dan Nichols MATH 233, Spring 2018 University of Massachusetts. Lecture 5 Equations of Lines and Planes Dan Nichols nichols@math.umass.edu MATH 233, Spring 2018 Universit of Massachusetts Februar 6, 2018 (2) Upcoming midterm eam First midterm: Wednesda Feb. 21, 7:00-9:00

More information

we must pay attention to the role of the coordinate system w.r.t. which we perform a tform

we must pay attention to the role of the coordinate system w.r.t. which we perform a tform linear SO... we will want to represent the geometr of points in space we will often want to perform (rigid) transformations to these objects to position them translate rotate or move them in an animation

More information

4.1 Distance and Length

4.1 Distance and Length Chapter Vector Geometry In this chapter we will look more closely at certain geometric aspects of vectors in R n. We will first develop an intuitive understanding of some basic concepts by looking at vectors

More information

CS 335 Graphics and Multimedia. 2D Graphics Primitives and Transformation

CS 335 Graphics and Multimedia. 2D Graphics Primitives and Transformation C 335 Graphics and Multimedia D Graphics Primitives and Transformation Basic Mathematical Concepts Review Coordinate Reference Frames D Cartesian Reference Frames (a) (b) creen Cartesian reference sstems

More information

Introduction to 3D Game Programming with DirectX 9.0c: A Shader Approach

Introduction to 3D Game Programming with DirectX 9.0c: A Shader Approach Introduction to 3D Game Programming with DirectX 90c: A Shader Approach Part I Solutions Note : Please email to frank@moon-labscom if ou find an errors Note : Use onl after ou have tried, and struggled

More information

Mathematical Foundations: Intro

Mathematical Foundations: Intro Mathematical Foundations: Intro Graphics relies on 3 basic objects: 1. Scalars 2. Vectors 3. Points Mathematically defined in terms of spaces: 1. Vector space 2. Affine space 3. Euclidean space Math required:

More information

Introduction to Vector Spaces Linear Algebra, Spring 2011

Introduction to Vector Spaces Linear Algebra, Spring 2011 Introduction to Vector Spaces Linear Algebra, Spring 2011 You probabl have heard the word vector before, perhaps in the contet of Calculus III or phsics. You probabl think of a vector like this: 5 3 or

More information

ES.1803 Topic 16 Notes Jeremy Orloff

ES.1803 Topic 16 Notes Jeremy Orloff ES803 Topic 6 Notes Jerem Orloff 6 Eigenalues, diagonalization, decoupling This note coers topics that will take us seeral classes to get through We will look almost eclusiel at 2 2 matrices These hae

More information

LESSON 35: EIGENVALUES AND EIGENVECTORS APRIL 21, (1) We might also write v as v. Both notations refer to a vector.

LESSON 35: EIGENVALUES AND EIGENVECTORS APRIL 21, (1) We might also write v as v. Both notations refer to a vector. LESSON 5: EIGENVALUES AND EIGENVECTORS APRIL 2, 27 In this contet, a vector is a column matri E Note 2 v 2, v 4 5 6 () We might also write v as v Both notations refer to a vector (2) A vector can be man

More information

we must pay attention to the role of the coordinate system w.r.t. which we perform a tform

we must pay attention to the role of the coordinate system w.r.t. which we perform a tform linear SO... we will want to represent the geometr of points in space we will often want to perform (rigid) transformations to these objects to position them translate rotate or move them in an animation

More information

Math Linear Algebra Final Exam Review Sheet

Math Linear Algebra Final Exam Review Sheet Math 15-1 Linear Algebra Final Exam Review Sheet Vector Operations Vector addition is a component-wise operation. Two vectors v and w may be added together as long as they contain the same number n of

More information

A Primer on Solving Systems of Linear Equations

A Primer on Solving Systems of Linear Equations A Primer on Solving Systems of Linear Equations In Signals and Systems, as well as other subjects in Unified, it will often be necessary to solve systems of linear equations, such as x + 2y + z = 2x +

More information

Vector Geometry. Chapter 5

Vector Geometry. Chapter 5 Chapter 5 Vector Geometry In this chapter we will look more closely at certain geometric aspects of vectors in R n. We will first develop an intuitive understanding of some basic concepts by looking at

More information

Two conventions for coordinate systems. Left-Hand vs Right-Hand. x z. Which is which?

Two conventions for coordinate systems. Left-Hand vs Right-Hand. x z. Which is which? walters@buffalo.edu CSE 480/580 Lecture 2 Slide 3-D Transformations 3-D space Two conventions for coordinate sstems Left-Hand vs Right-Hand (Thumb is the ais, inde is the ais) Which is which? Most graphics

More information

Physically Based Rendering ( ) Geometry and Transformations

Physically Based Rendering ( ) Geometry and Transformations Phsicall Based Rendering (6.657) Geometr and Transformations 3D Point Specifies a location Origin 3D Point Specifies a location Represented b three coordinates Infinitel small class Point3D { public: Coordinate

More information

( ) ( ) ( ) ( ) TNM046: Datorgrafik. Transformations. Linear Algebra. Linear Algebra. Sasan Gooran VT Transposition. Scalar (dot) product:

( ) ( ) ( ) ( ) TNM046: Datorgrafik. Transformations. Linear Algebra. Linear Algebra. Sasan Gooran VT Transposition. Scalar (dot) product: TNM046: Datorgrafik Transformations Sasan Gooran VT 04 Linear Algebra ( ) ( ) =,, 3 =,, 3 Transposition t = 3 t = 3 Scalar (dot) product: Length (Norm): = t = + + 3 3 = = + + 3 Normaliation: ˆ = Linear

More information

CSC 470 Introduction to Computer Graphics. Mathematical Foundations Part 2

CSC 470 Introduction to Computer Graphics. Mathematical Foundations Part 2 CSC 47 Introduction to Computer Graphics Mathematical Foundations Part 2 Vector Magnitude and Unit Vectors The magnitude (length, size) of n-vector w is written w 2 2 2 w = w + w2 + + w n Example: the

More information

(arrows denote positive direction)

(arrows denote positive direction) 12 Chapter 12 12.1 3-dimensional Coordinate System The 3-dimensional coordinate system we use are coordinates on R 3. The coordinate is presented as a triple of numbers: (a,b,c). In the Cartesian coordinate

More information

Mathematics 309 Conic sections and their applicationsn. Chapter 2. Quadric figures. ai,j x i x j + b i x i + c =0. 1. Coordinate changes

Mathematics 309 Conic sections and their applicationsn. Chapter 2. Quadric figures. ai,j x i x j + b i x i + c =0. 1. Coordinate changes Mathematics 309 Conic sections and their applicationsn Chapter 2. Quadric figures In this chapter want to outline quickl how to decide what figure associated in 2D and 3D to quadratic equations look like.

More information

Review of Coordinate Systems

Review of Coordinate Systems Vector in 2 R and 3 R Review of Coordinate Systems Used to describe the position of a point in space Common coordinate systems are: Cartesian Polar Cartesian Coordinate System Also called rectangular coordinate

More information

COMP 175 COMPUTER GRAPHICS. Lecture 04: Transform 1. COMP 175: Computer Graphics February 9, Erik Anderson 04 Transform 1

COMP 175 COMPUTER GRAPHICS. Lecture 04: Transform 1. COMP 175: Computer Graphics February 9, Erik Anderson 04 Transform 1 Lecture 04: Transform COMP 75: Computer Graphics February 9, 206 /59 Admin Sign up via email/piazza for your in-person grading Anderson@cs.tufts.edu 2/59 Geometric Transform Apply transforms to a hierarchy

More information

REVISION SHEET FP2 (MEI) CALCULUS. x x 0.5. x x 1.5. π π. Standard Calculus of Inverse Trig and Hyperbolic Trig Functions = + = + arcsin x = +

REVISION SHEET FP2 (MEI) CALCULUS. x x 0.5. x x 1.5. π π. Standard Calculus of Inverse Trig and Hyperbolic Trig Functions = + = + arcsin x = + the Further Mathematics network www.fmnetwork.org.uk V 07 REVISION SHEET FP (MEI) CALCULUS The main ideas are: Calculus using inverse trig functions & hperbolic trig functions and their inverses. Maclaurin

More information

Vectors and Matrices

Vectors and Matrices Vectors and Matrices Scalars We often employ a single number to represent quantities that we use in our daily lives such as weight, height etc. The magnitude of this number depends on our age and whether

More information

k is a product of elementary matrices.

k is a product of elementary matrices. Mathematics, Spring Lecture (Wilson) Final Eam May, ANSWERS Problem (5 points) (a) There are three kinds of elementary row operations and associated elementary matrices. Describe what each kind of operation

More information

Lecture 5 3D polygonal modeling Part 1: Vector graphics Yong-Jin Liu.

Lecture 5 3D polygonal modeling Part 1: Vector graphics Yong-Jin Liu. Fundamentals of Computer Graphics Lecture 5 3D polygonal modeling Part 1: Vector graphics Yong-Jin Liu liuyongjin@tsinghua.edu.cn Material by S.M.Lea (UNC) Introduction In computer graphics, we work with

More information

Final Review Sheet. B = (1, 1 + 3x, 1 + x 2 ) then 2 + 3x + 6x 2

Final Review Sheet. B = (1, 1 + 3x, 1 + x 2 ) then 2 + 3x + 6x 2 Final Review Sheet The final will cover Sections Chapters 1,2,3 and 4, as well as sections 5.1-5.4, 6.1-6.2 and 7.1-7.3 from chapters 5,6 and 7. This is essentially all material covered this term. Watch

More information

Vectors and matrices: matrices (Version 2) This is a very brief summary of my lecture notes.

Vectors and matrices: matrices (Version 2) This is a very brief summary of my lecture notes. Vectors and matrices: matrices (Version 2) This is a very brief summary of my lecture notes Matrices and linear equations A matrix is an m-by-n array of numbers A = a 11 a 12 a 13 a 1n a 21 a 22 a 23 a

More information

ENR202 Mechanics of Materials Lecture 12B Slides and Notes

ENR202 Mechanics of Materials Lecture 12B Slides and Notes ENR0 Mechanics of Materials Lecture 1B Slides and Notes Slide 1 Copright Notice Do not remove this notice. COMMMONWEALTH OF AUSTRALIA Copright Regulations 1969 WARNING This material has been produced and

More information

CSE 167: Introduction to Computer Graphics Lecture #2: Linear Algebra Primer

CSE 167: Introduction to Computer Graphics Lecture #2: Linear Algebra Primer CSE 167: Introduction to Computer Graphics Lecture #2: Linear Algebra Primer Jürgen P. Schulze, Ph.D. University of California, San Diego Spring Quarter 2016 Announcements Project 1 due next Friday at

More information

15. Eigenvalues, Eigenvectors

15. Eigenvalues, Eigenvectors 5 Eigenvalues, Eigenvectors Matri of a Linear Transformation Consider a linear ( transformation ) L : a b R 2 R 2 Suppose we know that L and L Then c d because of linearit, we can determine what L does

More information

Rigid Body Transforms-3D. J.C. Dill transforms3d 27Jan99

Rigid Body Transforms-3D. J.C. Dill transforms3d 27Jan99 ESC 489 3D ransforms 1 igid Bod ransforms-3d J.C. Dill transforms3d 27Jan99 hese notes on (2D and) 3D rigid bod transform are currentl in hand-done notes which are being converted to this file from that

More information

Lecture 8: Coordinate Frames. CITS3003 Graphics & Animation

Lecture 8: Coordinate Frames. CITS3003 Graphics & Animation Lecture 8: Coordinate Frames CITS3003 Graphics & Animation E. Angel and D. Shreiner: Interactive Computer Graphics 6E Addison-Wesley 2012 Objectives Learn how to define and change coordinate frames Introduce

More information

Linear Algebra Homework and Study Guide

Linear Algebra Homework and Study Guide Linear Algebra Homework and Study Guide Phil R. Smith, Ph.D. February 28, 20 Homework Problem Sets Organized by Learning Outcomes Test I: Systems of Linear Equations; Matrices Lesson. Give examples of

More information

CSE 167: Introduction to Computer Graphics Lecture #2: Linear Algebra Primer

CSE 167: Introduction to Computer Graphics Lecture #2: Linear Algebra Primer CSE 167: Introduction to Computer Graphics Lecture #2: Linear Algebra Primer Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016 Announcements Monday October 3: Discussion Assignment

More information

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

Matrices Gaussian elimination Determinants. Graphics 2009/2010, period 1. Lecture 4: matrices Graphics 2009/2010, period 1 Lecture 4 Matrices m n matrices Matrices Definitions Diagonal, Identity, and zero matrices Addition Multiplication Transpose and inverse The system of m linear equations in

More information

Notes on multivariable calculus

Notes on multivariable calculus Notes on multivariable calculus Jonathan Wise February 2, 2010 1 Review of trigonometry Trigonometry is essentially the study of the relationship between polar coordinates and Cartesian coordinates in

More information

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

CHAPTER 4 VECTORS. Before we go any further, we must talk about vectors. They are such a useful tool for CHAPTER 4 VECTORS Before we go any further, we must talk about vectors. They are such a useful tool for the things to come. The concept of a vector is deeply rooted in the understanding of physical mechanics

More information

Vectors Year 12 Term 1

Vectors Year 12 Term 1 Vectors Year 12 Term 1 1 Vectors - A Vector has Two properties Magnitude and Direction - A vector is usually denoted in bold, like vector a, or a, or many others. In 2D - a = xı + yȷ - a = x, y - where,

More information

Mathematics for 3D Graphics

Mathematics for 3D Graphics math 1 Topics Mathematics for 3D Graphics math 1 Points, Vectors, Vertices, Coordinates Dot Products, Cross Products Lines, Planes, Intercepts References Many texts cover the linear algebra used for 3D

More information

11.4 Polar Coordinates

11.4 Polar Coordinates 11. Polar Coordinates 917 11. Polar Coordinates In Section 1.1, we introduced the Cartesian coordinates of a point in the plane as a means of assigning ordered pairs of numbers to points in the plane.

More information

GEOMETRY AND VECTORS

GEOMETRY AND VECTORS GEOMETRY AND VECTORS Distinguishing Between Points in Space One Approach Names: ( Fred, Steve, Alice...) Problem: distance & direction must be defined point-by-point More elegant take advantage of geometry

More information

The Force Table Introduction: Theory:

The Force Table Introduction: Theory: 1 The Force Table Introduction: "The Force Table" is a simple tool for demonstrating Newton s First Law and the vector nature of forces. This tool is based on the principle of equilibrium. An object is

More information

Introduction. Introduction (2) Easy Problems for Vectors 7/13/2011. Chapter 4. Vector Tools for Graphics

Introduction. Introduction (2) Easy Problems for Vectors 7/13/2011. Chapter 4. Vector Tools for Graphics Introduction Chapter 4. Vector Tools for Graphics In computer graphics, we work with objects defined in a three dimensional world (with 2D objects and worlds being just special cases). All objects to be

More information

Section 10.7 The Cross Product

Section 10.7 The Cross Product 44 Section 10.7 The Cross Product Objective #0: Evaluating Determinants. Recall the following definition for determinants: Determinants a The determinant for matrix 1 b 1 is denoted as a 1 b 1 a b a b

More information

Matrices. Ellen Kulinsky

Matrices. Ellen Kulinsky Matrices Ellen Kulinsky To learn the most (AKA become the smartest): Take notes. This is very important! I will sometimes tell you what to write down, but usually you will need to do it on your own. I

More information

SECTION 6.3: VECTORS IN THE PLANE

SECTION 6.3: VECTORS IN THE PLANE (Section 6.3: Vectors in the Plane) 6.18 SECTION 6.3: VECTORS IN THE PLANE Assume a, b, c, and d are real numbers. PART A: INTRO A scalar has magnitude but not direction. We think of real numbers as scalars,

More information

18.02 Multivariable Calculus Fall 2007

18.02 Multivariable Calculus Fall 2007 MIT OpenCourseWare http://ocw.mit.edu 18.02 Multivariable Calculus Fall 2007 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms. M. Matrices and Linear Algebra

More information

Honors Advanced Mathematics Determinants page 1

Honors Advanced Mathematics Determinants page 1 Determinants page 1 Determinants For every square matrix A, there is a number called the determinant of the matrix, denoted as det(a) or A. Sometimes the bars are written just around the numbers of the

More information

Definition: A vector is a directed line segment which represents a displacement from one point P to another point Q.

Definition: A vector is a directed line segment which represents a displacement from one point P to another point Q. THE UNIVERSITY OF NEW SOUTH WALES SCHOOL OF MATHEMATICS AND STATISTICS MATH Algebra Section : - Introduction to Vectors. You may have already met the notion of a vector in physics. There you will have

More information

Welcome to IB Math - Standard Level Year 2

Welcome to IB Math - Standard Level Year 2 Welcome to IB Math - Standard Level Year 2 Why math? Not So Some things to know: Good HW Good HW Good HW www.aleimath.blogspot.com Example 1. Lots of info at Example Example 2. HW yup. You know you love

More information

Math 3108: Linear Algebra

Math 3108: Linear Algebra Math 3108: Linear Algebra Instructor: Jason Murphy Department of Mathematics and Statistics Missouri University of Science and Technology 1 / 323 Contents. Chapter 1. Slides 3 70 Chapter 2. Slides 71 118

More information

Transformations. Chapter D Transformations Translation

Transformations. Chapter D Transformations Translation Chapter 4 Transformations Transformations between arbitrary vector spaces, especially linear transformations, are usually studied in a linear algebra class. Here, we focus our attention to transformation

More information

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET This is a (not quite comprehensive) list of definitions and theorems given in Math 1553. Pay particular attention to the ones in red. Study Tip For each

More information

Vector Basics, with Exercises

Vector Basics, with Exercises Math 230 Spring 09 Vector Basics, with Exercises This sheet is designed to follow the GeoGebra Introduction to Vectors. It includes a summary of some of the properties of vectors, as well as homework exercises.

More information

MATH 221: SOLUTIONS TO SELECTED HOMEWORK PROBLEMS

MATH 221: SOLUTIONS TO SELECTED HOMEWORK PROBLEMS MATH 221: SOLUTIONS TO SELECTED HOMEWORK PROBLEMS 1. HW 1: Due September 4 1.1.21. Suppose v, w R n and c is a scalar. Prove that Span(v + cw, w) = Span(v, w). We must prove two things: that every element

More information

Eigenvectors and Eigenvalues 1

Eigenvectors and Eigenvalues 1 Ma 2015 page 1 Eigenvectors and Eigenvalues 1 In this handout, we will eplore eigenvectors and eigenvalues. We will begin with an eploration, then provide some direct eplanation and worked eamples, and

More information

12.1 Systems of Linear equations: Substitution and Elimination

12.1 Systems of Linear equations: Substitution and Elimination . Sstems of Linear equations: Substitution and Elimination Sstems of two linear equations in two variables A sstem of equations is a collection of two or more equations. A solution of a sstem in two variables

More information

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

1.1 Single Variable Calculus versus Multivariable Calculus Rectangular Coordinate Systems... 4 MATH2202 Notebook 1 Fall 2015/2016 prepared by Professor Jenny Baglivo Contents 1 MATH2202 Notebook 1 3 1.1 Single Variable Calculus versus Multivariable Calculus................... 3 1.2 Rectangular Coordinate

More information

Vectors. Vector Practice Problems: Odd-numbered problems from

Vectors. Vector Practice Problems: Odd-numbered problems from Vectors Vector Practice Problems: Odd-numbered problems from 3.1-3.21 After today, you should be able to: Understand vector notation Use basic trigonometry in order to find the x and y components of a

More information

CS-184: Computer Graphics. Today

CS-184: Computer Graphics. Today CS-184: Computer Graphics Lecture #3: 2D Transformations Prof. James O Brien Universit of California, Berkele V2006-S-03-1.0 Toda 2D Transformations Primitive Operations Scale, Rotate, Shear, Flip, Translate

More information

14.1 Systems of Linear Equations in Two Variables

14.1 Systems of Linear Equations in Two Variables 86 Chapter 1 Sstems of Equations and Matrices 1.1 Sstems of Linear Equations in Two Variables Use the method of substitution to solve sstems of equations in two variables. Use the method of elimination

More information

MATRIX TRANSFORMATIONS

MATRIX TRANSFORMATIONS CHAPTER 5. MATRIX TRANSFORMATIONS INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW MATRIX TRANSFORMATIONS Matri Transformations Definition Let A and B be sets. A function f : A B

More information

ENGI 9420 Lecture Notes 2 - Matrix Algebra Page Matrix operations can render the solution of a linear system much more efficient.

ENGI 9420 Lecture Notes 2 - Matrix Algebra Page Matrix operations can render the solution of a linear system much more efficient. ENGI 940 Lecture Notes - Matrix Algebra Page.0. Matrix Algebra A linear system of m equations in n unknowns, a x + a x + + a x b (where the a ij and i n n a x + a x + + a x b n n a x + a x + + a x b m

More information

How to rotate a vector using a rotation matrix

How to rotate a vector using a rotation matrix How to rotate a vector using a rotation matrix One of the most useful operations in computer graphics is the rotation of a vector using a rotation matrix. I want to introduce the underlying idea of the

More information

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Linear Algebra /34

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Linear Algebra /34 Linear Algebra /34 Vectors A vector is a magnitude and a direction Magnitude = v Direction Also known as norm, length Represented by unit vectors (vectors with a length of 1 that point along distinct axes)

More information

Matrices. VCE Maths Methods - Unit 2 - Matrices

Matrices. VCE Maths Methods - Unit 2 - Matrices Matrices Introduction to matrices Addition & subtraction Scalar multiplication Matri multiplication The unit matri Matri division - the inverse matri Using matrices - simultaneous equations Matri transformations

More information

Euclidean Spaces. Euclidean Spaces. Chapter 10 -S&B

Euclidean Spaces. Euclidean Spaces. Chapter 10 -S&B Chapter 10 -S&B The Real Line: every real number is represented by exactly one point on the line. The plane (i.e., consumption bundles): Pairs of numbers have a geometric representation Cartesian plane

More information

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET This is a (not quite comprehensive) list of definitions and theorems given in Math 1553. Pay particular attention to the ones in red. Study Tip For each

More information

1 Last time: determinants

1 Last time: determinants 1 Last time: determinants Let n be a positive integer If A is an n n matrix, then its determinant is the number det A = Π(X, A)( 1) inv(x) X S n where S n is the set of n n permutation matrices Π(X, A)

More information

11.1 Vectors in the plane

11.1 Vectors in the plane 11.1 Vectors in the plane What is a vector? It is an object having direction and length. Geometric way to represent vectors It is represented by an arrow. The direction of the arrow is the direction of

More information

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

Linear Algebra & Geometry why is linear algebra useful in computer vision? Linear Algebra & Geometry why is linear algebra useful in computer vision? References: -Any book on linear algebra! -[HZ] chapters 2, 4 Some of the slides in this lecture are courtesy to Prof. Octavia

More information

Review Solutions for Exam 1

Review Solutions for Exam 1 Definitions Basic Theorems. Finish the definition: Review Solutions for Exam (a) A linear combination of vectors {v,..., v n } is: any vector of the form c v + c v + + c n v n (b) A set of vectors {v,...,

More information

Demonstrate solution methods for systems of linear equations. Show that a system of equations can be represented in matrix-vector form.

Demonstrate solution methods for systems of linear equations. Show that a system of equations can be represented in matrix-vector form. Chapter Linear lgebra Objective Demonstrate solution methods for sstems of linear equations. Show that a sstem of equations can be represented in matri-vector form. 4 Flowrates in kmol/hr Figure.: Two

More information

Section 1.2: A Catalog of Functions

Section 1.2: A Catalog of Functions Section 1.: A Catalog of Functions As we discussed in the last section, in the sciences, we often tr to find an equation which models some given phenomenon in the real world - for eample, temperature as

More information

Lecture 2: Vector-Vector Operations

Lecture 2: Vector-Vector Operations 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

More information

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

Solutions to Selected Questions from Denis Sevee s Vector Geometry. (Updated ) Solutions to Selected Questions from Denis Sevee s Vector Geometry. (Updated 24--27) Denis Sevee s Vector Geometry notes appear as Chapter 5 in the current custom textbook used at John Abbott College for

More information

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

Linear Algebra & Geometry why is linear algebra useful in computer vision? Linear Algebra & Geometry why is linear algebra useful in computer vision? References: -Any book on linear algebra! -[HZ] chapters 2, 4 Some of the slides in this lecture are courtesy to Prof. Octavia

More information

Vector Calculus Review

Vector Calculus Review Course Instructor Dr. Ramond C. Rumpf Office: A-337 Phone: (915) 747-6958 E-Mail: rcrumpf@utep.edu Vector Calculus Review EE3321 Electromagnetic Field Theor Outline Mathematical Preliminaries Phasors,

More information

Unit 12 Study Notes 1 Systems of Equations

Unit 12 Study Notes 1 Systems of Equations You should learn to: Unit Stud Notes Sstems of Equations. Solve sstems of equations b substitution.. Solve sstems of equations b graphing (calculator). 3. Solve sstems of equations b elimination. 4. Solve

More information

SINGLE MATHEMATICS B : Vectors Summary Notes

SINGLE MATHEMATICS B : Vectors Summary Notes Preprint typeset in JHEP style - HYPER VERSION SINGLE MATHEMATICS B : Vectors Summary Notes Ruth Gregory Abstract: These notes sum up all you need to know about the mathematics of vectors at this stage.

More information

Linear Equations in Linear Algebra

Linear Equations in Linear Algebra 1 Linear Equations in Linear Algebra 1.4 THE MATRIX EQUATION A = b MATRIX EQUATION A = b m n Definition: If A is an matri, with columns a 1, n, a n, and if is in, then the product of A and, denoted by

More information

6. Linear transformations. Consider the function. f : R 2 R 2 which sends (x, y) (x, y)

6. Linear transformations. Consider the function. f : R 2 R 2 which sends (x, y) (x, y) Consider the function 6 Linear transformations f : R 2 R 2 which sends (x, ) (, x) This is an example of a linear transformation Before we get into the definition of a linear transformation, let s investigate

More information

9.1 VECTORS. A Geometric View of Vectors LEARNING OBJECTIVES. = a, b

9.1 VECTORS. A Geometric View of Vectors LEARNING OBJECTIVES. = a, b vectors and POLAR COORDINATES LEARNING OBJECTIVES In this section, ou will: View vectors geometricall. Find magnitude and direction. Perform vector addition and scalar multiplication. Find the component

More information