Let S be a semigroup, \(z_{0}\) be a fixed element in the center of S, and \(\tau :S\rightarrow S\) be an involution (an involutive anti-automorphism). Furthermore we let \({\mathbb {F}}\) be a division ring of characteristic different from 2 and \({\mathbb {H}}\) be the skew field of quaternions. Our main objective is to solve each of the functional equations \(\begin{aligned} K(xyz_{0})+K(x\tau (y)z_{0})= & 2K(x)K(y),\,\,\,x,y\in S, \\ V(x\tau (y)z_{0})-V(xyz_{0})= & 2V(x)V(y),\,\,\,x,y\in S, \end{aligned}\) in which \(K:S\rightarrow {\mathbb {F}}\) and \(V:S\rightarrow {\mathbb {H}}\) are the unknown functions.