Review: Linear and Vector Algebra

Similar documents
Lecture 2: Vector-Vector Operations

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Linear Algebra /34

We use the overhead arrow to denote a column vector, i.e., a number with a direction. For example, in three-space, we write

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Linear Algebra 1/33

What are vectors. Adding Vectors

Vector Geometry. Chapter 5

Review of Linear Algebra

4.1 Distance and Length

Linear Algebra V = T = ( 4 3 ).

Review of Coordinate Systems

CS 246 Review of Linear Algebra 01/17/19

The geometry of least squares

Linear Algebra Massoud Malek

Vectors and the Geometry of Space

Chapter 2 - Vector Algebra

Chapter 3 Kinematics in Two Dimensions; Vectors

MATH 22A: LINEAR ALGEBRA Chapter 1

Math for ML: review. ML and knowledge of other fields

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

NOTES ON LINEAR ALGEBRA CLASS HANDOUT

LINEAR ALGEBRA - CHAPTER 1: VECTORS

VECTORS vectors & scalars vector direction magnitude scalar only magnitude

4 Linear Algebra Review

Knowledge Discovery and Data Mining 1 (VO) ( )

,, rectilinear,, spherical,, cylindrical. (6.1)

DS-GA 1002 Lecture notes 0 Fall Linear Algebra. These notes provide a review of basic concepts in linear algebra.

Linear Algebra I for Science (NYC)

Linear Algebra Review. Vectors

Math for ML: review. CS 1675 Introduction to ML. Administration. Lecture 2. Milos Hauskrecht 5329 Sennott Square, x4-8845

3 a 21 a a 2N. 3 a 21 a a 2M

Definitions and Properties of R N

03 - Basic Linear Algebra and 2D Transformations

The Cross Product. Philippe B. Laval. Spring 2012 KSU. Philippe B. Laval (KSU) The Cross Product Spring /

LS.1 Review of Linear Algebra

Linear Equations and Vectors

CSC 470 Introduction to Computer Graphics. Mathematical Foundations Part 2

Instructional Areas NWEA HIGH SCHOOL MATHEMATICS. Tests. Standards

ECS130 Scientific Computing. Lecture 1: Introduction. Monday, January 7, 10:00 10:50 am

Chapter 3 Vectors Prof. Raymond Lee, revised

Math Camp. Justin Grimmer. Associate Professor Department of Political Science Stanford University. September 9th, 2016

Contents. 1 Vectors, Lines and Planes 1. 2 Gaussian Elimination Matrices Vector Spaces and Subspaces 124

Math 302 Outcome Statements Winter 2013

Review of linear algebra

Vectors. September 2, 2015

Rigid Geometric Transformations

v = ( 2)

Vectors a vector is a quantity that has both a magnitude (size) and a direction

This appendix provides a very basic introduction to linear algebra concepts.

Test of Understanding of Vectors (TUV)

1. Vectors.

Lecture 3: Matrix and Matrix Operations

(arrows denote positive direction)

Vectors for Beginners

Matrix Operations. Linear Combination Vector Algebra Angle Between Vectors Projections and Reflections Equality of matrices, Augmented Matrix

M. Matrices and Linear Algebra

Vector Algebra August 2013

Basic Concepts in Linear Algebra

Chapter 2 Notes, Linear Algebra 5e Lay

Detailed objectives are given in each of the sections listed below. 1. Cartesian Space Coordinates. 2. Displacements, Forces, Velocities and Vectors

Review of Basic Concepts in Linear Algebra

Three-Dimensional Coordinate Systems. Three-Dimensional Coordinate Systems. Three-Dimensional Coordinate Systems. Three-Dimensional Coordinate Systems

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

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

4 Linear Algebra Review

10.1 Vectors. c Kun Wang. Math 150, Fall 2017

We know how to identify the location of a point by means of coordinates: (x, y) for a point in R 2, or (x, y,z) for a point in R 3.

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

6. Vectors. Given two points, P 0 = (x 0, y 0 ) and P 1 = (x 1, y 1 ), a vector can be drawn with its foot at P 0 and

Introduction to Matrix Algebra

Unit 2: Lines and Planes in 3 Space. Linear Combinations of Vectors

I&C 6N. Computational Linear Algebra

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

