SlideShare a Scribd company logo
1 of 36
Beginning Direct3D Game Programming:
Mathematics 5
Matrix
jintaeks@gmail.com
Division of Digital Contents, DongSeo University.
15, May 2016
Linear system
2
 A linear function is a polynomial function of degree zero or
one, or is the zero polynomial(f(x)=0).
Linear function
 When the function is of only one variable, it is of the form
 where a and b are constants, often real numbers.
 The graph of such a function of one variable is a nonvertical
line. a is frequently referred to as the slope of the line,
and b as the intercept.
 For a function of any finite number of independent variables,
the general formula is
 and the graph is a hyperplane of dimension k.
3
Linear map
 In linear algebra, a linear function is a map f between
two vector spaces that preserves vector addition and scalar
multiplication:
 This tells us that for a some input, if we can decompose the
input to addition, the result also be calculated separately.
 In physics and other sciences, a nonlinear system, in contrast
to a linear system, is a system which does not satisfy
the above properties – meaning that the output of a
nonlinear system is not directly proportional to the input.
4
Linear system
 A system of linear equations (or linear system) is a
collection of two or more linear equations involving the same
set of variables.
 Above is a system of three equations in the three
variables x, y, z.
5
Plane
 A plane is a flat, two-dimensional surface that extends
infinitely far.
 The equation of a plane with nonzero normal vector n=(a,b,c)
through the point x0=(x0,y0,z0) is n·(x-x0)=0, where x=(x,y,z).
6
 Plugging in gives the general equation of a plane,
ax+by+cz+d=0,
 where
d=-ax0-by0-cz0.
 A plane specified in this form therefore has x-, y-, and z-
intercepts at
x = -d/a
y = -d/b
z = -d/c,
 and lies at a distance
D=d/(sqrt(a2+b2+c2))
 from the origin.
7
Plane Point Distance
8
9
Linear system
 A solution to a linear system is an
assignment of numbers to the
variables such that all the equations
are simultaneously satisfied.
10
A linear system in three variables
determines a collection of planes.
The intersection point is the
solution.
Matrix
 Each element of a matrix is often denoted by a variable with
two subscripts. For instance, a2,1 represents the element at the
second row and first column of a matrix A.
11
 A matrix (plural matrices) is a rectangular array of
numbers, symbols, or expressions, arranged
in rows and columns. The dimensions of below matrix
are 2 × 3 (read "two by three"), because there are two rows
and three columns.
12
Size
 The size of a matrix is defined by the number of rows and
columns that it contains. A matrix with m rows and n columns
is called an m × n matrix or m-by-n matrix,
while m and n are called its dimensions.
13
Notation
 Matrices are commonly written in box
brackets or parentheses:
 The (1,3) entry of the following matrix A is 5. It is
denoted a13, a1,3, A[1,3] or A1,3.
14
Basic operations
 There are a number of basic operations that can be applied to
modify matrices.
– matrix addition
– scalar multiplication
– transposition
– matrix multiplication
– row operations.
15
Addition
 The sum A+B of two m-by-n matrices A and Bis calculated
entrywise:
(A + B)i,j = Ai,j+ Bi,j, where 1 ≤ i ≤ m and 1 ≤ j ≤ n.
16
Transposition
 The transpose of an m-by-n matrix A is the n-by-m
matrix AT formed by turning rows into columns and vice versa:
(AT)i,j = Aj,i
17
Scalar multiplication
 The product cA of a number c (also called a scalar in the
parlance of abstract algebra) and a matrix A is computed by
multiplying every entry of A by c:
(cA)i,j = c · Ai,j.
 This operation is called scalar multiplication.
– Its result is not named “scalar product” to avoid confusion, since
“scalar product” is sometimes used as a synonym for “inner product”.
18
Multiplication
 Multiplication of two matrices is defined if and only if the
number of columns of the left matrix is the same as the
number of rows of the right matrix.
 If A is an m-by-n matrix and B is an n-by-p matrix, then
their matrix product AB is the m-by-p matrix whose entries
are given by dot product of the corresponding row of A and
the corresponding column of B:
19
 Schematic depiction of the matrix product AB of two matrices
A and B.
20
example
 Matrix multiplication satisfies the rules (AB)C = A(BC)
(associativity), and (A+B)C = AC+BC as well as C(A+B)
=CA+CB (left and right distributivity), whenever the size of the
matrices is such that the various products are defined. The
product AB, they need not be equal, that is, generally
AB ≠ BA,
21
3=2×0+3×1+4×0
2340=2×1000+3×100+4×10
Identity element, Inverse element for multiplication
 For some real number a
a×1 = a
 In this case, 1 is called the identity element for multiplication.
a×( ) = 1
 The answer to above equation is 1/a, 1/a is called the inverse
element of a for multiplication.
22
Identity Matrix
 In linear algebra, the identity matrix, or sometimes
ambiguously called a unit matrix, of size n is
the n × n square matrix with ones on the main diagonal and
zeros elsewhere.
 When A is m×n, it is a property of matrix multiplication that
23
Determinant
 In linear algebra, the determinant is a useful value that can
be computed from the elements of a square matrix. The
determinant of a matrix A is denoted det(A) or |A|.
24
Linear Systems
 Matrices provide a compact and convenient way to represent
systems of linear equations. For instance, the linear system is
given below.
 Above linear system can be represented in matrix form like
below.
25
 The matrix preceding the vector x, y, z of unknowns is called
