SlideShare a Scribd company logo
Understand of linear algebra
      Edward J. Yoon (edward@udanax.org)
                 April 18, 2008
What is the Matrix?

• A matrix is a set of elements, organized
  into rows and columns
                   rows



                 a b 
                 c d 
       columns


                     
Matrix Operations


                 f  a  e b  f 
a b   e
c d    g         c  g d  h          Just add elements
              h                
                 f  a  e b  f 
a b   e
c d    g         c  g d  h        Just subtract elements
              h                
               f  ae  bg     af  bh
a b   e                                    Multiply each row
                   ce  dg
c d   g                      cf  dh       by each column
            h                      
Vector Operations

• Vector: 1 x N matrix
                               a 
• Interpretation: a line
                            
  in N dimensional
                           v  b 
  space
• Dot Product, Cross
                               c 
                               
  Product, and
  Magnitude defined
                           y
  on vectors only
                               v


                                      x
Vector Interpretation

• Think of a vector as a line in 2D or 3D
• Think of a matrix as a transformation on
  a line or set of lines
   x  a b   x'
   y   c d    y '
            
Dot Product

• Interpretation: the dot product measures
  to what degree two vectors are aligned


           A
                                A+B = C
                          (use the head-to-tail
               B       method to combine vectors)
       C
  B


           A
Dot Product

                      d 
a  b  abT  a b c  e   ad  be  cf      Think of the dot product
                      
                                                as a matrix multiplication
                      f
                      


                                             The magnitude is the dot
           a  aaT  aa  bb  cc
             2

                                             product of a vector with itself


                                             The dot product is also related to
           a  b  a b cos( )
                                             the angle between the two
                                             vectors – but it doesn’t tell us the
                                             angle
Cross Product

• The cross product of vectors A and B is a vector C
  which is perpendicular to A and B
• The magnitude of C is proportional to the cosine of
  the angle between A and B
• The direction of C follows the right hand rule – this
  why we call it a “right-handed coordinate system”




          a  b  a b sin( )
Inverse of a Matrix

• Identity matrix:
  AI = A
• Some matrices have
                              1 0 0
  an inverse, such that:
                              0 1 0 
  AA-1 = I
                           I 
• Inversion is tricky:
                                     
  (ABC)-1 = C-1B-1A-1
                              0 0 1 
                                    
  Derived from non-
  commutativity
  property
Inverse of a Matrix

                    1. Append the identity
                       matrix to A
                    2. Subtract multiples of the
a b   c 1 0 0
                       other rows from the first
d e            
       f  0 1 0      row to reduce the
                      diagonal element to 1
g h   i 0 0 1
                  3. Transform the identity
                       matrix as you go
                    4. When the original matrix
                       is the identity, the
                       identity has become the
                       inverse!
Determinant of a Matrix

• Used for inversion                 a b 
                                   A
• If det(A) = 0, then A                c d
                                         
  has no inverse
• Can be found using              det( A)  ad  bc
  factorials, pivots, and
  cofactors!                      1  d  b
                             1
                            A
• Lots of                      ad  bc  c a 
                                             
  interpretations – for
  more info, take 18.06
Determinant of a Matrix

ab   c
     f  aei  bfg  cdh  afh  bdi  ceg
de
gh   i

ab   ca b      ca b       c
                                 Sum from left to right
de   fd e      fd e       f      Subtract from right to left
                                 Note: N! terms
gh   ig h      ig h       i
Homogeneous Matrices

• Problem: how to include translations in
  transformations (and do perspective
  transforms)
• Solution: add an extra dimension
                1     x             
                1                   
                                 y
   x       z 1                   
        y
                  1               z
                                    
                    1              1
Ortho-normal Basis

• Basis: a space is totally defined by a set
  of vectors – any point is a linear
  combination of the basis
• Ortho-Normal: orthogonal + normal
• Orthogonal: dot product is zero
• Normal: magnitude is one
• Example: X, Y, Z (but don’t have to be!)
Ortho-normal Basis

          x  1 0 0        x y  0
                       T


          y  0 1 0        xz  0
                       T


          z  0 0 1        yz  0
                       T



X, Y, Z is an orthonormal basis. We can describe any
3D point as a linear combination of these vectors.

How do we express any point as a combination of a
new basis U, V, N, given X, Y, Z?
Ortho-normal Basis

                           n1  a  u  b  u  c  u 
 a 0 0  u1        v1
 0 b 0 u                n2    a  v  b  v  c  v 
                     v2
         2                                           
  0 0 c   u3            n3  a  n  b  n  c  n
                                                     
                     v3
   (not an actual formula – just a way of thinking about it)


