I confronted with a statement:
Given a ring homomorphism $f:A\to B$, with commutative rings with identity $A,B$. If $A,B$ are both subrings of a bigger commutative ring with identity $R$, then $A$ must be a subring of $B$.
I have thought about quotient ring $B/I\to B$, where $I$ is an ideal of $B$. Then $B/I$ is not a subring of $B$. Can we embed them in a bigger ring? Hope someone could help. Thanks!
Thanks to Gae. S., the conclusion above is not true. Now, what if the completion of $A$ and $B$ are equal, i.e. $\widehat{A}\cong \widehat{B}$. Does the conclusion holds?
$A$ needs not be a subring of $B$. Consider $R=\Bbb R[x]$, $A=\Bbb R[x^2]\subseteq \Bbb R[x]$, $B=\Bbb R[x^3]\subseteq \Bbb R[x]$ and $f(p(x))=p(x^{3/2})$ (with the convention $(x^2)^{1/2}=x$).
Also consider $R=\Bbb R[x,y]$, $B=\Bbb R[x]$, $A=\Bbb R[x^3,y^3]$ and $f(p(x,y))=p(x^{1/3},0)$ for all $p\in A$ to see that $f$ needs not be injective.