矩阵对角化
先决条件:
特征值和特征向量
设 A 和 B 是两个 n 阶矩阵。如果存在可逆矩阵 P,则可以认为 B 与 A 相似,使得
这称为矩阵相似变换。
矩阵的对角化定义为将任意矩阵 A 化简为对角形式 D 的过程。根据相似变换,如果矩阵 A 与 D 相关,则
并且矩阵A通过另一个矩阵P简化为对角矩阵D。 (P≡模态矩阵)
Modal matrix: It is a (n x n) matrix that consists of eigen-vectors. It is generally used in the process of diagonalization and similarity transformation.
简而言之,它是将方阵转换为一种特殊类型的矩阵的过程,称为对角矩阵。
涉及的步骤
Step 1 - Initialize the diagonal matrix D as:
where λ1, λ2, λ3 -> eigen values
Step 2 - Find the eigen values using the equation given below.
where,
A -> given 3x3 square matrix.
I -> identity matrix of size 3x3.
λ -> eigen value.
Step 3 - Compute the corresponding eigen vectors using the equation given below.
where,
λi -> eigen value.
Xi -> corresponding eigen vector.
Step 4 - Create the modal matrix P.
Here, all the eigen vectors till Xi are filled column wise in matrix P.
Step 5 - Find P-1 and then use equation given below to find diagonal matrix D.
示例问题
问题陈述:假设一个 3×3 方阵 A 具有以下值:
使用矩阵的对角化找到 A 的对角矩阵 D。 [ D = P -1 AP]
逐步解决方案:
Step 1 - Initializing D as:
Step 2 - Find the eigen values. (or possible values of λ)
Step 3 - Find the eigen vectors X1, X2, X3 corresponding to the eigen values λ = 1,2,3.
Step 5 - Creation of modal matrix P. (here, X1, X2, X3 are column vectors)
Step 6 - Finding P-1 and then putting values in diagonalization of a matrix equation. [D = P-1AP]
We do Step 6 to find out which eigen value will replace λ1, λ2 and λ3 in the initial diagonal matrix created in Step 1.
Reference articles: Determinant of a matrix & Inverse of a matrix
我们知道
在求解时,我们得到
代入矩阵方程的对角化,我们得到