Let $g$ be a piecewise smooth, zero average, function over $[0,1]$ such that $\min g^2>0$. I would like to show that $$ \int_0^1 g\sqrt{1-r/g^2}\int_0^1 \frac{1}{g\sqrt{1-r/g^2}} \leq 1 $$ for all $r \in \mathopen[-1,\min g^2\mathclose[$. I don't know that this is true but I am persuaded that it is, based on intuition (see motivation below), numerical tests and on a couple of, admittedly trivial, particular cases (e.g., $g^2$ is constant).
If it helps: note that second integral is almost the derivative of the first with respect to $r$.
Also, one could rescale $g$ to get rid of $r$. Say $0<r<\min g^2$. Let $g_r=g/\sqrt{r}$ so that $\min g_r^2>1$. Then, we're after $$ \int_0^1 g_r\sqrt{1-1/g_r^2}\int_0^1 \frac{1}{g_r\sqrt{1-1/g_r^2}} \leq 1. $$ We should be able to do something similar for $r<0$.
I am aware of an inequality $E(X)E(1/X)\geq 1$ for $X$ positive. Here, $g$ has zero average meaning it can't be positive.
Motivation: I am trying to show that a certain linkage (something like a carpenter's ruler) grows in span. The problem boils down to the above inequality. With that in mind, I've tried to apply something like Cauchy's arm lemma, to no avail.
The question is cross-posted.
For future generations: Inequality disproven thanks to @fedja's answer. To construct a counter example consider the case where $g$ takes three values $g_{1,2,3}$ over three intervals of lengths $p_{1,2,3}$. Suppose $g_{1,2}>0$ and $g_3<0$. This case is enough by @Iosif's observation. Also, let $f=\sqrt{g^2-1}$. Now consider the limit $p_1\to 0$, $g_1\to 1$. To disprove the inequality, we would also like for $p_1/f_1$ to go to infinity. Thus, take $g_1=1+p_1^3$ for instance. Then, the inequality reads, to leading order, $(p_2f_2-p_3f_3)p_1/f_1<1$. Disproving the inequality amounts to finding $p_{2,3}$ and $g_{2,3}$ such that $p_2+p_3=1$ and $p_2g_2+p_3g_3=0$ and such that $p_2f_2-p_3f_3>0$. It suffices to take $g_2>-g_3>1$ and $p_2=-g_3/(g_2-g_3)$ and $p_3=g_2/(g_2-g_3)$. For instance, $g_2=3$, $g_3=-2$, $p_1=0.004$ appear to do the trick.