To change a point from one coordinate system to
another, compute the dot product of each
coordinate row with each of the basis vectors.

More Related Content

Similar to Understand Of Linear Algebra

Introduction about Geometric Algebra
Introduction about Geometric AlgebraIntroduction about Geometric Algebra
Introduction about Geometric Algebra
Vitor Pamplona
 
Protein Folding Prediction
Protein Folding PredictionProtein Folding Prediction
Protein Folding Prediction
warrenyates
 
X2 T08 03 inequalities & graphs
X2 T08 03 inequalities & graphsX2 T08 03 inequalities & graphs
X2 T08 03 inequalities & graphsNigel Simmons
 
3.1 Quadratic Functions and Models
3.1 Quadratic Functions and Models3.1 Quadratic Functions and Models
3.1 Quadratic Functions and Models
smiller5
 
2.8 Function Operations and Composition
2.8 Function Operations and Composition2.8 Function Operations and Composition
2.8 Function Operations and Composition
smiller5
 
Eigenvalues in a Nutshell
Eigenvalues in a NutshellEigenvalues in a Nutshell
Eigenvalues in a Nutshell
guest9006ab
 
4 image enhancement in spatial domain
4 image enhancement in spatial domain4 image enhancement in spatial domain
4 image enhancement in spatial domain
Prakash Velayudham V
 
Topology Optimization of a Piezoelectric Loudspeaker Coupled with the Acousti...
Topology Optimization of a Piezoelectric Loudspeaker Coupled with the Acousti...Topology Optimization of a Piezoelectric Loudspeaker Coupled with the Acousti...
Topology Optimization of a Piezoelectric Loudspeaker Coupled with the Acousti...
Fabian Wein
 
CMOS Analog Design Lect 3
CMOS Analog Design  Lect 3CMOS Analog Design  Lect 3
CMOS Analog Design Lect 3carlosgalup
 
Lesson 12: Linear Independence
Lesson 12: Linear IndependenceLesson 12: Linear Independence
Lesson 12: Linear Independence
Matthew Leingang
 
Midterm II Review Session Slides
Midterm II Review Session SlidesMidterm II Review Session Slides
Midterm II Review Session Slides
Matthew Leingang
 
IE-002 Control Chart For Variables
IE-002 Control Chart For VariablesIE-002 Control Chart For Variables
IE-002 Control Chart For Variableshandbook
 
Varibale frequency response lecturer 2 - audio+
Varibale frequency response   lecturer 2 - audio+Varibale frequency response   lecturer 2 - audio+
Varibale frequency response lecturer 2 - audio+
Jawad Khan
 
Lesson 9: Gaussian Elimination
Lesson 9: Gaussian EliminationLesson 9: Gaussian Elimination
Lesson 9: Gaussian EliminationMatthew Leingang
 
An Excellent Boring Presentation
An Excellent Boring PresentationAn Excellent Boring Presentation
An Excellent Boring Presentation
Ishtiaque Zico
 
11X1 T08 03 rules for differentiation
11X1 T08 03 rules for differentiation11X1 T08 03 rules for differentiation
11X1 T08 03 rules for differentiationNigel Simmons
 
Lesson 26: Optimization II: Data Fitting
Lesson 26: Optimization II: Data FittingLesson 26: Optimization II: Data Fitting
Lesson 26: Optimization II: Data Fitting
Matthew Leingang
 
Do Wide and Deep Networks Learn the Same Things: Uncovering How Neural Networ...
Do Wide and Deep Networks Learn the Same Things: Uncovering How Neural Networ...Do Wide and Deep Networks Learn the Same Things: Uncovering How Neural Networ...
Do Wide and Deep Networks Learn the Same Things: Uncovering How Neural Networ...
Sungchul Kim
 
Partner Generation for Petri Net Based Service Models
Partner Generation for Petri Net Based Service ModelsPartner Generation for Petri Net Based Service Models
Partner Generation for Petri Net Based Service Models
Universität Rostock
 

Similar to Understand Of Linear Algebra (20)

Introduction about Geometric Algebra
Introduction about Geometric AlgebraIntroduction about Geometric Algebra
Introduction about Geometric Algebra
 
Protein Folding Prediction
Protein Folding PredictionProtein Folding Prediction
Protein Folding Prediction
 
