When is a ring homomorphism $A \to A$ surjective but not injective.
If $A$ is Noetherian, the surjectivity of a homomorphism from $A$ to itself is necessarily injective.
Thus, it's clear that if $\phi: A \to A$ is surjective, but not injective, the ring in question would have to be non-Noetherian.
Reformulating the question using the first isomorphism theorem. Given $\phi:A \to A$, we know that $A/ \ker \phi \cong \textrm{im} \phi \cong A$. When is it the case that the kernel is nontrivial?
Related Question: If every surjective homomorphism $A \to A$ is an isomorphism, does it follow that $A$ is Noetherian?
Solution 1:
Here is a large class of examples. A continuous map $f : X \to Y$ between compact Hausdorff spaces is injective iff the corresponding pullback map $f^{\ast} : C(Y) \to C(X)$ on spaces of continuous functions to $\mathbb{C}$ is surjective, and dually with injective and surjective switched; this is an aspect of the commutative Gelfand-Naimark theorem. So it suffices to find an endomorphism $f : X \to X$ of a compact Hausdorff space which is injective but not surjective. An easy example to visualize is an inclusion of a closed interval into a bigger closed interval.