I know that is possible to apply the spectral decomposition (diagonalization) to a matrix when the sum of the dimensions of its eigenspaces is equal to the size of the matrix.
The spectral decomposition is:
$$ F=P\Lambda P^{-1} $$
where $\Lambda$ is the diagonal matrix of eigenvalues and $P$ is the matrix of eigenvectors.
I have the following matrix:
$$ F=\begin{pmatrix}\phi_{1} & \phi_{2} & \phi_{3} & \cdots & \phi_{p-1} & \phi_{p}\\ 1 & 0 & 0 & \cdots & 0 & 0\\ 0 & 1 & 0 & \cdots & 0 & 0\\ \vdots & \vdots & \vdots & \ddots & \vdots & \vdots\\ 0 & 0 & 0 & \cdots & 0 & 0\\ 0 & 0 & 0 & \cdots & 1 & 0 \end{pmatrix} $$
where $\phi_{p}\neq0$ and all $\phi_{i}$ are real valued. How can I be sure that its possible to apply the spectral decomposition to $F$?
The matrix you wrote is the Companion Matrix of the polynomial $$ P(x) = -( \phi_p + x\phi_{p-1} + \dots + x^{p-1}\phi_1 + x^p ) $$ It is known that the matrix is diagonalizable if and only if $P(x)$ has all $p$ different roots. That can be also easily proved through the test of the derivative:
$P(x)$ has multiple roots $\iff$ $gcd(P(x),P'(x))\ne 1$
where $P'(x)$ is the derivative of $P(x)$.