the coefficient matrix, and the column vector on the right
side of the equals sign is called the constant vector. Linear
systems for which the constant vector is nonzero (like the
example above) are called non-homogeneous.
 Linear systems for which every entry of the constant vector is
zero are called homogeneous.
– The geometric meaning of homogeneous is all the 3-planes meet at
the origin (0,0,0).
26
How to solve?
 We can set the augmented matrix formed by concatenating
the coefficient matrix and constant vector.
 And we may apply operations known as the Elementary Row
Operation.
 We will not examine that process.
27
Homogeneous Matrix
 Later, we will use 4x4 matrices to consistently represent
translation, scaling and rotation in 3D space.
 In that case a14, a24 and a34 is always zero, so we call this 4x4
matrix as a Homogeneous Matrix.
3 2 −3 0
4 −3 6 0
1
0
0
0
−1
0
0
1
28
Matrix Inverses
 An n × n matrix M is invertible if there exists a matrix, which
we denote by M−1, such that MM−1 =M−1M = I. The matrix
M−1 is called the inverse of M.
 Not every matrix has an inverse, and those that do not are
called singular. An example of a singular matrix is any one
that has a row or column consisting of all zeros.
1 0 0
0 1 0
0 0 0
 Any matrix possessing a row that is a linear combination of
the other rows of the matrix is singular.
1 0 0
0 1 0
2 2 0
29
How to calculate the inverse of an n×n matrix M?
 There is a well known algorithm called 'Gauss-Jordan
elimination'.
 We will not examine that algorithm.
30
Back to the 2D Rotation
 Do you remember this linear system?
31
x' = x·cos(θ) – y·sin(θ)
y' = x·sin(θ) + x·cos(θ)
 Above linear system can be represented like below.
𝑥′
𝑦′
=
𝑐𝑜𝑠(𝜃) −sin(𝜃)
sin(𝜃) cos(𝜃)
𝑥
𝑦
32
Key observation
 In 2-dimensional space, when a position (a,b) is given, a linear
system uniquely determines a new position (a', b').
 For example, for a position (2,1), We can find a linear system
which transform to a new position (1,3).
33
 But there may be no linear system such like that, or may be
very difficult to find the system.
 In that case, the process may be decomposed to more easier
steps.
 To consistently represent this process, we uses matrix as a
ADT(abstract data type).
34
References
 https://en.wikipedia.org/wiki/Linear_function
 http://mathworld.wolfram.com/Point-PlaneDistance.html
 https://en.wikipedia.org/wiki/Matrix_(mathematics)
35
Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeks

More Related Content

What's hot

Bba i-bm-u-2- matrix -
Bba i-bm-u-2- matrix -Bba i-bm-u-2- matrix -
Bba i-bm-u-2- matrix -Rai University
 
Matrices and determinants
Matrices and determinantsMatrices and determinants
Matrices and determinantsoscar
 
Determinants
DeterminantsDeterminants
DeterminantsRivan001
 
Matrix and Determinants
Matrix and DeterminantsMatrix and Determinants
Matrix and DeterminantsAarjavPinara
 
Ppt on matrices and Determinants
Ppt on matrices and DeterminantsPpt on matrices and Determinants
Ppt on matrices and DeterminantsNirmalaSolapur
 
Inverse Matrix & Determinants
Inverse Matrix & DeterminantsInverse Matrix & Determinants
Inverse Matrix & Determinantsitutor
 
Matrices y determinants
Matrices y determinantsMatrices y determinants
Matrices y determinantsJeannie
 
Introduction of matrix
Introduction of matrixIntroduction of matrix
Introduction of matrixPankaj Das
 
Determinants - Mathematics
Determinants - MathematicsDeterminants - Mathematics
Determinants - MathematicsDrishti Bhalla
 
Matrices - multiplication of matrices
Matrices - multiplication of matrices Matrices - multiplication of matrices
Matrices - multiplication of matrices LiveOnlineClassesInd
 
Project business maths
Project business mathsProject business maths
Project business mathsareea
 
Notes of Matrices and Determinants
Notes of Matrices and DeterminantsNotes of Matrices and Determinants
Notes of Matrices and DeterminantsKarunaGupta1982
 
WCS Specialist Maths An Introduction to Matrices PowerPoint
WCS Specialist Maths An Introduction to Matrices PowerPointWCS Specialist Maths An Introduction to Matrices PowerPoint
WCS Specialist Maths An Introduction to Matrices PowerPointKingp18
 
Matrix and its operations
Matrix and its operationsMatrix and its operations
Matrix and its operationsPankaj Das
 

What's hot (20)

Bba i-bm-u-2- matrix -
Bba i-bm-u-2- matrix -Bba i-bm-u-2- matrix -
Bba i-bm-u-2- matrix -
 
Matrices and determinants
Matrices and determinantsMatrices and determinants
Matrices and determinants
 
Determinants
DeterminantsDeterminants
Determinants
 
Matrix and Determinants
Matrix and DeterminantsMatrix and Determinants
Matrix and Determinants
 
Ppt on matrices and Determinants
Ppt on matrices and DeterminantsPpt on matrices and Determinants
Ppt on matrices and Determinants
 
Inverse Matrix & Determinants
Inverse Matrix & DeterminantsInverse Matrix & Determinants
Inverse Matrix & Determinants
 
Matrices y determinants
Matrices y determinantsMatrices y determinants
Matrices y determinants
 
