Linear Algebra Primer

Similar documents
Linear Algebra Primer

Linear Algebra Primer

Linear Algebra Primer

y z P 3 P T P1 P 2. Werner Purgathofer. b a

Let us start with a two dimensional case. We consider a vector ( x,

2. VECTORS. R Vectors are denoted by bold-face characters such as R, V, etc. The magnitude of a vector, such as R, is denoted as R, R, V

Physics 240: Worksheet 16 Name

Elements of Computer Graphics

This is an example to show you how SMath can calculate the movement of kinematic mechanisms.

MATH 2050 Assignment 9 Winter Do not need to hand in. 1. Find the determinant by reducing to triangular form for the following matrices.

t is a basis for the solution space to this system, then the matrix having these solutions as columns, t x 1 t, x 2 t,... x n t x 2 t...

Randomized Perfect Bipartite Matching

Algorithmic Discrete Mathematics 6. Exercise Sheet

To become more mathematically correct, Circuit equations are Algebraic Differential equations. from KVL, KCL from the constitutive relationship

Problem Set If all directed edges in a network have distinct capacities, then there is a unique maximum flow.

EECE 301 Signals & Systems Prof. Mark Fowler

10. State Space Methods

You have met function of a single variable f(x), and calculated the properties of these curves such as

Math Week 14 April 16-20: sections first order systems of linear differential equations; 7.4 mass-spring systems.

Then. 1 The eigenvalues of A are inside R = n i=1 R i. 2 Union of any k circles not intersecting the other (n k)

, the. L and the L. x x. max. i n. It is easy to show that these two norms satisfy the following relation: x x n x = (17.3) max

Algorithms and Data Structures 2011/12 Week 9 Solutions (Tues 15th - Fri 18th Nov)

Transformations. Ordered set of numbers: (1,2,3,4) Example: (x,y,z) coordinates of pt in space. Vectors

Discussion Session 2 Constant Acceleration/Relative Motion Week 03

V The Fourier Transform

Mon Apr 2: Laplace transform and initial value problems like we studied in Chapter 5

Announcements: Warm-up Exercise:

5.2 GRAPHICAL VELOCITY ANALYSIS Polygon Method

Exponential Sawtooth

u(t) Figure 1. Open loop control system

Lecture 21: Bezier Approximation and de Casteljau s Algorithm. and thou shalt be near unto me Genesis 45:10

Two Coupled Oscillators / Normal Modes

6.8 Laplace Transform: General Formulas

More on ODEs by Laplace Transforms October 30, 2017

Chapter 7: Inverse-Response Systems

CS376 Computer Vision Lecture 6: Optical Flow

SUMMARY. CS380: Introduction to Computer Graphics Quaternions Chapter 7. Min H. Kim KAIST School of Computing 18/04/06.

Math 315: Linear Algebra Solutions to Assignment 6

Angular Motion, Speed and Velocity

CONTROL SYSTEMS. Chapter 3 Mathematical Modelling of Physical Systems-Laplace Transforms. Prof.Dr. Fatih Mehmet Botsalı

Rectilinear Kinematics

Problem set 6: Solutions Math 207A, Fall x 0 2 x

18.03SC Unit 3 Practice Exam and Solutions

PHYSICS 151 Notes for Online Lecture #4

CHAPTER 7: SECOND-ORDER CIRCUITS

Designing Information Devices and Systems I Spring 2019 Lecture Notes Note 17

Admin MAX FLOW APPLICATIONS. Flow graph/networks. Flow constraints 4/30/13. CS lunch today Grading. in-flow = out-flow for every vertex (except s, t)

HW6: MRI Imaging Pulse Sequences (7 Problems for 100 pts)

Math 334 Fall 2011 Homework 11 Solutions

Additional Methods for Solving DSGE Models

Biol. 356 Lab 8. Mortality, Recruitment, and Migration Rates

From Complex Fourier Series to Fourier Transforms

t )? How would you have tried to solve this problem in Chapter 3?

CHAPTER. Forced Equations and Systems { } ( ) ( ) 8.1 The Laplace Transform and Its Inverse. Transforms from the Definition.

Mathcad Lecture #8 In-class Worksheet Curve Fitting and Interpolation

Be able to sketch a function defined parametrically. (by hand and by calculator)

6.302 Feedback Systems Recitation : Phase-locked Loops Prof. Joel L. Dawson

Unit Root Time Series. Univariate random walk

Chapter 2 The Derivative Applied Calculus 107. We ll need a rule for finding the derivative of a product so we don t have to multiply everything out.

; row vectors: 1 3 4, 1 2 5, 2 6 7

Analyze patterns and relationships. 3. Generate two numerical patterns using AC

CONTROL SYSTEMS. Chapter 10 : State Space Response

