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

Exercise 7.4 · Q18: ∫5x−21+2x+3x2 dx\int\frac{5x - 2}{1 + 2x + 3x^2}\,dx

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

Integrate the function

5x−21+2x+3x2.\frac{5x - 2}{1 + 2x + 3x^2}.
Exam answer

Let I=∫5x−21+2x+3x2 dxI = \displaystyle\int\frac{5x - 2}{1 + 2x + 3x^2}\,dx⁠.

Let 5x−2=A(6x+2)+B5x - 2 = A(6x + 2) + B⁠, where 6x+2=ddx(3x2+2x+1)6x + 2 = \frac{d}{dx}(3x^2 + 2x + 1)⁠.

Comparing coefficients: 6A=56A = 5 and 2A+B=−22A + B = -2⁠. So A=56A = \frac56⁠, B=−113B = -\frac{11}{3}⁠.

∴ I=56∫(6x+2) dx3x2+2x+1−113∫dx3x2+2x+1=56I1−113I2\begin{aligned} \therefore\ I &= \frac56\int\frac{(6x + 2)\,dx}{3x^2 + 2x + 1} \\ &\quad - \frac{11}{3}\int\frac{dx}{3x^2 + 2x + 1} \\ &= \frac56 I_1 - \frac{11}{3}I_2 \end{aligned}

In I1I_1⁠, put 3x2+2x+1=t3x^2 + 2x + 1 = t⁠. Then (6x+2) dx=dt(6x + 2)\,dx = dt⁠.

I1=∫dtt=log⁡∣t∣=log⁡∣3x2+2x+1∣\begin{aligned} I_1 &= \int\frac{dt}{t} = \log|t| \\ &= \log\left|3x^2 + 2x + 1\right| \end{aligned}

For I2I_2⁠, complete the square:

3x2+2x+1=3[(x+13)2+29]=3[(x+13)2+(23)2]\begin{aligned} &3x^2 + 2x + 1 \\ &= 3\left[\left(x + \frac13\right)^2 + \frac29\right] \\ &= 3\left[\left(x + \frac13\right)^2 + \left(\frac{\sqrt2}{3}\right)^2\right] \end{aligned}

[Using ∫dxx2+a2\displaystyle\int\frac{dx}{x^2 + a^2} =1atan⁡−1xa+C= \frac1a\tan^{-1}\frac xa + C]

I2=13∫dx(x+13)2+(23)2=13⋅32tan⁡−1x+1323=12tan⁡−13x+12\begin{aligned} I_2 &= \frac13\int\frac{dx}{\left(x + \frac13\right)^2 + \left(\frac{\sqrt2}{3}\right)^2} \\ &= \frac13\cdot\frac{3}{\sqrt2}\tan^{-1}\frac{x + \frac13}{\frac{\sqrt2}{3}} \\ &= \frac{1}{\sqrt2}\tan^{-1}\frac{3x + 1}{\sqrt2} \end{aligned}

∴ I=56log⁡∣3x2+2x+1∣\therefore\ I = \dfrac56\log\left|3x^2 + 2x + 1\right| −1132tan⁡−13x+12- \dfrac{11}{3\sqrt2}\tan^{-1}\dfrac{3x + 1}{\sqrt2} +C+ C⁠.

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

The one idea this problem is built on

Linear over quadratic is type 7.4 (9): write the numerator as A⋅Q′+BA\cdot Q' + B⁠, where Q=3x2+2x+1Q = 3x^2 + 2x + 1 and Q′=6x+2Q' = 6x + 2⁠. The Q′Q' part integrates to log⁡∣Q∣\log|Q| by substitution. The constant part leaves ∫dxQ\int\frac{dx}{Q}⁠, and since QQ has no real roots, completing the square gives "square plus a positive constant": an inverse tangent by formula 7.4 (3).