Math for ML: review. Milos Hauskrecht 5329 Sennott Square, x people.cs.pitt.edu/~milos/courses/cs1675/

Math 360 Linear Algebra Fall Class Notes. a a a a a a. a a a

General Physics I, Spring Vectors

Vectors and Matrices Lecture 2

Vectors and Matrices

Matrix Algebra: Vectors

Section 1.6. M N = [a ij b ij ], (1.6.2)

Course Notes Math 275 Boise State University. Shari Ultman

UNIT I: MECHANICS Chapter 5: Projectile Motion

MATH Topics in Applied Mathematics Lecture 12: Evaluation of determinants. Cross product.

Lecture 2: Vector Spaces, Metric Spaces

Definitions for Quizzes

MTAEA Vectors in Euclidean Spaces

Math Linear Algebra

MAT 1339-S14 Class 8

Lecture 8: A Crash Course in Linear Algebra

IMPORTANT DEFINITIONS AND THEOREMS REFERENCE SHEET

The Cross Product of Two Vectors

We wish the reader success in future encounters with the concepts of linear algebra.

AP Physics C Mechanics Vectors

GEOMETRY OF MATRICES x 1

Mathematical Foundations: Intro

Vector components and motion

2- Scalars and Vectors

Chapter 3 Transformations

b 1 b 2.. b = b m A = [a 1,a 2,...,a n ] where a 1,j a 2,j a j = a m,j Let A R m n and x 1 x 2 x = x n

Kinematics in Two Dimensions; 2D- Vectors

The Matrix Vector Product and the Matrix Product

Transcription:

Review: Linear and Vector Algebra

Points in Euclidean Space Location in space Tuple of n coordinates x, y, z, etc Cannot be added or multiplied together

Vectors: Arrows in Space Vectors are point changes Also number tuple: coordinate changes Exist independent of any reference point

Vector Arithmetic Subtracting points gives vectors Vector between p and q: q - p

Vector Arithmetic Subtracting points gives vectors Vector between p and q: q p Add vector to point to get new point

Vector Arithmetic Vectors can be added (tip to tail)

Vector Arithmetic Vectors can be added (tip to tail) subtracted

Vector Arithmetic Vectors can be added (tip to tail) subtracted scaled

Vector Norm Vectors have magnitude (length or norm) n-dimensional Pythagorean theorem

Vector Norm Vectors have magnitude (length or norm) Triangle inequality:

Unit Vectors Vectors with encode pure direction unit or normalized Borrowed from physics: hat notation

Unit Vectors Vectors with encode pure direction unit or normalized Borrowed from physics: hat notation Any non-zero vector can be normalized:

Dot Product Takes two vectors, returns scalar (works in any dimension) is length of in the direction

Dot Product Takes two vectors, returns scalar Alternate formula:

Dot Product Takes two vectors, returns scalar Alternate formula:

Dot Product Properties Symmetry: Linearity: Perpendicular vectors: Also note:

Projection Projection of onto

Projection Projection of onto Can also project out component along

Dot Product and Angles Note requires only multiplications and sqrts Useful because trig calls are slow Also in a pinch (slow):

Cross Product Takes two vectors, returns vector works only in 3D Direction: perpendicular to both Magnitude:

Cross Product Intuition Magnitude is area of parallelogram formed by vectors

Cross Product Intuition There are two perpendicular directions. Which direction is?

Cross Product Intuition There are two perpendicular directions. Which direction is? Right-hand rule

Cross Product Properties Anti-symmetry: (why?) Linearity: Also note: (why?)

Cross Product Uses Easily computes unit vector perpendicular to two given vectors (which one? right-hand rule)

Cross Product Uses Easily computes unit vector perpendicular to two given vectors (which one? right-hand rule) Relation to angles: Even better: no sqrts!

Vector Triple Product signed volume of parallelepiped

Euclidean Coordinates A vector in 2D as instructions can be interpreted move to the right and up

Euclidean Coordinates A vector in 2D as instructions can be interpreted move to the right and up In other words:

(Finite) Vector Spaces We say: 2D vectors are vector space of vectors spanned by basis vectors basis vectors: directions to travel span: all linear combinations

(Finite) Vector Spaces We say: 2D vectors are vector space of vectors spanned by basis vectors basis vectors: directions to travel span: all linear combinations What is span of?

