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

Exercise 7.2 · Q1: ∫2x1+x2 dx\int \frac{2x}{1+x^2}\,dx

Exercise 7.2Integration by substitution · Section 7.3.1
The question

Integrate the function:

2x1+x2\frac{2x}{1+x^2}
Exam answer

Let I=∫2x1+x2 dxI = \displaystyle\int\frac{2x}{1 + x^2}\,dx⁠.

Put 1+x2=t1 + x^2 = t⁠. Then 2x dx=dt2x\,dx = dt⁠.

∴ I=∫dtt=log⁡∣t∣+C\therefore\ I = \int\frac{dt}{t} = \log|t| + C

∴ I=log⁡(1+x2)+C\therefore\ I = \log\left(1 + x^2\right) + C (as 1+x2>01 + x^2 > 0⁠).

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

The one idea this problem is built on

Look at the denominator 1+x21+x^2⁠. Its derivative is 2x2x⁠, which is exactly the numerator. Whenever the top of a fraction is the derivative of the bottom, the substitution "bottom =t= t" turns the integral into ∫dtt\int \frac{dt}{t}⁠, which is log⁡∣t∣\log|t|⁠. So the answer is the log of the denominator.

Given, to find, and the plan
Given
The integrand f(x)=2x1+x2f(x) = \dfrac{2x}{1+x^2}⁠. Its denominator satisfies 1+x2≥1>01+x^2 \ge 1 > 0⁠, so ff is defined and continuous for every real xx⁠.
To find
∫2x1+x2 dx\displaystyle\int \frac{2x}{1+x^2}\,dx⁠, that is, every function whose derivative is f(x)f(x)⁠.
Plan
(1) Notice that the numerator is the derivative of the denominator. (2) Substitute t=1+x2t = 1+x^2⁠. (3) Integrate 1t\frac1t with the standard formula. (4) Return to xx⁠. (5) Differentiate the answer to check it.

Basics you need

1Integration undoes differentiation

∫f(x) dx=F(x)+C\int f(x)\,dx = F(x) + C means exactly that F′(x)=f(x)F'(x) = f(x)⁠. So any answer can be checked by differentiating it. Basics: integration undoes differentiation

2Substitution

If we put t=g(x)t = g(x)⁠, then dt=g′(x) dxdt = g'(x)\,dx⁠, and ∫h(g(x)) g′(x) dx=∫h(t) dt\int h(g(x))\,g'(x)\,dx = \int h(t)\,dt⁠. It is the chain rule read backwards (Section 7.3.1). Basics: substitution

3The integral of 1/t1/t

∫1t dt=log⁡∣t∣+C\int \frac{1}{t}\,dt = \log|t| + C for t≠0t \ne 0 (standard formula (xii) in Section 7.2). The absolute value is there because log⁡\log only accepts positive numbers. Basics: logarithms and 1/x

Solution

  1. Spot the derivative of the denominator in the numerator

    ddx(1+x2)=0+2x=2x.\frac{d}{dx}\left(1+x^2\right) = 0 + 2x = 2x.

    So the integrand has the shape g′(x)g(x)\dfrac{g'(x)}{g(x)} with g(x)=1+x2g(x) = 1+x^2⁠.

    Substitution works when the integrand contains some inner expression together with its derivative. Here the inner expression is the denominator and its derivative 2x2x is sitting in the numerator, so the substitution t=1+x2t = 1+x^2 will absorb the whole numerator into dtdt⁠.
    ddx(x2)=2x\frac{d}{dx}(x^2) = 2x (power rule) and a constant has derivative 00⁠. Basics: powers of x
  2. Substitute t=1+x2t = 1+x^2

    t=1+x2,dtdx=2x,dt=2x dx.\begin{aligned} t &= 1+x^2, \\ \frac{dt}{dx} &= 2x, \\ dt &= 2x\,dx. \end{aligned}

    The integral becomes

    ∫2x1+x2 dx=∫11+x2 (2x dx)=∫dtt.\int \frac{2x}{1+x^2}\,dx = \int \frac{1}{1+x^2}\,(2x\,dx) = \int \frac{dt}{t}.
    We split the integrand as 11+x2\frac{1}{1+x^2} times 2x dx2x\,dx⁠. The first factor is 1t\frac1t and the second is exactly dtdt⁠. Nothing in xx is left over, which tells us the substitution was the right one. Note that t=1+x2≥1t = 1+x^2 \ge 1⁠, so tt is never 00 and 1t\frac1t is always defined.
    Writing dt=g′(x) dxdt = g'(x)\,dx is the shorthand of Section 7.3.1: "put x=g(t)x = g(t) so that dx=g′(t) dtdx = g'(t)\,dt", used here in the direction t=g(x)t = g(x)⁠. Lesson: integration by substitution
  3. Integrate in tt

    ∫dtt=log⁡∣t∣+C.\int \frac{dt}{t} = \log|t| + C.
    This is the standard formula ∫1x dx=log⁡∣x∣+C\int \frac1x\,dx = \log|x| + C⁠, with the letter tt in place of xx (Remark (iii) in Section 7.2 says the formulas hold for any name of the variable).
    Standard formula (xii), Section 7.2: ddxlog⁡∣x∣=1x\frac{d}{dx}\log|x| = \frac1x⁠, so ∫1x dx=log⁡∣x∣+C\int\frac1x\,dx = \log|x| + C⁠. Basics: logarithms and 1/x
  4. Return to xx and drop the absolute value

    log⁡∣t∣+C=log⁡∣1+x2∣+C=log⁡(1+x2)+C.\log|t| + C = \log\left|1+x^2\right| + C = \log\left(1+x^2\right) + C.
    The question is in xx⁠, so the answer must be in xx⁠: replace tt by 1+x21+x^2⁠. Because 1+x21+x^2 is always positive, ∣1+x2∣=1+x2|1+x^2| = 1+x^2 and the absolute value bars can be removed. The answer is valid for every real xx⁠.
  5. Check: differentiate the answer

    Use the chain rule with inner function u=1+x2u = 1+x^2 and outer function log⁡u\log u⁠:

    ddx[log⁡(1+x2)+C]=11+x2⋅ddx(1+x2)+0=11+x2⋅2x=2x1+x2.\begin{aligned} \frac{d}{dx}\left[\log(1+x^2) + C\right] &= \frac{1}{1+x^2}\cdot\frac{d}{dx}(1+x^2) + 0 \\ &= \frac{1}{1+x^2}\cdot 2x \\ &= \frac{2x}{1+x^2}. \end{aligned}

    This is the integrand, so the answer is correct.

    An indefinite integral is right exactly when its derivative gives back the integrand (Property (I), Section 7.2.1). Differentiating is always easier than integrating, so this check costs little and catches slips such as a missing factor.
    ddulog⁡u=1u\frac{d}{du}\log u = \frac1u (Chapter 5, Theorem 5) and the chain rule (Chapter 5, Theorem 4). Basics: integration undoes differentiation
Result

For every real xx⁠,

∫2x1+x2 dx=log⁡(1+x2)+C.\int \frac{2x}{1+x^2}\,dx = \log\left(1+x^2\right) + C.

(Textbook answer: log⁡(1+x2)+C\log(1+x^2) + C⁠.)

Check it with numbers

Let F(x)=log⁡(1+x2)F(x) = \log(1+x^2)⁠. At x=2x = 2 the integrand is 2⋅21+4=0.8\frac{2\cdot 2}{1+4} = 0.8⁠. Now estimate the slope of FF at 22 with h=0.0001h = 0.0001⁠:

F(2.0001)≈1.60951791,F(1.9999)≈1.60935791,F(2.0001)−F(1.9999)0.0002≈0.800000.\begin{aligned} F(2.0001) &\approx 1.60951791, \\ F(1.9999) &\approx 1.60935791, \\ \frac{F(2.0001)-F(1.9999)}{0.0002} &\approx 0.800000. \end{aligned}

The slope of our answer equals the integrand, as it should.

Common mistakes
  1. Writing log⁡(1+x2)\log(1+x^2) times something extra. Once 2x dx2x\,dx has become dtdt⁠, the factor 2x2x is used up. It does not appear again in the answer.
  2. Integrating the top and bottom separately. ∫2x1+x2 dx\int \frac{2x}{1+x^2}\,dx is not x2x+x3/3\frac{x^2}{x + x^3/3}⁠. There is no "quotient rule" for integrals.
  3. Thinking the absolute value is wrong. The general formula has ∣t∣|t|⁠. Here it can be dropped only because 1+x2>01+x^2 > 0⁠; say so.
  4. Forgetting + C+\,C⁠. The integral is a whole family of functions.
What to take away
  1. Whenever the numerator is the derivative of the denominator, ∫g′(x)g(x) dx=log⁡∣g(x)∣+C\int \frac{g'(x)}{g(x)}\,dx = \log|g(x)| + C⁠.
  2. Choose the substitution so that dtdt swallows the rest of the integrand exactly.
  3. Always differentiate your answer to check it.

Every fact used, and where it comes from

FactUsed inSource
ddxx2=2x\frac{d}{dx}x^2 = 2x⁠; a constant has derivative 0Steps 1, 2Chapter 5, Table 5.3
Substitution t=g(x)t = g(x)⁠, dt=g′(x) dxdt = g'(x)\,dxStep 2Section 7.3.1 (Lesson: substitution)
∫1t dt=log⁡∣t∣+C\int \frac1t\,dt = \log|t| + CStep 3Standard formula (xii), Section 7.2
∣a∣=a|a| = a when a>0a > 0Step 4Definition of absolute value
ddxlog⁡x=1x\frac{d}{dx}\log x = \frac1x⁠; chain ruleStep 5Chapter 5, Theorem 5 and Theorem 4
An integral is checked by differentiating itStep 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 →