Korean, Edit

Chapter 3. Determinants and Inverses

Recommended post: 【Linear Algebra】 Linear Algebra Table of Contents


1. Determinant

2. Inverse Matrix

3. Cramer’s Rule



1. Determinant

⑴ Definition of a permutation

Permutation: A permutation of S = {1, 2, ···, n} refers to a one-to-one correspondence function σ from S to S.

○ This function is simply written as (f(1), ···, f(n)).

○ Identity permutation: (1, 2, ···, n). That is, when f(i) = i.

Transposition: A transformation that changes (f(1), ···, f(i), ···, f(j), ···, f(n)) to (f(1), ···, f(j), ···, f(i), ···, f(n))

○ In other words, a transposition swaps the images of two elements in the domain of a permutation.

○ Any permutation can be formed by multiplying finitely many transpositions from (1, ···, n).

③ Sign of a permutation

○ Odd permutation: A permutation that can form the identity permutation by multiplying an odd number of transpositions.

○ Even permutation: A permutation that can form the identity permutation by multiplying an even number of transpositions.

○ If a permutation σ is odd, define sgn(σ) = -1; if even, sgn(σ) = +1.

④ Parity of the symmetric group: A permutation cannot be both even and odd.

○ First assume f(0) = 0.

○ Inversion

○ For α ≤ x ≤ β, define M(k)α, β as the number of x such that f(x) > f(y), called an inversion.

○ Sum of inversions


스크린샷 2025-12-05 오후 3 19 43


○ Definitions

○ n1: Number of n such that f(n) > f(a) and 0 < n < i.

○ n2: Number of n such that f(a) > f(n) > f(b) and 0 < n < i.

○ n3: Number of n such that f(b) > f(n) and 0 < n < i.

○ n4: Number of n such that f(n) > f(a) and i < n < j.

○ n5: Number of n such that f(a) > f(n) > f(b) and i < n < j.

○ n6: Number of n such that f(b) > f(n) and 0 < n < i.

Case 1. When f(i) = a and f(j) = b (assuming f(a) > f(b))


스크린샷 2025-12-05 오후 3 21 55

Figure 1. First case of permutation


스크린샷 2025-12-05 오후 3 22 21


Case 2. When f(i) = b and f(j) = a (assuming f(a) > f(b))


스크린샷 2025-12-05 오후 3 23 09

Figure 2. Second case of permutation


스크린샷 2025-12-05 오후 3 23 30


○ Conclusion: Permutations have parity.


스크린샷 2025-12-05 오후 3 23 53


⑵ Definition of determinant: When [A]j is the j-th column vector of matrix A,

Property 1. det[I] = 1

Property 2. Property related to the sign of permutations


스크린샷 2025-12-05 오후 3 24 21


2-1. If in A = ([A]1, ···, [A]n), [A]h = [A]k (1 ≤ h ≠ k ≤ n), then det(A) = 0

Property 3. det(A) = det([A]1, ···, [A]n) is a multilinear function in the column vectors.


스크린샷 2025-12-05 오후 3 26 27


3-1. If [A]i = 0 in A = ([A]1, ···, [A]n), then det(A) = 0 ( 0 + 0 = 0)

3-2. Useful operations on columns: Since the determinant remains the same for the transpose matrix, operations on rows are also allowed.


스크린샷 2025-12-05 오후 3 27 23


④ The unique function satisfying Property 1, Property 2, and Property 3 is as follows.


스크린샷 2025-12-05 오후 3 27 42


⑶ Computing determinants

① Determinant of a 2 × 2 matrix


스크린샷 2025-12-05 오후 3 28 01


② Determinant of a 3 × 3 matrix


스크린샷 2025-12-05 오후 3 28 20


③ Cofactor expansion: Computing determinants using minors


스크린샷 2025-12-05 오후 3 28 39


⑷ Applications of determinants

Theorem 1. If the rank of an n × n matrix A is less than n, then det(A) = 0.

○ Reason: The determinant implies the existence of a unique solution via the inverse matrix.

Theorem 2. Determinant of the transpose: If A is an n × n matrix, det(At) = det(A)

Theorem 3. If A and B are n × n matrices, det(AB) = det(A)det(B)


스크린샷 2025-12-05 오후 3 29 12


Theorem 4. For X ∈ ℳn, A ∈ ℳr, D ∈ ℳn-r, B ∈ ℳr, n-r, the following holds:


스크린샷 2025-12-05 오후 3 29 50


Theorem 4-1.


