Is there a way to define the integral of say $f(x)=-1/x^2$ between 0 and y so that it is safely valued as $F(y)=1/y$?
Put another way, usually the Cauchy integral $F(x)$ is defined symmetrically around the pathological point, say from $-y$ to $y$ of $f(x)$, and is equal to 0, on the basis that the integration point at 0 is somewhat discarded. Loosely, $F(x)$ is made of two halves $F(x)=1/x$ and $F(-x)=-1/x$ that cancel each other.
Is there an alternative way to define either function $f(x)$ or $F(x)$ in question on the positive half-line only, using for example Dirac or unit step functions, in order to obtain a finite $F(x)$ value and to arrive at $F(y)=\int_0^y f(x)dx = 1/y$ for $y>0$?
My inclination would be to define $F(x)$ for example like $F(x)=\mathbb{1}(x>0)/x$. However, if I derive such $F(x)$, I get $f(x)=\delta(x)/x -\mathbb{1}(x>0)/x^2$. The first part integrates back to 0 (it seems) but what is the integral of the second part?
Additional question, in this example, can I in turn calculate the integral of $-f(x)/F(x)$ from 0 to $y$ to get $\ln(y)$?