Let $R$ be a ring, $I\in R$ an ideal and $f\in R[X]$ with $a\in R$. How do I show that in $R/I$:
$$f(a+I)=f(a)+I$$
Let $R$ be a ring, $I\in R$ an ideal and $f\in R[X]$ with $a\in R$. How do I show that in $R/I$:
$$f(a+I)=f(a)+I$$
It's a little weird to treat $f$, a formal polynomial with coefficients in $R$, as if it were a function, but let's pretend that formal polynomials implicitly invoke the evaluation map for this problem.
For some $d \geq 0$, there are $r_0, \dots r_d \in R$ such that $$ f = r_0 + \sum_{i=1}^d r_i X^i \text{.} $$ (You don't say that your rings have unit, so we can't assume that $R$ has a $1$ that $(a+I)^0$ can be, so we must split the constant term out of the sum.) Then, implicitly use the evaluation map to treat $f$ as also an element of $\{ R[X] \times R \rightarrow R \}$, in fact, we need the generalization to sets as inputs and outputs, so an element of $\{ R[X] \times \mathscr{P}(R) \rightarrow \mathscr{P}(R) \}$, where $\mathscr{P}$ denotes powerset. Then $$ f(a + I) = r_0 + \sum_{i=1}^d r_i (a+I)^i \text{,} $$ a subset of $R$. Clearly, $(a+I)^1 = a+I = a^1+I$. Suppose, for $n \geq 1$, $(a+I)^n = a^n + I$. Then (being careful about order of multiplication since you have not said your rings are commutative), \begin{align*} (a+I)^{n+1} &= (a+I)(a+I)^n \\ &= (a+I)(a^n + I) \\ &= a(a^n + I) + I(a^n + I) \\ &= a^{n+1} + aI + Ia^n + I^2 \\ &\subseteq a^{n+1} + I \text{,} \end{align*} where in the last step we have used that $I$ is a (since you have not said otherwise, two-sided) ideal to recognize $aI \subseteq I$, $Ia^n \subseteq I$, and $I^2 \subseteq I$. So, \begin{align*} f(a + I) &\subseteq r_0 + \sum_{i=1}^d r_i (a^i+I) \\ &\subseteq r_0 + \sum_{i=1}^d (r_ia^i + I) \\ &= r_0 + \sum_{i=1}^d (r_ia^i) + \sum_{i=1}^d I \\ &= f(a) + \sum_{i=1}^d I \text{.} \end{align*} Since an ideal is closed under addition, $\sum_{i=1}^d I \subseteq I$. Therefore, we have the relation $f(a+I) \subseteq f(a) + I$ among subsets of $R$. Under the usual projection $R \rightarrow R/I$, since the right-hand side is contained in the coset of $I$ containing $f(a)$, we have $$ f(a+I) = f(a) + I$$ in $R/I$.