TITLE: $\det(I+A) = 1 + tr(A) + \det(A)$ for $n=2$ and for $n>2$?
QUESTION [15 upvotes]: Let $I$ the identity matrix and $A$ another general square matrix. In the case $n=2$ one can easily  verifies that
\begin{equation}
\det(I+A) = 1 + tr(A) + \det(A)
\end{equation}
or
\begin{equation}
\det(I+tA) = 1 +  t\  tr(A) + t^2\det(A)
\end{equation}
for some scalar $t \in \mathbb{R}$.
I have tried to see if there exists a similar formula for $n>3$. This is a natural question. But the calculations are very big and difficulty to see. Then I do the answer. Is there a similar formula for $n>2$?

REPLY [12 votes]: One can formally expand $\det(I+tA)$ as a power series of $t$ and get:
$$\begin{align}
  & \det(I + tA)\\
= & \exp\left(\text{Tr}\log(I+tA)\right)\\
= & \exp\left(t\,\text{Tr}A - \frac{t^2}{2}\text{Tr}A^2 + \frac{t^3}{3}\text{Tr}A^3 + \cdots
\right)\\
= & 1 + t\,\text{Tr}A + \frac{t^2}{2!}\left( (\text{Tr}A)^2 - \text{Tr}A^2 \right)
+ \frac{t^3}{3!}\left((\text{Tr}A)^3 - 3 (\text{Tr}A)(\text{Tr}A^2) + 2 \text{Tr}A^3 \right)
+ \cdots
\end{align}$$
When $A$ is a $n \times n$ matrix, the above expansion terminate at the $t^n$ term with coefficient equal to $\det A$. With this, you can obtain formula similar to what you have for $n = 2$:
$$
\det(I+tA) = \begin{cases}
1 + t\,\text{Tr}A + t^2 \det(A) & n = 2\\
\\
1 + t\,\text{Tr}A + \frac{t^2}{2!}\left( (\text{Tr}A)^2 - \text{Tr}A^2 \right) + t^3 \det(A) & n = 3\\
\\
1 + t\,\text{Tr}A + \frac{t^2}{2!}\left( (\text{Tr}A)^2 - \text{Tr}A^2 \right)
\\\;\;\;+ \frac{t^3}{3!}\left((\text{Tr}A)^3 - 3 (\text{Tr}A)(\text{Tr}A^2) + 2 \text{Tr}A^3 \right)
+ t^4 \det(A) & n = 4\\
\end{cases}
$$