CS 473G Lecture 15: Max-Flow Algorithms and Applications Fall 2005

Solutions from Chapter 9.1 and 9.2

Today: Graphing. Note: I hope this joke will be funnier (or at least make you roll your eyes and say ugh ) after class. v (miles per hour ) Time

1 Motivation and Basic Definitions

18 Extensions of Maximum Flow

Linear Time-invariant systems, Convolution, and Cross-correlation

Chapter 6. Laplace Transforms

Chapter 9 - The Laplace Transform

Chapter 6. Laplace Transforms

d = ½(v o + v f) t distance = ½ (initial velocity + final velocity) time

Chapter 6. Systems of First Order Linear Differential Equations

Module 2: Analysis of Stress

CHAPTER 7. Definition and Properties. of Laplace Transforms

Performance Comparison of LCMV-based Space-time 2D Array and Ambiguity Problem

Chapter 7: Solving Trig Equations

Vector autoregression VAR. Case 1

Cosumnes River College Principles of Macroeconomics Problem Set 1 Due January 30, 2017

Main Reference: Sections in CLRS.

Matlab and Python programming: how to get started

SOLUTIONS TO ECE 3084

Non-uniform circular motion *

Chapter 3 Kinematics in Two Dimensions

Network Flows: Introduction & Maximum Flow

KINEMATICS IN ONE DIMENSION

THE MATRIX-TREE THEOREM

Outline of Topics. Analysis of ODE models with MATLAB. What will we learn from this lecture. Aim of analysis: Why such analysis matters?

Continuous Time Linear Time Invariant (LTI) Systems. Dr. Ali Hussein Muqaibel. Introduction

15. Bicycle Wheel. Graph of height y (cm) above the axle against time t (s) over a 6-second interval. 15 bike wheel

DIFFERENTIAL GEOMETRY HW 5

s-domain Circuit Analysis

EE Control Systems LECTURE 2

KEY. Math 334 Midterm I Fall 2008 sections 001 and 003 Instructor: Scott Glasgow

Maxwell s Equations and Electromagnetic Waves

3, so θ = arccos

Sample Final Exam (finals03) Covering Chapters 1-9 of Fundamentals of Signals & Systems

The fundamental mass balance equation is ( 1 ) where: I = inputs P = production O = outputs L = losses A = accumulation

Linear Response Theory: The connection between QFT and experiments

ODEs II, Lecture 1: Homogeneous Linear Systems - I. Mike Raugh 1. March 8, 2004

Transcription:

Linear Algebra rimer And a video dicuion of linear algebra from EE263 i here (lecure 3 and 4): hp://ee.anford.edu/coure/ee263 lide from Sanford CS3

Ouline Vecor and marice Baic Mari Operaion Deerminan, norm, race Special Marice Tranformaion Marice Homogeneou coordinae Tranlaion Mari invere Mari rank Eigenvalue and Eigenvecor Mari Calculu 2

Ouline Vecor and marice Baic Mari Operaion Deerminan, norm, race Special Marice Tranformaion Marice Homogeneou coordinae Tranlaion Mari invere Mari rank Eigenvalue and Eigenvecor Mari Calculu Vecor and marice are ju collecion of ordered number ha repreen omehing: movemen in pace, caling facor, piel brighne, ec. We ll define ome common ue and andard operaion on hem. 3

Vecor A column vecor where A row vecor where denoe he ranpoe operaion 4

Vecor We ll defaul o column vecor in hi cla You ll wan o keep rack of he orienaion of our vecor when programming in phon You can ranpoe a vecor V in malab b wriing V (Bu in cla maerial, we will alwa ue V T o indicae ranpoe, and we will ue V o mean V prime ) 5

Vecor have wo main ue Vecor can repreen an offe in 2D or 3D pace oin are ju vecor from he origin Daa (piel, gradien a an image kepoin, ec) can alo be reaed a a vecor Such vecor don have a geomeric inerpreaion, bu calculaion like diance can ill have value 6

Mari A mari i an arra of number wih ize b, i.e. m row and n column. If, we a ha i quare. 7

Image MATLAB repreen an image a a mari of piel brighnee Noe ha he upper lef corner i (,) (,) 8

Color Image Gracale image have one number per piel, and are ored a an m n mari. Color image have 3 number per piel red, green, and blue brighnee (RGB) Sored a an m n 3 mari 9

Baic Mari Operaion We will dicu: Addiion Scaling Do produc Muliplicaion Tranpoe Invere / peudoinvere Deerminan / race

Mari Operaion Addiion Can onl add a mari wih maching dimenion, or a calar. Scaling

Vecor Norm More formall, a norm i an funcion ha aifie 4 properie: Non-negaivi: For all Definiene: f() if and onl if. Homogenei: For all Triangle inequali: For all 2

