I realised an error in my previous attempt, before writing the question, but think this can help some guys to solve their own multipolynomial problems, if you want to keep it (so they can find it via searchfunction) tell me otherwise I will just delete it all..
Minimal polynomial of $A := \begin{pmatrix} 7 & -2 & 1 \\ -2 & 10 & -2 \\ 1 & -2 & 7 \end{pmatrix}$
I approached it in the following way:
- Calculate
$E, A, A^2$
$E := \begin{pmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{pmatrix} $ $A:= \begin{pmatrix} 7 & -2 & 1 \\ -2 & 10 & -2 \\ 1 & -2 & 7 \end{pmatrix}$ $A^2:= \begin{pmatrix} 54 & -36 & 18 \\ -36 & 108 & -36 \\ 18 & 36 & 54 \end{pmatrix}$
Now test, if you can write $A = x\cdot E$ (obviously not possible, because of the all the zeros)
Test, if you can write $A^2$ as $lin(E,A)$ by taking the first column of $E, A, A^2$ and solve the equation: \begin{pmatrix} 1 & 7 & 54 \\ 0 & -2 & -36 \\ 0 & 1 & 18 \end{pmatrix} = \begin{pmatrix} 1 & 0 & -72 \\ 0 & 1 & 18 \\ 0 & 0 & 0 \end{pmatrix} So now we know $A^2 = 18\cdot A-72\cdot E$
So $0 = A^2-(18\cdot A-72\cdot E) \Leftrightarrow 0 = A^2 - 18\cdot A + 72\cdot E$
So the minimalpolynomial should be $x^2-18x +72$
But when I then try to get the zeros, which are $6$ and $12$... Oh wait I made a signerror in my last solution..