Assuming that you should have:

What you give is the odd extension (more of less).

OK to this pointThen the Fourier integral representation:

But g(x) is odd, then:

You have lost the 2, and this last integral becomes (putting the 2 back in) OK found it below now fixed:..................

..................