Determinants
DeterminantsDeterminants
Determinants
 
Introduction of matrix
Introduction of matrixIntroduction of matrix
Introduction of matrix
 
Matrices ppt
Matrices pptMatrices ppt
Matrices ppt
 
Determinants - Mathematics
Determinants - MathematicsDeterminants - Mathematics
Determinants - Mathematics
 
Matrices - multiplication of matrices
Matrices - multiplication of matrices Matrices - multiplication of matrices
Matrices - multiplication of matrices
 
Project business maths
Project business mathsProject business maths
Project business maths
 
Notes of Matrices and Determinants
Notes of Matrices and DeterminantsNotes of Matrices and Determinants
Notes of Matrices and Determinants
 
WCS Specialist Maths An Introduction to Matrices PowerPoint
WCS Specialist Maths An Introduction to Matrices PowerPointWCS Specialist Maths An Introduction to Matrices PowerPoint
WCS Specialist Maths An Introduction to Matrices PowerPoint
 
matrices and function ( matrix)
matrices and function ( matrix)matrices and function ( matrix)
matrices and function ( matrix)
 
Matrices
MatricesMatrices
Matrices
 
Matrices and determinants-1
Matrices and determinants-1Matrices and determinants-1
Matrices and determinants-1
 
Matrix and its operations
Matrix and its operationsMatrix and its operations
Matrix and its operations
 
Matrices
MatricesMatrices
Matrices
 

Viewers also liked

Beginning direct3d gameprogramming01_thehistoryofdirect3dgraphics_20160407_ji...
Beginning direct3d gameprogramming01_thehistoryofdirect3dgraphics_20160407_ji...Beginning direct3d gameprogramming01_thehistoryofdirect3dgraphics_20160407_ji...
Beginning direct3d gameprogramming01_thehistoryofdirect3dgraphics_20160407_ji...JinTaek Seo
 
Beginning direct3d gameprogrammingcpp02_20160324_jintaeks
Beginning direct3d gameprogrammingcpp02_20160324_jintaeksBeginning direct3d gameprogrammingcpp02_20160324_jintaeks
Beginning direct3d gameprogrammingcpp02_20160324_jintaeksJinTaek Seo
 
Beginning direct3d gameprogramming10_shaderdetail_20160506_jintaeks
Beginning direct3d gameprogramming10_shaderdetail_20160506_jintaeksBeginning direct3d gameprogramming10_shaderdetail_20160506_jintaeks
Beginning direct3d gameprogramming10_shaderdetail_20160506_jintaeksJinTaek Seo
 
Beginning direct3d gameprogramming05_thebasics_20160421_jintaeks
Beginning direct3d gameprogramming05_thebasics_20160421_jintaeksBeginning direct3d gameprogramming05_thebasics_20160421_jintaeks
Beginning direct3d gameprogramming05_thebasics_20160421_jintaeksJinTaek Seo
 
Beginning direct3d gameprogrammingmath03_vectors_20160328_jintaeks
Beginning direct3d gameprogrammingmath03_vectors_20160328_jintaeksBeginning direct3d gameprogrammingmath03_vectors_20160328_jintaeks
Beginning direct3d gameprogrammingmath03_vectors_20160328_jintaeksJinTaek Seo
 
Beginning direct3d gameprogrammingmath04_calculus_20160324_jintaeks
Beginning direct3d gameprogrammingmath04_calculus_20160324_jintaeksBeginning direct3d gameprogrammingmath04_calculus_20160324_jintaeks
Beginning direct3d gameprogrammingmath04_calculus_20160324_jintaeksJinTaek Seo
 
Beginning direct3d gameprogramming02_overviewofhalandcom_20160408_jintaeks
Beginning direct3d gameprogramming02_overviewofhalandcom_20160408_jintaeksBeginning direct3d gameprogramming02_overviewofhalandcom_20160408_jintaeks
Beginning direct3d gameprogramming02_overviewofhalandcom_20160408_jintaeksJinTaek Seo
 
Beginning direct3d gameprogramming04_3dfundamentals_20160414_jintaeks
Beginning direct3d gameprogramming04_3dfundamentals_20160414_jintaeksBeginning direct3d gameprogramming04_3dfundamentals_20160414_jintaeks
Beginning direct3d gameprogramming04_3dfundamentals_20160414_jintaeksJinTaek Seo
 
Beginning direct3d gameprogramming01_20161102_jintaeks
Beginning direct3d gameprogramming01_20161102_jintaeksBeginning direct3d gameprogramming01_20161102_jintaeks
Beginning direct3d gameprogramming01_20161102_jintaeksJinTaek Seo
 
Beginning direct3d gameprogrammingmath06_transformations_20161019_jintaeks
Beginning direct3d gameprogrammingmath06_transformations_20161019_jintaeksBeginning direct3d gameprogrammingmath06_transformations_20161019_jintaeks
Beginning direct3d gameprogrammingmath06_transformations_20161019_jintaeksJinTaek Seo
 
Beginning direct3d gameprogramming06_firststepstoanimation_20161115_jintaeks
Beginning direct3d gameprogramming06_firststepstoanimation_20161115_jintaeksBeginning direct3d gameprogramming06_firststepstoanimation_20161115_jintaeks
Beginning direct3d gameprogramming06_firststepstoanimation_20161115_jintaeksJinTaek Seo
 
