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

Exercise 7.6 · Q19: ∫ex(1x−1x2)dx\int e^x\left(\frac1x-\frac1{x^2}\right)dx

Exercise 7.6Integral of the type eˣ[f + f′] · Section 7.6.1
The question

Integrate the functions in Exercises 1 to 22.

19.

ex(1x−1x2)e^x\left(\frac1x - \frac{1}{x^2}\right)
Exam answer

Let I=∫ex(1x−1x2)dxI = \displaystyle\int e^x\left(\frac1x - \frac{1}{x^2}\right)dx⁠.

Let f(x)=1xf(x) = \frac1x⁠. Then f′(x)=−1x2f'(x) = -\frac{1}{x^2}⁠.

I=∫ex[f(x)+f′(x)]dxI = \int e^x\left[f(x) + f'(x)\right]dx

Using ∫ex[f(x)+f′(x)]dx\displaystyle\int e^x\left[f(x) + f'(x)\right]dx =exf(x)+C= e^xf(x) + C⁠,

∴ I=exx+C\therefore\ I = \dfrac{e^x}{x} + C⁠.

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

The one idea this problem is built on

The derivative of 1x\frac1x is −1x2-\frac{1}{x^2}⁠. So the bracket is already "a function plus its derivative", f+f′f + f' with f(x)=1xf(x) = \frac1x⁠, and Section 7.6.1 gives ∫ex[f+f′] dx=exf+C\int e^x[f + f']\,dx = e^x f + C⁠.

Given, to find, and the plan
Given
ex(1x−1x2)e^x\left(\frac1x - \frac1{x^2}\right)⁠, defined for x≠0x \ne 0⁠.
To find
∫ex(1x−1x2)dx\int e^x\left(\frac1x - \frac1{x^2}\right)dx⁠.
Plan
(1) Identify ff and check f′f'⁠. (2) Apply the rule. (3) Differentiate back.

Basics you need

1The rule ∫ex[f+f′] dx=exf+C\int e^x[f + f']\,dx = e^x f + C

Section 7.6.1; valid on any interval where ff is differentiable. Lesson: integration by parts

2Derivative of 1x\frac1x

ddxx−1=−x−2=−1x2\frac{d}{dx}x^{-1} = -x^{-2} = -\frac{1}{x^2} for x≠0x \ne 0 (power rule). Basics: powers of x

Solution

  1. Identify ff and check f′f'

    Take f(x)=1x=x−1f(x) = \frac1x = x^{-1}⁠. By the power rule,

    f′(x)=−1⋅x−2=−1x2.f'(x) = -1\cdot x^{-2} = -\frac{1}{x^2}.

    So 1x−1x2=f(x)+f′(x)\frac1x - \frac1{x^2} = f(x) + f'(x)⁠.

    Of the two terms, one must be the derivative of the other. Differentiating 1x\frac1x gives −1x2-\frac1{x^2}⁠, with the minus sign that appears in the question, so f=1xf = \frac1x⁠. (Going the other way, the derivative of −1x2-\frac{1}{x^2} is 2x3\frac{2}{x^3}⁠, not 1x\frac1x⁠.)
    ddxxn=nxn−1\frac{d}{dx}x^n = nx^{n-1} with n=−1n = -1⁠. Basics: powers of x
  2. Apply the rule

    ∫ex(1x−1x2)dx=exx+C.\int e^x\left(\frac1x - \frac1{x^2}\right)dx = \frac{e^x}{x} + C.
    ∫ex[f+f′] dx=exf+C\int e^x[f + f']\,dx = e^x f + C with f=1xf = \frac1x⁠. Since 1x\frac1x is differentiable on (−∞,0)(-\infty, 0) and on (0,∞)(0, \infty)⁠, the answer holds on each of these intervals (the constant may differ between them).
  3. Check: differentiate the answer

    ddx[exx]=ex⋅x−ex⋅1x2=exx−exx2=ex(1x−1x2).\begin{aligned} \frac{d}{dx}\left[\frac{e^x}{x}\right] &= \frac{e^x\cdot x - e^x\cdot 1}{x^2} \\ &= \frac{e^x}{x} - \frac{e^x}{x^2} = e^x\left(\frac1x - \frac1{x^2}\right). \end{aligned}
    Quotient rule with top exe^x (derivative exe^x⁠) and bottom xx (derivative 1); then split the fraction. The result is the integrand for every x≠0x \ne 0⁠.
    Quotient rule (Chapter 5, Section 5.3). Basics: integration undoes differentiation
Result ∫ex(1x−1x2)dx=exx+C,\int e^x\left(\frac1x - \frac1{x^2}\right)dx = \frac{e^x}{x} + C,

valid on any interval not containing 00⁠. (Textbook answer: exx+C\frac{e^x}{x} + C⁠, the same.)

Check it with numbers

On [1,2][1, 2]⁠, which does not contain 0:

F(2)−F(1)=e22−e=0.9762462210…\begin{aligned} F(2) - F(1) &= \frac{e^2}{2} - e \\ &= 0.9762462210\ldots \end{aligned}

Numerical integration of ex(1x−1x2)e^x\left(\frac1x - \frac1{x^2}\right) over [1,2][1, 2] gives 0.9762462210…0.9762462210\ldots⁠, the same.

Common mistakes
  1. Splitting into ∫exx dx−∫exx2 dx\int\frac{e^x}{x}\,dx - \int\frac{e^x}{x^2}\,dx and trying each separately: neither has an answer in elementary functions on its own (a known result, not proved in the book; Remark (ii) after Example 4 notes that such integrals exist); only the combination does.
  2. Choosing f=−1x2f = -\frac1{x^2}⁠. Its derivative is 2x3\frac{2}{x^3}⁠, not 1x\frac1x⁠.
  3. Forgetting x≠0x \ne 0⁠.
What to take away
  1. ∫ex(1x−1x2)dx=exx+C\int e^x\left(\frac1x - \frac1{x^2}\right)dx = \frac{e^x}{x} + C⁠: a direct case of ∫ex[f+f′] dx=exf+C\int e^x[f + f']\,dx = e^x f + C⁠.
  2. When two terms in the bracket differ by one power of xx with the right coefficient, test whether one is the derivative of the other.

Every fact used, and where it comes from

FactUsed inSource
∫ex[f+f′] dx=exf+C\int e^x[f + f']\,dx = e^x f + CStep 2Section 7.6.1 (Lesson: integration by parts)
ddxxn=nxn−1\frac{d}{dx}x^n = nx^{n-1}Step 1Standard formula (i), Section 7.2; Chapter 5
Quotient ruleStep 3Chapter 5, Section 5.3
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 →