CH 01 Slides
CH 01 Slides
WARNING
Cihan Tekoğlu
1
Ch_01
2
Ch_01
3
Ch_01
4
Ch_01
5
Ch_01
6
Ch_01
7
Ch_01
8
Ch_01
9
Ch_01
OR… “Gnuplot”
10
Ch_01
11
Ch_01
Salome-Meca:
The Salome-Meca
platform is a free
software with
integrated pre-
processing (CAD and
mesh), finite element
analysis and post-
processing facilities.
Matrix Algebra
Matrix Calculus
12
Ch_01
Motivation
System of linear equations:
l For example
2 x1 + 3 x2 = 5
x1 - 2 x2 = -1
l In matrix form
é2 3 ù é x1 ù é 5 ù
ê1 - 2ú ê x ú = ê- 1ú (Ax = y)
ë ûë 2 û ë û
Matrices
• A matrix is a rectangular or square array of
values arranged in rows and columns.
• An m × n matrix A, has m rows and n columns,
and has a general form of
13
Ch_01
Example of matrices
Scalars
• A single number such as 2.4 or −6 is called a
scalar.
14
Ch_01
Vectors
• A vector is a matrix with only one column (a
column vector) or only one row (a row vector).
15
Ch_01
Square Matrix
• Same number of rows and columns
é 5 4 7ù
B = ê3 6 1 ú
êë2 1 3 úû
16
Ch_01
Null Matrix
• All components are zero
é0 0 ù
C = êê0 0 úú
êë0 0 úû
Identity Matrix
• Square matrix with ones on the diagonal and
zeros elsewhere.
é1 0 0 0ù
ê0 1 0 0ú
I = ê
0 0 1 0ú
ê0 1úû
ë 0 0
17
Ch_01
Transpose Matrix
• Rows become columns and columns become
row
Symmetric Matrix
18
Ch_01
Skew-Symmetric Matrix
• Square matrices for which aij = −aji are called
antisymmetric or skew-symmetric. The diagonal
entries of an antisymmetric matrix must be zero.
19
Ch_01
é3 4ù é1 2 ù é4 6 ù
A+B=ê ú +ê ú=ê ú =C
ë5 6û ë3 4û ë8 10û
Matrix Multiplication
20
Ch_01
Properties of
Matrix Multiplication
5. (AB)T = BT AT
Matrix Determinants
§ A Determinant is a real number associated
with a matrix. Only SQUARE matrices
have a determinant.
§ The symbol for a determinant can be the
phrase “det” in front of a matrix variable,
det(A); or vertical bars around
a matrix, |A| or 3 -1 .
2 4
21
Ch_01
Matrix Determinants
• To find the determinant of a 2 x 2 matrix,
multiply diagonal #1 and subtract the product of
diagonal #2.
Diagonal 2 = -2
3 -1
= 12 - (-2) = 14
2 4
Diagonal 1 = 12
Matrix Determinants
• To find the determinant of a 3 x 3 matrix, first
recopy the first two columns. Then do 6 diagonal
products.
18 60 16
5 2 6 5 2
2 -1 4 2 -1 = -8 - 94 = -102
-3 3 4 -3 3
-20 -24 36
22
Ch_01
a1 b1 d1
and D3 = a2 b2 d2
a3 b3 d3
23
Ch_01
Rank of a Matrix
• The rank of a matrix A, written as r(A), is the
maximum number of linearly independent row
vectors of a matrix A.
1 2 3
A = 2 4 6 r(A) = 2
7 8 9
24
Ch_01
Singular Matrix
25
Ch_01
Matrix Inverses
26
Ch_01
Adjugate or Adjoint
27
Ch_01
28
Ch_01
29
Ch_01
Eigenvalues
Eigenvectors
30
Ch_01
31
Ch_01
32
Ch_01
33