Beginning direct3d gameprogramming03_programmingconventions_20160414_jintaeks
Beginning direct3d gameprogramming03_programmingconventions_20160414_jintaeksBeginning direct3d gameprogramming03_programmingconventions_20160414_jintaeks
Beginning direct3d gameprogramming03_programmingconventions_20160414_jintaeksJinTaek Seo
 
Beginning direct3d gameprogramming08_usingtextures_20160428_jintaeks
Beginning direct3d gameprogramming08_usingtextures_20160428_jintaeksBeginning direct3d gameprogramming08_usingtextures_20160428_jintaeks
Beginning direct3d gameprogramming08_usingtextures_20160428_jintaeksJinTaek Seo
 
Beginning direct3d gameprogramming07_lightsandmaterials_20161117_jintaeks
Beginning direct3d gameprogramming07_lightsandmaterials_20161117_jintaeksBeginning direct3d gameprogramming07_lightsandmaterials_20161117_jintaeks
Beginning direct3d gameprogramming07_lightsandmaterials_20161117_jintaeksJinTaek Seo
 
Beginning direct3d gameprogrammingmath02_logarithm_20160324_jintaeks
Beginning direct3d gameprogrammingmath02_logarithm_20160324_jintaeksBeginning direct3d gameprogrammingmath02_logarithm_20160324_jintaeks
Beginning direct3d gameprogrammingmath02_logarithm_20160324_jintaeksJinTaek Seo
 
Beginning direct3d gameprogramming09_shaderprogramming_20160505_jintaeks
Beginning direct3d gameprogramming09_shaderprogramming_20160505_jintaeksBeginning direct3d gameprogramming09_shaderprogramming_20160505_jintaeks
Beginning direct3d gameprogramming09_shaderprogramming_20160505_jintaeksJinTaek Seo
 
Matrices - Mathematics
Matrices - MathematicsMatrices - Mathematics
Matrices - MathematicsDrishti Bhalla
 
2002 it in educational management organic school info-systems-decision making...
2002 it in educational management organic school info-systems-decision making...2002 it in educational management organic school info-systems-decision making...
2002 it in educational management organic school info-systems-decision making...Christopher Thorn
 
6.1 system of linear equations and matrices
6.1 system of linear equations and matrices6.1 system of linear equations and matrices
6.1 system of linear equations and matricesmath260
 
Linear Functions And Matrices
Linear Functions And MatricesLinear Functions And Matrices
Linear Functions And Matricesandrewhickson
 

Viewers also liked (20)

Beginning direct3d gameprogramming01_thehistoryofdirect3dgraphics_20160407_ji...
Beginning direct3d gameprogramming01_thehistoryofdirect3dgraphics_20160407_ji...Beginning direct3d gameprogramming01_thehistoryofdirect3dgraphics_20160407_ji...
Beginning direct3d gameprogramming01_thehistoryofdirect3dgraphics_20160407_ji...
 
Beginning direct3d gameprogrammingcpp02_20160324_jintaeks
Beginning direct3d gameprogrammingcpp02_20160324_jintaeksBeginning direct3d gameprogrammingcpp02_20160324_jintaeks
Beginning direct3d gameprogrammingcpp02_20160324_jintaeks
 
Beginning direct3d gameprogramming10_shaderdetail_20160506_jintaeks
Beginning direct3d gameprogramming10_shaderdetail_20160506_jintaeksBeginning direct3d gameprogramming10_shaderdetail_20160506_jintaeks
Beginning direct3d gameprogramming10_shaderdetail_20160506_jintaeks
 
Beginning direct3d gameprogramming05_thebasics_20160421_jintaeks
Beginning direct3d gameprogramming05_thebasics_20160421_jintaeksBeginning direct3d gameprogramming05_thebasics_20160421_jintaeks
Beginning direct3d gameprogramming05_thebasics_20160421_jintaeks
 
Beginning direct3d gameprogrammingmath03_vectors_20160328_jintaeks
Beginning direct3d gameprogrammingmath03_vectors_20160328_jintaeksBeginning direct3d gameprogrammingmath03_vectors_20160328_jintaeks
Beginning direct3d gameprogrammingmath03_vectors_20160328_jintaeks
 
Beginning direct3d gameprogrammingmath04_calculus_20160324_jintaeks
Beginning direct3d gameprogrammingmath04_calculus_20160324_jintaeksBeginning direct3d gameprogrammingmath04_calculus_20160324_jintaeks
Beginning direct3d gameprogrammingmath04_calculus_20160324_jintaeks
 
Beginning direct3d gameprogramming02_overviewofhalandcom_20160408_jintaeks
Beginning direct3d gameprogramming02_overviewofhalandcom_20160408_jintaeksBeginning direct3d gameprogramming02_overviewofhalandcom_20160408_jintaeks
Beginning direct3d gameprogramming02_overviewofhalandcom_20160408_jintaeks
 
Beginning direct3d gameprogramming04_3dfundamentals_20160414_jintaeks
Beginning direct3d gameprogramming04_3dfundamentals_20160414_jintaeksBeginning direct3d gameprogramming04_3dfundamentals_20160414_jintaeks
Beginning direct3d gameprogramming04_3dfundamentals_20160414_jintaeks
 
Beginning direct3d gameprogramming01_20161102_jintaeks
Beginning direct3d gameprogramming01_20161102_jintaeksBeginning direct3d gameprogramming01_20161102_jintaeks
Beginning direct3d gameprogramming01_20161102_jintaeks
 
