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

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

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

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

Elementary maths for GMT

Review of Linear Algebra

Math 4A Notes. Written by Victoria Kala Last updated June 11, 2017

Fundamentals of Engineering Analysis (650163)

Quiz ) Locate your 1 st order neighbors. 1) Simplify. Name Hometown. Name Hometown. Name Hometown.

Math 1553, Introduction to Linear Algebra

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

Matrices. In this chapter: matrices, determinants. inverse matrix

Review problems for MA 54, Fall 2004.

Reduction to the associated homogeneous system via a particular solution

MATH 213 Linear Algebra and ODEs Spring 2015 Study Sheet for Midterm Exam. Topics

Matrices and Matrix Algebra.

A Review of Matrix Analysis

POLI270 - Linear Algebra

2. Linear algebra. matrices and vectors. linear equations. range and nullspace of matrices. function of vectors, gradient and Hessian

Math Linear Algebra Final Exam Review Sheet

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

1. What is the determinant of the following matrix? a 1 a 2 4a 3 2a 2 b 1 b 2 4b 3 2b c 1. = 4, then det

OR MSc Maths Revision Course

1 9/5 Matrices, vectors, and their applications

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

Digital Workbook for GRA 6035 Mathematics

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

Quantum Computing Lecture 2. Review of Linear Algebra

Conceptual Questions for Review

Linear Algebra Primer

Linear Algebra: Matrix Eigenvalue Problems

CHAPTER 8: Matrices and Determinants

SUMMARY OF MATH 1600

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

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

Chapter 5. Linear Algebra. A linear (algebraic) equation in. unknowns, x 1, x 2,..., x n, is. an equation of the form

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

Chapter 7. Linear Algebra: Matrices, Vectors,

Linear Algebra review Powers of a diagonalizable matrix Spectral decomposition

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

Image Registration Lecture 2: Vectors and Matrices

Introduction to Matrices

EE731 Lecture Notes: Matrix Computations for Signal Processing

7.6 The Inverse of a Square Matrix

2. Every linear system with the same number of equations as unknowns has a unique solution.

Background Mathematics (2/2) 1. David Barber

Index. book 2009/5/27 page 121. (Page numbers set in bold type indicate the definition of an entry.)

MATRICES. knowledge on matrices Knowledge on matrix operations. Matrix as a tool of solving linear equations with two or three unknowns.

Linear Algebra Review. Vectors

Equality: Two matrices A and B are equal, i.e., A = B if A and B have the same order and the entries of A and B are the same.

Basic Concepts in Linear Algebra

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

MTH 464: Computational Linear Algebra

Chapter 5 Eigenvalues and Eigenvectors

Numerical Analysis Lecture Notes

A matrix is a rectangular array of. objects arranged in rows and columns. The objects are called the entries. is called the size of the matrix, and

Duke University, Department of Electrical and Computer Engineering Optimization for Scientists and Engineers c Alex Bronstein, 2014

Math 302 Outcome Statements Winter 2013

Linear Algebra. Matrices Operations. Consider, for example, a system of equations such as x + 2y z + 4w = 0, 3x 4y + 2z 6w = 0, x 3y 2z + w = 0.

Review of Basic Concepts in Linear Algebra

Linear Algebra March 16, 2019

1. Let m 1 and n 1 be two natural numbers such that m > n. Which of the following is/are true?

1 Determinants. 1.1 Determinant

1 Inner Product and Orthogonality

5.7 Cramer's Rule 1. Using Determinants to Solve Systems Assumes the system of two equations in two unknowns

MIDTERM 1 - SOLUTIONS

ELE/MCE 503 Linear Algebra Facts Fall 2018

Linear Algebra: Lecture notes from Kolman and Hill 9th edition.

MAT Linear Algebra Collection of sample exams

Solutions to Final Exam

TOPIC III LINEAR ALGEBRA

Introduc)on to linear algebra

ENGR-1100 Introduction to Engineering Analysis. Lecture 21. Lecture outline

Mathematical foundations - linear algebra

Linear Algebra Highlights

Knowledge Discovery and Data Mining 1 (VO) ( )

Linear Algebra in Actuarial Science: Slides to the lecture

Chapter 4 - MATRIX ALGEBRA. ... a 2j... a 2n. a i1 a i2... a ij... a in

Chapter 1: Systems of linear equations and matrices. Section 1.1: Introduction to systems of linear equations

