I'm trying to calculate the Fourier transform of the unit step function,
$$\mathcal{F}[u(t)] \ = \int_{-\infty}^{\infty}u(t)e^{-i\omega t}dt \ = \int_{0}^{\infty}e^{-i\omega t} dt. \tag{1}$$
This simplifies to,
$$U(\omega) = (i\omega)^{-1},\ (\omega \not = 0). \tag{2}$$
However, my book claims that $(1)$ simplifies to $ \pi \delta(\omega) + (i\omega)^{-1}. \tag{3}$
Here, $\delta(\omega)$ is the unit impulse function. I don't have my book with me right now but I think they use the differentiation property to derive it by calculating the transform of the derivative of $u$ (which is $\delta$).
My question is, isn't the appearance of $\delta$ in the result they obtain irrelevant? Since, at $\omega = 0$, $(3) = \infty$ and elsewhere $(3) = (2).$ So, why would they write $(3)$ instead of $(2)$? I should mention this is not in a mathematics textbook, but an engineering textbook.