In book The concepts and practice of mathematical finance, in the context of illustrating the stochastic volatility model, the Fourier transform $\hat{P}(\xi, V, T)$ of a European put $P(x, V, T)$ is listed as
$$ \hat{P}(\xi, V, T) = - \frac{K^{i \xi + 1}}{\xi^2 - i \xi} $$
where $x = \log S$ is the logarithm of real world underlying stock values $S$, $\xi$ the respective Fourier variable, $V$ is square vol, $T$ the time maturity, $i$ the imaginary unit. My development of the Fourier integral, using $K - e^x$ as payout for the put, leads to a different result:
$$ \hat{P}(\xi, V, T) = \int e^{i \xi x} ( K - e^x ) dx =\\ \frac{K}{i \xi} e^{i \xi x} - \frac{1}{1 + i \xi} e^{(1 + i \xi) x} = e^{i \xi x} \frac{K + i \xi (K - e^x)}{i \xi - \xi^2} $$
Where have I gone wrong? How to reach the book result?