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

Exercise 7.4 · Q19: ∫6x+7(x−5)(x−4) dx\int\frac{6x + 7}{\sqrt{(x - 5)(x - 4)}}\,dx

Exercise 7.4Integrals of some particular functions · Section 7.4
The question

Integrate the function

6x+7(x−5)(x−4).\frac{6x + 7}{\sqrt{(x - 5)(x - 4)}}.
Exam answer

Let I=∫6x+7(x−5)(x−4) dxI = \displaystyle\int\frac{6x + 7}{\sqrt{(x - 5)(x - 4)}}\,dx⁠.

Here (x−5)(x−4)=x2−9x+20(x - 5)(x - 4) = x^2 - 9x + 20⁠.

Let 6x+7=A(2x−9)+B6x + 7 = A(2x - 9) + B⁠, where 2x−9=ddx(x2−9x+20)2x - 9 = \frac{d}{dx}(x^2 - 9x + 20)⁠.

Comparing coefficients: 2A=62A = 6 and −9A+B=7-9A + B = 7⁠. So A=3A = 3⁠, B=34B = 34⁠.

∴ I=3∫(2x−9) dxx2−9x+20+34∫dxx2−9x+20=3I1+34I2\begin{aligned} \therefore\ I &= 3\int\frac{(2x - 9)\,dx}{\sqrt{x^2 - 9x + 20}} \\ &\quad + 34\int\frac{dx}{\sqrt{x^2 - 9x + 20}} \\ &= 3I_1 + 34I_2 \end{aligned}

In I1I_1⁠, put x2−9x+20=tx^2 - 9x + 20 = t⁠. Then (2x−9) dx=dt(2x - 9)\,dx = dt⁠.

I1=∫dtt=2t=2x2−9x+20\begin{aligned} I_1 &= \int\frac{dt}{\sqrt t} = 2\sqrt t \\ &= 2\sqrt{x^2 - 9x + 20} \end{aligned}

For I2I_2⁠, complete the square:

x2−9x+20=(x−92)2−814+20=(x−92)2−(12)2\begin{aligned} &x^2 - 9x + 20 \\ &= \left(x - \frac92\right)^2 - \frac{81}{4} + 20 \\ &= \left(x - \frac92\right)^2 - \left(\frac12\right)^2 \end{aligned}

Using ∫dxx2−a2\displaystyle\int\frac{dx}{\sqrt{x^2 - a^2}} =log⁡∣x+x2−a2∣+C= \log\left|x + \sqrt{x^2 - a^2}\right| + C⁠,

I2=∫dx(x−92)2−(12)2=log⁡∣x−92+x2−9x+20∣\begin{aligned} I_2 &= \int\frac{dx}{\sqrt{\left(x - \frac92\right)^2 - \left(\frac12\right)^2}} \\ &= \log\left|x - \frac92 + \sqrt{x^2 - 9x + 20}\right| \end{aligned}

∴ I=6x2−9x+20\therefore\ I = 6\sqrt{x^2 - 9x + 20} +34log⁡∣x−92+x2−9x+20∣+ 34\log\left|x - \dfrac92 + \sqrt{x^2 - 9x + 20}\right| +C+ C⁠.

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

The one idea this problem is built on

Multiply out the product: (x−5)(x−4)=x2−9x+20=Q(x - 5)(x - 4) = x^2 - 9x + 20 = Q⁠, with Q′=2x−9Q' = 2x - 9⁠. Then split the numerator as A⋅Q′+BA\cdot Q' + B (type 7.4 (10)): 6x+7=3(2x−9)+346x + 7 = 3(2x - 9) + 34⁠. The Q′Q' part gives 2Q2\sqrt Q by substitution; the constant part leaves ∫dxQ\int\frac{dx}{\sqrt Q}⁠, which completing the square turns into formula 7.4 (4).