Beginning direct3d gameprogrammingmath06_transformations_20161019_jintaeks
Beginning direct3d gameprogrammingmath06_transformations_20161019_jintaeksBeginning direct3d gameprogrammingmath06_transformations_20161019_jintaeks
Beginning direct3d gameprogrammingmath06_transformations_20161019_jintaeks
 
Beginning direct3d gameprogramming06_firststepstoanimation_20161115_jintaeks
Beginning direct3d gameprogramming06_firststepstoanimation_20161115_jintaeksBeginning direct3d gameprogramming06_firststepstoanimation_20161115_jintaeks
Beginning direct3d gameprogramming06_firststepstoanimation_20161115_jintaeks
 
Beginning direct3d gameprogramming03_programmingconventions_20160414_jintaeks
Beginning direct3d gameprogramming03_programmingconventions_20160414_jintaeksBeginning direct3d gameprogramming03_programmingconventions_20160414_jintaeks
Beginning direct3d gameprogramming03_programmingconventions_20160414_jintaeks
 
Beginning direct3d gameprogramming08_usingtextures_20160428_jintaeks
Beginning direct3d gameprogramming08_usingtextures_20160428_jintaeksBeginning direct3d gameprogramming08_usingtextures_20160428_jintaeks
Beginning direct3d gameprogramming08_usingtextures_20160428_jintaeks
 
Beginning direct3d gameprogramming07_lightsandmaterials_20161117_jintaeks
Beginning direct3d gameprogramming07_lightsandmaterials_20161117_jintaeksBeginning direct3d gameprogramming07_lightsandmaterials_20161117_jintaeks
Beginning direct3d gameprogramming07_lightsandmaterials_20161117_jintaeks
 
Beginning direct3d gameprogrammingmath02_logarithm_20160324_jintaeks
Beginning direct3d gameprogrammingmath02_logarithm_20160324_jintaeksBeginning direct3d gameprogrammingmath02_logarithm_20160324_jintaeks
Beginning direct3d gameprogrammingmath02_logarithm_20160324_jintaeks
 
Beginning direct3d gameprogramming09_shaderprogramming_20160505_jintaeks
Beginning direct3d gameprogramming09_shaderprogramming_20160505_jintaeksBeginning direct3d gameprogramming09_shaderprogramming_20160505_jintaeks
Beginning direct3d gameprogramming09_shaderprogramming_20160505_jintaeks
 
Matrices - Mathematics
Matrices - MathematicsMatrices - Mathematics
Matrices - Mathematics
 
2002 it in educational management organic school info-systems-decision making...
2002 it in educational management organic school info-systems-decision making...2002 it in educational management organic school info-systems-decision making...
2002 it in educational management organic school info-systems-decision making...
 
6.1 system of linear equations and matrices
6.1 system of linear equations and matrices6.1 system of linear equations and matrices
6.1 system of linear equations and matrices
 
Linear Functions And Matrices
Linear Functions And MatricesLinear Functions And Matrices
Linear Functions And Matrices
 

Similar to Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeks

Direct Methods to Solve Lineal Equations
Direct Methods to Solve Lineal EquationsDirect Methods to Solve Lineal Equations
Direct Methods to Solve Lineal EquationsLizeth Paola Barrero
 
Direct Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations SystemsDirect Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations SystemsLizeth Paola Barrero
 
Chapter 4: Linear Algebraic Equations
Chapter 4: Linear Algebraic EquationsChapter 4: Linear Algebraic Equations
Chapter 4: Linear Algebraic EquationsMaria Fernanda
 
intruduction to Matrix in discrete structures.pptx
intruduction to Matrix in discrete structures.pptxintruduction to Matrix in discrete structures.pptx
intruduction to Matrix in discrete structures.pptxShaukatAliChaudhry1
 
systems of linear equations & matrices
systems of linear equations & matricessystems of linear equations & matrices
systems of linear equations & matricesStudent
 
Linear Algebra Presentation including basic of linear Algebra
Linear Algebra Presentation including basic of linear AlgebraLinear Algebra Presentation including basic of linear Algebra
Linear Algebra Presentation including basic of linear AlgebraMUHAMMADUSMAN93058
 
Linear_Algebra_final.pdf
Linear_Algebra_final.pdfLinear_Algebra_final.pdf
Linear_Algebra_final.pdfRohitAnand125
 
MATRICES AND DETERMINANTS.ppt
MATRICES AND DETERMINANTS.pptMATRICES AND DETERMINANTS.ppt
MATRICES AND DETERMINANTS.ppt21EDM25Lilitha
 
1. Linear Algebra for Machine Learning: Linear Systems
1. Linear Algebra for Machine Learning: Linear Systems1. Linear Algebra for Machine Learning: Linear Systems
1. Linear Algebra for Machine Learning: Linear SystemsCeni Babaoglu, PhD
 
Engg maths k notes(4)
Engg maths k notes(4)Engg maths k notes(4)
Engg maths k notes(4)Ranjay Kumar
 
Matrices and determinants
Matrices and determinantsMatrices and determinants
Matrices and determinantssom allul
 
Matrices
MatricesMatrices
Matricesdaferro
 
MATRICES
MATRICESMATRICES
MATRICESdaferro
 

Similar to Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeks (20)

Direct Methods to Solve Lineal Equations
Direct Methods to Solve Lineal EquationsDirect Methods to Solve Lineal Equations
Direct Methods to Solve Lineal Equations
 
Direct methods
Direct methodsDirect methods
Direct methods
 
