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

Miscellaneous · Q38 (MCQ): ∫dxex+e−x\int\frac{dx}{e^x+e^{-x}}

Miscellaneous ExerciseIntegration by substitution · Miscellaneous Exercise
The question

Choose the correct answer.

∫dxex+e−x  is equal to\int\frac{dx}{e^x + e^{-x}} \ \text{ is equal to}

(A) tan⁡−1(ex)+C\tan^{-1}(e^x) + C    (B) tan⁡−1(e−x)+C\tan^{-1}(e^{-x}) + C
(C) log⁡(ex−e−x)+C\log(e^x - e^{-x}) + C    (D) log⁡(ex+e−x)+C\log(e^x + e^{-x}) + C

Exam answer

Multiplying numerator and denominator by exe^x⁠,

∫dxex+e−x=∫ex dxe2x+1\int\frac{dx}{e^x + e^{-x}} = \int\frac{e^x\,dx}{e^{2x} + 1}

Put ex=te^x = t⁠. Then ex dx=dte^x\,dx = dt⁠.

∫dtt2+1=tan⁡−1t+C\int\frac{dt}{t^2 + 1} = \tan^{-1}t + C

Answer: (A) tan⁡−1(ex)+C\tan^{-1}(e^x) + C

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

The one idea this problem is built on

Multiply the top and bottom by exe^x⁠. The denominator becomes e2x+1=(ex)2+1e^{2x} + 1 = (e^x)^2 + 1⁠, and the numerator becomes ex dxe^x\,dx⁠, which is the differential of exe^x⁠. So t=ext = e^x gives the standard integral ∫dt1+t2=tan⁡−1t\int\frac{dt}{1+t^2} = \tan^{-1}t⁠, and the answer is tan⁡−1(ex)+C\tan^{-1}(e^x) + C⁠, option (A).

Given, to find, and the plan
Given
The integrand f(x)=1ex+e−xf(x) = \dfrac{1}{e^x + e^{-x}} and four options.
To find
Which option is ∫f(x) dx\int f(x)\,dx⁠.
Plan
(1) Domain. (2) Multiply by exex\frac{e^x}{e^x}⁠. (3) Substitute t=ext = e^x and integrate with standard formula (x). (4) Differentiate back. (5) Test every option.

Basics you need

1Laws of exponents

ex⋅e−x=e0=1e^x\cdot e^{-x} = e^0 = 1 and ex⋅ex=e2x=(ex)2e^x\cdot e^x = e^{2x} = (e^x)^2⁠. Basics: powers

2Substitution (Section 7.3.1)

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

3Standard formula (x), Section 7.2

∫dt1+t2=tan⁡−1t+C\int\frac{dt}{1+t^2} = \tan^{-1}t + C⁠. Basics: integration undoes differentiation

4Testing an option

An option is correct exactly when its derivative equals the integrand at every point of the domain; one point where they differ rules it out. Lesson: integration as anti-differentiation

