I am trying to solve some exercises from Introduction to Differential Topology by Brocker and Janich. In particular, the exercise 8.13.2 requires me to show that for any vector field $X$ on an arbitrary manifold $M$ there exists a positive smooth function $f:M\to \mathbb{R}_+$ such that $fX$ is globally integrable.
My idea was to pick an exhaustion of the manifold by compact sets and to try to construct $f$ as a sum of appropriately weighted bump functions. However, I am not sure this leads anywhere or at least I am not able to set up the construction correctly.
I have seen some related questions here, but none of them answers this exact question (in particular, $X$ can vanish and is not complete to begin with). Any hint will be appreciated.