Mari Operaion Eample Norm General norm: 3

Mari Operaion Inner produc (do produc) of vecor Mulipl correponding enrie of wo vecor and add up he reul i alo Co( he angle beween and ) 4

Mari Operaion Inner produc (do produc) of vecor If B i a uni vecor, hen A B give he lengh of A which lie in he direcion of B 5

Mari Operaion The produc of wo marice 6

Muliplicaion Mari Operaion The produc AB i: Each enr in he reul i (ha row of A) do produc wih (ha column of B) Man ue, which will be covered laer 7

Mari Operaion Muliplicaion eample: Each enr of he mari produc i made b aking he do produc of he correponding row in he lef mari, wih he correponding column in he righ one. 8

Mari Operaion The produc of wo marice 9

Mari Operaion ower B convenion, we can refer o he mari produc AA a A 2, and AAA a A 3, ec. Obvioul onl quare marice can be muliplied ha wa 2

Mari Operaion Tranpoe flip mari, o row become column A ueful ideni: 2

Deerminan reurn a calar Repreen area (or volume) of he parallelogram decribed b he vecor in he row of he mari For, roperie: Mari Operaion de % de de(%) 22

Mari Operaion Trace Invarian o a lo of ranformaion, o i ued omeime in proof. (Rarel in hi cla hough.) roperie: 23

Mari Operaion Vecor Norm Mari norm: Norm can alo be defined for marice, uch a he Frobeniu norm: 24

Special Marice Ideni mari I Square mari, along diagonal, elewhere I [anoher mari] [ha mari] Diagonal mari Square mari wih number along diagonal, elewhere A diagonal [anoher mari] cale he row of ha mari 25

Special Marice Smmeric mari Skew-mmeric mari 2 2 3 5 42 75 5 7 26

Ouline Vecor and marice Baic Mari Operaion Deerminan, norm, race Special Marice Tranformaion Marice Homogeneou coordinae Tranlaion Mari invere Mari rank Eigenvalue and Eigenvecor Mari Calculu Mari muliplicaion can be ued o ranform vecor. A mari ued in hi wa i called a ranformaion mari. 27

Tranformaion Marice can be ued o ranform vecor in ueful wa, hrough muliplicaion: A Simple i caling: (Verif o ourelf ha he mari muliplicaion work ou hi wa) 28

Roaion How can ou conver a vecor repreened in frame o a new, roaed coordinae frame? 29

Roaion How can ou conver a vecor repreened in frame o a new, roaed coordinae frame? Remember wha a vecor i: [componen in direcion of he frame ai, componen in direcion of ai] 3

Roaion So o roae i we mu produce hi vecor: [componen in direcion of new ai, componen in direcion of new ai] We can do hi eail wih do produc! New coordinae i [original vecor] do [he new ai] New coordinae i [original vecor] do [he new ai] 3

Roaion Inigh: hi i wha happen in a mari*vecor muliplicaion Reul coordinae i: [original vecor] do [mari row ] So mari muliplicaion can roae a vecor p: 32

Roaion Suppoe we epre a poin in he new coordinae em which i roaed lef If we plo he reul in he original coordinae em, we have roaed he poin righ Thu, roaion marice can be ued o roae vecor. We ll uuall hink of hem in ha ene-- a operaor o roae vecor 33

2D Roaion Mari Formula Couner-clockwie roaion b an angle q q coθ -in θ coθ + in θ coq - in q in q coq R 34

Tranformaion Marice Muliple ranformaion marice can be ued o ranform a poin: p R 2 R S p 35

Tranformaion Marice Muliple ranformaion marice can be ued o ranform a poin: p R 2 R S p The effec of hi i o appl heir ranformaion one afer he oher, from righ o lef. In he eample above, he reul i (R 2 (R (S p))) 36

Tranformaion Marice Muliple ranformaion marice can be ued o ranform a poin: p R 2 R S p The effec of hi i o appl heir ranformaion one afer he oher, from righ o lef. In he eample above, he reul i (R 2 (R (S p))) The reul i eacl he ame if we mulipl he marice fir, o form a ingle ranformaion mari: p (R 2 R S) p 37

Homogeneou em In general, a mari muliplicaion le u linearl combine componen of a vecor Thi i ufficien for cale, roae, kew ranformaion. Bu noice, we can add a conan! L 38

Homogeneou em The (omewha hack) oluion? Sick a a he end of ever vecor: Now we can roae, cale, and kew like before, AND ranlae (noe how he muliplicaion work ou, above) Thi i called homogeneou coordinae 39

Homogeneou em In homogeneou coordinae, he muliplicaion work ou o he righmo column of he mari i a vecor ha ge added. Generall, a homogeneou ranformaion mari will have a boom row of [ ], o ha he reul ha a a he boom oo. 4

