I was looking at the paper of Raval and Jaquier The Log Moment Formula For Implied Volatility available here : https://arxiv.org/pdf/2101.08145.pdf
On the page 4 they wrote(with $<logS>_T$ and $<S>_t$ quadratic terms ) :
$<logS>_T$ = $\int_{0}^{T}\frac{1}{S_t^2}d<S>_t = -2 log(\frac{S_T}{S_0}) + 2\int_{0}^{T}\frac{1}{S_t}dS_t$
I don't understand well the last step of the derivation as I find:
$-2\frac{S_T - S_0}{S_0} + 2\int_{0}^{T}\frac{1}{S_t}dS_t$
Moreover, the authors define :
$-log(\frac{S_T}{S_0}) = \frac{S_T - S_0}{S_0} + \int_{S_0}^{\infty}(\frac{S_t-K}{K^2})^+dK + \int_{0}^{S_0}(\frac{K-S_t}{K^2})^+dK$
Which I couldn't demonstrate. Could someone help me please.
Thank you