ENGR-1100 Introduction to Engineering Analysis. Lecture 21

Matrix Operations: Determinant

1. Linear systems of equations. Chapters 7-8: Linear Algebra. Solution(s) of a linear system of equations (continued)

LINEAR ALGEBRA REVIEW

3 (Maths) Linear Algebra

Topics. Vectors (column matrices): Vector addition and scalar multiplication The matrix of a linear function y Ax The elements of a matrix A : A ij

Math Camp Lecture 4: Linear Algebra. Xiao Yu Wang. Aug 2010 MIT. Xiao Yu Wang (MIT) Math Camp /10 1 / 88

We wish to solve a system of N simultaneous linear algebraic equations for the N unknowns x 1, x 2,...,x N, that are expressed in the general form

Matrices and Linear Algebra

Linear Algebra. The analysis of many models in the social sciences reduces to the study of systems of equations.

ANSWERS (5 points) Let A be a 2 2 matrix such that A =. Compute A. 2

Lemma 8: Suppose the N by N matrix A has the following block upper triangular form:

homogeneous 71 hyperplane 10 hyperplane 34 hyperplane 69 identity map 171 identity map 186 identity map 206 identity matrix 110 identity matrix 45

ANSWERS. E k E 2 E 1 A = B

4. Determinants.

CS 246 Review of Linear Algebra 01/17/19

Columbus State Community College Mathematics Department Public Syllabus

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

n n matrices The system of m linear equations in n variables x 1, x 2,..., x n can be written as a matrix equation by Ax = b, or in full

2 b 3 b 4. c c 2 c 3 c 4

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

Transcription:

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

Reference Book Thrun, Burgard, and Fox: Probabilistic Robotics

Vectors Arrays of numbers Vectors represent a point in a n dimensional space

Vectors: Scalar Product Scalar-Vector Product Changes the length of the vector, but not its direction

Vectors: Sum Sum of vectors (is commutative) Can be visualized as chaining the vectors.

Vectors: Dot Product Inner product of vectors (is a scalar) If one of the two vectors, e.g., has, the inner product returns the length of the projection of along the direction of If, the two vectors are orthogonal

Vectors: Linear (In)Dependence A vector In other words, if summing up the is linearly dependent from if can be obtained by properly scaled If there exist no such that then is independent from

Vectors: Linear (In)Dependence A vector In other words, if summing up the is linearly dependent from if can be obtained by properly scaled If there exist no such that then is independent from

Matrices A matrix is written as a table of values rows columns 1 st index refers to the row 2 nd index refers to the column Note: a d-dimensional vector is equivalent to a dx1 matrix

Matrices as Collections of Vectors Column vectors

Matrices as Collections of Vectors Row vectors

Important Matrices Operations Multiplication by a scalar Sum (commutative, associative) Multiplication by a vector Product (not commutative) Inversion (square, full rank) Transposition

Scalar Multiplication & Sum In the scalar multiplication, every element of the vector or matrix is multiplied with the scalar The sum of two vectors is a vector consisting of the pair-wise sums of the individual entries The sum of two matrices is a matrix consisting of the pair-wise sums of the individual entries

Matrix Vector Product The i th component of is the dot product. The vector is linearly dependent from the column vectors with coefficients row vectors column vectors

Matrix Vector Product If the column vectors of represent a reference system, the product computes the global transformation of the vector according to column vectors

Matrix Matrix Product Can be defined through the dot product of row and column vectors the linear combination of the columns of A scaled by the coefficients of the columns of B column vectors

Matrix Matrix Product If we consider the second interpretation, we see that the columns of C are the transformations of the columns of B through A All the interpretations made for the matrix vector product hold column vectors

Rank Maximum number of linearly independent rows (columns) Dimension of the image of the transformation When is we have and the equality holds iff is the null matrix Computation of the rank is done by Gaussian elimination on the matrix Counting the number of non-zero rows

Inverse If A is a square matrix of full rank, then there is a unique matrix B=A -1 such that AB=I holds The i th row of A is and the j th column of A -1 are: orthogonal (if i j) or their dot product is 1 (if i = j)

Matrix Inversion The i th column of A -1 can be found by solving the following linear system: This is the i th column of the identity matrix

Determinant (det) Only defined for square matrices The inverse of exists if and only if For matrices: Let and, then For matrices the Sarrus rule holds:

Determinant For general matrices? Let be the submatrix obtained from by deleting the i-th row and the j-th column Rewrite determinant for matrices:

Determinant For general matrices? Let be the (i,j)-cofactor, then This is called the cofactor expansion across the first row

Determinant Problem: Take a 25 x 25 matrix (which is considered small). The cofactor expansion method requires n! multiplications. For n = 25, this is 1.5 x 10^25 multiplications for which a today supercomputer would take 500,000 years. There are much faster methods, namely using Gauss elimination to bring the matrix into triangular form. Because for triangular matrices the determinant is the product of diagonal elements

Determinant: Properties Row operations ( is still a square matrix) If results from by interchanging two rows, then If results from by multiplying one row with a number, then If results from by adding a multiple of one row to another row, then Transpose: Multiplication: Does not apply to addition!

Determinant: Applications Compute Eigenvalues: Solve the characteristic polynomial Area and Volume: ( is i-th row)

Orthogonal Matrix A matrix is orthogonal iff its column (row) vectors represent an orthonormal basis As linear transformation, it is norm preserving Some properties: The transpose is the inverse Determinant has unity norm (±1)

Rotation Matrix A Rotation matrix is an orthonormal matrix with det =+1 2D Rotations 3D Rotations along the main axes IMPORTANT: Rotations are not commutative

Matrices to Represent Affine Transformations A general and easy way to describe a 3D transformation is via matrices Translation Vector Rotation Matrix Takes naturally into account the noncommutativity of the transformations Homogeneous coordinates

Combining Transformations A simple interpretation: chaining of transformations (represented as homogeneous matrices) Matrix A represents the pose of a robot in the space Matrix B represents the position of a sensor on the robot The sensor perceives an object at a given location p, in its own frame [the sensor has no clue on where it is in the world] Where is the object in the global frame? p

Combining Transformations A simple interpretation: chaining of transformations (represented as homogeneous matrices) Matrix A represents the pose of a robot in the space Matrix B represents the position of a sensor on the robot The sensor perceives an object at a given location p, in its own frame [the sensor has no clue on where it is in the world] Where is the object in the global frame? Bp gives the pose of the object wrt the robot B

Combining Transformations A simple interpretation: chaining of transformations (represented as homogeneous matrices) Matrix A represents the pose of a robot in the space Matrix B represents the position of a sensor on the robot The sensor perceives an object at a given location p, in its own frame [the sensor has no clue on where it is in the world] Where is the object in the global frame? Bp gives the pose of the object wrt the robot A ABp gives the pose of the object wrt the world

Positive Definite Matrix The analogous of positive number Definition Example

Positive Definite Matrix Properties Invertible, with positive definite inverse All real eigenvalues > 0 Trace is > 0 Cholesky decomposition

Linear Systems (1) Interpretations: A set of linear equations A way to find the coordinates x in the reference system of A such that b is the result of the transformation of Ax Solvable by Gaussian elimination

Gaussian Elimination A method to solve systems of linear equations. Example for three variables: We want to transform this to

Gaussian Elimination Written as an extended coefficient matrix: To reach this form we only need two elementary row operations: Add to one row a scalar multiple of another. Swap the positions of two rows. Another commonly used term for Gaussian Elimination is row reduction.

Linear Systems (2) Notes: Many efficient solvers exist, e.g., conjugate gradients, sparse Cholesky decomposition One can obtain a reduced system (A, b ) by considering the matrix (A, b) and suppressing all the rows which are linearly dependent Let A'x=b' the reduced system with A':n'xm and b':n'x1 and rank A' = min(n',m) rows The system might be either over-constrained (n >m) or under-constrained (n <m) columns

Over-Constrained Systems More (ind.) equations than variables An over-constrained system does not admit an exact solution However, if rank A = cols(a) one often computes a minimum norm solution Note: rank = Maximum number of linearly independent rows/columns

Under-Constrained Systems More variables than (ind.) equations The system is under-constrained if the number of linearly independent rows of A is smaller than the dimension of b An under-constrained system admits infinite solutions The degree of these infinite solutions is cols(a ) - rows(a )

Jacobian Matrix It is a non-square matrix in general Given a vector-valued function Then, the Jacobian matrix is defined as

Jacobian Matrix It is the orientation of the tangent plane to the vector-valued function at a given point Generalizes the gradient of a scalar valued function

Further Reading A quick and dirty guide to matrices is the Matrix Cookbook. Just google for matrix cook book to find the pdf version.