Solution (source code)

= Solution

Take the usual <Heaviside step function>, $H(x)=1$ for $x>0$ and $0$ for $x<0$. Its <Fourier transform> must be interpreted as a <tempered distribution>. For $a>0$, exponential damping gives an ordinary integral:
$$
\widehat{e^{-ax}H(x)}(k)=\int_0^\infty e^{-(a+ik)x}\,dx
=\frac1{a+ik}=\frac a{a^2+k^2}-i\frac{k}{a^2+k^2}.
$$
Against any <Schwartz function> $\varphi$, the first term is an <approximate identity> of total mass $\pi$: changing variables $k=au$ gives the limit $\pi\varphi(0)$. For the second term, pair positive and negative $k$ near zero. The difference $\varphi(k)-\varphi(-k)=O(k)$ removes the singularity and gives the <Cauchy principal value> of $1/k$. The tails converge by <dominated convergence>. Since the damped functions also approach $H$ as <tempered distributions>, continuity of the <Fourier transform> yields the <Fourier transform of the Heaviside step function>:
$$
\boxed{\widehat H(k)=\pi\delta(k)-i\operatorname{PV}\frac1k}.
$$
\b[The printed plus sign is inconsistent with the printed $e^{-ikx}$ convention for this $H$.] In fact $H'=\delta$ requires $ik\widehat H=1$; the printed expression would give $-1$. Its plus sign would instead be correct for $H(-x)$.

To find the <Fourier transform of a principal-value reciprocal>, exponential damping of its odd part gives
$$
\widehat{e^{-a|x|}\operatorname{PV}(1/x)}(k)
=-2i\int_0^\infty e^{-ax}\frac{\sin(kx)}x\,dx.
$$
The integral vanishes at $k=0$ and its $k$-derivative is $a/(a^2+k^2)$, so it equals $\arctan(k/a)$. Taking the <distributional convergence> limit gives
$$
\boxed{\mathcal F\!\left(\operatorname{PV}\frac1x\right)(k)=-i\pi\operatorname{sgn}k}.
$$
An ordinary improper integral of $1/x$ across zero is not a substitute for the specified <Cauchy principal value>.