I am trying to show the asymptotic expansion for $$\sum_{n\le x}\frac1{\sqrt n}=2\sqrt x+\zeta(1/2)+O(x^{-1/2}).$$
(The exact identity of the zeta term is not important, it need only be some $c$.) To that end, I am attempting to prove the following slightly stronger theorem, which is supported by numerical evidence:
Let $F(x)=2\sqrt x-\sum_{n\le x}\frac1{\sqrt n}$. If $0<a\le b$, then $|F(a)-F(b)|\le\frac1{\sqrt a}$.
So far, I have only been able to show the weaker statement $|F(a)-F(b)|\le\dfrac2{\sqrt{\lfloor a\rfloor}}$, which is good enough for the asymptotic statement but can clearly be improved to work for all positive reals. My method:
$$\sum_{a<n\le b}\int_{n-1}^{n}(t^{-1/2}-n^{-1/2})\,dt=\sum_{a<n\le b}\left[2\sqrt n-2\sqrt{n-1}-\frac1{\sqrt n}\right]=F(\lfloor b\rfloor)-F(\lfloor a\rfloor)$$
Since the integrand is less than $\frac1{\sqrt{n-1}}-\frac1{\sqrt{n}}$ on its domain, we have:
$$|F(\lfloor b\rfloor)-F(\lfloor a\rfloor)|\le\sum_{a<n\le b}\frac1{\sqrt{n-1}}-\frac1{\sqrt{n}}=\frac1{\sqrt{\lfloor a\rfloor}}-\frac1{\sqrt{\lfloor b\rfloor}}$$
Finally, $F$ is differentiable on $(\lfloor x\rfloor,x)$ with $F'(y)=y^{-1/2}\le\lfloor x\rfloor^{-1/2}$, hence $|F(x)-F(\lfloor x\rfloor)|\le\frac1{\sqrt{\lfloor x\rfloor}}$. Putting it all together, we have
\begin{align} |F(b)-F(a)|&\le|F(a)-F(\lfloor a\rfloor)|+|F(b)-F(\lfloor b\rfloor)|+|F(\lfloor b\rfloor)-F(\lfloor a\rfloor)|\\ &\le\frac1{\sqrt{\lfloor a\rfloor}}+\frac1{\sqrt{\lfloor b\rfloor}}+\frac1{\sqrt{\lfloor a\rfloor}}-\frac1{\sqrt{\lfloor b\rfloor}}=\frac2{\sqrt{\lfloor a\rfloor}}. \end{align}
How can I avoid the use of $\frac1{\sqrt{\lfloor a\rfloor}}$, which is not even defined for $a<1$?
This is a special case of the following theorem:
The OP is the special case of this theorem for $a(x)=\frac1{\sqrt x}$ and $A(x)=2\sqrt x$.
Proof: Define the functions $$G_-(x)=F(x)-\{x\}a(x)=A(x)-\{x\}a(x)-\sum_{n\le x}a(n)$$ and $$G_+(x)=G_-(x)+a(x)=A(x)+(1-\{x\})a(x)-\sum_{n\le x}a(n).$$
We will show that $G_-$ is increasing and $G_+$ is decreasing, and $G_-(x)\le F(x)\le G_+(x)$. From this it follows that
$$F(y)-F(x)\le G_+(y)-G_-(x)\le G_+(x)-G_-(x)=a(x)$$ $$F(x)-F(y)\le G_+(x)-G_-(y)\le G_+(x)-G_-(x)=a(x)$$ so $|F(x)-F(y)|\le a(x)$.
Clearly $F(x)-G_-(x)=\{x\}a(x)\ge 0$, and $G_+(x)-F(x)=(1-\{x\})a(x)\ge 0$.
For fixed $k\in\Bbb N$, we note that $G_-(x)=A(x)-(x-k)a(x)-\sum_{n\le k}a(n)$ on $[k,k+1]$. On $[k,k+1)$ this is by definition, and at $k+1$ we have $$G_-(k+1)=A(k+1)-\sum_{n\le k+1}a(n)=A(k+1)-a(x)-\sum_{n\le k}a(n)$$. Thus given $k\le x\le y\le k+1$ we have \begin{align} G_-(y)-G_-(x)&=A(y)-A(x)-(y-k)a(y)+(x-k)a(x)\\ &\ge A(y)-A(x)-(y-x)a(y)\\ &=\int_x^y[a(t)-a(y)]\,dt\ge 0. \end{align}
Similarly, \begin{align} G_+(x)-G_+(y)&=A(x)-A(y)+(k+1-x)a(x)-(k+1-y)a(y)\\ &\ge A(x)-A(y)+(y-x)a(x)\\ &=\int_x^y[a(x)-a(t)]\,dt\ge 0. \end{align}
Thus $G_-$ is increasing and $G_+$ is decreasing on $[k,k+1]$, and by pasting together the intervals at the common points, we conclude that $G_-$ is increasing and $G_+$ is decreasing on $\Bbb R^+$.