Chapter.4.Qálgebra
Chapter.4.Qálgebra
0 −1 Bx = x1 b1 + x2 b2 + · · · + xp bp
2 1 0 =
2 0 A(Bx) = A(x1 b1 + x2 b2 + · · · + xp bp)
One wonders: Warning: The dimensions of the matrices involved in a product must verify
p
Does C exist | C x = ABx ∀x∈ K ?
A B = C
PROBLEM: What dimensions would C have? (m × n) (n × p) ( )
Algebra 2021/2022 4-6 Algebra 2021/2022 4-8
EXAMPLE: EXAMPLE:
" #" #
2 3 4 3 6
= 2 3 4 3 6 ? ?
1 −5 1 −2 3 =
1 −5 1 −2 3 ? ? ?
(2 × 2) (2 × 3) ⇒ ( )
1st row 3rd column → ( 1 , 3 ) entry
2 3 4 2 3 3 2 3 6
= = " #" #
1 −5 1 1 −5 −2 1 −5 3 2 3 4 3 6 ? ? ?
=
1 −5 1 −2 3 ? ?
= =
2nd row 1st column → ( 2 , 1 ) entry
◦ (B + C)A = BA + CA EXAMPLE:
1 −2 4 −2
◦ µ (AB) = (µ A) B = A (µ B) ∀µ∈K =
−1 2 2 −1
EXAMPLE: 1 1 1 1
Ik =
=
→ 4.3
−1 −1 −1 −1
ROTATION 30o EXPANSION AXIS X 1st ROTATION + 2nd EXPANSION PROBLEM: Compute
√
−1
3√ 2 0
A = 21 B=
0 1
BA =
1 3 1 −1
0 1
cos α − sin α
sin α cos α
→ 4.4
Algebra 2021/2022 4-14 Algebra 2021/2022 4-16
Transpose of a Matrix • A symmetric matrix verifies AT = A.
• The transpose of an (m × n) matrix A is the (n × m) EXAMPLE:
matrix AT whose columns are the rows of A.
1 −1 3
That is,
A = −1 0 i
(AT )ij = (A)ji
3 i 2
EXAMPLE:
−5 2 ∀ C ∈ K(m×n)
B = 1 −3 ⇒ BT =
0 4 • An antisymmetric matrix verifies AT = −A.
EXAMPLE:
EXAMPLE:
A = [ a1 a2 · · · an ] ⇒ AT = 0 −1 1
A = 1 0 −i
−1 i 0
EXAMPLE: Row A = ( Row AT = ) ∀ C ∈ K(n×n)
→ 4.7
Algebra 2021/2022 4-17 Algebra 2021/2022 4-19
• PROPERTIES:
Conjugate Transpose of a Matrix
Let A and B be matrices of appropriate dimensions and µ ∈ K:
◦ (AT )T = A ◦ (A + B)T = AT + B T • The conjugate transpose of an (m × n) matrix A is the
(n × m) matrix A∗, or AH , whose elements verify:
◦ (µ A)T = µ (AT ) ◦ (AB)T = B T AT
(A∗)ij = (A)ji.
Proof: Let be A ∈ Km×n and B ∈ Kn×q
n
X Notice: If A is a real matrix, then A∗ = AT
T
(AB) ij
= (AB)ji = (A)jk (B)ki
k=1
n n
EXAMPLE:
X X
= T T
(A )kj (B )ik = T T
(B )ik (A )kj = −5 2−i
k=1 k=1
B= i 3 ⇒ B∗ =
0 4
(ABC)T = A = [ a 1 a2 · · · a n ] ⇒ A∗ =
Proof: ( AB = I ⇒ BA = I )
Theorem 4.6. If A is invertible, A∗ is also invertible and
(A∗)−1 = (A−1)∗.
◦ Suppose that BA = X⇒ BA = X
⇒ A = AX ⇒ A − AX = 0 ⇒ Proof: A∗ (A−1)∗ =
◦ I ∼ E3 ( r2 → r2 − 4r1)
1 0 0 1 0 0 1 0 0
1 0 0 a d
E1 = 0 1 0 E2 = 0 0 1 E3 = −4 1 0
0 0 5 0 1 0 0 0 1 E3 A = −4 1 0 b e =
0 0 1 c f
An Algorithm for finding A−1 PROBLEM: If exists, find the inverse of the matrix
1 0 −2
◦ Construct the matrix [ A I ]
C = 3 1 −2
−5 −1 9
◦ Find its reduced echelon form.
EXAMPLE:
0 1 2 1 0 0 1 0 3 0 1 0
1 0 3 0 1 0 ∼ 0 1 2 1 0 0 ∼
4 −3 8 0 0 1 4 −3 8 0 0 1
| {z } | {z } | {z } | {z } Check: C C −1 =
A I → 4.16
Theorem 4.12. Let T : Kn −→ Kn be a linear 0 1 1 0 0 0
1 0 1 0 0 0
transformation and A its canonical matrix. T is invertible M11 M12 M13
1 1 0 1 0 1
if and only if A is nonsingular. In this case, S(x) = A−1x. M =
= M21 M22 M23
0 0 1 0 0 0
M31 M32 M33
0 0 0 0 0 1
→ 4.17
0 0 1 0 1 0
◦ Scalar Multiplication:
A11 A12 A13 λA11 λA12 λA13
λA = λ =
A21 A22 A23 λA21 λA22 λA23
··
··
◦ (a) A11B11+A12B21=I ⇒
·
0 0 ann 0 0 1/ann
If so,
∃ A−1
11
◦ (b) A11B12+A12B22=0 ⇒ PROBLEM: Determine under what conditions the following
matrix is invertible and, in that case, find its inverse:
Obtaining, " # Im 0
.
A−1 = . A In
→ 4.19
4.4. Determinants
Theorem 4.13. A block diagonal matrix is invertible if and
only if each of the diagonal blocks is invertible. • Given an (m × n) matrix A, we define the minor Aij as
the ((m−1) × (n−1)) matrix obtained by removing the ith row
Proof: The case of two blocks follows from the above result and the jth column of the matrix A.
when A12 = 0. The general case of n blocks can be reduced EXAMPLE:
1 5 0
recursively to that case. A= 2 4 −1 ⇒ A 1 2 = A23 =
0 −2 0
−1
C11 0 ... 0 0 ... 0
• Let A be an (n × n) matrix whose entry (A)ij = aij .
We define the determinant of A as
0 C22 0 0 0
n n
..
=
X X
... j+1
. det A = |A| = (−1) a1j det A1j = a1j C1j ,
··
··
·
j=1 j=1
0 0 Cnn 0 0
where Cij = (−1)i+j det Aij is refered to as the ij cofactor of A.
Algebra 2021/2022 4-50 Algebra 2021/2022 4-52
That is, the determinant of A is defined as the cofactor
expansion along the first row of A. Theorem 4.16. If A is an (n × n) triangular matrix,
its determinant is the product of its diagonal entries.
WARNING:
◦ Determinants are only defined for square matrices. a33 0 0
◦ The factor (−1)k+j only depends on the position of akj but is = a11 a22 det ? a44 0 = · · · =
of the actual sign of akj . ? ? a55
EXAMPLE: 1 5 0 Theorem 4.17. Let A be an (n×n) matrix.
det 2 4 −1 If we obtain a matrix B,
0 −2 0 ◦ By adding to a row of A the multiple of another row,
1st row: det B = det A.
= ◦ By multiplying one row of A by λ,
det B = λ det A.
◦ By interchanging two rows of A,
det B = − det A.
3rd row:
EXAMPLE:
= −3 3 −3
−2 2 −1 = = = =
1 0 1
Proof:
WARNING: In general,
det(A + B) 6= det A + det B.
x2 y 2 z 2
Theorem 4.23. Let A be the canonical matrix of EXAMPLE: Determine the volume of the ellipsoid + +
a2 a2 c2
≤ 1
a linear transformation T : R2 → R2 . If S is a
parallelogram in R2, then
A T (S) = | det A| × AS
e = Ax:
The linear transformation x
e
x 0 0 x
ye = 0 0 y
ze 0 0 z
Proof: 4π
e 2 + ye 2 + ze 2 ≤ 1 whose volume is
transforms the ellipsiod into the sphere x 3
S = {x = } ⇒ AS = | det[ a1 a2]|
Therefore,
T (S) = {x = ∀ α, β ∈ [ 0, 1]} VSPHERE = | det A| × VELLIPSOID
⇒ AT (S) = | det[ T (a1) T (a2)]| = | det[ Aa1 Aa2]| leading to
VELLIPSOID =
= | det A[ a1 a2] | = | det A| × | det[ a1 a2]| → 4.25