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

Exercise 7.7 · Q11 (MCQ): ∫x2−8x+7 dx\int\sqrt{x^2 - 8x + 7}\,dx

Exercise 7.7Integrals of some more types · Section 7.6.2
The question

∫x2−8x+7 dx\int\sqrt{x^2 - 8x + 7}\,dx is equal to

(A) 12(x−4)x2−8x+7\frac12(x - 4)\sqrt{x^2 - 8x + 7} +9log⁡∣x−4+x2−8x+7∣+C+ 9\log\left|x - 4 + \sqrt{x^2 - 8x + 7}\right| + C

(B) 12(x+4)x2−8x+7\frac12(x + 4)\sqrt{x^2 - 8x + 7} +9log⁡∣x+4+x2−8x+7∣+C+ 9\log\left|x + 4 + \sqrt{x^2 - 8x + 7}\right| + C

(C) 12(x−4)x2−8x+7\frac12(x - 4)\sqrt{x^2 - 8x + 7} −32log⁡∣x−4+x2−8x+7∣+C- 3\sqrt2\log\left|x - 4 + \sqrt{x^2 - 8x + 7}\right| + C

(D) 12(x−4)x2−8x+7\frac12(x - 4)\sqrt{x^2 - 8x + 7} −92log⁡∣x−4+x2−8x+7∣+C- \frac92\log\left|x - 4 + \sqrt{x^2 - 8x + 7}\right| + C

Exam answer x2−8x+7=(x−4)2−32x^2 - 8x + 7 = (x - 4)^2 - 3^2

Put x−4=yx - 4 = y⁠. Then dx=dydx = dy⁠.

Using ∫y2−a2 dy=y2y2−a2\displaystyle\int\sqrt{y^2 - a^2}\,dy = \frac{y}{2}\sqrt{y^2 - a^2} −a22log⁡∣y+y2−a2∣+C- \frac{a^2}{2}\log\left|y + \sqrt{y^2 - a^2}\right| + C with a=3,{a = 3,}

∫y2−32 dy=y2y2−9−92log⁡∣y+y2−9∣+C\begin{aligned} &\int\sqrt{y^2 - 3^2}\,dy \\ &= \frac{y}{2}\sqrt{y^2 - 9} \\ &\quad - \frac92\log\left|y + \sqrt{y^2 - 9}\right| + C \end{aligned}

Answer: (D) 12(x−4)x2−8x+7\dfrac12(x - 4)\sqrt{x^2 - 8x + 7} −92log⁡∣x−4+x2−8x+7∣- \dfrac92\log\left|x - 4 + \sqrt{x^2 - 8x + 7}\right| +C+ C

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

The one idea this problem is built on

Complete the square: x2−8x+7=(x−4)2−32x^2 - 8x + 7 = (x - 4)^2 - 3^2⁠. With y=x−4y = x - 4 this is y2−a2\sqrt{y^2 - a^2}⁠, a=3a = 3⁠, so formula 7.6.2 (i) gives a log term with coefficient −a22=−92-\frac{a^2}{2} = -\frac92⁠: option (D). Options (A), (C) and (D) differ only in that coefficient, and a short calculation shows that −92-\frac92 is the only one that works.

Given, to find, and the plan
Given
The integrand x2−8x+7\sqrt{x^2 - 8x + 7} and four candidate answers.
To find
The correct option.
Plan
(1) Complete the square and find the domain. (2) Apply 7.6.2 (i) with a=3a = 3⁠. (3) Differentiate back. (4) Examine every option. (5) Conclude.

Basics you need

1Completing the square

x2−8x=(x−4)2−16x^2 - 8x = (x - 4)^2 - 16⁠: half of −8-8 is −4-4⁠, and (−4)2=16(-4)^2 = 16⁠. Basics: completing the square

2Formula 7.6.2 (i)

For a>0a > 0⁠, ∫y2−a2 dy\int\sqrt{y^2 - a^2}\,dy equals y2y2−a2−a22log⁡∣y+y2−a2∣\frac{y}{2}\sqrt{y^2 - a^2} - \frac{a^2}{2}\log\left|y + \sqrt{y^2 - a^2}\right|⁠, plus CC (Section 7.6.2; see also Exercise 7.7 Q4). Lesson: integration by parts

3Integration undoes differentiation

