Class 12 Maths, Worked in Full Past papersGet updates
Chapter 7 · Integrals

Exercise 7.5 · Q21: ∫dxex−1\int\frac{dx}{e^x - 1}

Exercise 7.5Substitution and partial fractions · Section 7.5
The question

Integrate the function

1ex−1\frac{1}{e^x - 1}

[Hint: Put ex=te^x = t⁠.]

Exam answer

Let I=∫dxex−1I = \displaystyle\int\frac{dx}{e^x - 1}⁠.

Put ex=te^x = t⁠. Then ex dx=dte^x\,dx = dt⁠, so dx=dttdx = \frac{dt}{t}⁠.

I=∫dtt(t−1)I = \int\frac{dt}{t(t - 1)}

Let 1t(t−1)=At+Bt−1\frac{1}{t(t - 1)} = \frac{A}{t} + \frac{B}{t - 1}⁠. Then 1=A(t−1)+Bt1 = A(t - 1) + Bt⁠.

Putting t=0t = 0⁠: A=−1A = -1⁠. Putting t=1t = 1⁠: B=1B = 1⁠.

∴ I=∫(1t−1−1t)dt=log⁡∣t−1∣−log⁡∣t∣+C=log⁡∣t−1t∣+C\begin{aligned} \therefore\ I &= \int\left(\frac{1}{t - 1} - \frac1t\right)dt \\ &= \log|t - 1| - \log|t| + C \\ &= \log\left|\frac{t - 1}{t}\right| + C \end{aligned}

∴ I=log⁡∣ex−1ex∣+C\therefore\ I = \log\left|\dfrac{e^x - 1}{e^x}\right| + C⁠.

The answer key prints log⁡(ex−1ex)+C\log\left(\frac{e^x - 1}{e^x}\right) + C⁠, without the modulus. This agrees for x>0x > 0⁠; for x<0x < 0 the bracket is negative, so the modulus is needed.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

With t=ext = e^x we have dt=ex dx=t dxdt = e^x\,dx = t\,dx⁠, so dx=dttdx = \frac{dt}{t}⁠. The integral becomes ∫dtt(t−1)\int\frac{dt}{t(t - 1)}⁠, a rational function in tt with two different linear factors, which splits by Table 7.2 (row 1).

Given, to find, and the plan
Given
The integrand 1ex−1\frac{1}{e^x - 1}⁠, defined for x≠0x \ne 0 (since ex=1e^x = 1 only at x=0x = 0⁠).
To find
∫dxex−1\int\frac{dx}{e^x - 1}⁠.
Plan
(1) Put t=ext = e^x⁠. (2) Split 1t(t−1)\frac{1}{t(t - 1)}⁠. (3) Integrate and return to xx⁠. (4) Look at the sign of ex−1e^x - 1 on each side of 0 and compare with the textbook's form. (5) Differentiate back.

Basics you need

1The exponential

ddxex=ex\frac{d}{dx}e^x = e^x (standard formula (xi), Section 7.2); ex>0e^x > 0 for all xx⁠; ex>1e^x > 1 exactly when x>0x > 0⁠; log⁡ex=x\log e^x = x⁠. Basics: logarithms and 1/x

2Substitution

If t=ext = e^x then dt=ex dxdt = e^x\,dx⁠. Basics: substitution

3Table 7.2, row 1

1(t−a)(t−b)=At−a+Bt−b\frac{1}{(t - a)(t - b)} = \frac{A}{t - a} + \frac{B}{t - b}⁠, a≠ba \ne b⁠. Lesson: partial fractions