Homogeneou em One more hing we migh wan: o divide he reul b omehing Mari muliplicaion can acuall divide So, b convenion, in homogeneou coordinae, we ll divide he reul b i la coordinae afer doing a mari muliplicaion 4 /2/7

2D Tranlaion 42

43 2D Tranlaion uing Homogeneou Coordinae + +,), ( ), (,), ( ), (

44 2D Tranlaion uing Homogeneou Coordinae + +,), ( ), (,), ( ), (

45 2D Tranlaion uing Homogeneou Coordinae + +,), ( ), (,), ( ), (

46 2D Tranlaion uing Homogeneou Coordinae + +,), ( ), (,), ( ), (

47 2D Tranlaion uing Homogeneou Coordinae + +,), ( ), (,), ( ), ( T I

Scaling 48

Scaling Equaion (, ) (, ) (, ) (,,) (, ) (,,) 49

Scaling Equaion,), ( ), (,), ( ), ( ), ( ), ( 5

Scaling Equaion,), ( ), (,), ( ), ( S S S ), ( ), ( 5

Scaling & Tranlaing S T T T (S ) T S 52

Scaling & Tranlaing T S " # % & " # % & " # % & " # % & " # % & + + " # % & S " # % & " # % & A 53

Scaling & Tranlaing T S " # % & " # % & " # % & " # % & " # % & + + " # % & S " # % & " # % & 54

Tranlaing & Scaling veru Scaling & Tranlaing + + S T 55

Tranlaing & Scaling! Scaling & Tranlaing + + T S + + S T 56

Tranlaing & Scaling! Scaling & Tranlaing + + T S + + S T 57

Roaion 58

Roaion Equaion Couner-clockwie roaion b an angle q q coθ -in θ coθ + in θ coq - in q in q coq R 59

Roaion Mari roperie coq - in q in q coq A 2D roaion mari i 22 Noe: R belong o he caegor of normal marice and aifie man inereing properie: R R T R T R I de( R) 6

Roaion Mari roperie Tranpoe of a roaion mari produce a roaion in he oppoie direcion R R T de( R) R The row of a roaion mari are alwa muuall perpendicular (a.k.a. orhogonal) uni vecor (and o are i column) R T I 6

Scaling + Roaion + Tranlaion (T R S) - coθ inθ in θ coθ R S T - coθ inθ in θ coθ R S S R 62 Thi i he form of he general-purpoe ranformaion mari

Announcemen HW will be releaed hi Frida nigh 63

Ouline Vecor and marice Baic Mari Operaion Deerminan, norm, race Special Marice Tranformaion Marice Homogeneou coordinae Tranlaion Mari invere Mari rank Eigenvalue and Eigenvecor Mari Calculae The invere of a ranformaion mari revere i effec 64

Given a mari A, i invere A - i a mari uch ha AA - A - A I E.g. Invere Invere doe no alwa ei. If A - ei, A i inverible or non-ingular. Oherwie, i ingular. Ueful ideniie, for marice ha are inverible: 65

Ouline Vecor and marice Baic Mari Operaion Deerminan, norm, race Special Marice Tranformaion Marice Homogeneou coordinae Tranlaion Mari invere Mari rank Eigenvalue and Eigenvecor Mari Calculae The rank of a ranformaion mari ell ou how man dimenion i ranform a vecor o. 7

Linear independence Suppoe we have a e of vecor v,, v n If we can epre v a a linear combinaion of he oher vecor v 2 v n, hen v i linearl dependen on he oher vecor. The direcion v can be epreed a a combinaion of he direcion v 2 v n. (E.g. v.7 v 2 -.7 v 4 ) 72

Linear independence Suppoe we have a e of vecor v,, v n If we can epre v a a linear combinaion of he oher vecor v 2 v n, hen v i linearl dependen on he oher vecor. The direcion v can be epreed a a combinaion of he direcion v 2 v n. (E.g. v.7 v 2 -.7 v 4 ) If no vecor i linearl dependen on he re of he e, he e i linearl independen. Common cae: a e of vecor v,, v n i alwa linearl independen if each vecor i perpendicular o ever oher vecor (and non-zero) 73

Linear independence Linearl independen e No linearl independen 74

Mari rank Column/row rank Column rank alwa equal row rank Mari rank 75

Mari rank For ranformaion marice, he rank ell ou he dimenion of he oupu E.g. if rank of A i, hen he ranformaion p Ap map poin ono a line. Here a mari wih rank : All poin ge mapped o he line 2 76

Mari rank If an m m mari i rank m, we a i full rank Map an m vecor uniquel o anoher m vecor An invere mari can be found If rank < m, we a i ingular A lea one dimenion i geing collaped. No wa o look a he reul and ell wha he inpu wa Invere doe no ei Invere alo doen ei for non-quare marice 77