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

Example 9: ∫dxx2−6x+13\int\frac{dx}{x^2 - 6x + 13}⁠, ∫dx3x2+13x−10\int\frac{dx}{3x^2 + 13x - 10}⁠, ∫dx5x2−2x\int\frac{dx}{\sqrt{5x^2 - 2x}}

ExamplesIntegrals of some particular functions · Section 7.4
The question

Find the following integrals:

(i) ∫dxx2−6x+13\displaystyle\int\frac{dx}{x^2 - 6x + 13}    (ii) ∫dx3x2+13x−10\displaystyle\int\frac{dx}{3x^2 + 13x - 10}    (iii) ∫dx5x2−2x\displaystyle\int\frac{dx}{\sqrt{5x^2 - 2x}}

Exam answer

(i) Let I=∫dxx2−6x+13I = \displaystyle\int\frac{dx}{x^2 - 6x + 13}⁠.

x2−6x+13=x2−6x+9−9+13=(x−3)2+22\begin{aligned} &x^2 - 6x + 13 \\ &= x^2 - 6x + 9 - 9 + 13 \\ &= (x - 3)^2 + 2^2 \end{aligned}

Put x−3=tx - 3 = t⁠. Then dx=dtdx = dt⁠.

Using ∫dtt2+a2=1atan⁡−1ta+C\displaystyle\int\frac{dt}{t^2 + a^2} = \frac1a\tan^{-1}\frac ta + C⁠,

I=∫dtt2+22=12tan⁡−1t2+C\begin{aligned} I &= \int\frac{dt}{t^2 + 2^2} \\ &= \frac12\tan^{-1}\frac t2 + C \end{aligned}

∴ I=12tan⁡−1x−32+C\therefore\ I = \frac12\tan^{-1}\frac{x - 3}{2} + C⁠.

(ii) Let I=∫dx3x2+13x−10I = \displaystyle\int\frac{dx}{3x^2 + 13x - 10}⁠.

3x2+13x−10=3(x2+13x3−103)=3[(x+136)2−16936−12036]=3[(x+136)2−(176)2]\begin{aligned} &3x^2 + 13x - 10 \\ &= 3\left(x^2 + \frac{13x}{3} - \frac{10}{3}\right) \\ &= 3\left[\left(x + \frac{13}{6}\right)^2 - \frac{169}{36} - \frac{120}{36}\right] \\ &= 3\left[\left(x + \frac{13}{6}\right)^2 - \left(\frac{17}{6}\right)^2\right] \end{aligned}

Put x+136=tx + \frac{13}{6} = t⁠. Then dx=dtdx = dt⁠.

Using ∫dtt2−a2\displaystyle\int\frac{dt}{t^2 - a^2} =12alog⁡∣t−at+a∣+C= \frac{1}{2a}\log\left|\frac{t - a}{t + a}\right| + C⁠,

I=13∫dtt2−(176)2=13⋅12×176×log⁡∣t−176t+176∣+C1=117log⁡∣x−46x+5∣+C1=117log⁡∣13⋅3x−2x+5∣+C1=117log⁡∣3x−2x+5∣+C1+117log⁡13\begin{aligned} I &= \frac13\int\frac{dt}{t^2 - \left(\frac{17}{6}\right)^2} \\ &= \frac13\cdot\frac{1}{2\times\frac{17}{6}} \\ &\quad \times\log\left|\frac{t - \frac{17}{6}}{t + \frac{17}{6}}\right| + C_1 \\ &= \frac{1}{17}\log\left|\frac{x - \frac46}{x + 5}\right| + C_1 \\ &= \frac{1}{17}\log\left|\frac13\cdot\frac{3x - 2}{x + 5}\right| + C_1 \\ &= \frac{1}{17}\log\left|\frac{3x - 2}{x + 5}\right| \\ &\quad + C_1 + \frac{1}{17}\log\frac13 \end{aligned}

∴ I=117log⁡∣3x−2x+5∣+C\therefore\ I = \frac{1}{17}\log\left|\frac{3x - 2}{x + 5}\right| + C⁠, where C=C1+117log⁡13C = C_1 + \frac{1}{17}\log\frac13⁠.

