Linear Algebra Review Part I: Geometry

Similar documents
Image Registration Lecture 2: Vectors and Matrices

LINEAR ALGEBRA KNOWLEDGE SURVEY

Mobile Robotics 1. A Compact Course on Linear Algebra. Giorgio Grisetti

Basic Linear Algebra. Florida State University. Acknowledgements: Daniele Panozzo. CAP Computer Graphics - Fall 18 Xifeng Gao

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

Introduction to Mobile Robotics Compact Course on Linear Algebra. Wolfram Burgard, Bastian Steder

Introduction to Mobile Robotics Compact Course on Linear Algebra. Wolfram Burgard, Cyrill Stachniss, Maren Bennewitz, Diego Tipaldi, Luciano Spinello

The value of a problem is not so much coming up with the answer as in the ideas and attempted ideas it forces on the would be solver I.N.

Maths for Signals and Systems Linear Algebra in Engineering

Linear Algebra (Review) Volker Tresp 2017

MATH 20F: LINEAR ALGEBRA LECTURE B00 (T. KEMP)

Applied Linear Algebra in Geoscience Using MATLAB

Linear Algebra (Review) Volker Tresp 2018

Introduction to Mobile Robotics Compact Course on Linear Algebra. Wolfram Burgard, Cyrill Stachniss, Kai Arras, Maren Bennewitz

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

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Linear Algebra /34

Matrix & Linear Algebra

Matrices and systems of linear equations

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Linear Algebra 1/33

Linear Algebra V = T = ( 4 3 ).

Linear Algebra Review

Matrices and Matrix Algebra.

Example Linear Algebra Competency Test

Lecture 4: Applications of Orthogonality: QR Decompositions

M. Matrices and Linear Algebra

1 Review of the dot product

MATH 310, REVIEW SHEET 2

Maths for Signals and Systems Linear Algebra for Engineering Applications

Lecture 11. Linear systems: Cholesky method. Eigensystems: Terminology. Jacobi transformations QR transformation

22A-2 SUMMER 2014 LECTURE Agenda

1 Linearity and Linear Systems

Review of Linear Algebra

Usually, when we first formulate a problem in mathematics, we use the most familiar

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

Linear Algebra Review. Fei-Fei Li

Assignment 1 Math 5341 Linear Algebra Review. Give complete answers to each of the following questions. Show all of your work.

Linear Algebra March 16, 2019

Linear Algebra. Ben Woodruff. Compiled July 17, 2010

Getting Started with Communications Engineering

Glossary of Linear Algebra Terms. Prepared by Vince Zaccone For Campus Learning Assistance Services at UCSB

MITOCW ocw f99-lec17_300k

Linear Algebra Review. Vectors

Orthogonality. Orthonormal Bases, Orthogonal Matrices. Orthogonality

Chapter 6: Orthogonality

Math (P)Review Part II:

EE263: Introduction to Linear Dynamical Systems Review Session 2

Some notes on Linear Algebra. Mark Schmidt September 10, 2009

Maths for Signals and Systems Linear Algebra in Engineering

Vector Spaces, Orthogonality, and Linear Least Squares

web: HOMEWORK 1

MA 3280 Lecture 05 - Generalized Echelon Form and Free Variables. Friday, January 31, 2014.

Math 3C Lecture 25. John Douglas Moore

Review of linear algebra

Chapter 8. Rigid transformations

Review problems for MA 54, Fall 2004.

Multivariate Statistical Analysis

Numerical Linear Algebra

Background Mathematics (2/2) 1. David Barber

MATH 310, REVIEW SHEET

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

[Disclaimer: This is not a complete list of everything you need to know, just some of the topics that gave people difficulty.]

LS.1 Review of Linear Algebra

Linear Algebra Done Wrong. Sergei Treil. Department of Mathematics, Brown University

Section 13.4 The Cross Product

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

(, ) : R n R n R. 1. It is bilinear, meaning it s linear in each argument: that is

Camera Models and Affine Multiple Views Geometry

Example: Inverted pendulum on cart

Answers in blue. If you have questions or spot an error, let me know. 1. Find all matrices that commute with A =. 4 3

Practice problems for Exam 3 A =

