---
title: "Determinant of a Matrix Polynomial via Cayley-Hamilton Theorem"
organization: "NityaDhi Digital Mathematics Lab (Asa Edtech Private Limited)"
url: "https://www.nityadhi.com/problems/hard-c12-w1-02-cayley-hamilton-matrix-power"
board: "JEE Foundation"
grade: "Class 12"
published_at: "2026-11-23T13:00:00+05:30"
---

# Determinant of a Matrix Polynomial via Cayley-Hamilton Theorem

Given the $2 \times 2$ matrix
$$A = \begin{pmatrix} 1 & 2 \\ -1 & 4 \end{pmatrix},$$
let $P(A) = A^4 - 6A^3 + 12A^2 - 10A + 7I$, where $I$ is the $2 \times 2$ identity matrix. Find the value of $\det(P(A))$.

## Textbook Solution

**Step 1: Characteristic equation of $A$**  
For $A = \begin{pmatrix} 1 & 2 \\ -1 & 4 \end{pmatrix}$, we have $\operatorname{tr}(A) = 1 + 4 = 5$ and $\det(A) = 1(4) - 2(-1) = 6$.  
Thus the characteristic equation is $\lambda^2 - 5\lambda + 6 = 0$.  
By the Cayley-Hamilton theorem, $A$ satisfies:
$$A^2 - 5A + 6I = O.$$

**Step 2: Polynomial division**  
Divide $P(x) = x^4 - 6x^3 + 12x^2 - 10x + 7$ by $x^2 - 5x + 6$:
$$x^4 - 6x^3 + 12x^2 - 10x + 7 = (x^2 - x + 1)(x^2 - 5x + 6) + (x + 1).$$
Substituting $x = A$ and using $A^2 - 5A + 6I = O$:
$$P(A) = A + I = \begin{pmatrix} 2 & 2 \\ -1 & 5 \end{pmatrix}.$$

**Step 3: Compute determinant**  
$$\det(P(A)) = 2(5) - 2(-1) = 10 + 2 = 12.$$

**Final Answer:** $12$.

## Vedic Shortcut

**NityaDhi Eigenvalue Mapping Shortcut:**  
Since $\det(P(A)) = P(\lambda_1) P(\lambda_2)$ where $\lambda_1, \lambda_2$ are the eigenvalues of $A$:  
1. Solve $\lambda^2 - 5\lambda + 6 = 0 \implies \lambda_1 = 2, \lambda_2 = 3$.  
2. Evaluate $P(2) = 16 - 48 + 48 - 20 + 7 = 3$.  
3. Evaluate $P(3) = 81 - 162 + 108 - 30 + 7 = 4$.  
4. Multiply: $\det(P(A)) = 3 \times 4 = 12$ without doing any matrix multiplication or polynomial long division!

## Common Mistakes

- Computing $A^2, A^3, A^4$ by brute force, which is slow and error-prone.  
- Assuming $\det(A + B) = \det(A) + \det(B)$ and adding determinants term-by-term, which is invalid.