Given, to find, and the plan
Given
The integrand 6x+7(x−5)(x−4)\frac{6x + 7}{\sqrt{(x - 5)(x - 4)}}⁠.
To find
∫6x+7(x−5)(x−4) dx\int\frac{6x + 7}{\sqrt{(x - 5)(x - 4)}}\,dx⁠, and where the answer is valid.
Plan
(1) Find the domain. (2) Expand and find AA⁠, BB⁠. (3) Split into I1I_1 and I2I_2⁠. (4) I1I_1 by substitution. (5) I2I_2 by completing the square and 7.4 (4). (6) Combine. (7) Differentiate back.

Basics you need

1Comparing coefficients

If px+q=A(2ax+b)+Bpx + q = A(2ax + b) + B for all xx⁠, the coefficients of xx and the constants on the two sides are equal. Basics: splitting fractions

2Substitution t=Q(x)t = Q(x)

∫Q′(x)Q(x) dx=2Q(x)+C\int\frac{Q'(x)}{\sqrt{Q(x)}}\,dx = 2\sqrt{Q(x)} + C⁠. Basics: substitution

3Completing the square

x2−px+q=(x−p2)2+q−p24x^2 - px + q = \left(x - \frac p2\right)^2 + q - \frac{p^2}{4}⁠. Basics: completing the square

4Formula 7.4 (4)

∫dxx2−a2=log⁡∣x+x2−a2∣+C\int\frac{dx}{\sqrt{x^2 - a^2}} = \log\left|x + \sqrt{x^2 - a^2}\right| + C for ∣x∣>a>0|x| > a > 0⁠. Lesson: integrals of particular functions

Solution

  1. Where the integrand exists

    We need (x−5)(x−4)>0(x - 5)(x - 4) > 0⁠: both factors positive or both negative, that is

    x<4orx>5.x < 4 \quad\text{or}\quad x > 5.
    The product is under a square root in a denominator, so it must be strictly positive. Between 4 and 5 the two factors have opposite signs. The domain has two separate pieces; the answer must work on both.
  2. Expand, then split the numerator as A⋅Q′+BA\cdot Q' + B

    Q=(x−5)(x−4)=x2−9x+20Q = (x - 5)(x - 4) = x^2 - 9x + 20⁠, so Q′=2x−9Q' = 2x - 9⁠. Write

    6x+7=A(2x−9)+B.6x + 7 = A(2x - 9) + B.

    Coefficients of xx⁠: 2A=62A = 6⁠. Constants: −9A+B=7-9A + B = 7⁠. So A=3A = 3⁠, B=7+27=34B = 7 + 27 = 34⁠.

    This is type 7.4 (10). Check: 3(2x−9)+34=6x−27+34=6x+73(2x - 9) + 34 = 6x - 27 + 34 = 6x + 7⁠.
  3. Split the integral into I1I_1 and I2I_2

    ∫6x+7Q dx=3∫(2x−9) dxx2−9x+20+34∫dxx2−9x+20=3I1+34I2.\begin{aligned} \int\frac{6x + 7}{\sqrt Q}\,dx &= 3\int\frac{(2x - 9)\,dx}{\sqrt{x^2 - 9x + 20}} \\ &\quad + 34\int\frac{dx}{\sqrt{x^2 - 9x + 20}} \\ &= 3I_1 + 34I_2. \end{aligned}
    Dividing 3(2x−9)+343(2x - 9) + 34 by Q\sqrt Q term by term gives two fractions; Property (V) of Section 7.2.1 splits the integral.
    Property (V), Section 7.2.1. Lesson: integrals of particular functions
  4. I1I_1 by substitution

    Put t=x2−9x+20t = x^2 - 9x + 20 (so t>0t > 0⁠), dt=(2x−9) dxdt = (2x - 9)\,dx⁠:

    I1=∫dtt=2t+C1=2x2−9x+20+C1.\begin{aligned} I_1 = \int\frac{dt}{\sqrt t} &= 2\sqrt t + C_1 \\ &= 2\sqrt{x^2 - 9x + 20} + C_1. \end{aligned}
    Power formula with n=−12n = -\frac12⁠: ∫t−1/2 dt=t1/21/2=2t\int t^{-1/2}\,dt = \frac{t^{1/2}}{1/2} = 2\sqrt t⁠.
    Substitution, Section 7.3.1; standard formula (i), Section 7.2. Basics: the power rule
  5. I2I_2 by completing the square

    x2−9x+20=(x−92)2−814+20=(x−92)2−(12)2.\begin{aligned} x^2 - 9x + 20 &= \left(x - \frac92\right)^2 - \frac{81}{4} + 20 \\ &= \left(x - \frac92\right)^2 - \left(\frac12\right)^2. \end{aligned}

    Put t=x−92t = x - \frac92⁠, dt=dxdt = dx⁠; on the domain ∣t∣>12|t| > \frac12⁠. By 7.4 (4) with a=12a = \frac12⁠:

    I2=∫dtt2−(12)2=log⁡∣t+t2−14∣+C2=log⁡∣x−92+x2−9x+20∣+C2.\begin{aligned} I_2 &= \int\frac{dt}{\sqrt{t^2 - \left(\frac12\right)^2}} = \log\left|t + \sqrt{t^2 - \tfrac14}\right| + C_2 \\ &= \log\left|x - \frac92 + \sqrt{x^2 - 9x + 20}\right| + C_2. \end{aligned}
    Half of −9-9 is −92-\frac92⁠, and 20−814=−1420 - \frac{81}{4} = -\frac14⁠, a negative leftover, so this is "square minus square". The book proves 7.4 (4) with x=asec⁡θx = a\sec\theta⁠; the result also holds for t<−12t < -\frac12⁠, because the derivative of log⁡∣t+t2−a2∣\log\left|t + \sqrt{t^2 - a^2}\right| is 1t2−a2\frac{1}{\sqrt{t^2 - a^2}} whenever ∣t∣>a|t| > a (shown in Step 7). So it covers both pieces of the domain.
    Type 7.4 (8); formula 7.4 (4). Basics: completing the square
  6. Combine

    ∫6x+7(x−5)(x−4) dx=6x2−9x+20+34log⁡∣x−92+x2−9x+20∣+C,\begin{aligned} \int\frac{6x + 7}{\sqrt{(x - 5)(x - 4)}}\,dx &= 6\sqrt{x^2 - 9x + 20} \\ &\quad + 34\log\left|x - \frac92 + \sqrt{x^2 - 9x + 20}\right| \\ &\quad + C, \end{aligned}

    with C=3C1+34C2C = 3C_1 + 34C_2⁠.

    3⋅2Q=6Q3\cdot 2\sqrt Q = 6\sqrt Q⁠. The constants merge into one. This is exactly the textbook's form.
  7. Check: differentiate the answer

    Write s=x2−9x+20s = \sqrt{x^2 - 9x + 20} and t=x−92t = x - \frac92⁠, so s2=t2−14s^2 = t^2 - \frac14 and s′=2x−92s=tss' = \frac{2x - 9}{2s} = \frac ts⁠. Then

    ddxlog⁡∣t+s∣=1+tst+s=1s,ddx(6s)=3(2x−9)s=6x−27s.\begin{aligned} \frac{d}{dx}\log|t + s| &= \frac{1 + \frac ts}{t + s} = \frac1s, \\ \frac{d}{dx}\left(6s\right) &= \frac{3(2x - 9)}{s} = \frac{6x - 27}{s}. \end{aligned}

    So the derivative of our answer is

    6x−27s+34s=6x+7(x−5)(x−4). ✓\frac{6x - 27}{s} + \frac{34}{s} = \frac{6x + 7}{\sqrt{(x - 5)(x - 4)}}. \ \checkmark
    In the first line, 1+ts=s+ts1 + \frac ts = \frac{s + t}{s}⁠, and the factor t+st + s cancels. It is never 0: s2<t2s^2 < t^2⁠, so s<∣t∣s < |t| and t+st + s has the sign of tt⁠. Nothing here assumed x>5x > 5⁠, so the check holds on both pieces of the domain.
    Chain rule (Theorem 4, Section 5.3.1); derivative (xii), Section 7.2. Basics: logarithms and 1/x
Result ∫6x+7(x−5)(x−4) dx=6x2−9x+20+34log⁡∣x−92+x2−9x+20∣+C,\begin{aligned} \int\frac{6x + 7}{\sqrt{(x - 5)(x - 4)}}\,dx &= 6\sqrt{x^2 - 9x + 20} \\ &\quad + 34\log\left|x - \frac92 + \sqrt{x^2 - 9x + 20}\right| \\ &\quad + C, \end{aligned}

valid for x<4x < 4 or x>5x > 5⁠. (Textbook answer: 6x2−9x+206\sqrt{x^2 - 9x + 20} +34log⁡∣x−92+x2−9x+20∣+C+ 34\log\left|x - \frac92 + \sqrt{x^2 - 9x + 20}\right| + C⁠, the same.)

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 our answer FF⁠. The middle column is a computer's sum of very many thin strips, found without our answer. One interval is taken on each piece of the domain:

IntervalSum of thin stripsF(b)−F(a)F(b) - F(a)
[6,7][6, 7]24.220929924.220929924.220929924.2209299
[2,3][2, 3]11.797615811.797615811.797615811.7976158

On [6,7][6, 7]⁠, F(7)−F(6)=6(6−2)F(7) - F(6) = 6\left(\sqrt6 - \sqrt2\right) +34log⁡5+263+22+ 34\log\frac{5 + 2\sqrt6}{3 + 2\sqrt2}⁠.

Common mistakes
  1. Wrong BB⁠. From −9A+B=7-9A + B = 7 with A=3A = 3⁠: B=34B = 34⁠, not 7−27=−207 - 27 = -20⁠.
  2. Wrong constant after completing the square. 20−814=−1420 - \frac{81}{4} = -\frac14⁠, so the formula is 7.4 (4) with a=12a = \frac12⁠, not 7.4 (6).
  3. Dropping the modulus. For x<4x < 4⁠, x−92+x2−9x+20x - \frac92 + \sqrt{x^2 - 9x + 20} is negative.
What to take away
  1. Multiply out a product under the root first, so that you can see QQ and Q′Q'⁠.
  2. Numerator =A⋅Q′+B= A\cdot Q' + B⁠: the Q′Q' part gives 2AQ2A\sqrt Q⁠; the BB part is a completing-the-square integral.

Every fact used, and where it comes from

FactUsed inSource
px+q=Addx(ax2+bx+c)+Bpx + q = A\frac{d}{dx}(ax^2 + bx + c) + BStep 2Type 7.4 (10) (Lesson: integrals of particular functions)
Integral of a sum of constant multiplesStep 3Property (V), Section 7.2.1
∫t−1/2 dt=2t+C\int t^{-1/2}\,dt = 2\sqrt t + CStep 4Standard formula (i), Section 7.2
SubstitutionSteps 4, 5Section 7.3.1 (Basics: substitution)
Completing the squareStep 5Type 7.4 (8) (Basics: completing the square)
∫dxx2−a2=log⁡∣x+x2−a2∣+C\int\frac{dx}{\sqrt{x^2 - a^2}} = \log\left|x + \sqrt{x^2 - a^2}\right| + CStep 5Formula 7.4 (4)
ddxlog⁡∣x∣=1x\frac{d}{dx}\log|x| = \frac1x⁠; chain ruleStep 7Derivative (xii), Section 7.2; Theorem 4, Section 5.3.1
∫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 →