Let $f(x)$ be a polynomial in $(\mathbb{Z}/\mathbb{2Z})[x]$ of degree $2$ or $3$. Prove that $f(x)$ is irreducible if and only if $f(x)$ does not have a root in $\mathbb{Z}/\mathbb{2Z}.$
I know that $f(x)$ is irreducible if and only if $F[x]/(f(x))$ is a field.
Any suggestions/hints will be appreciated.
Having a root in the field of coefficients is equivalent to having a linear factor. If a polynomial of degree 2 or 3 factors in a non-trivial way, then at least one of the factors is linear.