스크린샷 2025-12-05 오후 3 30 10


Theorem 4-2. For n × n matrices A, B, C, D, if ㅣDㅣ ≠ 0 and CD = DC


스크린샷 2025-12-05 오후 3 30 45


Theorem 4-3. For A ∈ ℳr, B ∈ ℳr, n-r, C ∈ ℳn-r, r, D ∈ ℳn-r, the following identity holds.


스크린샷 2025-12-05 오후 3 31 30


Theorem 5. When x and y are both n-dimensional column vectors, the following identity holds.


스크린샷 2025-12-05 오후 3 31 54


Theorem 6. Vandermonde matrix

○ Definition: A matrix whose columns consist of powers of certain numbers.

○ Determinant


스크린샷 2025-12-05 오후 3 32 21


○ The given determinant can be expressed as a polynomial: For example, regarding xn, the polynomial is of degree ≤ n-1 in xn.

○ Note the fact that subtracting one row vector from another does not change the determinant.

○ From the difference between the nth row and the 1st row, the determinant has (xn - x1) as a factor; similarly (xn - x2), ···, (xn - xn-1).

○ Thus, the polynomial is expressed as (xn - x1) ··· (xn - xn-1): Confirm the coefficient of xnn-1 is 1.

○ Without loss of generality, the same pattern holds for xn-1, xn-2, ···, x1, proving the formula.

Theorem 7. Gramian (Gram) matrix

○ Definition: A symmetric matrix formed by inner products of vectors.

Theorem 8. Hankel matrix

○ Definition: A matrix in which all values along the anti-diagonal (bottom-left ↗ top-right) are equal.

⑸ Uses of determinants

Use 1. Determinants represent area, volume, etc., transformed by a linear transformation.


스크린샷 2025-12-05 오후 3 36 20

Figure 3. Determinant and area of a 2-dimensional linear transformation


Use 2. If given row vectors or column vectors are dependent, the determinant is 0; if independent, the determinant is non-zero (and the converse is also true).

Case 1. Dependent: By Property 2, the determinant becomes 0.

Case 2. Independent

○ Using Gaussian elimination to form an upper triangular matrix, none of the diagonal elements become 0.

○ Such an upper triangular matrix clearly has a non-zero determinant.

○ The determinant does not change during Gaussian elimination.

○ Therefore, a matrix with independent column or row vectors has a non-zero determinant.

Use 3. Existence of inverse matrices: A determinant of 0 is a necessary and sufficient condition for a matrix to have no inverse.

○ Because Gaussian elimination, which preserves the determinant, can automatically find the inverse.

Use 4. Equation of a line passing through (x1, y1)’, (x2, y2)’ in the x-y plane


스크린샷 2025-12-05 오후 3 37 54


Use 5. Cross product of v = (v1, v2, v3) and w = (w1, w2, w3)


스크린샷 2025-12-05 오후 3 38 46


Use 6. Wronskian matrix


스크린샷 2025-12-05 오후 3 39 10


Use 7. Jacobian matrix


스크린샷 2025-12-05 오후 3 39 31


Use 8. Hessian matrix

○ Hessian for a 2 × 2 matrix


스크린샷 2025-12-05 오후 3 39 56


○ Hessian for a 3 × 3 matrix


스크린샷 2025-12-05 오후 3 40 17


○ Hessian for an n × n matrix


스크린샷 2025-12-05 오후 3 40 49


Use 9. Hückel approximation and Hamiltonian (ref))

Use 10. Rotation and reflection transformations

○ Rotation transformation: For a matrix R representing T: xy, if RTR = RRT = I (isometric), det(R) = 1

○ Reflection transformation: For a matrix R representing T: xy, if RTR = RRT = I (isometric), det(R) = -1

Example applied to an object’s collision



2. Inverse Matrix

⑴ Definition


스크린샷 2025-12-05 오후 3 42 10


⑵ Invertible matrix: A matrix with an existing inverse.

Theorem 1. If A has an inverse, it is unique.

Theorem 2. If A is invertible, A-1 is also invertible.


스크린샷 2025-12-05 오후 3 42 36


Theorem 3. If A and B are invertible, AB is also invertible.


스크린샷 2025-12-05 오후 3 42 56


Theorem 4. If A is invertible, cA is also invertible.


스크린샷 2025-12-05 오후 3 43 18


Theorem 5. Inverse matrix and transpose matrix


스크린샷 2025-12-05 오후 3 43 37


Theorem 6. If there exists a natural number k such that det (Ak) ≠ 0 (A is 3 × 3), then A is invertible.

