Consider the function $f:D\rightarrow\mathbb{R}$ for $D\subset\mathbb{R}^n$ an open convex set. Furthermore, suppose that $g(t)=f(t\boldsymbol{x})$ is convex for all $\boldsymbol{x}\in D$. Is it true that $f$ is convex? Or is there a counter example?
I haven't been able to find a counter example.