KonkurStudy
همه کارت‌ها

Cayley–Hamilton Theorem and Computing the Inverse

Every square matrix satisfies its own characteristic polynomial; rearranging that polynomial expresses A−1A^{-1} as a cheap polynomial in AA — no cofactor matrix needed.

کارت قضیه کنکور ارشد علوم کامپیوتر

اهمیت
۰/۵

The theorem

For an n×nn\times n matrix AA, let its characteristic polynomial be

p(λ)=det⁡(λI−A)=λn+cn−1λn−1+⋯+c1λ+c0.p(\lambda) = \det(\lambda I - A) = \lambda^{n} + c_{n-1}\lambda^{n-1} + \cdots + c_{1}\lambda + c_{0}.

The Cayley–Hamilton theorem says AA satisfies its own characteristic equation: substituting AA for λ\lambda (and A0=IA^{0}=I) gives the zero matrix,

p(A)=An+cn−1An−1+⋯+c1A+c0I=0.p(A) = A^{n} + c_{n-1}A^{n-1} + \cdots + c_{1}A + c_{0}I = 0.

The constant term is c0=p(0)=det⁡(−A)=(−1)ndet⁡Ac_{0} = p(0) = \det(-A) = (-1)^{n}\det A.

Why it hands you the inverse

Move the constant term to the other side and factor an AA out of every remaining term:

A(An−1+cn−1An−2+⋯+c1I)=−c0I.A\bigl(A^{n-1} + c_{n-1}A^{n-2} + \cdots + c_{1}I\bigr) = -c_{0}I.

If AA is invertible then c0=(−1)ndet⁡A≠0c_{0} = (-1)^{n}\det A \ne 0, so multiply by A−1/(−c0)A^{-1}/(-c_{0}):

A−1=−1c0(An−1+cn−1An−2+⋯+c1I).A^{-1} = -\frac{1}{c_{0}}\bigl(A^{n-1} + c_{n-1}A^{n-2} + \cdots + c_{1}I\bigr).

The inverse is just a polynomial in AA — you only ever need powers of AA up to An−1A^{n-1}, never a single cofactor.

Building p(λ)p(\lambda) for a 3×33\times 3 matrix (the konkur case)

Write it from the three invariants of AA:

p(λ)=λ3−(tr⁡A) λ2+m2 λ−det⁡A,p(\lambda) = \lambda^{3} - (\operatorname{tr} A)\,\lambda^{2} + m_{2}\,\lambda - \det A,

where tr⁡A\operatorname{tr} A is the sum of the diagonal, m2m_{2} is the sum of the three principal 2×22\times 2 minors (delete row/column ii for i=1,2,3i=1,2,3), and det⁡A\det A is the determinant. By Cayley–Hamilton,

A3−(tr⁡A)A2+m2A−(det⁡A)I=0 ⟹ A−1=1det⁡A(A2−(tr⁡A)A+m2I).A^{3} - (\operatorname{tr} A)A^{2} + m_{2}A - (\det A)I = 0\ \Longrightarrow\ A^{-1} = \frac{1}{\det A}\bigl(A^{2} - (\operatorname{tr} A)A + m_{2}I\bigr).

Mini-example

Let A=[1234]A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}. Here tr⁡A=5\operatorname{tr} A = 5 and det⁡A=1⋅4−2⋅3=−2\det A = 1\cdot 4 - 2\cdot 3 = -2, so the characteristic polynomial is p(λ)=λ2−5λ−2p(\lambda) = \lambda^{2} - 5\lambda - 2. Cayley–Hamilton gives A2−5A−2I=0A^{2} - 5A - 2I = 0, hence

A−1=1−2(A−5I)=−12[1−5234−5]=−12[−423−1]=[−2132−12].A^{-1} = \frac{1}{-2}\bigl(A - 5I\bigr) = -\frac{1}{2}\begin{bmatrix} 1-5 & 2 \\ 3 & 4-5 \end{bmatrix} = -\frac{1}{2}\begin{bmatrix} -4 & 2 \\ 3 & -1 \end{bmatrix} = \begin{bmatrix} -2 & 1 \\ \tfrac{3}{2} & -\tfrac{1}{2} \end{bmatrix}.

A quick check: A A−1=IA\,A^{-1} = I. (For 2×22\times 2 this reproduces the familiar 1det⁡A[d−b−ca]\tfrac{1}{\det A}\begin{bmatrix} d & -b \\ -c & a \end{bmatrix} formula.)

Exam trick: for a 3×33\times 3 matrix, compute only the three invariants tr⁡A, m2, det⁡A\operatorname{tr} A,\ m_{2},\ \det A, form A2A^{2} once, and read off A−1=1det⁡A(A2−(tr⁡A)A+m2I)A^{-1} = \tfrac{1}{\det A}\bigl(A^{2} - (\operatorname{tr} A)A + m_{2}I\bigr). This is faster and far less error-prone than the 99 cofactors of the adjugate method — and it instantly catches a singular matrix (if det⁡A=0\det A = 0, the c0c_{0} term vanishes and no inverse exists).

فرمول‌های کلیدی

Cayley–Hamilton theorem
p(A)=An+cn−1An−1+⋯+c1A+c0I=0p(A) = A^{n} + c_{n-1}A^{n-1} + \cdots + c_{1}A + c_{0}I = 0

Every square matrix is a root of its own characteristic polynomial p(\lambda)=\det(\lambda I - A).

Inverse via Cayley–Hamilton
A−1=−1c0(An−1+cn−1An−2+⋯+c1I),c0=(−1)ndet⁡AA^{-1} = -\frac{1}{c_{0}}\bigl(A^{n-1} + c_{n-1}A^{n-2} + \cdots + c_{1}I\bigr),\quad c_{0}=(-1)^{n}\det A

Valid whenever \det A \ne 0; expresses the inverse as a polynomial in A of degree n-1.

3×3 characteristic polynomial
p(λ)=λ3−(tr⁡A)λ2+m2λ−det⁡Ap(\lambda) = \lambda^{3} - (\operatorname{tr} A)\lambda^{2} + m_{2}\lambda - \det A

m_2 is the sum of the three principal 2×2 minors; this is the form used for konkur 3×3 inverse problems.

3×3 inverse shortcut
A−1=1det⁡A(A2−(tr⁡A)A+m2I)A^{-1} = \frac{1}{\det A}\bigl(A^{2} - (\operatorname{tr} A)A + m_{2}I\bigr)

Direct consequence: form A^2 once and combine with A and I using the three invariants.

#cayley-hamilton#characteristic-polynomial#matrix-inverse#invariants#trace#determinant#principal-minors#matrices

سوالات تمرینی