It is given that $$\int\frac{1}{f(x)}dx\cdot \int f(x)dx =c ...(1)$$
Now differentiating both side w.r.t $x$, We Get
$$\int \frac{1}{f(x)}dx\cdot f(x)+\frac{1}{f(x)}\cdot \int f(x)dx =0... (2)$$
Now from equation $(1)$, We get $$ \int\frac{1}{f(x)}dx = \frac{c}{\int f(x)dx}$$
and put into equation $(2)$, We get $$\frac{c\cdot f(x)}{\int f(x)dx}+\frac{\int f(x)dx}{f(x)} = 0$$
So $$ \left(\int f(x)dx\right)^2 = -c\cdot \left(f(x)\right)^2$$
Now Let $-c=\alpha^2\;,$ Then $$\left(\int f(x)dx\right)^2 = \alpha^2\cdot \left(f(x)\right)^2$$
So $$\int f(x)dx = \pm \alpha\cdot f(x)\;,$$ Differentiate both side w.r.t $x\;,$ we get
$$\Rightarrow f(x) = \pm \alpha\cdot f'(x)\Rightarrow \frac{f'(x)}{f(x)}=\pm k\;,$$ where $k = \pm \frac{1}{\alpha}$.
Now Integrate both side w.r.t $x\;,$ we get
$$\Rightarrow \int \frac{f'(x)}{f(x)} = \pm k\int dx\Rightarrow \ln\left|f(x)\right| = \pm k+\ln \left|c\right|\Rightarrow f(x)=c\cdot e^{\pm kx}$$ Hope it helps.