I need help calculating this integral:
$$\int_0^x \frac{2(e^{\gamma u}-1)}{(\gamma+\kappa)(e^{\gamma u}-1)+2\gamma} du$$
I tried with the integration by parts but the situation seems to get worse.
I'm not a skillful mathematician (not even a mathematician) so any help would be appreciated. I just know it's possible to solve it since it pops out in a famous financial model but haven't found any derivation yet.
Dividing the numerator and denominator of the integral by $\gamma + \kappa$ gives $$\int_{0}^{x}\frac{a(e^{\gamma u}-1)du}{e^{\gamma u}-1+a\gamma}$$ Where $a=\frac2{\gamma + \kappa}.$
Breaking this into $2$ integrals, $$=\frac a\gamma\int_{0}^x\frac{\gamma e^{\gamma u}du}{e^{\gamma u}-1+a\gamma}-a\int_0^x\frac{du}{e^{\gamma u}-1+a\gamma}$$
For the first, substitute $e^{\gamma u}-1=t$ and you're left with $$\frac{a}{\gamma}\int \frac{dt}{t+a\gamma}$$ Do the same substitution for the second one, and you have $$\frac{1}{\gamma}\int \frac{dt}{(t+1)(t+a\gamma)}$$ The first one is now standard, and the second can be done by partial fractions.
Edit:
The second integral can be written as $$\frac{1}{\gamma(a\gamma-1)}\int \frac{(t+a\gamma)-(t+1)dt}{(t+1)(t+a\gamma)}$$ $$=\frac{1}{\gamma(a\gamma-1)}\int \frac{dt}{t+1}-\frac{1}{\gamma(a\gamma-1)}\int \frac{dt}{t+a\gamma}$$ Both of which are standard.