essence of linear algebra - some cool intuitions · essence of linear algebra shreedhar kodate the...

41
Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span The box game: Matrices Elimination and Multiplication, A=LU Transforming your LIFE Leenearly Cool Video, The Determinant Space Tour Column space, Null space, Inverses Celebrity: The Rank Solution concept Some things of Eigen Eigen values, Eigen vectors, Change of Basis Summary Essence of Linear Algebra Some cool intuitions Shreedhar Kodate 1 1 Department of Computer Science and Automation Indian Institute of Science, Bengaluru CSA Summer School, 2017

Upload: others

Post on 22-May-2020

29 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Essence of Linear AlgebraSome cool intuitions

Shreedhar Kodate1

1Department of Computer Science and AutomationIndian Institute of Science, Bengaluru

CSA Summer School, 2017

Page 2: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Disclaimer

All the credits for the content goes to the respective authorslisted in the Appendix: Further Learning.

Page 3: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

The Storyline

The Geometry of Linear EquationsVectors and Basis vectorsLinear combinations and Span

The box game: MatricesElimination and Multiplication, A=LU

Transforming your LIFE LeenearlyCool Video, The Determinant

Space TourColumn space, Null space, Inverses

Celebrity: The RankSolution concept

Some things of EigenEigen values, Eigen vectors, Change of Basis

Page 4: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

The Storyline

The Geometry of Linear EquationsVectors and Basis vectorsLinear combinations and Span

The box game: MatricesElimination and Multiplication, A=LU

Transforming your LIFE LeenearlyCool Video, The Determinant

Space TourColumn space, Null space, Inverses

Celebrity: The RankSolution concept

Some things of EigenEigen values, Eigen vectors, Change of Basis

Page 5: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Vectors

What even are they?

I A line with a arrowhead?OR

I A set of numbers arranged vertically?1

2

3

OR

I An abstract #»v

Page 6: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Vectors

What even are they?

I A line with a arrowhead?OR

I A set of numbers arranged vertically?1

2

3

OR

I An abstract #»v

Page 7: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Vectors

What even are they?

I A line with a arrowhead?OR

I A set of numbers arranged vertically?1

2

3

OR

I An abstract #»v

Page 8: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Vectors

Abstract view1

#»u + ( #»v + #»w ) = ( #»u + #»v ) + #»w

#»v + #»w = #»w + #»v

There is a zero vector#»0 such that

#»0 + #»v = #»v for all #»v . For

every vector #»v there is a vector − #»v so that #»v + (− #»v ) =#»0 .

a(# »

bv) = (ab) #»v 1 #»v = #»v