(iii) Let I=∫dx5x2−2xI = \displaystyle\int\frac{dx}{\sqrt{5x^2 - 2x}}⁠.

5x2−2x=5(x2−2x5)=5[(x−15)2−(15)2]\begin{aligned} &5x^2 - 2x \\ &= 5\left(x^2 - \frac{2x}{5}\right) \\ &= 5\left[\left(x - \frac15\right)^2 - \left(\frac15\right)^2\right] \end{aligned}

Put x−15=tx - \frac15 = t⁠. Then dx=dtdx = dt⁠.

Using ∫dtt2−a2\displaystyle\int\frac{dt}{\sqrt{t^2 - a^2}} =log⁡∣t+t2−a2∣+C= \log\left|t + \sqrt{t^2 - a^2}\right| + C⁠,

I=15∫dtt2−(15)2=15log⁡∣t+t2−(15)2∣+C\begin{aligned} I &= \frac{1}{\sqrt5}\int\frac{dt}{\sqrt{t^2 - \left(\frac15\right)^2}} \\ &= \frac{1}{\sqrt5}\log\bigg|t \\ &\qquad + \sqrt{t^2 - \left(\frac15\right)^2}\bigg| + C \end{aligned}

Here t2−(15)2=x2−2x5t^2 - \left(\frac15\right)^2 = x^2 - \frac{2x}{5}⁠.

∴ I=15log⁡∣x−15\therefore\ I = \dfrac{1}{\sqrt5}\log\bigg|x - \dfrac15 +x2−2x5∣+C+ \sqrt{x^2 - \dfrac{2x}{5}}\bigg| + C⁠.

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

The one idea this problem is built on

Every quadratic ax2+bx+cax^2 + bx + c can be written as a[(x+b2a)2±k2]a\left[\left(x + \frac{b}{2a}\right)^2 \pm k^2\right] by completing the square (Section 7.4, type (7) and (8)). After the shift t=x+b2at = x + \frac{b}{2a}⁠, the integral is one of the six standard shapes. Whether it becomes t2+k2t^2 + k^2 (an inverse tangent) or t2−k2t^2 - k^2 (a logarithm) depends only on the sign of the constant left over.

Given, to find, and the plan
Given
(i) 1x2−6x+13\frac{1}{x^2 - 6x + 13}⁠, all real xx⁠; (ii) 13x2+13x−10\frac{1}{3x^2 + 13x - 10}⁠, x≠23,−5x \ne \frac23, -5⁠; (iii) 15x2−2x\frac{1}{\sqrt{5x^2 - 2x}}⁠, x<0x < 0 or x>25x > \frac25⁠.
To find
The three indefinite integrals.
Plan
For each: take out the leading coefficient, complete the square, shift t=x+b2at = x + \frac{b}{2a}⁠, identify the formula of Section 7.4, return to xx⁠, simplify, and differentiate back.

Basics you need

1Completing the square

x2+px=(x+p2)2−p24x^2 + px = \left(x + \frac p2\right)^2 - \frac{p^2}{4}⁠. For ax2+bx+cax^2 + bx + c⁠, first take aa out as a factor. Basics: completing the square

2Three formulae of Section 7.4

(1) ∫dxx2−a2=12alog⁡∣x−ax+a∣+C\int\frac{dx}{x^2 - a^2} = \frac{1}{2a}\log\left|\frac{x - a}{x + a}\right| + C⁠; (3) ∫dxx2+a2=1atan⁡−1xa+C\int\frac{dx}{x^2 + a^2} = \frac1a\tan^{-1}\frac xa + C⁠; (4) ∫dxx2−a2\int\frac{dx}{\sqrt{x^2 - a^2}} =log⁡∣x+x2−a2∣+C= \log\left|x + \sqrt{x^2 - a^2}\right| + C⁠. Lesson: integrals of particular functions

3Log laws

log⁡∣kp∣=log⁡∣p∣+log⁡∣k∣\log|kp| = \log|p| + \log|k| for a constant k≠0k \ne 0⁠: a constant factor inside a logarithm becomes an added constant. Basics: logarithms and 1/x