Theorem 7. If there exists a natural number k such that (I - Ak) = O (A is 3 × 3, I is the identity matrix), then A is invertible.

Theorem 8. If there exist v1, v2, ···, vk such that Av1 ∪ Av2 ∪ ··· ∪ Avk = ℝ3, then A is invertible.

○ Reason: It means rank (A) = 3.

⑨ The existence of three orthogonal vectors v1, v2, v3 with Avi ≠ O is not sufficient to regard A as invertible.

○ Reason: Because A may map vectors to a single non-zero vector.


스크린샷 2025-12-05 오후 3 45 48


Computing inverses 1. Finding inverses by transforming to triangular matrices

① Elementary row operations: Provide an algorithm for finding inverse matrices.


스크린샷 2025-12-05 오후 3 46 06


○ ⓐ Swapping row i and row j of A is equivalent to swapping row i and row j of C.

○ ⓑ Multiplying row i of A by c gives the same effect as multiplying row i of C by c.

○ ⓒ Adding c times row j of A to row i is equivalent to performing the same operation on C.

Elementary matrix: A matrix that has the same effect as applying a single elementary row operation.

○ Type 1 elementary matrix: Represents the first elementary operation (ⓐ).

○ Type 2 elementary matrix: Represents the second elementary operation (ⓑ).

○ Type 3 elementary matrix: Represents the third elementary operation (ⓒ).

Theorem 1. All elementary matrices are invertible.

○ The inverse of a type 1 elementary matrix is itself.

○ Inverse of a type 2 elementary matrix


스크린샷 2025-12-05 오후 3 46 41


○ Inverse of a type 3 elementary matrix


스크린샷 2025-12-05 오후 3 47 10


Theorem 2. Any invertible matrix can be expressed as a product of elementary matrices.


스크린샷 2025-12-05 오후 3 47 27


Theorem 3. All triangular matrices are invertible.

○ Triangular matrix: Either upper triangular or lower triangular.

○ Any n × n triangular matrix A can be expressed as a product of elementary matrices.

○ First assume the given triangular matrix is upper triangular.

Step 1. From the identity matrix, multiply row 2 by a12 and add it to row 1.

Step 2. After Step 1, multiply row 3 by a13 and add to row 1, and multiply by a23 and add to row 2.

Step 3. After Step 2, multiply row 4 by a14 and add to row 1, multiply by a24 and add to row 2, and multiply by a34 and add to row 3.

Step 4. By repeating this method, the given upper triangular matrix can be expressed using only the identity matrix.

○ The same process works for lower triangular matrices.

○ Therefore, triangular matrices have inverses and their forms can be determined.

Computing inverses 2. Adjoint matrix

① When A is an n × n matrix, removing row i and column j results in an (n-1) × (n-1) matrix.


스크린샷 2025-12-05 오후 3 48 20


② Cofactor aij


스크린샷 2025-12-05 오후 3 48 43


③ Laplace expansion


스크린샷 2025-12-05 오후 3 49 01


④ Adjoint matrix


스크린샷 2025-12-05 오후 3 49 20


⑤ Computing the inverse matrix


스크린샷 2025-12-05 오후 3 49 37


Computing inverses 3. Programming code

① Using Python numpy


import numpy as np

# Define an example matrix A
A = np.array([
    [1, 2, 3],
    [4, 5, 6],
    [7, 8, 9]
])

# Obtain inverse matrix using numpy.linalg.inv function
try:
    A_inv = np.linalg.inv(A)
    print("A_inv (NumPy):")
    print(A_inv)
except np.linalg.LinAlgError:
    print("There is no inverse matrix.")


② Using Python sympy


import sympy

# Define an example matrix A
A_sym = sympy.Matrix([
    [1, 2, 1],
    [0, 1, 2],
    [1, 2, 3]
])

# Obtain inverse matrix 
try:
    A_sym_inv = A_sym.inv()  # .inv() 메서드 사용
    print("A_inv (Sympy):")
    print(A_sym_inv)
except:
    print("There is no inverse matrix.")



3. Cramer’s Rule

⑴ Let A be an n × n matrix, x = (x1, ···, xn)’, b = (b1, ···, bn)’. The j-th element of the unique solution x0 of Ax = b is:


스크린샷 2025-12-05 오후 3 52 35


⑵ Proof


스크린샷 2025-12-05 오후 3 52 49



Input: 2020.04.22 09:51

Revised: 2024.01.01 18:37

results matching ""

    No results matching ""