Let $K$ be a commutative field with characteristic $p\in\mathbb{P}$ and the polynomial $$K[x]\ni f(x) : x^p-x+a,\quad 0\neq a\in K $$ where $f$ has no roots over $K$.
Show that $f$ is irreducible.
Quick side-step: it's generally incorrect to assume having no roots implies irreducibility. For instance, if we look at $x^2+1$ over $\mathbb{R}$, it has no roots, hence the fourth degree polynomial $(x^2+1)^2$ has no roots over $\mathbb{R}$, either, but clearly it's reducible.
If for some $g,h\in K[x]$ we have $f=gh$, then for irreducibility, either $g$ or $h$ has to be constant polynomial.
Some thoughts:
(1) - To show $(f)$ is the maximal ideal in $K[x]$, that would mean $K[x]/(f)$ is a field which in turn is sufficient (and necessary) for $f$ to be irreducible. Only, how do we show this?
(2) - Let $L$ be the splitting field of $f$ (such field always exists), we would have: $$f(x) = (x-\alpha _1)(x-\alpha _2)\ldots (x-\alpha _p) $$
The only thing to clearly conclude here is $\alpha _1\cdot\ldots\cdot \alpha _p = \pm a\in K$.
How to make progress?