Suppose we have a fixed function $f: \mathbb{R}^2 \rightarrow \mathbb{R}^2$ (sufficiently regular, say $C^\infty$ ). The question is: for which $f$ there exists a scalar function $g: \mathbb{R}^2 \rightarrow \mathbb{R}$ such that the product $fg = (f_1g, f_2g)$ is holomorphic (using the standard identificacion $\mathbb{C} \sim \mathbb{R}^2$)? Are there any sufficient or necessary conditions for $f$ in order to exist such a $g$? In other words, is there any "nice" description of the product-set of the set of holomorphic functions on the plane with the set of real (sufficiently regular) functions on the plane? (Of course, one can try to solve Cauchy-Riemann but I get a pair of transport PDEs $(f_1g)_x = (f_2g)_y$ and $(f_1g)_y = -(f_2g)_x$ and is not clear that there is a common solution to both of them). Any references would be very much appreciated
EDIT: As someone commented I am looking for $g\neq 0$, this value of $g$ gives a trivial solution