Every polynomial $f(x) \in K[x]$ can be uniquely written as \begin{equation} f(x) = \alpha (p_1(x))^{a_1} \cdot (p_2(x))^{a_2} \cdot ... \cdot (p_k(x))^{a_k}, \end{equation} where $\alpha \in K, a_i \in \mathbb{N}$, with $p_i(x)$ irreducible for all $1 \leq i < k$.
Proof: I could prove the decomposition using induction on the degree of polynomial $f(x)$ but couldn't think of a way to prove uniqueness. Please help me.