An option is correct only if its derivative equals the integrand at every point of the domain. Basics: integration undoes differentiation

Solution

  1. Complete the square and find the domain

    x2−8x+7=(x2−8x+16)+7−16=(x−4)2−9=(x−4)2−32.\begin{aligned} x^2 - 8x + 7 &= (x^2 - 8x + 16) + 7 - 16 \\ &= (x - 4)^2 - 9 = (x - 4)^2 - 3^2. \end{aligned}

    The root is real when ∣x−4∣≥3|x - 4| \ge 3⁠, that is

    x≤1orx≥7.x \le 1 \quad\text{or}\quad x \ge 7.
    (x−4)2=x2−8x+16(x - 4)^2 = x^2 - 8x + 16⁠; we added 16, so we subtract it: 7−16=−97 - 16 = -9⁠. The domain also follows from x2−8x+7=(x−1)(x−7)≥0x^2 - 8x + 7 = (x - 1)(x - 7) \ge 0⁠. The shape is "square minus a2a^2" with a=3a = 3⁠.
    Completing the square, Section 7.4 (7). Basics: completing the square
  2. Apply 7.6.2 (i) with y=x−4y = x - 4⁠, a=3a = 3

    Put y=x−4y = x - 4⁠, dy=dxdy = dx⁠. With a22=92\frac{a^2}{2} = \frac92⁠:

    ∫x2−8x+7 dx=12(x−4)x2−8x+7−92log⁡∣x−4+x2−8x+7∣+C.\begin{aligned} \int\sqrt{x^2 - 8x + 7}\,dx &= \frac12(x - 4)\sqrt{x^2 - 8x + 7} \\ &\quad - \frac92\log\left|x - 4 + \sqrt{x^2 - 8x + 7}\right| + C. \end{aligned}
    y2=12(x−4)\frac{y}{2} = \frac12(x - 4)⁠, y2−9=x2−8x+7y^2 - 9 = x^2 - 8x + 7⁠. The log term is subtracted because the root is "square minus a2a^2". This is option (D) exactly.
    Substitution, Section 7.3.1; formula 7.6.2 (i). Lesson: integration by parts
  3. Check: differentiate the answer

    Write y=x−4y = x - 4⁠, r=y2−9r = \sqrt{y^2 - 9}⁠, so drdx=yr\frac{dr}{dx} = \frac{y}{r} where r>0r > 0⁠, and ddxlog⁡∣y+r∣=1+y/ry+r=1r\frac{d}{dx}\log|y + r| = \frac{1 + y/r}{y + r} = \frac1r⁠. For any number kk⁠,

    ddx[y2 r+klog⁡∣y+r∣]=r2+y22r+kr=2y2−9+2k2r.\begin{aligned} &\frac{d}{dx}\left[\frac{y}{2}\,r + k\log|y + r|\right] \\ &= \frac{r}{2} + \frac{y^2}{2r} + \frac{k}{r} = \frac{2y^2 - 9 + 2k}{2r}. \end{aligned}

    With k=−92k = -\frac92 the numerator is 2y2−18=2r22y^2 - 18 = 2r^2⁠, so the derivative is 2r22r=r=x2−8x+7\frac{2r^2}{2r} = r = \sqrt{x^2 - 8x + 7}⁠. ✓\checkmark

    r2=r22r\frac r2 = \frac{r^2}{2r} and r2=y2−9r^2 = y^2 - 9⁠, so r2+y2+2k=2y2−9+2kr^2 + y^2 + 2k = 2y^2 - 9 + 2k⁠. The integrand is r=r2r=2y2−182rr = \frac{r^2}{r} = \frac{2y^2 - 18}{2r}⁠. Matching numerators: 2k−9=−182k - 9 = -18⁠, so k=−92k = -\frac92 and no other value. This holds on both pieces of the domain.
    Product rule; chain rule; standard formula (xii), Section 7.2. Basics: logarithms and 1/x
  4. Examine every option

    • (A) has k=9k = 9⁠. By Step 3 its derivative is 2y2+92r=r+272r\frac{2y^2 + 9}{2r} = r + \frac{27}{2r}⁠, too big by 272r\frac{27}{2r}⁠. Wrong.
    • (C) has k=−32≈−4.2426k = -3\sqrt2 \approx -4.2426⁠. Its derivative is r+9/2−32rr + \frac{9/2 - 3\sqrt2}{r}⁠, and 92−32≈0.2574≠0\frac92 - 3\sqrt2 \approx 0.2574 \ne 0⁠. Wrong, though close.
    • (B) uses x+4x + 4⁠, which comes from completing the square with the wrong sign (x2−8xx^2 - 8x is (x−4)2−16(x - 4)^2 - 16⁠, not (x+4)2−16(x + 4)^2 - 16⁠). Its slope at x=8x = 8 is about 11.937591611.9375916⁠, while the integrand there is 7≈2.6457513\sqrt7 \approx 2.6457513⁠. Wrong.
    • (D) has k=−92k = -\frac92⁠: correct by Step 3.

    Slopes at x=8x = 8⁠, where x2−8x+7=7x^2 - 8x + 7 = 7⁠:

    OptionSlope at x=8x = 8Integrand 7\sqrt7Verdict
    (A)7.74827177.74827172.64575132.6457513wrong
    (B)11.937591611.93759162.64575132.6457513wrong
    (C)2.74302402.74302402.64575132.6457513wrong
    (D)2.64575132.64575132.64575132.6457513matches
    At x=8x = 8⁠: y=4y = 4⁠, r=7r = \sqrt7⁠. (A): 7+2727\sqrt7 + \frac{27}{2\sqrt7}⁠. (C): 7+4.5−327\sqrt7 + \frac{4.5 - 3\sqrt2}{\sqrt7}⁠. (B) has a different first term, so Step 3 does not apply to it; its slope was computed directly from the product and chain rules.
