This is an exercise $4.21$ on a page $155$ from a textbook "Algebra: Chapter $0$" by P.Aluffi.
Let $k$ be an algebraically cloased field, and let $I \subseteq k[x]$ be an ideal. Prove that $I$ is maximal if and only if $I = (x-c)$ for some $c \in k$.
So, I tried to prove that $(x-c)$ is maximal. Assume that $J$ is an ideal of $k[x]$ containing $(x-c)$. We know that if $k$ is a field, then $k[x]$ is a PID. So $J = (f(x))$ for some polynomial $f(x) \in k[x]$.
$(x-c) \subseteq (f(x))$
We know that there is $g(x) \in k[x]$ such that $x-c = f(x)g(x)$. Since $k$ is algebraically closed, $f(x)$ has a root $a \in k$. So a - c = f(a)g(a) = 0$, so $a = c$.
Now we divide $f(x)$ by $(x-c)$ with remainder: $f(x) = q(x)(x-c) + r$. Since $f(c) = r$ and $f(c) = 0, r = 0$. So, $f(x) = q(x)(x-c)$.
What can be done next?
Observe that $\;(x-c)\;$ is maximal iff $\;k[x]/(x-c)\;$ is a field, but
$$k[x]/(x-c)\cong k\;,\;\;\text{since the evaluation homomorphism}\;\;\phi(f(x)):=f(c )$$
is surjective and its kernel is $\;(x-c)\;$