With g a Schwartz function and F(g) its Fourier transform then the Fourier transform of x+2 in the sense of distributions is the unique distribution T such that for all g Schwartz
⟨T,g⟩=⟨x+2,F(g)⟩
where
⟨x+2,F(g)⟩ means the Riemann integral
∫∞−∞(x+2)F(g)(x)dx because
x+2 is a continuous function.
The Fourier inversion theorem for Schwartz functions yields
∫∞−∞2F(g)(x)dx=4πg(0)
and
∫∞−∞xF(g)(x)dx=∫∞−∞(−i)F(g′)(x)dx=−2iπg′(0)
thus
T=4πδ+2iπδ′