I was looking at the solutions to a question about BIBO stability. The transfer function was
$$\dfrac{s^2+1}{s^5+2s^4+4s^3+7s^2+3s+5}=\dfrac{1}{s^3+2s^2+3s+5}$$
So the lecturer factorised the bottom polynomial and cancelled accordingly, but it isn't explained in the solutions. Is there a general method for factorising polynomials of degree 5?
We are looking for $$f(s):=s^5+2s^4+4s^3+7s^2+3s+5 = (s^2+1)(s^3+as^2+bs+c)$$
The coefficient of $s^4$ on the RHS is $a$, which must be $2$, from the LHS.
The coefficient of $s^3$ on the RHS is $1+b$, which must be $4$, from the LHS, so that $b=3$.
The coefficient of $s^2$ on the RHS is $c+a$, which must be $7$, from the LHS, so that $c=5$ since $a=2$. Therefore you've found $a,b,c$.
Notice that in general factoring polynomials of degree $\geq 5$ is difficult. There are algorithms as Berlekamp–Zassenhaus algorithm, but no "simple" way.
Here is how to find the factor $s^2+1$. First, I would try to find rational roots. By the rational root theorem, such a root $x=p/q$ (with $p,q$ coprime integers) satisfies $p \mid 5, q \mid 1$, so that $x \in \{±1,±5\}$. But none of these $4$ values is a root of $f(s)$.
Then we try to find a (monic) factor $x^2+ux+v$ of degree $2$, and if none of them works, then $f(s)$ is irreducible in $\Bbb Q[X]$ because it has degree $5$. Notice that $f$ is monic, so that irreducibility over $\Bbb Q$ is equivalent to irreducibility over $\Bbb Z$, i.e. we can assume $u,v \in \Bbb Z$.
You write as before $$s^5+2s^4+4s^3+7s^2+3s+5 = (s^2+us+v)(s^3+as^2+bs+c)$$ to get $$u+a=2,\quad v+ua+b=4, \quad c+ub+av=7, \quad bv+cu=3, \quad cv=5$$ We know that $v$ divides $5$, so it is $±1,±5$.
Because $f(i)=0$, $s^2+1$ divides $f(s)$ and then we can try $u=0$ (which is equivalent to finding imaginary roots of $f(s)$ if $v>0$, since $f$ would have the factor $s^2+v$). Then $bv=3$ gives $v=\pm 1$, so that $v=1$ since $v=-1 \implies s^2-1$ divides $f \implies f(1)=0$, not possible as mentioned before.