Direct Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations SystemsDirect Methods to Solve Linear Equations Systems
Direct Methods to Solve Linear Equations Systems
 
Direct methods
Direct methodsDirect methods
Direct methods
 
Chapter 4: Linear Algebraic Equations
Chapter 4: Linear Algebraic EquationsChapter 4: Linear Algebraic Equations
Chapter 4: Linear Algebraic Equations
 
Matrix_PPT.pptx
Matrix_PPT.pptxMatrix_PPT.pptx
Matrix_PPT.pptx
 
intruduction to Matrix in discrete structures.pptx
intruduction to Matrix in discrete structures.pptxintruduction to Matrix in discrete structures.pptx
intruduction to Matrix in discrete structures.pptx
 
Matrix_PPT.pptx
Matrix_PPT.pptxMatrix_PPT.pptx
Matrix_PPT.pptx
 
systems of linear equations & matrices
systems of linear equations & matricessystems of linear equations & matrices
systems of linear equations & matrices
 
Linear Algebra Presentation including basic of linear Algebra
Linear Algebra Presentation including basic of linear AlgebraLinear Algebra Presentation including basic of linear Algebra
Linear Algebra Presentation including basic of linear Algebra
 
Unit i
Unit iUnit i
Unit i
 
Linear_Algebra_final.pdf
Linear_Algebra_final.pdfLinear_Algebra_final.pdf
Linear_Algebra_final.pdf
 
MATRICES AND DETERMINANTS.ppt
MATRICES AND DETERMINANTS.pptMATRICES AND DETERMINANTS.ppt
MATRICES AND DETERMINANTS.ppt
 
Matrices
MatricesMatrices
Matrices
 
1. Linear Algebra for Machine Learning: Linear Systems
1. Linear Algebra for Machine Learning: Linear Systems1. Linear Algebra for Machine Learning: Linear Systems
1. Linear Algebra for Machine Learning: Linear Systems
 
Engg maths k notes(4)
Engg maths k notes(4)Engg maths k notes(4)
Engg maths k notes(4)
 
Matrices and determinants
Matrices and determinantsMatrices and determinants
Matrices and determinants
 
Linear Algebra and its use in finance:
Linear Algebra and its use in finance:Linear Algebra and its use in finance:
Linear Algebra and its use in finance:
 
Matrices
MatricesMatrices
Matrices
 
MATRICES
MATRICESMATRICES
MATRICES
 

More from JinTaek Seo

Neural network 20161210_jintaekseo
Neural network 20161210_jintaekseoNeural network 20161210_jintaekseo
Neural network 20161210_jintaekseoJinTaek Seo
 
05 heap 20161110_jintaeks
05 heap 20161110_jintaeks05 heap 20161110_jintaeks
05 heap 20161110_jintaeksJinTaek Seo
 
02 linked list_20160217_jintaekseo
02 linked list_20160217_jintaekseo02 linked list_20160217_jintaekseo
02 linked list_20160217_jintaekseoJinTaek Seo
 
Hermite spline english_20161201_jintaeks
Hermite spline english_20161201_jintaeksHermite spline english_20161201_jintaeks
Hermite spline english_20161201_jintaeksJinTaek Seo
 
01 stack 20160908_jintaek_seo
01 stack 20160908_jintaek_seo01 stack 20160908_jintaek_seo
01 stack 20160908_jintaek_seoJinTaek Seo
 
03 fsm how_toimplementai_state_20161006_jintaeks
03 fsm how_toimplementai_state_20161006_jintaeks03 fsm how_toimplementai_state_20161006_jintaeks
03 fsm how_toimplementai_state_20161006_jintaeksJinTaek Seo
 
Beginning direct3d gameprogrammingmath01_primer_20160324_jintaeks
Beginning direct3d gameprogrammingmath01_primer_20160324_jintaeksBeginning direct3d gameprogrammingmath01_primer_20160324_jintaeks
Beginning direct3d gameprogrammingmath01_primer_20160324_jintaeksJinTaek Seo
 
Boost pp 20091102_서진택
Boost pp 20091102_서진택Boost pp 20091102_서진택
Boost pp 20091102_서진택JinTaek Seo
 
아직도가야할길 훈련 20090722_서진택
아직도가야할길 훈련 20090722_서진택아직도가야할길 훈련 20090722_서진택
아직도가야할길 훈련 20090722_서진택JinTaek Seo
 
3ds maxscript 튜토리얼_20151206_서진택
3ds maxscript 튜토리얼_20151206_서진택3ds maxscript 튜토리얼_20151206_서진택
3ds maxscript 튜토리얼_20151206_서진택JinTaek Seo
 
Multithread programming 20151206_서진택
Multithread programming 20151206_서진택Multithread programming 20151206_서진택
Multithread programming 20151206_서진택JinTaek Seo
 
03동물 로봇그리고사람 public_20151125_서진택
03동물 로봇그리고사람 public_20151125_서진택03동물 로봇그리고사람 public_20151125_서진택
03동물 로봇그리고사람 public_20151125_서진택JinTaek Seo
 
20150605 홀트입양예비부모모임 서진택
20150605 홀트입양예비부모모임 서진택20150605 홀트입양예비부모모임 서진택
20150605 홀트입양예비부모모임 서진택JinTaek Seo
 
Boost라이브러리의내부구조 20151111 서진택
Boost라이브러리의내부구조 20151111 서진택Boost라이브러리의내부구조 20151111 서진택
Boost라이브러리의내부구조 20151111 서진택JinTaek Seo
 