4 ORTHOGONALITY ORTHOGONALITY OF THE FOUR SUBSPACES 4.1

Conceptual Questions for Review

1111: Linear Algebra I

Linear Algebra and Matrices

Math 290-2: Linear Algebra & Multivariable Calculus Northwestern University, Lecture Notes

Lecture 2: Linear operators

MAT2342 : Introduction to Applied Linear Algebra Mike Newman, fall Projections. introduction

Elementary maths for GMT

Numerical Methods Lecture 2 Simultaneous Equations

A Review of Linear Algebra

Linear Algebra in Computer Vision. Lecture2: Basic Linear Algebra & Probability. Vector. Vector Operations

STAT 151A: Lab 1. 1 Logistics. 2 Reference. 3 Playing with R: graphics and lm() 4 Random vectors. Billy Fang. 2 September 2017

Statistical Geometry Processing Winter Semester 2011/2012

Linear Least-Squares Data Fitting

Problem 1: (3 points) Recall that the dot product of two vectors in R 3 is

Example: 2x y + 3z = 1 5y 6z = 0 x + 4z = 7. Definition: Elementary Row Operations. Example: Type I swap rows 1 and 3

March 19 - Solving Linear Systems

2018 Fall 2210Q Section 013 Midterm Exam I Solution

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

Basic Linear Algebra in MATLAB

Math Camp II. Basic Linear Algebra. Yiqing Xu. Aug 26, 2014 MIT

Lecture 2: Linear Algebra Review

Lecture 2: Linear Algebra

1 9/5 Matrices, vectors, and their applications

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2

Matrix-Vector Products and the Matrix Equation Ax = b

Systems of Linear Equations. By: Tri Atmojo Kusmayadi and Mardiyana Mathematics Education Sebelas Maret University

03 - Basic Linear Algebra and 2D Transformations

MATRICES. a m,1 a m,n A =

Math 102, Winter Final Exam Review. Chapter 1. Matrices and Gaussian Elimination

Transcription:

Linear Algebra Review Part I: Geometry Edwin Olson University of Michigan

The Three-Day Plan Geometry of Linear Algebra Vectors, matrices, basic operations, lines, planes, homogeneous coordinates, transformations Solving Linear Systems Gaussian Elimination, LU and Cholesky decomposition, over-determined systems, calculus and linear algebra, non-linear least squares, regression The Spectral Story Eigensystems, singular value decomposition, principle component analysis, spectral clustering

Vectors A vector is a motion in space: Vectors can be added

Dot Products Produces a scalar Measures the similarity in direction of two vectors. Geometry: Project one vector into the direction of the other. Then rescale by length of the second vector. What s the dot product of your thesis and final project?

Checkpoint What is the dot product of a vector with itself? vector magnitude v ^2 What is the dot product of two orthogonal vectors?

2D: [a b] => [-b a] how many? up to scale (including negative). Computing orthogonal vectors 3D: [a b c] => [-b a 0 ] [-c 0 a] or [ 0 -c b] How can we compute vectors whose dot product will be zero? or... In fact these (trivial) perpendicular vectors form a plane of perpendicular vectors. (Any linear combination of those points yields another perpendicular vector by superposition.) 2D? How many vectors are perpendicular? 3D? How many vectors are perpendicular?

Constructing perpendicular vectors in 3D It s actually too easy... we can ask how many vectors are simultaneously perpendicular to two vectors. I.e., where do the two planes intersect? (along a line!) - (how many perpendicular vectors?)

Cross Product (3D) Orthogonal vector can be constructed in 3D by cross product:

Checkpoint updir eye? updir? X lookat View from eye what is lookdir? what direction is

Lines and Hyperplanes What s the relationship between a line, a plane, and a hyperplane? Is there a generic way of writing them, regardless of dimension? What do n and b mean, geometrically? n is the normal to the hyperplane b is the distance (in the direction of normal) from the hyperplane to the origin... e.g. consider point bn, which lies on plane.

Planes versus Lines In 2D, a hyperplane and a line have the same form. A line pins down all but one degree of freedom - Can move in one dimension up and down the line A hyperplane pins down only one degree of freedom. - Can move in all but one degree of freedom. In short: A single linear equation yields a hyper-plane. N-1 simultaneous linear equations yields a line.

