Let $f \in C^{\infty}(\mathbb{R}^2)$ be smooth and compactly supported. Can we approximate $f(x,y)$ by sums of the form $\sum_{i=1}^m g_i(x) h_i (y)$ where $g_i, h_i \in C^{\infty}(\mathbb{R})$ are smooth with compact support.
Exact formulation: Suppose $f \in C^{\infty}(\mathbb{R}^2)$ with $supp(f)\subseteq [a,b] \times [c,d]$, and $\varepsilon > 0$. Can we find a sum $\sum_{i=1}^m g_i(x) h_i (x)$ such that $supp(g_i) \subseteq [a,b]$ and $supp(h_i) \subseteq [c,d]$, with $\| f(x,y)- \sum_{i=1}^m g_i(x) h_i (y)\|_\infty < \varepsilon$ ?