Let $\text{CAlg}_R$ denote the category of commutative $R$-algebras and $R$-algebra homomorphisms. How can I show that if $A,B \in \text{CAlg}_R$, the tensor product $A \otimes_R B$ can be given the structure of a commutative $R$-algebra so that it is the categorical coproduct of $A$ and $B$ in $\text{CAlg}_R$?
Well, for the first part I dont think there is much of a choice. If $\phi_1: R \to A$ and $\phi_2: R \to B$ is the given homomorphisms, then we might define $\phi: R \to A \otimes_R B$ by $r \mapsto \phi_1(r) \otimes \phi_2(r)$. After this I am stuck, am I supposed to prove that the coproduct of $A$ and $B$ equals $A \otimes_R B$ if I have chosen $\phi$ correctly? I tried, but got stuck on defining the unique function (in the definition of a coproduct). Any hints?