I am reading a paper in which the following result is used, but I can’t see the proof of this.
Let $R$ be a commutative ring with only two maximal ideals, say $M_1$ and $M_2$. Suppose $m_1 \in M_1$ is such that $m_1 \notin M_2$. Then can we always find $m_2 \in M_2$ such that $m_1+m_2=1$?
Any ideas?
First notice that $1-m_1$ cannot be a unit, because this would imply $m_1$ is in the Jacobson radical of $R$, and in particular we would have $m_1\in M_2$.
Now it follows that the ideal of $R$ generated by $1-m_1$ must be contained in a maximal ideal, but it cannot be contained in $M_1$ because then it would follow that $1\in M_1$. Thus this ideal is contained in $M_2$ (the only other maximal ideal), i.e. you get $1-m_1\in M_2$.
Edit: I think my reasoning for $1-m_1$ not being a unit is wrong (it seems we would need that $1-m_1x$ is a unit for every $x\in R$ to conclude $m_1$ is in the Jacobson radical). The rest of the argument goes through, so I'm going to leave my answer up for a while in hopes that somebody can help figure that part out.