Part (i): ∫dxx2−6x+13\int\frac{dx}{x^2 - 6x + 13}

  1. Complete the square

    x2−6x+13=x2−6x+9−9+13=(x−3)2+4=(x−3)2+22.\begin{aligned} x^2 - 6x + 13 &= x^2 - 6x + 9 - 9 + 13 \\ &= (x - 3)^2 + 4 \\ &= (x - 3)^2 + 2^2. \end{aligned}
    Half the coefficient of xx is −3-3⁠; adding and subtracting 32=93^2 = 9 creates the perfect square (x−3)2(x - 3)^2 without changing the value. The leftover +4+4 is positive, so the denominator is never 0 and the integrand exists for every real xx⁠.
  2. Shift t=x−3t = x - 3 and use 7.4 (3)

    Put t=x−3t = x - 3⁠, dt=dxdt = dx⁠:

    ∫dtt2+22=12tan⁡−1t2+C=12tan⁡−1x−32+C.\begin{aligned} \int\frac{dt}{t^2 + 2^2} &= \frac12\tan^{-1}\frac t2 + C \\ &= \frac12\tan^{-1}\frac{x - 3}{2} + C. \end{aligned}
    "Square plus a positive constant" is the shape t2+a2t^2 + a^2 with a=2a = 2⁠, so formula 7.4 (3) applies, giving 1atan⁡−1ta\frac1a\tan^{-1}\frac ta⁠.
  3. Check: differentiate the answer

    ddx 12tan⁡−1x−32=12⋅11+(x−3)24⋅12=14+(x−3)2=1x2−6x+13. ✓\begin{aligned} \frac{d}{dx}\,\frac12\tan^{-1}\frac{x - 3}{2} &= \frac12\cdot\frac{1}{1 + \frac{(x - 3)^2}{4}}\cdot\frac12 \\ &= \frac{1}{4 + (x - 3)^2} = \frac{1}{x^2 - 6x + 13}. \ \checkmark \end{aligned}
    Chain rule: ddutan⁡−1u=11+u2\frac{d}{du}\tan^{-1}u = \frac{1}{1 + u^2} with u=x−32u = \frac{x - 3}{2}⁠, u′=12u' = \frac12⁠. Multiplying top and bottom by 4 clears the inner fraction.

Part (ii): ∫dx3x2+13x−10\int\frac{dx}{3x^2 + 13x - 10}

  1. Take out the 3 and complete the square

    3x2+13x−10=3(x2+133x−103)=3[(x+136)2−16936−12036]=3[(x+136)2−(176)2].\begin{aligned} 3x^2 + 13x - 10 &= 3\left(x^2 + \frac{13}{3}x - \frac{10}{3}\right) \\ &= 3\left[\left(x + \frac{13}{6}\right)^2 - \frac{169}{36} - \frac{120}{36}\right] \\ &= 3\left[\left(x + \frac{13}{6}\right)^2 - \left(\frac{17}{6}\right)^2\right]. \end{aligned}
    Half of 133\frac{13}{3} is 136\frac{13}{6}⁠, whose square is 16936\frac{169}{36}⁠; and 103=12036\frac{10}{3} = \frac{120}{36}⁠. Their sum is 28936=(176)2\frac{289}{36} = \left(\frac{17}{6}\right)^2⁠. The leftover is negative, so this is the "square minus square" shape: a logarithm is coming. (Indeed 3x2+13x−10=(3x−2)(x+5)3x^2 + 13x - 10 = (3x - 2)(x + 5)⁠, so the integrand needs x≠23x \ne \frac23 and x≠−5x \ne -5⁠.)
  2. Shift t=x+136t = x + \frac{13}{6} and use 7.4 (1)

    ∫dx3x2+13x−10=13∫dtt2−(176)2=13⋅12⋅176log⁡∣t−176t+176∣+C1=117log⁡∣t−176t+176∣+C1.\begin{aligned} \int\frac{dx}{3x^2 + 13x - 10} &= \frac13\int\frac{dt}{t^2 - \left(\frac{17}{6}\right)^2} \\ &= \frac13\cdot\frac{1}{2\cdot\frac{17}{6}}\log\left|\frac{t - \frac{17}{6}}{t + \frac{17}{6}}\right| + C_1 \\ &= \frac{1}{17}\log\left|\frac{t - \frac{17}{6}}{t + \frac{17}{6}}\right| + C_1. \end{aligned}
    Formula 7.4 (1) with a=176a = \frac{17}{6}⁠: 12a=634=317\frac{1}{2a} = \frac{6}{34} = \frac{3}{17}⁠, and 13⋅317=117\frac13\cdot\frac{3}{17} = \frac{1}{17}⁠. (The book's margin note "[by 7.4 (i)]" refers to this formula, printed elsewhere as 7.4 (1).)
  3. Return to xx and simplify

    t−176=x−46=6x−46t - \frac{17}{6} = x - \frac46 = \frac{6x - 4}{6} and t+176=x+306=6x+306t + \frac{17}{6} = x + \frac{30}{6} = \frac{6x + 30}{6}⁠, so

    t−176t+176=6x−46x+30=13⋅3x−2x+5.\frac{t - \frac{17}{6}}{t + \frac{17}{6}} = \frac{6x - 4}{6x + 30} = \frac13\cdot\frac{3x - 2}{x + 5}.

    Then

    117log⁡∣13⋅3x−2x+5∣+C1=117log⁡∣3x−2x+5∣+C1+117log⁡13=117log⁡∣3x−2x+5∣+C,\begin{aligned} &\frac{1}{17}\log\left|\frac13\cdot\frac{3x - 2}{x + 5}\right| + C_1 \\ &= \frac{1}{17}\log\left|\frac{3x - 2}{x + 5}\right| + C_1 + \frac{1}{17}\log\frac13 \\ &= \frac{1}{17}\log\left|\frac{3x - 2}{x + 5}\right| + C, \end{aligned}

    where C=C1+117log⁡13C = C_1 + \frac{1}{17}\log\frac13⁠.

    6x−4=2(3x−2)6x - 4 = 2(3x - 2) and 6x+30=6(x+5)6x + 30 = 6(x + 5)⁠, so the quotient carries a constant factor 26=13\frac26 = \frac13⁠. The log of a product is a sum of logs, and 117log⁡13\frac{1}{17}\log\frac13 is a constant, which joins C1C_1⁠.
    log⁡∣kp∣=log⁡∣k∣+log⁡∣p∣\log|kp| = \log|k| + \log|p|⁠. Basics: logarithms
  4. Check: differentiate the answer

    ddx 117(log⁡∣3x−2∣−log⁡∣x+5∣)=117(33x−2−1x+5)=117⋅3x+15−3x+2(3x−2)(x+5)=1(3x−2)(x+5)=13x2+13x−10. ✓\begin{aligned} &\frac{d}{dx}\,\frac{1}{17}\big(\log|3x - 2| - \log|x + 5|\big) \\ &= \frac{1}{17}\left(\frac{3}{3x - 2} - \frac{1}{x + 5}\right) \\ &= \frac{1}{17}\cdot\frac{3x + 15 - 3x + 2}{(3x - 2)(x + 5)} \\ &= \frac{1}{(3x - 2)(x + 5)} \\ &= \frac{1}{3x^2 + 13x - 10}. \ \checkmark \end{aligned}
    ddxlog⁡∣3x−2∣=33x−2\frac{d}{dx}\log|3x - 2| = \frac{3}{3x - 2} by the chain rule. The numerator collapses to 17, which cancels the 117\frac{1}{17}⁠. Valid for x≠23,−5x \ne \frac23, -5⁠.

Part (iii): ∫dx5x2−2x\int\frac{dx}{\sqrt{5x^2 - 2x}}

  1. Where the integrand exists

    We need 5x2−2x=x(5x−2)>05x^2 - 2x = x(5x - 2) > 0⁠: both factors positive (x>25x > \frac25⁠) or both negative (x<0x < 0⁠).

    The root must be of a positive number because it sits in a denominator. The domain has two separate pieces; the answer must work on both.
  2. Take out the 5 and complete the square

    5x2−2x=5(x2−2x5)=5[(x−15)2−(15)2].\begin{aligned} 5x^2 - 2x &= 5\left(x^2 - \frac{2x}{5}\right) \\ &= 5\left[\left(x - \frac15\right)^2 - \left(\frac15\right)^2\right]. \end{aligned}

    So 5x2−2x=5 (x−15)2−(15)2\sqrt{5x^2 - 2x} = \sqrt5\,\sqrt{\left(x - \frac15\right)^2 - \left(\frac15\right)^2}⁠.

    Half of −25-\frac25 is −15-\frac15⁠. The square root of a product of positive numbers is the product of the square roots, which lets the 5\sqrt5 come outside.
  3. Shift t=x−15t = x - \frac15 and use 7.4 (4)

    Put t=x−15t = x - \frac15⁠, dt=dxdt = dx⁠. On the domain, t2>(15)2t^2 > \left(\frac15\right)^2⁠:

    ∫dx5x2−2x=15∫dtt2−(15)2=15log⁡∣t+t2−(15)2∣+C.\begin{aligned} \int\frac{dx}{\sqrt{5x^2 - 2x}} &= \frac{1}{\sqrt5}\int\frac{dt}{\sqrt{t^2 - \left(\frac15\right)^2}} \\ &= \frac{1}{\sqrt5}\log\left|t + \sqrt{t^2 - \left(\frac15\right)^2}\right| + C. \end{aligned}
    "Square minus square" under a root is the shape of formula 7.4 (4), here with a=15a = \frac15⁠. The book proves 7.4 (4) with x=asec⁡θx = a\sec\theta⁠; the result also holds for t<−at < -a⁠, because ddtlog⁡∣t+t2−a2∣=1t2−a2\frac{d}{dt}\log\left|t + \sqrt{t^2 - a^2}\right| = \frac{1}{\sqrt{t^2 - a^2}} whenever ∣t∣>a|t| > a (shown in Part (iii), Step 5). So it covers both pieces of the domain.
  4. Return to xx

    t2−125t^2 - \frac{1}{25} =x2−2x5+125−125= x^2 - \frac{2x}{5} + \frac{1}{25} - \frac{1}{25} =x2−2x5= x^2 - \frac{2x}{5}⁠, so

    ∫dx5x2−2x=15log⁡∣x−15+x2−2x5∣+C.\begin{aligned} &\int\frac{dx}{\sqrt{5x^2 - 2x}} \\ &=\frac{1}{\sqrt5}\log\left|x - \frac15 + \sqrt{x^2 - \frac{2x}{5}}\right| + C. \end{aligned}
    Expanding (x−15)2\left(x - \frac15\right)^2 brings back the original x2−2x5x^2 - \frac{2x}{5}⁠, so the answer can be written without tt⁠. This is the book's final form.
  5. Check: differentiate the answer

    Write s=x2−2x5s = \sqrt{x^2 - \frac{2x}{5}}⁠, so s′=x−15ss' = \frac{x - \frac15}{s}⁠. Then

    ddxlog⁡∣x−15+s∣=1+x−15sx−15+s=s+x−15sx−15+s=1s.\begin{aligned} \frac{d}{dx}\log\left|x - \tfrac15 + s\right| &= \frac{1 + \frac{x - \frac15}{s}}{x - \frac15 + s} \\ &= \frac{\frac{s + x - \frac15}{s}}{x - \frac15 + s} = \frac1s. \end{aligned}

    So the derivative of our answer is 15 s=15x2−2x\frac{1}{\sqrt5\,s} = \frac{1}{\sqrt{5x^2 - 2x}}⁠. ✓\checkmark

    The numerator and the denominator contain the same sum x−15+sx - \frac15 + s⁠, which cancels; it is never 0 because s<∣x−15∣s < \left|x - \frac15\right|⁠. Nothing here assumed x>25x > \frac25⁠, so the check holds on both pieces of the domain. Finally 5⋅s=5x2−2x\sqrt5\cdot s = \sqrt{5x^2 - 2x}⁠.
Result

(i) ∫dxx2−6x+13=12tan⁡−1x−32+C\displaystyle\int\frac{dx}{x^2 - 6x + 13} = \frac12\tan^{-1}\frac{x - 3}{2} + C⁠, all real xx⁠.

(ii) ∫dx3x2+13x−10\displaystyle\int\frac{dx}{3x^2 + 13x - 10} =117log⁡∣3x−2x+5∣+C= \frac{1}{17}\log\left|\frac{3x - 2}{x + 5}\right| + C⁠, x≠23,−5x \ne \frac23, -5⁠.

(iii) ∫dx5x2−2x\displaystyle\int\frac{dx}{\sqrt{5x^2 - 2x}} =15log⁡∣x−15+x2−2x5∣+C= \frac{1}{\sqrt5}\log\left|x - \frac15 + \sqrt{x^2 - \frac{2x}{5}}\right| + C⁠, for x<0x < 0 or x>25x > \frac25⁠.

These agree with the textbook's solution.

Check it with numbers

By Section 7.8, ∫abf(x) dx=F(b)−F(a)\int_a^b f(x)\,dx = F(b) - F(a)⁠. The middle column is a computer's sum of very many thin strips, found without our answers:

PartIntervalSum of thin stripsF(b)−F(a)F(b) - F(a)
(i)[3,5][3, 5]0.39269910.392699112⋅π4=π8\frac12\cdot\frac{\pi}{4} = \frac{\pi}{8}
(ii)[1,2][1, 2]0.07247900.0724790117log⁡247≈0.0724790\frac{1}{17}\log\frac{24}{7} \approx 0.0724790
(iii)[1,2][1, 2]0.36842970.36842970.36842970.3684297

π8≈0.3926991\frac{\pi}{8} \approx 0.3926991⁠. In (ii), F(2)−F(1)=117(log⁡47−log⁡16)F(2) - F(1) = \frac{1}{17}\left(\log\frac47 - \log\frac16\right)⁠. The intervals avoid every point where an integrand is undefined.

Common mistakes
  1. Completing the square without first taking out the leading coefficient (3 in (ii), 5 in (iii)). The square must be of x+b2ax + \frac{b}{2a}⁠, and the factor aa must stay outside (as 1a\frac1a⁠, or 1a\frac{1}{\sqrt a} under a root).
  2. Arithmetic in the leftover constant: 16936+12036=28936\frac{169}{36} + \frac{120}{36} = \frac{289}{36}⁠, not 4936\frac{49}{36}⁠.
  3. Dropping 117log⁡13\frac{1}{17}\log\frac13 without comment. It is legitimate only because it is a constant that joins CC⁠.
  4. Ignoring the piece x<0x < 0 in part (iii). The formula holds there too, as the derivative check shows.
What to take away
  1. Recipe for ∫dxax2+bx+c\int\frac{dx}{ax^2 + bx + c} and ∫dxax2+bx+c\int\frac{dx}{\sqrt{ax^2 + bx + c}}⁠: factor out aa⁠, complete the square, shift, pick the formula.
  2. The sign of the leftover constant decides: plus gives tan⁡−1\tan^{-1} (or log⁡∣t+t2+k2∣\log|t + \sqrt{t^2 + k^2}| under a root); minus gives a logarithm.
  3. Constant factors inside a logarithm come out as added constants.

Every fact used, and where it comes from

FactUsed inSource
Completing the square for 1ax2+bx+c\frac{1}{ax^2 + bx + c}⁠, 1ax2+bx+c\frac{1}{\sqrt{ax^2 + bx + c}}All partsTypes (7), (8), Section 7.4 (Basics: completing the square)
∫dxx2+a2=1atan⁡−1xa+C\int\frac{dx}{x^2 + a^2} = \frac1a\tan^{-1}\frac xa + CPart (i), Step 2Formula 7.4 (3)
∫dxx2−a2=12alog⁡∣x−ax+a∣+C\int\frac{dx}{x^2 - a^2} = \frac{1}{2a}\log\left|\frac{x - a}{x + a}\right| + CPart (ii), Step 2Formula 7.4 (1)
∫dxx2−a2\int\frac{dx}{\sqrt{x^2 - a^2}} =log⁡∣x+x2−a2∣+C= \log\left|x + \sqrt{x^2 - a^2}\right| + CPart (iii), Step 3Formula 7.4 (4) (Lesson: integrals of particular functions)
log⁡∣kp∣=log⁡∣k∣+log⁡∣p∣\log|kp| = \log|k| + \log|p|Part (ii), Step 3Laws of logarithms (Basics: logarithms)
Chain rule; ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1 + x^2}ChecksTheorem 4, Section 5.3.1; standard formula (x), Section 7.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 →