I was working on this problem, and I thought I'd post my answer so people could see if they have a better one:
Spivak Calculus, 4th ed., problem 3-18:
Suppose $f,\,g,\,h,\,k$ are functions from $\mathbb{R}$ to $\mathbb{R}$. Precisely what conditions must $f,\,g,\,h,\,$ and $k$ satisfy in order that $$ f(x)g(y)=h(x)k(y) \tag{1} $$ for all $x,\,y\,\in \mathbb{R}$?