I am having quite a bit of difficulty integrating this integral...
$$ \int_{\theta}^{T} \frac{2 \lambda _R \left(x+\frac{x^2}{2}-\frac{1-e^{\mu (-n) x}}{\mu n}\right)}{2 \left(1-\frac{\lambda _R e^{\mu (-n) x} \left(\mu (-n) x+e^{\mu n x}-1\right)}{\mu n}\right)}\mu n e^{-n \mu x}\mathrm dx $$ the fraction is $$\color{blue}{ 2 \lambda _R \left(x+\frac{x^2}{2}-\frac{1-e^{\mu (-n) x}}{\mu n}\right)/2 \left(1-\frac{\lambda _R e^{\mu (-n) x} \left(\mu (-n) x+e^{\mu n x}-1\right)}{\mu n}\right) } $$
Any ideas on how to integrate this monster. Thanks.
I believe the term $\frac{x^2}{2}$ and $\frac{1-e^{-n\mu x}}{n\mu }$ in the numerator is causing the problem. Note that if the numerator changes to $2 \lambda _R x$, then this does integrate to:
$$\log (\mu n)-\log \left(\lambda _R \left(\mu n T-e^{\mu n T}+1\right)+\mu n e^{\mu n T}\right)+\mu n T$$
So, there might be some sort of change of variable that might work.
Basically, I am interested in how "experts" would handle this scenario. I am certainly NOT an expert.