Checkpoint A point is the intersection of how many hyperplanes? What point on a hyperplane defined by n and b is closest to some other point p? Why is this formulation better than y=mx + b? construct a point on the plane: nb. (nb - p) \cdot n... in fact, this works for any point on the plane (you get the same answer... prove why.)

Matrix: The Basics A matrix is a rectangular array of numbers. Has geometric interpretation too... but first, let s start with something simple. When can matrices be added together? (And how does addition work?) x is a vector. what are its dimensions?

Matrix-vector product Mechanics of matrix-vector multiplication: Two different interpretations: Dot product of rows with vector Linear combination of columns

Linear Systems We can use a variable instead of a vector, which gives us a linear system. What simultaneous equations does this represent?

Matrix Geometry: Row story Each row of a linear system represents a hyperplane. (In 2D, that s also a line!) The solution to the system is the intersection of those hyperplanes

Matrix Geometry: Column Story Each column can be interpreted as a vector How far do we go in each direction?

Matrix-matrix product Think of the right hand side as a list of column vectors. Each is transformed separately via a matrix-vector product. Finger sweeping rule should be second nature! - Left finger sweeps left to right - Right finger sweeps top to bottom

Checkpoint Which of the following multiplications are sensible? a b c d e f g h i

Matrices as projections Matrix multiplication projects from one space to another. = A Data projected into new coordinate system Data in original coordinate system illustrate by projecting [1 0 0], [0 1 0] vectors Direction of new x in old coordinate systemwe re taking a dot product with it! Direction of old x in new coordinate system.

Rotation Matrices A special kind of projection Preserves scale, distance, and relative orientation. (It s rigid.) It s orthonormal too! Write a rotation matrix for 45 degree rotation around the Z axis. Direction of new x in old coordinate systemwe re taking a dot product with it! Direction of old x in new coordinate system.

Rotation Really useful in Vis... display a model of your robot oriented properly, for example... x Consider rotate +90 degrees around the Z axis y z Use right-hand to represent the coordinate frame Which way is +90 degrees? Point right thumb in the direction of the axis of rotation Fingers curl in the positive direction

Translation Matrices How do we do a translation? There s no way to do it without homogeneous coordinates. Ask class... show that we re stuck.

Homogenous Coordinates We ll introduce a new convention, homogenous coordinates. We write points just the way we did before, but add an extra row: The extra row is a scale factor for the whole vector. becomes there s a whole related set of geometry, but all we need to know in this lecture is that there s a funny scale factor. What point does this correspond to?

Translation Suppose I want to shift all objects by Tx,Ty,Tz:?

Rotation How about a rotation of 90 degrees around the Z axis? (This time in homogeneous coordinates)?

More complex rotations How about rotating 37.2 degrees around the vector [ 0.3 0.6 0.4 ] Don t worry. Nobody can do that in their head! But it ll look like this:

Rigid-Body Transformations The product of two rigid-body transformations is always another rigid-body transformation! Does order of multiplication matter? So no matter how the object has been translated or rotated, we can describe its position with a single 4x4 matrix, which has the structure:

How to undo a transformation?

Matrix Inverse Definition: Dot product interpretation Find a vector whose dot product with the first row is one, and whose dot product with every other row is zero. Repeat this for every row. Distributive property: (Prove it)

When does the inverse exist? Inverse exists iff the matrix has full rank. The row story: the matrix describes a set of intersecting hyperplanes. Is their intersection a point? A line? Something higher dimensional? The column story: the column vectors describe directions that you can move in. Can you get everywhere? Easy cases: rigid-body transformations? rectangular matrices? We ll talk more about this in the next lectures.

Transpose Definition: Allows us to write dot product: we won t use \cdot anymore. Distributive property: Distributive property seems familiar... it s like the inverse rule. Sometimes a transpose is an inverse! (When?) orthonormal matrices... draw an example with rows v1, v2, v3... noting that dot(v1,v2)=0

Checkpoint Is the following matrix invertible? no, basis vectors [ 1 2 3] and [ 1 1 1] What s the inverse of: RotateZ(3.5)*Translate(1,2,0)*Translate(-2,2,3) R is a rotation matrix. Simplify the expression: