Let $R$ be a ring, $M$ an $R$-module, and $I$ an ideal of $R$. Then given the exact sequence: $$0\rightarrow I\rightarrow R\rightarrow R/I\rightarrow0$$
when is $M$ flat. By some theorem, $M$ is flat if and only if $I\otimes M\xrightarrow{f\otimes 1} R\otimes M$ is injective.
But how can I proof that $I\otimes M\xrightarrow{f\otimes 1}R\otimes M$ is injective?
I should make it clear: My question is
Given the exact sequence:
$$0\rightarrow I\rightarrow R\rightarrow R/I\rightarrow0$$
and an $R$-module $M$, how to proof the sequence:
$$0\rightarrow I\otimes M\rightarrow R\otimes M\rightarrow R/I\otimes M\rightarrow0$$ is exact?
One way to prove it is to prove $I\otimes M\xrightarrow{f\otimes 1} R\otimes M$ is injective.But how to prove this map is injective?
$\underline{edit 2:}$
More straight forwardly, given $R$ (a ring), $I$ (an $R$-ideal), an exact sequence $$0\rightarrow I\rightarrow R\rightarrow R/I\rightarrow0$$ and a module $M$, prove that the sequence $$0\rightarrow I\otimes M\rightarrow R\otimes M\rightarrow R/I\otimes M\rightarrow0$$ is exact.
No, the theorem is that $M$ is flat if and only if $I\otimes M \to R\otimes M$ is injective for every ideal $I\subset R$.
For the direction you are asking about: if $M$ is flat, then tensoring by it preserves exact sequences (by definition). $0\to I\to R$ is an exact sequence, so $0\to I\otimes M \to R\otimes M$ is an exact sequence. In other words, $I\otimes M \to R\otimes M$ is injective.