calculating the characteristic polynomial I have the following matrix: $$A=\begin{pmatrix}
    -9 & 7 & 4 \\
    -9 & 7 & 5\\
    -8 & 6 & 2
\end{pmatrix}$$
And I need to find the characteristic polynomial so I use det(xI-A) which is $$\begin{vmatrix}
    x+9 & -7 & -4 \\
    9 & x-7 & -5\\
    8 & -6 & x-2
\end{vmatrix}$$
Is there a way to calculate the determinate faster or is way is:
$$(x+9)\cdot\begin{vmatrix}
    x-7 & -5  \\
    -6 & x-2 \\
\end{vmatrix}+7\cdot\begin{vmatrix}
    9 & -5  \\
    8 & x-2 \\
\end{vmatrix} -4\begin{vmatrix}
    9 & x-7  \\
    8 & -6 \\
\end{vmatrix}=$$
$$=(x+9)[(x-7)(x-2)-30]+7[9x-18+40]-4[54-8x+56]=(x+9)[x^2-9x-16]+7[9x+22]-4[-8x+2]=x^3-2x+2$$

You could use $\displaystyle\begin{vmatrix}x+9&-7&-4\\9&x-7&-5\\8&-6&x-2\end{vmatrix}=\begin{vmatrix}x+2&-7&-4\\x+2&x-7&-5\\2&-6&x-2\end{vmatrix}$  $\;\;\;$(adding C2 to C1)
$\displaystyle\hspace{2.6 in}=\begin{vmatrix}0&-x&1\\x+2&x-7&-5\\2&-6&x-2\end{vmatrix}$$\;\;\;$(subtracting R2 from R1)
$\displaystyle\hspace{2.6 in}=\begin{vmatrix}0&0&1\\x+2&-4x-7&-5\\2&x^2-2x-6&x-2\end{vmatrix}$$\;\;$(adding x(C3) to C2))
$\displaystyle\hspace{2.6 in}=\begin{vmatrix}x+2&-4x-7\\2&x^2-2x-6\end{vmatrix}=x^3-2x+2$
