Here is the goofy pdf of some nonnegative random variable \(X\):

\[ f(x) = e^{1-e^x+x},\quad x\geq 0. \]

  1. Compute the cdf of \(X\);
  2. Compute the median of \(X\).