More from JinTaek Seo (14)

Neural network 20161210_jintaekseo
Neural network 20161210_jintaekseoNeural network 20161210_jintaekseo
Neural network 20161210_jintaekseo
 
05 heap 20161110_jintaeks
05 heap 20161110_jintaeks05 heap 20161110_jintaeks
05 heap 20161110_jintaeks
 
02 linked list_20160217_jintaekseo
02 linked list_20160217_jintaekseo02 linked list_20160217_jintaekseo
02 linked list_20160217_jintaekseo
 
Hermite spline english_20161201_jintaeks
Hermite spline english_20161201_jintaeksHermite spline english_20161201_jintaeks
Hermite spline english_20161201_jintaeks
 
01 stack 20160908_jintaek_seo
01 stack 20160908_jintaek_seo01 stack 20160908_jintaek_seo
01 stack 20160908_jintaek_seo
 
03 fsm how_toimplementai_state_20161006_jintaeks
03 fsm how_toimplementai_state_20161006_jintaeks03 fsm how_toimplementai_state_20161006_jintaeks
03 fsm how_toimplementai_state_20161006_jintaeks
 
Beginning direct3d gameprogrammingmath01_primer_20160324_jintaeks
Beginning direct3d gameprogrammingmath01_primer_20160324_jintaeksBeginning direct3d gameprogrammingmath01_primer_20160324_jintaeks
Beginning direct3d gameprogrammingmath01_primer_20160324_jintaeks
 
Boost pp 20091102_서진택
Boost pp 20091102_서진택Boost pp 20091102_서진택
Boost pp 20091102_서진택
 
아직도가야할길 훈련 20090722_서진택
아직도가야할길 훈련 20090722_서진택아직도가야할길 훈련 20090722_서진택
아직도가야할길 훈련 20090722_서진택
 
3ds maxscript 튜토리얼_20151206_서진택
3ds maxscript 튜토리얼_20151206_서진택3ds maxscript 튜토리얼_20151206_서진택
3ds maxscript 튜토리얼_20151206_서진택
 
Multithread programming 20151206_서진택
Multithread programming 20151206_서진택Multithread programming 20151206_서진택
Multithread programming 20151206_서진택
 
03동물 로봇그리고사람 public_20151125_서진택
03동물 로봇그리고사람 public_20151125_서진택03동물 로봇그리고사람 public_20151125_서진택
03동물 로봇그리고사람 public_20151125_서진택
 
20150605 홀트입양예비부모모임 서진택
20150605 홀트입양예비부모모임 서진택20150605 홀트입양예비부모모임 서진택
20150605 홀트입양예비부모모임 서진택
 
Boost라이브러리의내부구조 20151111 서진택
Boost라이브러리의내부구조 20151111 서진택Boost라이브러리의내부구조 20151111 서진택
Boost라이브러리의내부구조 20151111 서진택
 

Recently uploaded

pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture designssuser87fa0c1
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage examplePragyanshuParadkar1
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 

Recently uploaded (20)

pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture design
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage example
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 

