show $h : \underline{A} \to \underline{B}$ is a homomorphism iff $h$ is a subuniverse of $\underline{A} \times \underline{B}$ where $\underline{A}$ and $\underline{B}$ are similar algebras
$\Rightarrow$
Assume $h$ is a homomorphism, $h \subset A \times B$ as $h = \{(a,b) : a \in A \wedge h(a) = b \in B\}$ and additionally by assumption we have for all n-ary operations $f$ in the type of these algebras we have that
$h(f^{A}(a_1, ... , a_n)) = f^{B}(h(a_1),...,h(a_n))$ where $f^{A}$ and $f^{B}$ are operations on $A$ and $B$, respectively.
this is where I get stuck in this direction, I believe what the key is to show this forms a subalgebra of the direct product which gives directly the result that we get a subuniverse
$\Leftarrow$
Assume $h$ is a subuniverse of $\underline{A} \times \underline{B}$, $h$ forms a subset of $A \times B$ such that it is closed under the fundamental operations of $\underline{A} \times \underline{B}$ which gives us a subalgebra.
for the converse, I am not sure how I extract that $h$ gives us a homomorphism