X2 T08 03 inequalities & graphs
X2 T08 03 inequalities & graphsX2 T08 03 inequalities & graphs
X2 T08 03 inequalities & graphs
 
3.1 Quadratic Functions and Models
3.1 Quadratic Functions and Models3.1 Quadratic Functions and Models
3.1 Quadratic Functions and Models
 
2.8 Function Operations and Composition
2.8 Function Operations and Composition2.8 Function Operations and Composition
2.8 Function Operations and Composition
 
Eigenvalues in a Nutshell
Eigenvalues in a NutshellEigenvalues in a Nutshell
Eigenvalues in a Nutshell
 
4 image enhancement in spatial domain
4 image enhancement in spatial domain4 image enhancement in spatial domain
4 image enhancement in spatial domain
 
Topology Optimization of a Piezoelectric Loudspeaker Coupled with the Acousti...
Topology Optimization of a Piezoelectric Loudspeaker Coupled with the Acousti...Topology Optimization of a Piezoelectric Loudspeaker Coupled with the Acousti...
Topology Optimization of a Piezoelectric Loudspeaker Coupled with the Acousti...
 
CMOS Analog Design Lect 3
CMOS Analog Design  Lect 3CMOS Analog Design  Lect 3
CMOS Analog Design Lect 3
 
Lesson 12: Linear Independence
Lesson 12: Linear IndependenceLesson 12: Linear Independence
Lesson 12: Linear Independence
 
Midterm II Review Session Slides
Midterm II Review Session SlidesMidterm II Review Session Slides
Midterm II Review Session Slides
 
First Order
First OrderFirst Order
First Order
 
IE-002 Control Chart For Variables
IE-002 Control Chart For VariablesIE-002 Control Chart For Variables
IE-002 Control Chart For Variables
 
Varibale frequency response lecturer 2 - audio+
Varibale frequency response   lecturer 2 - audio+Varibale frequency response   lecturer 2 - audio+
Varibale frequency response lecturer 2 - audio+
 
Lesson 9: Gaussian Elimination
Lesson 9: Gaussian EliminationLesson 9: Gaussian Elimination
Lesson 9: Gaussian Elimination
 
An Excellent Boring Presentation
An Excellent Boring PresentationAn Excellent Boring Presentation
An Excellent Boring Presentation
 
11X1 T08 03 rules for differentiation
11X1 T08 03 rules for differentiation11X1 T08 03 rules for differentiation
11X1 T08 03 rules for differentiation
 
Lesson 26: Optimization II: Data Fitting
Lesson 26: Optimization II: Data FittingLesson 26: Optimization II: Data Fitting
Lesson 26: Optimization II: Data Fitting
 
Do Wide and Deep Networks Learn the Same Things: Uncovering How Neural Networ...
Do Wide and Deep Networks Learn the Same Things: Uncovering How Neural Networ...Do Wide and Deep Networks Learn the Same Things: Uncovering How Neural Networ...
Do Wide and Deep Networks Learn the Same Things: Uncovering How Neural Networ...
 
Partner Generation for Petri Net Based Service Models
Partner Generation for Petri Net Based Service ModelsPartner Generation for Petri Net Based Service Models
Partner Generation for Petri Net Based Service Models
 

More from Edward Yoon

(소스콘 2015 발표자료) Apache HORN, a large scale deep learning
(소스콘 2015 발표자료) Apache HORN, a large scale deep learning(소스콘 2015 발표자료) Apache HORN, a large scale deep learning
(소스콘 2015 발표자료) Apache HORN, a large scale deep learning
Edward Yoon
 
Introduction to apache horn (incubating)
Introduction to apache horn (incubating)Introduction to apache horn (incubating)
Introduction to apache horn (incubating)
Edward Yoon
 
Apache Hama at Samsung Open Source Conference
Apache Hama at Samsung Open Source ConferenceApache Hama at Samsung Open Source Conference
Apache Hama at Samsung Open Source Conference
Edward Yoon
 
K means 알고리즘을 이용한 영화배우 클러스터링
K means 알고리즘을 이용한 영화배우 클러스터링K means 알고리즘을 이용한 영화배우 클러스터링
K means 알고리즘을 이용한 영화배우 클러스터링Edward Yoon
 
차세대하둡과 주목해야할 오픈소스
차세대하둡과 주목해야할 오픈소스차세대하둡과 주목해야할 오픈소스
차세대하둡과 주목해야할 오픈소스Edward Yoon
 
