Integral of 1/(1+e^x)
Integral of 1/(1+e^x)

I’m having a hard time trying to figure out the steps to get to the final answer shown below. $$ \int_0^x\frac{1+\epsilon X}{1-X}dX = (1+\epsilon)\ln\frac{1}{1-X}-\epsilon X $$

Any help would be great.

I attached what I’ve been getting…

Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It only takes a minute to sign up.

Sign up to join this community

I’m having a hard time trying to figure out the steps to get to the final answer shown below. $$ \int_0^x\frac{1+\epsilon X}{1-X}dX = (1+\epsilon)\ln\frac{1}{1-X}-\epsilon X $$

Any help would be great.

I attached what I’ve been getting…

Split into two integrals:

$$ \int_0^x \frac{1}{1-x}dx \;+\; \epsilon\int_0^x \frac{ x}{1-x}dx $$ The rest is basic integration and then applying the fundamental theorem of calculs part II.

You can let $y = 1 – X$, the denominator. So $X = 1 – y$ and $dx = – dy$. The integral becomes $$-\int_1^{1 – x} \frac{1 + \epsilon(1 – y)}{y}\,dy$$ $$ -(1 + \epsilon)\int_1^{1-x} {1 \over y}\,dy + \epsilon \int_1^{1-x} 1 \,dy$$ I think you can take it from here.

Replace $1-X$ by $Y$, then your integral becomes $\displaystyle \int_0^x\frac{1+\epsilon X}{1-X}dX\, = \int_{1-x}^{1}\frac{1+\epsilon (1-Y)}{Y} dY\,$ . Now it is easy to integrate

\begin{align*} \int\limits_0^x {\frac{{1 + \varepsilon X}} {{1 – X}}dX} &= \int\limits_0^x {\frac{{1 + \varepsilon – \varepsilon \left( {1 – X} \right)}} {{1 – X}}dX} = \left( {1 + \varepsilon } \right)\int\limits_0^x {\frac{1} {{1 – X}}dX} – \varepsilon \int\limits_0^x {dX}\\ &= – \left( {\varepsilon + 1} \right)\int\limits_0^x {\frac{1} {{X – 1}}dX} – \varepsilon x = – \left( {\varepsilon + 1} \right)\left. {\left( {\ln \left| {X – 1} \right|} \right)} \right|_{X = 0}^{X = x} – \varepsilon x\\ &= – \left( {\varepsilon + 1} \right)\ln \left|\left( {x – 1} \right)\right| – \varepsilon x = \left( {\varepsilon + 1} \right)\ln \left( {\left| {\frac{1} {{x – 1}}} \right|} \right) – \varepsilon x. \end{align*}

You are watching: How to integrate $\int_0^x \frac{1+\epsilon X}{1-X}~dX$?. Info created by Bút Chì Xanh selection and synthesis along with other related topics.