Let $B, C$ be two $A$-algebras, $f:A \to B, g: A\to C$ the corresponding ring homomorphisms. From this we can construct an $A$-algebra $B \otimes _A C$ and the mapping $ a \mapsto f(a) \otimes g(a)$ is the corresponding ring homomorphism $A \to B \otimes _A C$.
The above is a summary of a definition on pages 30,31 of Atiyah's Commutative Algebra. I wonder why the mapping $ a \mapsto f(a) \otimes g(a)$ is a ring homomorphism.
$$ a+b \mapsto f(a+b) \otimes g(a+b) $$
$$= f(a) \otimes g(a) + f(a) \otimes g(b) + f(b) \otimes g(a)+ f(b) \otimes g(b)$$
To be a ring homomorphism $f(a) \otimes g(b) + f(b) \otimes g(a) $ must be zero.
How can I know this?