Quick Understanding of NoSQL
Quick Understanding of NoSQLQuick Understanding of NoSQL
Quick Understanding of NoSQLEdward Yoon
 
The evolution of web and big data
The evolution of web and big dataThe evolution of web and big data
The evolution of web and big dataEdward Yoon
 
Apache hama @ Samsung SW Academy
Apache hama @ Samsung SW AcademyApache hama @ Samsung SW Academy
Apache hama @ Samsung SW AcademyEdward Yoon
 
Apache Hama 0.4
Apache Hama 0.4Apache Hama 0.4
Apache Hama 0.4
Edward Yoon
 
Introduction of Apache Hama - 2011
Introduction of Apache Hama - 2011Introduction of Apache Hama - 2011
Introduction of Apache Hama - 2011
Edward Yoon
 
MongoDB introduction
MongoDB introductionMongoDB introduction
MongoDB introduction
Edward Yoon
 
Monitoring and mining network traffic in clouds
Monitoring and mining network traffic in cloudsMonitoring and mining network traffic in clouds
Monitoring and mining network traffic in cloudsEdward Yoon
 
Apache hama 0.2-userguide
Apache hama 0.2-userguideApache hama 0.2-userguide
Apache hama 0.2-userguideEdward Yoon
 
Usage case of HBase for real-time application
Usage case of HBase for real-time applicationUsage case of HBase for real-time application
Usage case of HBase for real-time application
Edward Yoon
 
Apache HAMA: An Introduction toBulk Synchronization Parallel on Hadoop
Apache HAMA: An Introduction toBulk Synchronization Parallel on HadoopApache HAMA: An Introduction toBulk Synchronization Parallel on Hadoop
Apache HAMA: An Introduction toBulk Synchronization Parallel on Hadoop
Edward Yoon
 
BigTable And Hbase
BigTable And HbaseBigTable And Hbase
BigTable And Hbase
Edward Yoon
 
Heart Proposal
Heart ProposalHeart Proposal
Heart Proposal
Edward Yoon
 

More from Edward Yoon (17)

(소스콘 2015 발표자료) Apache HORN, a large scale deep learning
(소스콘 2015 발표자료) Apache HORN, a large scale deep learning(소스콘 2015 발표자료) Apache HORN, a large scale deep learning
(소스콘 2015 발표자료) Apache HORN, a large scale deep learning
 
Introduction to apache horn (incubating)
Introduction to apache horn (incubating)Introduction to apache horn (incubating)
Introduction to apache horn (incubating)
 
Apache Hama at Samsung Open Source Conference
Apache Hama at Samsung Open Source ConferenceApache Hama at Samsung Open Source Conference
Apache Hama at Samsung Open Source Conference
 
K means 알고리즘을 이용한 영화배우 클러스터링
K means 알고리즘을 이용한 영화배우 클러스터링K means 알고리즘을 이용한 영화배우 클러스터링
K means 알고리즘을 이용한 영화배우 클러스터링
 
차세대하둡과 주목해야할 오픈소스
차세대하둡과 주목해야할 오픈소스차세대하둡과 주목해야할 오픈소스
차세대하둡과 주목해야할 오픈소스
 
Quick Understanding of NoSQL
Quick Understanding of NoSQLQuick Understanding of NoSQL
Quick Understanding of NoSQL
 
The evolution of web and big data
The evolution of web and big dataThe evolution of web and big data
The evolution of web and big data
 
Apache hama @ Samsung SW Academy
Apache hama @ Samsung SW AcademyApache hama @ Samsung SW Academy
Apache hama @ Samsung SW Academy
 
Apache Hama 0.4
Apache Hama 0.4Apache Hama 0.4
Apache Hama 0.4
 
Introduction of Apache Hama - 2011
Introduction of Apache Hama - 2011Introduction of Apache Hama - 2011
Introduction of Apache Hama - 2011
 
MongoDB introduction
MongoDB introductionMongoDB introduction
MongoDB introduction
 
Monitoring and mining network traffic in clouds
Monitoring and mining network traffic in cloudsMonitoring and mining network traffic in clouds
Monitoring and mining network traffic in clouds
 
Apache hama 0.2-userguide
Apache hama 0.2-userguideApache hama 0.2-userguide
Apache hama 0.2-userguide
 
Usage case of HBase for real-time application
Usage case of HBase for real-time applicationUsage case of HBase for real-time application
Usage case of HBase for real-time application
 
