I am trying to understand how the following function is integrated by parts (F(x) is the cdf of f(x)):
$$ \frac {\int_t^{+\infty}[1-F(x)]dx} {\int_{-\infty}^t F(x) dx} $$
After integrating by parts this becomes(I am familiar with the integrating by parts procedure but don't quite see it is applied to arrive at the equation below):
$$ \frac {\int_t^{+\infty}(x-t) f(x)dx} {\int_{-\infty}^t (t-x) f(x) dx} $$
And some more transformation (also not sure what is happening here):
$$ \frac {E[(x-t)^+]} {E[(t-x)^+]} $$
And one more (also unclear to me):
$$ \frac {E(x)-t} {E[(t-x)^+]}+1 $$