[Math] How to find a sequence of step functions that converges to $\frac{1}{\sqrt{x}}$

lebesgue-integralmeasure-theoryreal-analysis

Definition:Let $v:(a,b)\to\mathbb{R}$. If there exists a partition $P$ of the interval $(a,b)$ such that $v$ is constant in each subinterval of $P$, we say that $v$ is a step function.

Let $u:(0,1)\to\mathbb{R}$ be the function given by $u(x)=1/\sqrt{x}$. I'm trying to find a sequence $u_n:(0,1)\to\mathbb{R}$ of step functions that converges to $u$ almost everywhere.

I think I got a solution for some simplest cases, like $u(x)=x$, $u(x)=2x$, $u(x)=x^2$, by taking $$u_n(x)=\left\{\begin{matrix}
u\left(\frac{1}{n}\right) & \text{if }0<x\leq\frac{1}{n}\\
u\left(\frac{2}{n}\right) & \text{if }\frac{1}{n}<x\leq\frac{2}{n}\\
\vdots& \\
u(1) & \text{if }\frac{n-1}{n}<x<1
\end{matrix}\right.$$ But I don't know how to solve the case $u(x)=1/\sqrt{x}$.

Thanks.

Best Answer

IMHO, the easiest way is to do something like

$$u_n(x) = \min\left( n, 2^{-n} \Big\lfloor 2^n \frac{1}{\sqrt{x}} \Big\rfloor \right)$$

The use of the factor $2^n$ instead of $n$ make you easier to justify for fixed $x$, your $u_n(x)$ is a monotonic increasing sequence in $n$. The use of $2^{-n} \lfloor 2^{n} \cdots \rfloor$ allow you to conclude for large enough $n$, the difference between $u_n(x)$ and $\frac{1}{\sqrt{x}}$ is bounded by $2^{-n}$ and hence $u_n(x)$ converges pointwise to $\frac{1}{\sqrt{x}}$ for any $x > 0$.