(Finite) Vector Spaces We say: 2D vectors are vector space of vectors spanned by basis vectors basis vectors: directions to travel span: all linear combinations What is span of? Of?

Vectors and Bases Consider V spanned by Coordinates (1,1) can represent:

Vectors and Bases Consider V spanned by Key Point Coordinates (1,1) can represent: A vector (arrow in space) can have different coordinates in different bases

Vectors and Bases Consider V spanned by Key Point Coordinates (1,1) can represent: A vector (arrow in space) can have different coordinates in different bases The same coordinates can represent different vectors

Vectors and Bases Consider V spanned by Key Point Coordinates (1,1) can represent: A vector (arrow in space) can have different coordinates in different bases The same coordinates can represent different vectors Default basis: Euclidean

Linear Dependence Informal: vectors linearly dependent if they are redundant

Linear Dependence Informal: vectors linearly dependent if they are redundant

Linear Dependence Informal: vectors linearly dependent if they are redundant Formal: basis linearly independent if

Dimension Dimension is size of biggest set of linearly independent basis vectors Examples:

Dimension Dimension is size of biggest set of linearly independent basis vectors Examples:

Dimension Dimension is size of biggest set of linearly independent basis vectors Examples:

Geometry of Dimension Adding all vectors of vector space to If 0:

Geometry of Dimension Adding all vectors of vector space to If 0: just 1:

Geometry of Dimension Adding all vectors of vector space to If 0: just 1: line through 2: plane through 3+: hyperplane through

Matrix Matrix array with n rows, m columns Notes: 1) first row, then column

Matrix Matrix array with n rows, m columns Notes: 1) first row, then column 2) one-indexed

Matrix Addition and Scaling Can add two matrices of same size:

Matrix Addition and Scaling Can add two matrices of same size: Scalar multiplication works as expected:

Matrix Multiplication Can multiply matrices, ; get

Matrix Multiplication Can multiply matrices, ; get Term is dot product of i-th row of A with j-th column of B

Matrix Multiplication Can multiply matrices, ; get Term is dot product of i-th row of A with j-th column of B

Matrix Multiplication Can multiply matrices, ; get Term is dot product of i-th row of A with j-th column of B Is associative:

Multiplication Not Commutative!

Multiplication Not Commutative! Has tripped up even professors

Special Case: Vectors Vectors are represented using column matrices: Can treat vectors like matrix

Special Case: Vectors Mathematically,

Special Case: Vectors Mathematically, In practice: slow OK Avoid matrix-matrix multiplies

What Is A Matrix?

Interpretation 1: Row Products Matrix multiplication is dot product of vector with rows

Interpretation 2: Column Sums Matrix multiplication is linear combination of columns

Interpretation 3: Change of Coord Matrix transforms vector: from basis to Euclidean basis

Identity Matrix Square diagonal matrix Satisfies

Inverse Matrix For some square matrices, inverse exists Useful identity:

Inverse Matrix For some square matrices, inverse exists Matrix transforms vector: from Euclidean basis to basis

Inverse Matrix For some square matrices, inverse exists When does inverse exist?

Inverse Matrix For some square matrices, inverse exists Note: Computing is slow:

Inverse Matrix For some square matrices, inverse exists Note: Computing is slow: For small matrices (4 x 4), not too bad For big matrices, inverse is never computed explicitly

Determinant Maps square matrix to real number In 2D: Measures signed volume of parallelogram

Determinant Maps matrix to real number In 3D: vol. of parallelepiped (Why do we care?)

Determinant Maps matrix to real number In 3D: vol. of parallelepiped (Why do we care?) Useful:

Transpose Flips indices; reflect about diagonal Transpose of vector is row vector

Transpose Flips indices; reflect about diagonal What is? What is?

Transpose Flips indices; reflect about diagonal What is? What is? Useful identity:

What Is A Matrix?

Interpretation 4: Any Linear Func. For every linear function vectors to vectors, there exists with: of

Interpretation 4: Any Linear Func. For every linear function vectors to vectors, there exists with: of Linear:

Interpretation 4: Any Linear Func. For every linear function vectors to vectors, there exists with: of Linear: Why true? Look at basis elements