Apache HAMA: An Introduction toBulk Synchronization Parallel on Hadoop
Apache HAMA: An Introduction toBulk Synchronization Parallel on HadoopApache HAMA: An Introduction toBulk Synchronization Parallel on Hadoop
Apache HAMA: An Introduction toBulk Synchronization Parallel on Hadoop
 
BigTable And Hbase
BigTable And HbaseBigTable And Hbase
BigTable And Hbase
 
Heart Proposal
Heart ProposalHeart Proposal
Heart Proposal
 

Recently uploaded

Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
ArianaBusciglio
 

Recently uploaded (20)

Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
 

Understand Of Linear Algebra

  • 1. Understand of linear algebra Edward J. Yoon (edward@udanax.org) April 18, 2008
  • 2. What is the Matrix? • A matrix is a set of elements, organized into rows and columns rows a b  c d  columns  
  • 3. Matrix Operations f  a  e b  f  a b   e c d    g   c  g d  h  Just add elements   h   f  a  e b  f  a b   e c d    g   c  g d  h  Just subtract elements   h   f  ae  bg af  bh a b   e Multiply each row   ce  dg c d   g cf  dh  by each column   h  
  • 4. Vector Operations • Vector: 1 x N matrix a  • Interpretation: a line   in N dimensional v  b  space • Dot Product, Cross c   Product, and Magnitude defined y on vectors only v x
  • 5. Vector Interpretation • Think of a vector as a line in 2D or 3D • Think of a matrix as a transformation on a line or set of lines  x  a b   x'  y   c d    y '    
  • 6. Dot Product • Interpretation: the dot product measures to what degree two vectors are aligned A A+B = C (use the head-to-tail B method to combine vectors) C B A
  • 7. Dot Product d  a  b  abT  a b c  e   ad  be  cf Think of the dot product  as a matrix multiplication f  The magnitude is the dot a  aaT  aa  bb  cc 2 product of a vector with itself The dot product is also related to a  b  a b cos( ) the angle between the two vectors – but it doesn’t tell us the angle
  • 8. Cross Product • The cross product of vectors A and B is a vector C which is perpendicular to A and B • The magnitude of C is proportional to the cosine of the angle between A and B • The direction of C follows the right hand rule – this why we call it a “right-handed coordinate system” a  b  a b sin( )
  • 9. Inverse of a Matrix • Identity matrix: AI = A • Some matrices have 1 0 0 an inverse, such that: 0 1 0  AA-1 = I I  • Inversion is tricky:  (ABC)-1 = C-1B-1A-1 0 0 1    Derived from non- commutativity property
  • 10. Inverse of a Matrix 1. Append the identity matrix to A 2. Subtract multiples of the a b c 1 0 0 other rows from the first d e  f  0 1 0 row to reduce the  diagonal element to 1 g h i 0 0 1   3. Transform the identity matrix as you go 4. When the original matrix is the identity, the identity has become the inverse!
  • 11. Determinant of a Matrix • Used for inversion a b  A • If det(A) = 0, then A c d   has no inverse • Can be found using det( A)  ad  bc factorials, pivots, and cofactors! 1  d  b 1 A • Lots of ad  bc  c a    interpretations – for more info, take 18.06
  • 12. Determinant of a Matrix ab c f  aei  bfg  cdh  afh  bdi  ceg de gh i ab ca b ca b c Sum from left to right de fd e fd e f Subtract from right to left Note: N! terms gh ig h ig h i
  • 13. Homogeneous Matrices • Problem: how to include translations in transformations (and do perspective transforms) • Solution: add an extra dimension 1  x  1   y x z 1   y  1  z     1  1
  • 14. Ortho-normal Basis • Basis: a space is totally defined by a set of vectors – any point is a linear combination of the basis • Ortho-Normal: orthogonal + normal • Orthogonal: dot product is zero • Normal: magnitude is one • Example: X, Y, Z (but don’t have to be!)
  • 15. Ortho-normal Basis x  1 0 0 x y  0 T y  0 1 0 xz  0 T z  0 0 1 yz  0 T X, Y, Z is an orthonormal basis. We can describe any 3D point as a linear combination of these vectors. How do we express any point as a combination of a new basis U, V, N, given X, Y, Z?
  • 16. Ortho-normal Basis n1  a  u  b  u  c  u  a 0 0  u1 v1 0 b 0 u n2    a  v  b  v  c  v  v2   2    0 0 c   u3 n3  a  n  b  n  c  n     v3 (not an actual formula – just a way of thinking about it) To change a point from one coordinate system to another, compute the dot product of each coordinate row with each of the basis vectors.