Solution

  1. Substitute t=ext = e^x

    Then dt=ex dx=t dxdt = e^x\,dx = t\,dx⁠, so dx=dttdx = \frac{dt}{t} (allowed since t=ex>0t = e^x > 0⁠). Hence

    ∫dxex−1=∫dtt(t−1),\int\frac{dx}{e^x - 1} = \int\frac{dt}{t(t - 1)},

    with t>0t > 0⁠, t≠1t \ne 1⁠.

    There is no exe^x in the numerator to absorb dtdt⁠, so we solve dt=t dxdt = t\,dx for dxdx⁠. This brings an extra factor tt into the denominator and gives a rational function of tt⁠.
    Integration by substitution, Section 7.3.1. Lesson: substitution
  2. Split into partial fractions

    1t(t−1)=At+Bt−1,1=A(t−1)+Bt.\begin{gathered} \frac{1}{t(t - 1)} = \frac{A}{t} + \frac{B}{t - 1}, \\ 1 = A(t - 1) + Bt. \end{gathered}

    Put t=0t = 0⁠: A=−1A = -1⁠. Put t=1t = 1⁠: B=1B = 1⁠. So

    1t(t−1)=1t−1−1t.\frac{1}{t(t - 1)} = \frac{1}{t - 1} - \frac1t.
    Two different linear factors: row 1 of Table 7.2. Check at t=2t = 2⁠: 12=1−12\frac12 = 1 - \frac12⁠. ✓
    Table 7.2, row 1. Basics: splitting fractions
  3. Integrate and return to xx

    ∫(1t−1−1t)dt=log⁡∣t−1∣−log⁡∣t∣+C=log⁡∣t−1t∣+C=log⁡∣ex−1ex∣+C.\begin{aligned} \int\Big(\frac{1}{t - 1} - \frac1t\Big)dt &= \log|t - 1| - \log|t| + C \\ &= \log\left|\frac{t - 1}{t}\right| + C \\ &= \log\left|\frac{e^x - 1}{e^x}\right| + C. \end{aligned}

    Dividing top and bottom by exe^x⁠, this is also log⁡∣1−e−x∣+C\log|1 - e^{-x}| + C⁠.

    Each simple fraction gives a logarithm (standard formula (xii)); combine with log⁡∣p∣−log⁡∣q∣=log⁡∣pq∣\log|p| - \log|q| = \log\left|\frac pq\right|⁠; then t=ext = e^x⁠.
    Standard formula (xii), Section 7.2. Basics: logarithms and 1/x
  4. The modulus matters for x<0x < 0

    For x>0x > 0⁠: ex>1e^x > 1⁠, so ex−1ex>0\frac{e^x - 1}{e^x} > 0 and the answer may be written log⁡ex−1ex+C\log\frac{e^x - 1}{e^x} + C⁠, the textbook's form.

    For x<0x < 0⁠: 0<ex<10 < e^x < 1⁠, so ex−1ex<0\frac{e^x - 1}{e^x} < 0⁠. Its logarithm is not defined, and the answer must be written with the modulus: log⁡1−exex+C=log⁡(e−x−1)+C\log\frac{1 - e^x}{e^x} + C = \log(e^{-x} - 1) + C⁠.

    The integrand is defined for x<0x < 0 too (for example, at x=−1x = -1 it is 1e−1−1≈−1.582\frac{1}{e^{-1} - 1} \approx -1.582⁠), so an answer valid only for x>0x > 0 is incomplete. The textbook's answer omits the modulus, so it covers only x>0x > 0⁠; with ∣⋅∣|\cdot| the same expression covers every x≠0x \ne 0⁠.
    Logarithms are defined only for positive numbers. Basics: logarithms and 1/x
  5. Check: differentiate the answer

    Write the answer as log⁡∣ex−1∣−log⁡ex=log⁡∣ex−1∣−x\log|e^x - 1| - \log e^x = \log|e^x - 1| - x⁠. Then

    ddx(log⁡∣ex−1∣−x)=exex−1−1=ex−(ex−1)ex−1=1ex−1. ✓\begin{aligned} \frac{d}{dx}\big(\log|e^x - 1| - x\big) &= \frac{e^x}{e^x - 1} - 1 \\ &= \frac{e^x - (e^x - 1)}{e^x - 1} = \frac{1}{e^x - 1}. \ \checkmark \end{aligned}

    Valid for every x≠0x \ne 0⁠, on both sides of 0.

    Chain rule on log⁡∣ex−1∣\log|e^x - 1| (inner derivative exe^x⁠); log⁡ex=x\log e^x = x⁠. Over the common denominator the exe^x terms cancel.
    Property (I), Section 7.2.1. Basics: integration undoes differentiation
Result ∫dxex−1=log⁡∣ex−1ex∣+C=log⁡∣1−e−x∣+C,\int\frac{dx}{e^x - 1} = \log\left|\frac{e^x - 1}{e^x}\right| + C = \log|1 - e^{-x}| + C,

for x≠0x \ne 0⁠. (Textbook answer: log⁡(ex−1ex)+C\log\left(\frac{e^x - 1}{e^x}\right) + C⁠. This agrees with ours for x>0x > 0⁠; for x<0x < 0 the bracket is negative, so the modulus is needed, as shown in Step 4.)

Check it with numbers

From 1 to 2 (continuous there): F(2)−F(1)=log⁡1−e−21−e−1F(2) - F(1) = \log\frac{1 - e^{-2}}{1 - e^{-1}} =log⁡(1+e−1)≈0.3132617= \log(1 + e^{-1}) \approx 0.3132617⁠. A numerical integration over [1,2][1, 2] gives 0.31326170.3132617 too. ✓

From −2-2 to −1-1⁠, where the modulus is needed: F(−1)−F(−2)F(-1) - F(-2) =log⁡(e−1)−log⁡(e2−1)= \log(e - 1) - \log(e^2 - 1) =−log⁡(1+e)≈−1.3132617= -\log(1 + e) \approx -1.3132617⁠. A numerical integration over [−2,−1][-2, -1] gives −1.3132617-1.3132617 too. ✓

Common mistakes
  1. Writing dt=dxdt = dx⁠. With t=ext = e^x⁠, dt=exdxdt = e^x dx⁠, so dx=dttdx = \frac{dt}{t}⁠.
  2. Answer log⁡∣ex−1∣\log|e^x - 1|⁠. The numerator is 1, not exe^x (the derivative of the denominator), so this is wrong: its derivative is exex−1\frac{e^x}{e^x - 1}⁠.
  3. Dropping the modulus everywhere. ex−1<0e^x - 1 < 0 for x<0x < 0⁠.
What to take away
  1. For integrands in exe^x⁠, t=ext = e^x with dx=dttdx = \frac{dt}{t} gives a rational function of tt⁠.
  2. A second route: multiply by e−xe−x\frac{e^{-x}}{e^{-x}} to get e−x1−e−x\frac{e^{-x}}{1 - e^{-x}}⁠, whose numerator is the derivative of 1−e−x1 - e^{-x}⁠; this gives log⁡∣1−e−x∣\log|1 - e^{-x}| at once.
  3. Keep the modulus unless the quantity is known to be positive on the whole domain.

Every fact used, and where it comes from

FactUsed inSource
ddxex=ex\frac{d}{dx}e^x = e^x⁠; substitution t=ext = e^xStep 1Standard formula (xi), Section 7.2; Section 7.3.1
At−a+Bt−b\frac{A}{t - a} + \frac{B}{t - b}Step 2Table 7.2, row 1, Section 7.5
∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + CStep 3Standard formula (xii), Section 7.2
ex>1  ⟺  x>0e^x > 1 \iff x > 0⁠; log⁡\log needs a positive argumentStep 4Exponential and logarithmic functions (Basics: logarithms)
log⁡ex=x\log e^x = xStep 5Laws of logarithms
Derivative of an antiderivative is the integrandStep 5Property (I), Section 7.2.1
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →