The proposition 2.9 of Atiyah and Macdonald syas that a sequence of $A$-modules
$$M'\xrightarrow u M \xrightarrow v M'' \rightarrow 0$$
is exact iff the dual sequence
$$0\rightarrow Hom (M'',N)\xrightarrow{\bar{v}} Hom(M,N)\xrightarrow{\bar{u}} Hom (M',N)$$
is exact for all $A$-modules $N$.
But I have trouble understanding the proof: Suppose the dual sequence is exact for all $A$-modules $N$, then since $\bar{v}$ is injective for all $N$, it follows that $v$ is surjective.
But I don't understand why it is true, please helps.