Solution

  1. Where is the integrand defined?

    ex>0e^x > 0 and e−x>0e^{-x} > 0 for every real xx⁠, so ex+e−x>0e^x + e^{-x} > 0 and the integrand is defined and continuous on all of R\R⁠.

    The answer we find should therefore also work for every real xx⁠. That alone casts doubt on option (C), which needs ex−e−x>0e^x - e^{-x} > 0⁠, that is x>0x > 0⁠.
  2. Multiply top and bottom by exe^x

    1ex+e−x=exex⋅ex+ex⋅e−x=exe2x+1.\frac{1}{e^x + e^{-x}} = \frac{e^x}{e^x\cdot e^x + e^x\cdot e^{-x}} = \frac{e^x}{e^{2x} + 1} .
    The negative power e−xe^{-x} is awkward. Multiplying by exe^x (which is never 0) clears it, and as a bonus puts exe^x in the numerator, the derivative of the exe^x inside e2x=(ex)2e^{2x} = (e^x)^2⁠. That is the pattern substitution needs.
    exe−x=1e^x e^{-x} = 1⁠, exex=e2xe^x e^x = e^{2x}⁠.
  3. Substitute t=ext = e^x and integrate

    Put t=ext = e^x⁠, dt=ex dxdt = e^x\,dx⁠. Then

    ∫ex dx(ex)2+1=∫dtt2+1=tan⁡−1t+C=tan⁡−1(ex)+C.\begin{aligned} \int\frac{e^x\,dx}{(e^x)^2 + 1} &= \int\frac{dt}{t^2 + 1} \\ &= \tan^{-1}t + C \\ &= \tan^{-1}(e^x) + C . \end{aligned}
    Standard formula (x), Section 7.2. The substitution is valid for every real xx⁠: exe^x is differentiable with derivative exe^x⁠, and t=ext = e^x takes only positive values, where 11+t2\frac{1}{1+t^2} is continuous.
  4. Check: differentiate the answer back

    ddxtan⁡−1(ex)=ex1+e2x=exex(e−x+ex)=1ex+e−x ✓\begin{aligned} \frac{d}{dx}\tan^{-1}(e^x) &= \frac{e^x}{1 + e^{2x}} \\ &= \frac{e^x}{e^x(e^{-x} + e^x)} \\ &= \frac{1}{e^x + e^{-x}} \ ✓ \end{aligned}

    valid for every real xx⁠.

    Chain rule: outer tan⁡−1\tan^{-1}⁠, with derivative 11+u2\frac{1}{1+u^2}⁠; inner u=exu = e^x⁠, with derivative exe^x⁠. Dividing top and bottom by exe^x reverses Step 2.
  5. Examine every option

    At x=0x = 0 the integrand is 11+1=12\frac{1}{1+1} = \frac12⁠; at x=log⁡2x = \log 2 (where ex=2e^x = 2⁠, e−x=12e^{-x} = \frac12⁠) it is 12.5=0.4\frac{1}{2.5} = 0.4⁠.

    • (A) Derivative ex1+e2x\frac{e^x}{1+e^{2x}}⁠, equal to the integrand everywhere (Step 4). At x=0x = 0⁠: 12\frac12 ✓; at x=log⁡2x = \log 2⁠: 25=0.4\frac{2}{5} = 0.4 ✓. Correct.
    • (B) ddxtan⁡−1(e−x)\frac{d}{dx}\tan^{-1}(e^{-x}) =−e−x1+e−2x= \frac{-e^{-x}}{1 + e^{-2x}} =−1ex+e−x= -\frac{1}{e^x + e^{-x}} (multiply top and bottom by exe^x⁠). This is the negative of the integrand: −12-\frac12 at x=0x = 0⁠. Wrong. (In fact (B) is minus (A) plus a constant: the sum of tan⁡−1(ex)\tan^{-1}(e^x) and tan⁡−1(e−x)\tan^{-1}(e^{-x}) has derivative 0 on all of R\R⁠, so it is constant, and at x=0x = 0 it is 2tan⁡−11=π22\tan^{-1}1 = \frac{\pi}{2}⁠. So tan⁡−1(e−x)\tan^{-1}(e^{-x}) =π2−tan⁡−1(ex)= \frac{\pi}{2} - \tan^{-1}(e^x)⁠.)
    • (C) log⁡(ex−e−x)\log(e^x - e^{-x}) is defined only for x>0x > 0⁠, while the integrand is defined everywhere. Its derivative is ex+e−xex−e−x\frac{e^x + e^{-x}}{e^x - e^{-x}}⁠; at x=log⁡2x = \log 2 this is 2.51.5=53≠0.4\frac{2.5}{1.5} = \frac53 \ne 0.4⁠. Wrong.
    • (D) Derivative ex−e−xex+e−x\frac{e^x - e^{-x}}{e^x + e^{-x}}⁠: at x=0x = 0 it is 0≠120 \ne \frac12⁠; at x=log⁡2x = \log 2 it is 1.52.5=0.6≠0.4\frac{1.5}{2.5} = 0.6 \ne 0.4⁠. Wrong. (It would be right for the integrand ex−e−xex+e−x\frac{e^x - e^{-x}}{e^x + e^{-x}}⁠, a different question.)
    (C) and (D) come from treating the denominator as if its derivative were in the numerator. It is not: the numerator here is 1.
Result

∫dxex+e−x=tan⁡−1(ex)+C,\int\frac{dx}{e^x + e^{-x}} = \tan^{-1}(e^x) + C, valid for every real xx⁠. The correct option is (A). (Textbook answer: A.)

Check it with numbers

Let F(x)=tan⁡−1(ex)F(x) = \tan^{-1}(e^x)⁠. With x=0.5x = 0.5⁠, h=0.001h = 0.001⁠: F(0.501)≈1.0260320F(0.501) \approx 1.0260320 and F(0.499)≈1.0251452F(0.499) \approx 1.0251452⁠, so the slope is about 0.00088680.002=0.4434\frac{0.0008868}{0.002} = 0.4434⁠; the integrand is 1e0.5+e−0.5\frac{1}{e^{0.5} + e^{-0.5}} ≈12.2552519\approx \frac{1}{2.2552519} ≈0.4434094\approx 0.4434094 ✓.

Common mistakes
  1. Choosing (D) by "log of the denominator". That rule needs the derivative of the denominator on top.
  2. Choosing (B): the substitution t=e−xt = e^{-x} gives dt=−e−xdxdt = -e^{-x}dx⁠, and the minus sign must be kept.
What to take away
  1. For e−xe^{-x} in a denominator, multiply top and bottom by exe^x⁠.
  2. exe2x+1\frac{e^x}{e^{2x} + 1} with t=ext = e^x is 1t2+1\frac{1}{t^2 + 1}⁠, a tan⁡−1\tan^{-1} integral.

Every fact used, and where it comes from

FactUsed inSource
Laws of exponentsStep 2Earlier classes
SubstitutionStep 3Section 7.3.1 (Lesson: substitution)
∫dt1+t2=tan⁡−1t+C\int\frac{dt}{1+t^2} = \tan^{-1}t + CStep 3Standard formula (x), Section 7.2
F′=fF' = f tests an antiderivative; chain ruleSteps 4, 5Property (I), Section 7.2.1; Chapter 5, Section 5.3.1
Zero derivative on an interval means constant; tan⁡−11=π4\tan^{-1}1 = \frac{\pi}{4}Step 5Remark in Section 7.2; principal values (Chapter 2)
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 →