In this paper, we study the class of functions whose second difference admits a product form. In particular, we present the general solutions of the functional equation \(\begin{aligned} \begin{aligned} f_1(x_1y_1,x_2y_2)-f_1(x_1y_1,x_2y_2^{-1})&-f_2(x_1y_1^{-1},x_2y_2)+f_2(x_1y_1^{-1},x_2y_2^{-1})\\&=g(x_1,x_2)h(y_1,y_2) \end{aligned} \end{aligned}\) where \(f_1,f_2\) are unknown functions and satisfy the conditions \(\begin{aligned} \begin{aligned}&f_1(x_1y_1z_1,x_2)=f_1(x_1z_1y_1,x_2),f_1(x_1,x_2y_2z_2)=f_1(x_1,x_2z_2y_2),\\&f_2(x_1y_1z_1,x_2)=f_2(x_1z_1y_1,x_2),f_2(x_1,x_2y_2z_2)=f_2(x_1,x_2z_2y_2) \end{aligned} \end{aligned}\) for all \(x_i,y_i,z_i\in G_i(i=1,2)\) , where \(G_i(i=1,2)\) are arbitrary groups.