Given, to find, and the plan
Given
The integrand 5x−21+2x+3x2\frac{5x - 2}{1 + 2x + 3x^2}⁠.
To find
∫5x−21+2x+3x2 dx\int\frac{5x - 2}{1 + 2x + 3x^2}\,dx⁠, and where the answer is valid.
Plan
(1) Find the domain. (2) Find AA⁠, BB with 5x−2=A(6x+2)+B5x - 2 = A(6x + 2) + B⁠. (3) Split into I1I_1 and I2I_2⁠. (4) I1I_1 by substitution. (5) I2I_2 by completing the square and 7.4 (3). (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=log⁡∣Q(x)∣+C\int\frac{Q'(x)}{Q(x)}\,dx = \log|Q(x)| + C⁠. Basics: logarithms and 1/x

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 (3)

∫dxx2+a2=1atan⁡−1xa+C\int\frac{dx}{x^2 + a^2} = \frac1a\tan^{-1}\frac xa + C for a>0a > 0⁠. Lesson: integrals of particular functions

Solution

  1. The domain

    The denominator is Q=3x2+2x+1Q = 3x^2 + 2x + 1⁠. Its discriminant is 22−4⋅3⋅1=−8<02^2 - 4\cdot 3\cdot 1 = -8 < 0 and its leading coefficient is positive, so Q>0Q > 0 for every real xx⁠. The integrand is defined everywhere.

    A quadratic with negative discriminant has no real roots, so it never changes sign; with a positive x2x^2 coefficient it is always positive. So the modulus in log⁡∣Q∣\log|Q| below changes nothing.
  2. Split the numerator as A⋅Q′+BA\cdot Q' + B

    Q′=6x+2Q' = 6x + 2⁠. Write

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

    Coefficients of xx⁠: 6A=56A = 5⁠. Constants: 2A+B=−22A + B = -2⁠. So A=56A = \frac56⁠, B=−2−53=−113B = -2 - \frac53 = -\frac{11}{3}⁠.

    This is type 7.4 (9). Check: 56(6x+2)−113=5x+53−113=5x−2\frac56(6x + 2) - \frac{11}{3} = 5x + \frac53 - \frac{11}{3} = 5x - 2⁠.
  3. Split the integral into I1I_1 and I2I_2

    ∫5x−23x2+2x+1 dx=56∫6x+23x2+2x+1 dx−113∫dx3x2+2x+1=56I1−113I2.\begin{aligned} \int\frac{5x - 2}{3x^2 + 2x + 1}\,dx &= \frac56\int\frac{6x + 2}{3x^2 + 2x + 1}\,dx \\ &\quad - \frac{11}{3}\int\frac{dx}{3x^2 + 2x + 1} \\ &= \frac56 I_1 - \frac{11}{3}I_2. \end{aligned}
    Dividing A(6x+2)+BA(6x + 2) + B by QQ term by term gives two fractions; Property (V) of Section 7.2.1 splits the integral. We have also reordered the denominator as 3x2+2x+13x^2 + 2x + 1⁠.
    Property (V), Section 7.2.1. Lesson: integrals of particular functions
  4. I1I_1 by substitution

    Put t=3x2+2x+1t = 3x^2 + 2x + 1⁠, dt=(6x+2) dxdt = (6x + 2)\,dx⁠:

    I1=∫dtt=log⁡∣t∣+C1=log⁡∣3x2+2x+1∣+C1.I_1 = \int\frac{dt}{t} = \log|t| + C_1 = \log\left|3x^2 + 2x + 1\right| + C_1.
    The numerator 6x+26x + 2 is exactly the derivative of the denominator; that is why we arranged it in Step 2.
    Substitution, Section 7.3.1; standard formula (xii), Section 7.2. Basics: substitution
  5. I2I_2 by completing the square

    3x2+2x+1=3(x2+2x3+13)=3[(x+13)2+29].\begin{aligned} 3x^2 + 2x + 1 &= 3\left(x^2 + \frac{2x}{3} + \frac13\right) \\ &= 3\left[\left(x + \frac13\right)^2 + \frac29\right]. \end{aligned}

    Let a=23a = \frac{\sqrt2}{3}⁠, so a2=29a^2 = \frac29⁠. Put t=x+13t = x + \frac13⁠, dt=dxdt = dx⁠, and use 7.4 (3):

    I2=13∫dtt2+a2=13⋅1atan⁡−1ta+C2=13⋅32tan⁡−13x+12+C2=12tan⁡−13x+12+C2.\begin{aligned} I_2 &= \frac13\int\frac{dt}{t^2 + a^2} = \frac13\cdot\frac1a\tan^{-1}\frac ta + C_2 \\ &= \frac13\cdot\frac{3}{\sqrt2}\tan^{-1}\frac{3x + 1}{\sqrt2} + C_2 \\ &= \frac{1}{\sqrt2}\tan^{-1}\frac{3x + 1}{\sqrt2} + C_2. \end{aligned}
    Take out the 3 first so that x2x^2 has coefficient 1. Half of 23\frac23 is 13\frac13⁠, and 13−19=29\frac13 - \frac19 = \frac29⁠, a positive leftover, so the inverse tangent formula applies. Then ta=x+1323=3x+12\frac ta = \frac{x + \frac13}{\frac{\sqrt2}{3}} = \frac{3x + 1}{\sqrt2} and 1a=32\frac1a = \frac{3}{\sqrt2}⁠.
    Type 7.4 (7); formula 7.4 (3). Basics: completing the square
  6. Combine

    ∫5x−21+2x+3x2 dx=56log⁡∣3x2+2x+1∣−1132tan⁡−13x+12+C,\begin{aligned} \int\frac{5x - 2}{1 + 2x + 3x^2}\,dx &= \frac56\log\left|3x^2 + 2x + 1\right| \\ &\quad - \frac{11}{3\sqrt2}\tan^{-1}\frac{3x + 1}{\sqrt2} + C, \end{aligned}

    with C=56C1−113C2C = \frac56 C_1 - \frac{11}{3}C_2⁠.

    113⋅12=1132\frac{11}{3}\cdot\frac{1}{\sqrt2} = \frac{11}{3\sqrt2}⁠. The constants merge into one. This is exactly the textbook's form.
  7. Check: differentiate the answer

    Write Q=3x2+2x+1Q = 3x^2 + 2x + 1⁠. First, 2+(3x+1)2=9x2+6x+3=3Q2 + (3x + 1)^2 = 9x^2 + 6x + 3 = 3Q⁠. Then

    ddxtan⁡−13x+12=321+(3x+1)22=623Q=2Q,ddx[56log⁡∣Q∣]=5(6x+2)6Q=5x+53Q.\begin{aligned} \frac{d}{dx}\tan^{-1}\frac{3x + 1}{\sqrt2} &= \frac{\frac{3}{\sqrt2}}{1 + \frac{(3x + 1)^2}{2}} = \frac{\frac{6}{\sqrt2}}{3Q} = \frac{\sqrt2}{Q}, \\ \frac{d}{dx}\left[\frac56\log|Q|\right] &= \frac{5(6x + 2)}{6Q} = \frac{5x + \frac53}{Q}. \end{aligned}

    So the derivative of our answer is

    5x+53Q−1132⋅2Q=5x+53−113Q=5x−2Q. ✓\frac{5x + \frac53}{Q} - \frac{11}{3\sqrt2}\cdot\frac{\sqrt2}{Q} = \frac{5x + \frac53 - \frac{11}{3}}{Q} = \frac{5x - 2}{Q}. \ \checkmark
    For the inverse tangent, the chain rule gives the inner derivative 32\frac{3}{\sqrt2}⁠; multiplying the top and bottom by 2 gives 6/22+(3x+1)2\frac{6/\sqrt2}{2 + (3x + 1)^2}⁠, and 62=32\frac{6}{\sqrt2} = 3\sqrt2⁠. Valid for every real xx⁠.
    Chain rule (Theorem 4, Section 5.3.1); derivatives (x), (xii), Section 7.2. Basics: integration undoes differentiation
Result ∫5x−21+2x+3x2 dx=56log⁡∣3x2+2x+1∣−1132tan⁡−13x+12+C,\begin{aligned} \int\frac{5x - 2}{1 + 2x + 3x^2}\,dx &= \frac56\log\left|3x^2 + 2x + 1\right| \\ &\quad - \frac{11}{3\sqrt2}\tan^{-1}\frac{3x + 1}{\sqrt2} + C, \end{aligned}

valid for every real xx⁠. (Textbook answer: 56log⁡∣3x2+2x+1∣\frac56\log\left|3x^2 + 2x + 1\right| −1132tan⁡−1(3x+12)+C- \frac{11}{3\sqrt2}\tan^{-1}\left(\frac{3x + 1}{\sqrt2}\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:

IntervalSum of thin stripsF(b)−F(a)F(b) - F(a)
[0,1][0, 1]−0.1026367-0.1026367−0.1026367-0.1026367
[−1,0][-1, 0]−4.6502653-4.6502653−4.6502653-4.6502653

On [0,1][0, 1]⁠, F(1)−F(0)=56log⁡6F(1) - F(0) = \frac56\log 6 −1132(tan⁡−122−tan⁡−112)- \frac{11}{3\sqrt2}\left(\tan^{-1}2\sqrt2 - \tan^{-1}\frac{1}{\sqrt2}\right)⁠.

Common mistakes
  1. Splitting as A⋅Q+BA\cdot Q + B instead of A⋅Q′+BA\cdot Q' + B⁠. It must be the derivative Q′=6x+2Q' = 6x + 2⁠.
  2. Wrong BB⁠. B=−2−2A=−2−53=−113B = -2 - 2A = -2 - \frac53 = -\frac{11}{3}⁠; forgetting the 2A2A gives B=−2B = -2⁠.
  3. Losing the 13\frac13 when taking 3 out of 3x2+2x+13x^2 + 2x + 1 in I2I_2⁠.
  4. Using a=29a = \frac29 instead of a=23a = \frac{\sqrt2}{3} in 7.4 (3).
What to take away
  1. Linear over quadratic: numerator =A⋅Q′+B= A\cdot Q' + B⁠; the Q′Q' part gives Alog⁡∣Q∣A\log|Q|⁠.
  2. When QQ has negative discriminant, ∫dxQ\int\frac{dx}{Q} is an inverse tangent after completing the square.
  3. Check AA and BB by expanding before integrating.

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 (9) (Lesson: integrals of particular functions)
Integral of a sum of constant multiplesStep 3Property (V), Section 7.2.1
∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + CStep 4Standard formula (xii), Section 7.2
SubstitutionSteps 4, 5Section 7.3.1 (Basics: substitution)
Completing the square; discriminantSteps 1, 5Type 7.4 (7) (Basics: completing the square)
∫dxx2+a2=1atan⁡−1xa+C\int\frac{dx}{x^2 + a^2} = \frac1a\tan^{-1}\frac xa + CStep 5Formula 7.4 (3)
ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1 + x^2}⁠; chain ruleStep 7Derivative (x), 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 →