a( #»v + #»w ) = a #»v + a #»w

(a + b) #»v = a #»v + b #»v

1Abstract vector spaces — Essence of Linear Algebra, Chapter 11

Page 9: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Basis Vectors

These are the vectors which can define the entirecoordinate space.

I Do you recognize this special vector?#»i#»j#»

k

I Also, have you seen this?1 1

0 1

This is a special matrix called Shear matrix.

Page 10: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Basis Vectors

These are the vectors which can define the entirecoordinate space.

I Do you recognize this special vector?#»i#»j#»

k

I Also, have you seen this?1 1

0 1

This is a special matrix called Shear matrix.

Page 11: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Basis vectors

Example

The image2 below shows the basis vectors of a Shear matrix.

2Essence of Linear Algebra, Chapter 3

Page 12: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

The Storyline

The Geometry of Linear EquationsVectors and Basis vectorsLinear combinations and Span

The box game: MatricesElimination and Multiplication, A=LU

Transforming your LIFE LeenearlyCool Video, The Determinant

Space TourColumn space, Null space, Inverses

Celebrity: The RankSolution concept

Some things of EigenEigen values, Eigen vectors, Change of Basis

Page 13: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Linear combinations

Additivity 1

2

+

6

3

=

7

5

#»u + #»v = #»w

Scaling

2

1

2

=

2

4

2 #»v =# »

(2v)

Hybrid

2

1

2

+ 3

6

3

=

20

13

a #»u + b #»v = #»w

Page 14: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Span

Example

The image3 below shows how two vectors can span the 2Dspace.

3Essence of Linear Algebra, Chapter 2

Page 15: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

The Storyline

The Geometry of Linear EquationsVectors and Basis vectorsLinear combinations and Span

The box game: MatricesElimination and Multiplication, A=LU

Transforming your LIFE LeenearlyCool Video, The Determinant

Space TourColumn space, Null space, Inverses

Celebrity: The RankSolution concept

Some things of EigenEigen values, Eigen vectors, Change of Basis

Page 16: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Elimination

Gauss-Jordan EliminationA method of solving a linear system of equations. This isdone by transforming the system’s augmented matrix intoreduced row-echelon form (rref) by means of row operations.Types of row Operations:Type 1: Swap the positions of two rows.Type 2: Multiply a row by a nonzero scalar.Type 3: Add to one row a scalar multiple of another.

Example

RREF =

1 0 0 0

0 1 0 0

0 0 1 2

0 0 0 0

Page 17: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Elimination using Multiplication

Example

x + 2y + z = 2

3x + 8y + z = 12

4y + z = 21 0 0

0 1 0

0 −2 1

1 0 0

−3 1 0

0 0 1

1 2 1

3 8 1

0 4 1

=

1 2 1

0 2 −2

0 0 5

E32E31E21A = U

Page 18: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

A = LU

Example1 2 1

3 8 1

0 4 1

=

1 0 0

3 1 0

0 0 1

1 0 0

0 1 0

0 2 1

1 2 1

0 2 −2

0 0 5

EA = U

A = (E32E31E21)−1U

A = E−121 E−1

31 E−132 U

A = LU

So,A = E−1U.Therefore, L = E−1

Page 19: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

The Storyline

The Geometry of Linear EquationsVectors and Basis vectorsLinear combinations and Span

The box game: MatricesElimination and Multiplication, A=LU

Transforming your LIFE LeenearlyCool Video, The Determinant

Space TourColumn space, Null space, Inverses

Celebrity: The RankSolution concept

Some things of EigenEigen values, Eigen vectors, Change of Basis

Page 20: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Cool Video

Definition CoolThe phrase ”cool” is very relaxed, never goes out of style,and people will never laugh at you for using it.

Definition VideoMake a video recording of (something broadcast ontelevision). YouTube nowadays.

TheoremCool + Video = JUST START PLAYING THE VIDEO!

Example

Here You Go: HUGO

Page 21: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Cool Video0000 0018 6674 7970 6d70 3432 0000 0000 6973 6f6d 6d703432 0003 34bf 6d6f 6f76 0000 006c 6d76 6864 0000 0000d42c 59a6 d42c 59a6 0000 0258 0006 06bf 0001 0000 01000000 0000 0000 0000 0000 0001 0000 0000 0000 0000 00000000 0000 0001 0000 0000 0000 0000 0000 0000 0000 40000000 0000 0000 0000 0000 0000 0000 0000 0000 0000 00000000 0000 0000 0003 0000 0015 696f 6473 0000 0000 1007004f ffff 2915 ff00 0151 fd74 7261 6b00 0000 5c74 6b686400 0000 0f00 0000 00d4 2c59 ae00 0000 0100 0000 00000606 6600 0000 0000 0000 0000 0000 0000 0000 0000 01000000 0000 0000 0000 0000 0000 0000 0100 0000 0000 00000000 0000 0000 0040 0000 0002 8000 0001 6800 0000 00002465 6474 7300 0000 1c65 6c73 7400 0000 0000 0000 01000606 6600 0000 0000 0100 0000 0151 756d 6469 6100 0000206d 6468 6400 0000 0000 0000 00d4 2c59 aa00 0075 30012d40 0355 c400 0000 0000 2d68 646c 7200 0000 0000 00000076 6964 6500 0000 0000 0000 0000 0000 0056 6964 656f4861 6e64 6c65 7200 0001 5120 6d69 6e66 0000 0014 .........

Page 22: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

The Determinant

Block TitleThe determinant of a matrix A is denoted det(A) or det A.It can be viewed as the scaling factor of the transformationdescribed by the matrix.4

The formula:

det(A) =

a b

c d

= ad - bc

I The determinant can tell us whether or not a giventransformation associated with that matrix squisheseverything into a smaller dimension.

I Also, if the value of determinant is negative then thetransformation is equivalent to inverting the orientationof space.

4Source: Wikipedia

Page 23: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

The Determinant

Block TitleThe determinant of a matrix A is denoted det(A) or det A.It can be viewed as the scaling factor of the transformationdescribed by the matrix.4

The formula:

det(A) =

a b

c d

= ad - bc

I The determinant can tell us whether or not a giventransformation associated with that matrix squisheseverything into a smaller dimension.

I Also, if the value of determinant is negative then thetransformation is equivalent to inverting the orientationof space.

4Source: Wikipedia

Page 24: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

The Determinant

Block TitleThe determinant of a matrix A is denoted det(A) or det A.It can be viewed as the scaling factor of the transformationdescribed by the matrix.4

The formula:

det(A) =

a b

c d

= ad - bc

I The determinant can tell us whether or not a giventransformation associated with that matrix squisheseverything into a smaller dimension.

I Also, if the value of determinant is negative then thetransformation is equivalent to inverting the orientationof space.

4Source: Wikipedia

Page 25: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

The Determinant

Example

The image5 below shows the significance of calculating theDeterminant of a matrix.

5The Determinant — Essence of Linear Algebra, Chapter 5

Page 26: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

The Determinant

Example

The image6 below shows how to calculate the Determinantof a 2D matrix.

6The Determinant — Essence of Linear Algebra, Chapter 5

Page 27: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

The Storyline

The Geometry of Linear EquationsVectors and Basis vectorsLinear combinations and Span

The box game: MatricesElimination and Multiplication, A=LU

Transforming your LIFE LeenearlyCool Video, The Determinant

Space TourColumn space, Null space, Inverses

Celebrity: The RankSolution concept

Some things of EigenEigen values, Eigen vectors, Change of Basis

Page 28: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Column space and Null space

Column space: C(A)

The column space of a matrix A is the vector spacegenerated by all the linear combinations of the columnvectors.

Null space: N(A)

The set of all vectors #»v such that

A #»v =#»0

Example

Ax =

1 1 2

2 1 3

3 1 4

4 1 5

x

y

z

=

0

0

0

0

⇒ N(A) = c

1

1

−1

Page 29: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Inverse of a matrix A

Inverse of A = A−1

In terms of transformation, the matrix that undoes all thetransformations made by matrix A is called as inverse ofmatrix A (A−1).

A−1A = AA−1 = I

Ax = b ⇒ A−1Ax = A−1b ⇒ x = A−1b

Example

A =

7 2 1

0 3 1

−3 4 2

b =

21

5

−1

x =

x

y

z

x = A−1b ⇒

x

y

z

=

−2 8 −5

3 −11 7

9 −34 21

21

5

−1

=

3

1

−2

Page 30: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Inverse of A

Example

The image7 below shows how two vectors are linked to eachother via Inverse transformation.

7Essence of Linear Algebra, Chapter 6

Page 31: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

The Storyline

The Geometry of Linear EquationsVectors and Basis vectorsLinear combinations and Span

The box game: MatricesElimination and Multiplication, A=LU

Transforming your LIFE LeenearlyCool Video, The Determinant

Space TourColumn space, Null space, Inverses

Celebrity: The RankSolution concept

Some things of EigenEigen values, Eigen vectors, Change of Basis

Page 32: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Find Mr. Rank

What is the rank of the following matrix?

Be Quick!8

12 15 14 19 13 21 05 07 41 51

22 26 26 32 27 36 21 24 59 70

10 11 12 13 14 15 16 17 18 19

24 30 28 38 26 42 10 14 82 102

30 33 36 39 42 45 48 51 54 57

15 16.5 18 19.5 21 22.5 24 25.5 27 28.5

8You’ll be given choc!

Page 33: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

The Rank

Solution concept provided by The Rank

The Rank tells you everything aboutthe number of solutions to a given system of linear equations.9

Matrix A with dimensions m x n, rank r and rref(A) = R

r = m = n r = n < m r = m < n r < m, r < n

R = I R =

I0

R =[I F

]R =

I F

0 0

1 0 or 1 1 or ∞ 0 or ∞

9Gilbert Strang, Linear Algebra lecture 8

Page 34: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

The Storyline

The Geometry of Linear EquationsVectors and Basis vectorsLinear combinations and Span

The box game: MatricesElimination and Multiplication, A=LU

Transforming your LIFE LeenearlyCool Video, The Determinant

Space TourColumn space, Null space, Inverses

Celebrity: The RankSolution concept

Some things of EigenEigen values, Eigen vectors, Change of Basis

Page 35: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Some things of Eigen

Eigen values and vectors

An Eigen vector of a linear transformation is a non-zerovector whose direction does not change when that lineartransformation is applied to it. More formally, if T is a lineartransformation from a vector space V and #»v is a vector in Vthat is not the zero vector, then #»v is an eigenvector of T ifT ( #»v ) is a scalar multiple of #»v . This condition can bewritten as the equation

T ( #»v ) = λ #»v

where λ is a scalar known as the eigenvalue, characteristicvalue or root associated with the eigenvector #»v .

Page 36: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Eigen values and vectors

Example

The image10 below shows how the eigenvector does notchange it’s direction after applying a linear transformation.

10Eigenvectors and eigenvalues, Essence of linear algebra, chapter 10

Page 37: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Eigen values and vectors

Example

The image11 below shows how the eigenvector gets scaledafter applying a linear transformation.

11Eigenvectors and eigenvalues, Essence of linear algebra, chapter 10

Page 38: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Change of Basis

New coordinates to Old coordinates2 −1

1 1

−1

2

= (−1)

2

1

+ (2)

−1

1

=

−4

1

Old coordinates to New coordinates

2 −1

1 1

−1

=

1/3 1/3

−1/3 2/3

⇒ 1/3 1/3

−1/3 2/3

3

2

=

5/3

1/3

Page 39: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Change of Basis

TransformationLet #»v be a vector in the New coordinates i.e. change ofBasis vectors, A be the matrix representing thetransformation: Change of Basis, and M be thetransformation in Old coordinate system and T be the finaltransformation in the New coordinate system.

A−1MA #»v = T #»v

Example

2 −1

1 1

−1 0 −1

1 0

2 −1

1 1

#»v =

1/3 −2/3

5/3 −1/3

#»v

Page 40: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

The Geometry ofLinear Equations

Vectors and Basisvectors

Linear combinationsand Span

The box game:Matrices

Elimination andMultiplication, A=LU

Transforming yourLIFE Leenearly

Cool Video, TheDeterminant

Space Tour

Column space, Nullspace, Inverses

Celebrity: TheRank

Solution concept

Some things ofEigen

Eigen values, Eigenvectors, Change ofBasis

Summary

Summary

How do you possibly hope to summarize the whole talk?

Like the OLD MAN said: TOGETHER!

Page 41: Essence of Linear Algebra - Some cool intuitions · Essence of Linear Algebra Shreedhar Kodate The Geometry of Linear Equations Vectors and Basis vectors Linear combinations and Span

Essence of LinearAlgebra

Shreedhar Kodate

Appendix

For Further Learning

For Further Learning I

Gilbert Stranghttps://tinyurl.com/gt7dy36MIT OCW

Grant Sandersonhttps://goo.gl/R1kBdbEssence of linear algebra, YouTube channel3Blue1Brown

Think DifferentYou can always find more to learn... If you want to ;-)