Result ∫x2−8x+7 dx=12(x−4)x2−8x+7−92log⁡∣x−4+x2−8x+7∣+C,\begin{aligned} \int\sqrt{x^2 - 8x + 7}\,dx &= \frac12(x - 4)\sqrt{x^2 - 8x + 7} \\ &\quad - \frac92\log\left|x - 4 + \sqrt{x^2 - 8x + 7}\right| + C, \end{aligned}

valid for x≤1x \le 1 and for x≥7x \ge 7⁠: option (D). (Textbook answer: D.)

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) for the correct answer FF⁠. The middle column is a computer's sum of very many thin strips, found without any of the options; the last column uses option (D). One interval is taken on each piece of the domain:

IntervalSum of thin stripsF(b)−F(a)F(b) - F(a)⁠, option (D)
[8,10][8, 10]7.94978877.94978877.94978877.9497887
[−3,0][-3, 0]13.714102213.714102213.714102213.7141022
Common mistakes
  1. ++ instead of −- before the log. For "square minus a2a^2" the log term is subtracted; (A) makes this mistake (and uses a2a^2 instead of a22\frac{a^2}{2}⁠).
  2. Coefficient a2a\sqrt2 or a2a^2⁠. The coefficient is a22=92\frac{a^2}{2} = \frac92⁠; 323\sqrt2 in (C) is close in value but wrong.
  3. x+4x + 4 instead of x−4x - 4⁠. Half of −8-8 is −4-4⁠, so the square is (x−4)2(x - 4)^2⁠.
What to take away
  1. For y2−a2\sqrt{y^2 - a^2} the log coefficient is exactly −a22-\frac{a^2}{2}⁠: differentiating with a general kk shows no other value works.
  2. Numbers that are merely close (32≈4.2433\sqrt2 \approx 4.243 against 4.54.5⁠) are not equal; check exactly.

Every fact used, and where it comes from

FactUsed inSource
Completing the squareStep 1Section 7.4 (7) (Basics: completing the square)
Substitution y=x−4y = x - 4Step 2Section 7.3.1
∫y2−a2 dy\int\sqrt{y^2 - a^2}\,dy formulaStep 2Formula 7.6.2 (i), Section 7.6.2
ddxlog⁡∣u∣=u′u\frac{d}{dx}\log|u| = \frac{u'}{u}Steps 3, 4Standard formula (xii), Section 7.2
FF is an integral of ff iff F′=fF' = fStep 4Section 7.2 (Lesson: anti-differentiation)
∫abf(x) dx=F(b)−F(a)\int_a^b f(x)\,dx = F(b) - F(a)Numerical checkSection 7.8 (Lesson: definite integrals)
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 →