This question comes from and old exam: Suppose the square rational matrix $A$ has characteristic and minimum polynomials $p_A(x) = x^6(x^2-2)^3(x^2+4)^2$ and $m_A(x) = x^2(x^2-2)(x^2+4)^2$ and $null A = 4$. Determine the elementary divisors of $A$.
So, first of all I'm not sure how to find invariant factors just given these polynomials and not the matrix $A$ itself. I know that $m_A(x)$ is the largest invariant factor of $A$ by definition and $p_A(x)$ is the product of all the invariant factors. Also, I'm assuming all the divisors and factors should be rational here. So, given that $x^2$, $(x^2-2)$, and $(x^2+4)^2$ are surely elementary divisors. However, I'm not sure how to find the rest. Also, the $null A=4$ gives us the geometric multiplicity of eigenvalue $0$ which gives us what the jordan blocks corresponding to $0$ are, however, I'm not sure how this helps. Any thoughts?
Think about what can the Jordan normal form of the matrix be.
The nullity is the number of $0$-blocks (each $0$-block contains a single eigenvector).
The size of these blocks are either $1$ or $2$ (because $x^2\,|\,m_A(x)$) that sum up to $6$.
For this, the only possibility for the sizes of $0$-blocks is $2,2,1,1$.
The other eigenvalues ($\pm\sqrt2,\ \pm2i$) seem easy to deal with.
This way you will obtain a unique Jordan form, which determines the matrix up to similarity.