I'm reading David Eisenbud's Commutative Algebra with a View Toward Algebraic Geometry (3rd ed.).
in chapter 5, about filtrations and the Artin-Rees lemma, the function $in: M \to gr(M)$ was defined for a module $M$ with filtration $M=M_{0}\supset M_{1}\supset \cdots $ as follows: for $f \in M$ let $m$ be the greatest number such that $f\in M_{m}$ and set $in(f)=f$ $modulo$ $M_{m+1} \in M_{m}/M_{m+1}\subset gr(M)$, or if there is no such m: $in(f)=0$.
However, in exercise 5.1 the reader is requested to prove for $f,g\in M$ that either $in(f)+in(g)=in(f+g)$ or $in(f)+in(g)=0$. as i understand, $in(g)$ is a homogeneous element, but $in(f), in(g)$ may be of different summands.
so my question is, where am i wrong?