Beginning direct3d gameprogrammingmath05_matrices_20160515_jintaeks

  • 1. Beginning Direct3D Game Programming: Mathematics 5 Matrix jintaeks@gmail.com Division of Digital Contents, DongSeo University. 15, May 2016
  • 2. Linear system 2  A linear function is a polynomial function of degree zero or one, or is the zero polynomial(f(x)=0).
  • 3. Linear function  When the function is of only one variable, it is of the form  where a and b are constants, often real numbers.  The graph of such a function of one variable is a nonvertical line. a is frequently referred to as the slope of the line, and b as the intercept.  For a function of any finite number of independent variables, the general formula is  and the graph is a hyperplane of dimension k. 3
  • 4. Linear map  In linear algebra, a linear function is a map f between two vector spaces that preserves vector addition and scalar multiplication:  This tells us that for a some input, if we can decompose the input to addition, the result also be calculated separately.  In physics and other sciences, a nonlinear system, in contrast to a linear system, is a system which does not satisfy the above properties – meaning that the output of a nonlinear system is not directly proportional to the input. 4
  • 5. Linear system  A system of linear equations (or linear system) is a collection of two or more linear equations involving the same set of variables.  Above is a system of three equations in the three variables x, y, z. 5
  • 6. Plane  A plane is a flat, two-dimensional surface that extends infinitely far.  The equation of a plane with nonzero normal vector n=(a,b,c) through the point x0=(x0,y0,z0) is n·(x-x0)=0, where x=(x,y,z). 6
  • 7.  Plugging in gives the general equation of a plane, ax+by+cz+d=0,  where d=-ax0-by0-cz0.  A plane specified in this form therefore has x-, y-, and z- intercepts at x = -d/a y = -d/b z = -d/c,  and lies at a distance D=d/(sqrt(a2+b2+c2))  from the origin. 7
  • 9. 9
  • 10. Linear system  A solution to a linear system is an assignment of numbers to the variables such that all the equations are simultaneously satisfied. 10 A linear system in three variables determines a collection of planes. The intersection point is the solution.
  • 11. Matrix  Each element of a matrix is often denoted by a variable with two subscripts. For instance, a2,1 represents the element at the second row and first column of a matrix A. 11
  • 12.  A matrix (plural matrices) is a rectangular array of numbers, symbols, or expressions, arranged in rows and columns. The dimensions of below matrix are 2 × 3 (read "two by three"), because there are two rows and three columns. 12
  • 13. Size  The size of a matrix is defined by the number of rows and columns that it contains. A matrix with m rows and n columns is called an m × n matrix or m-by-n matrix, while m and n are called its dimensions. 13
  • 14. Notation  Matrices are commonly written in box brackets or parentheses:  The (1,3) entry of the following matrix A is 5. It is denoted a13, a1,3, A[1,3] or A1,3. 14
  • 15. Basic operations  There are a number of basic operations that can be applied to modify matrices. – matrix addition – scalar multiplication – transposition – matrix multiplication – row operations. 15
  • 16. Addition  The sum A+B of two m-by-n matrices A and Bis calculated entrywise: (A + B)i,j = Ai,j+ Bi,j, where 1 ≤ i ≤ m and 1 ≤ j ≤ n. 16
  • 17. Transposition  The transpose of an m-by-n matrix A is the n-by-m matrix AT formed by turning rows into columns and vice versa: (AT)i,j = Aj,i 17
  • 18. Scalar multiplication  The product cA of a number c (also called a scalar in the parlance of abstract algebra) and a matrix A is computed by multiplying every entry of A by c: (cA)i,j = c · Ai,j.  This operation is called scalar multiplication. – Its result is not named “scalar product” to avoid confusion, since “scalar product” is sometimes used as a synonym for “inner product”. 18
  • 19. Multiplication  Multiplication of two matrices is defined if and only if the number of columns of the left matrix is the same as the number of rows of the right matrix.  If A is an m-by-n matrix and B is an n-by-p matrix, then their matrix product AB is the m-by-p matrix whose entries are given by dot product of the corresponding row of A and the corresponding column of B: 19
  • 20.  Schematic depiction of the matrix product AB of two matrices A and B. 20
  • 21. example  Matrix multiplication satisfies the rules (AB)C = A(BC) (associativity), and (A+B)C = AC+BC as well as C(A+B) =CA+CB (left and right distributivity), whenever the size of the matrices is such that the various products are defined. The product AB, they need not be equal, that is, generally AB ≠ BA, 21 3=2×0+3×1+4×0 2340=2×1000+3×100+4×10
  • 22. Identity element, Inverse element for multiplication  For some real number a a×1 = a  In this case, 1 is called the identity element for multiplication. a×( ) = 1  The answer to above equation is 1/a, 1/a is called the inverse element of a for multiplication. 22
  • 23. Identity Matrix  In linear algebra, the identity matrix, or sometimes ambiguously called a unit matrix, of size n is the n × n square matrix with ones on the main diagonal and zeros elsewhere.  When A is m×n, it is a property of matrix multiplication that 23
  • 24. Determinant  In linear algebra, the determinant is a useful value that can be computed from the elements of a square matrix. The determinant of a matrix A is denoted det(A) or |A|. 24
  • 25. Linear Systems  Matrices provide a compact and convenient way to represent systems of linear equations. For instance, the linear system is given below.  Above linear system can be represented in matrix form like below. 25
  • 26.  The matrix preceding the vector x, y, z of unknowns is called the coefficient matrix, and the column vector on the right side of the equals sign is called the constant vector. Linear systems for which the constant vector is nonzero (like the example above) are called non-homogeneous.  Linear systems for which every entry of the constant vector is zero are called homogeneous. – The geometric meaning of homogeneous is all the 3-planes meet at the origin (0,0,0). 26
  • 27. How to solve?  We can set the augmented matrix formed by concatenating the coefficient matrix and constant vector.  And we may apply operations known as the Elementary Row Operation.  We will not examine that process. 27
  • 28. Homogeneous Matrix  Later, we will use 4x4 matrices to consistently represent translation, scaling and rotation in 3D space.  In that case a14, a24 and a34 is always zero, so we call this 4x4 matrix as a Homogeneous Matrix. 3 2 −3 0 4 −3 6 0 1 0 0 0 −1 0 0 1 28
  • 29. Matrix Inverses  An n × n matrix M is invertible if there exists a matrix, which we denote by M−1, such that MM−1 =M−1M = I. The matrix M−1 is called the inverse of M.  Not every matrix has an inverse, and those that do not are called singular. An example of a singular matrix is any one that has a row or column consisting of all zeros. 1 0 0 0 1 0 0 0 0  Any matrix possessing a row that is a linear combination of the other rows of the matrix is singular. 1 0 0 0 1 0 2 2 0 29
  • 30. How to calculate the inverse of an n×n matrix M?  There is a well known algorithm called 'Gauss-Jordan elimination'.  We will not examine that algorithm. 30
  • 31. Back to the 2D Rotation  Do you remember this linear system? 31
  • 32. x' = x·cos(θ) – y·sin(θ) y' = x·sin(θ) + x·cos(θ)  Above linear system can be represented like below. 𝑥′ 𝑦′ = 𝑐𝑜𝑠(𝜃) −sin(𝜃) sin(𝜃) cos(𝜃) 𝑥 𝑦 32
  • 33. Key observation  In 2-dimensional space, when a position (a,b) is given, a linear system uniquely determines a new position (a', b').  For example, for a position (2,1), We can find a linear system which transform to a new position (1,3). 33
  • 34.  But there may be no linear system such like that, or may be very difficult to find the system.  In that case, the process may be decomposed to more easier steps.  To consistently represent this process, we uses matrix as a ADT(abstract data type). 34