There is the following proof for the Fourier transform of a derivative: $$ f(t) = \int_{-\infty}^\infty S(\nu) e^{2\pi i \nu t}d\nu $$ then $$ f'(t) = \frac{d}{dt} \int_{-\infty}^\infty S(\nu)e^{2\pi i \nu t} d\nu = 2\pi i\int_{-\infty}^\infty \nu S(\nu)e^{2\pi i \nu t}d\nu \longleftrightarrow 2\pi i\nu S(\nu) $$
Why in the proof are we able to move a derivative inside the integral? It seems that we apply Leibniz's rule, but the integral is improper. Thank you for your help!