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

Exercise 7.7 · Q7: ∫1+3x−x2 dx\int\sqrt{1 + 3x - x^2}\,dx

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

Integrate the function

1+3x−x2.\sqrt{1 + 3x - x^2}.
Exam answer

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

1+3x−x2=1−[(x−32)2−94]=(132)2−(x−32)2\begin{aligned} &1 + 3x - x^2 \\ &= 1 - \left[\left(x - \frac32\right)^2 - \frac94\right] \\ &= \left(\frac{\sqrt{13}}{2}\right)^2 - \left(x - \frac32\right)^2 \end{aligned}

Put x−32=yx - \frac32 = y⁠. Then dx=dydx = dy⁠.

I=∫(132)2−y2 dyI = \int\sqrt{\left(\frac{\sqrt{13}}{2}\right)^2 - y^2}\,dy

Using ∫a2−y2 dy=y2a2−y2\displaystyle\int\sqrt{a^2 - y^2}\,dy = \frac{y}{2}\sqrt{a^2 - y^2} +a22sin⁡−1ya+C,+ \frac{a^2}{2}\sin^{-1}\frac{y}{a} + C,

I=y2134−y2+138sin⁡−12y13+C\begin{aligned} I &= \frac{y}{2}\sqrt{\frac{13}{4} - y^2} \\ &\quad + \frac{13}{8}\sin^{-1}\frac{2y}{\sqrt{13}} + C \end{aligned}

∴ I=2x−341+3x−x2\therefore\ I = \dfrac{2x - 3}{4}\sqrt{1 + 3x - x^2} +138sin⁡−1(2x−313)+ \dfrac{13}{8}\sin^{-1}\left(\dfrac{2x - 3}{\sqrt{13}}\right) +C+ C⁠.

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

The one idea this problem is built on

The same method as Q5, now with fractions. Taking the minus sign out and completing the square gives

1+3x−x2=134−(x−32)2,1 + 3x - x^2 = \frac{13}{4} - \left(x - \frac32\right)^2,

"a2a^2 minus a square" with a=132a = \frac{\sqrt{13}}{2}⁠. Formula 7.6.2 (iii) then gives a sin⁡−1\sin^{-1} answer. The work is in keeping the fractions tidy.

Given, to find, and the plan
Given
The integrand 1+3x−x2\sqrt{1 + 3x - x^2}⁠.
To find
∫1+3x−x2 dx\int\sqrt{1 + 3x - x^2}\,dx⁠, and where the answer is valid.
Plan
(1) Complete the square. (2) Find the domain. (3) Put y=x−32y = x - \frac32⁠. (4) Apply 7.6.2 (iii) with a=132a = \frac{\sqrt{13}}{2}⁠. (5) Return to xx and simplify. (6) Differentiate back.

Basics you need

1Completing the square with −x2-x^2

Take the minus sign out of the xx terms, complete the square inside, and multiply the minus sign back in. Half of −3-3 is −32-\frac32⁠, and (−32)2=94\left(-\frac32\right)^2 = \frac94⁠. Basics: completing the square

2Formula 7.6.2 (iii)

∫a2−y2 dy=y2a2−y2+a22sin⁡−1ya+C\int\sqrt{a^2 - y^2}\,dy = \frac{y}{2}\sqrt{a^2 - y^2} + \frac{a^2}{2}\sin^{-1}\frac{y}{a} + C⁠, a>0a > 0⁠; derived in Exercise 7.7 Q1. Lesson: integration by parts

3Derivative of sin⁡−1\sin^{-1}

ddxsin⁡−1u=u′1−u2\frac{d}{dx}\sin^{-1}u = \frac{u'}{\sqrt{1 - u^2}} for ∣u∣<1|u| < 1 (standard formula (viii), Section 7.2, with the chain rule). Basics: substitution and the chain rule

Solution

  1. Complete the square

    1+3x−x2=1−(x2−3x)=1−[(x−32)2−94]=134−(x−32)2.\begin{aligned} 1 + 3x - x^2 &= 1 - (x^2 - 3x) \\ &= 1 - \left[\left(x - \tfrac32\right)^2 - \tfrac94\right] \\ &= \tfrac{13}{4} - \left(x - \tfrac32\right)^2. \end{aligned}
    (x−32)2=x2−3x+94\left(x - \frac32\right)^2 = x^2 - 3x + \frac94⁠, so x2−3x=(x−32)2−94x^2 - 3x = \left(x - \frac32\right)^2 - \frac94⁠. The minus sign in front turns −94-\frac94 into +94+\frac94⁠, and 1+94=1341 + \frac94 = \frac{13}{4}⁠. So a2=134a^2 = \frac{13}{4} and a=132a = \frac{\sqrt{13}}{2}⁠.
    Completing the square, as in Example 24. Basics: completing the square
  2. The domain

    We need (x−32)2≤134\left(x - \frac32\right)^2 \le \frac{13}{4}⁠, that is ∣x−32∣≤132\left|x - \frac32\right| \le \frac{\sqrt{13}}{2}⁠:

    3−132≤x≤3+132,\frac{3 - \sqrt{13}}{2} \le x \le \frac{3 + \sqrt{13}}{2},

    roughly −0.303≤x≤3.303-0.303 \le x \le 3.303⁠.

    These end points are the roots of x2−3x−1=0x^2 - 3x - 1 = 0⁠, namely 3±9+42\frac{3 \pm \sqrt{9 + 4}}{2}⁠. Between them 1+3x−x2≥01 + 3x - x^2 \ge 0⁠.
  3. Put y=x−32y = x - \frac32

    Then dy=dxdy = dx and

    ∫1+3x−x2 dx=∫(132)2−y2 dy.\int\sqrt{1 + 3x - x^2}\,dx = \int\sqrt{\left(\tfrac{\sqrt{13}}{2}\right)^2 - y^2}\,dy.
    A shift has derivative 1, so dx=dydx = dy⁠. The root now has the shape a2−y2\sqrt{a^2 - y^2}⁠.
    Integration by substitution, Section 7.3.1. Basics: substitution
  4. Apply 7.6.2 (iii) with a=132a = \frac{\sqrt{13}}{2}

    Here a22=138\frac{a^2}{2} = \frac{13}{8} and ya=2y13\frac{y}{a} = \frac{2y}{\sqrt{13}}⁠:

    ∫134−y2 dy=y2134−y2+138sin⁡−12y13+C.\begin{aligned} \int\sqrt{\tfrac{13}{4} - y^2}\,dy &= \frac{y}{2}\sqrt{\tfrac{13}{4} - y^2} \\ &\quad + \frac{13}{8}\sin^{-1}\frac{2y}{\sqrt{13}} + C. \end{aligned}
    a22=13/42=138\frac{a^2}{2} = \frac{13/4}{2} = \frac{13}{8}⁠. Dividing by a=132a = \frac{\sqrt{13}}{2} is the same as multiplying by 213\frac{2}{\sqrt{13}}⁠.
    Formula 7.6.2 (iii). Lesson: integration by parts
  5. Return to xx and simplify

    With y=x−32y = x - \frac32⁠: y2=2x−34\frac{y}{2} = \frac{2x - 3}{4}⁠, 2y13=2x−313\frac{2y}{\sqrt{13}} = \frac{2x - 3}{\sqrt{13}}⁠, and 134−y2=1+3x−x2\frac{13}{4} - y^2 = 1 + 3x - x^2⁠. So

    ∫1+3x−x2 dx=2x−341+3x−x2+138sin⁡−1(2x−313)+C.\begin{aligned} \int\sqrt{1 + 3x - x^2}\,dx &= \frac{2x - 3}{4}\sqrt{1 + 3x - x^2} \\ &\quad + \frac{13}{8}\sin^{-1}\left(\frac{2x - 3}{\sqrt{13}}\right) + C. \end{aligned}
    x−3/22=2x−34\frac{x - 3/2}{2} = \frac{2x - 3}{4} (multiply top and bottom by 2), and 2(x−32)=2x−32\left(x - \frac32\right) = 2x - 3⁠. Writing the answer without fractions inside fractions matches the textbook's form.
  6. Check: differentiate the answer

    Write y=x−32y = x - \frac32⁠, r=134−y2=1+3x−x2r = \sqrt{\frac{13}{4} - y^2} = \sqrt{1 + 3x - x^2}⁠, so drdx=−yr\frac{dr}{dx} = -\frac{y}{r} for r>0r > 0⁠. Let S=138sin⁡−12y13S = \frac{13}{8}\sin^{-1}\frac{2y}{\sqrt{13}}⁠. Then

    ddx[y2 r]=r2−y22r,dSdx=138⋅2/131−4y2/13=138⋅22r=13/42r.\begin{aligned} \frac{d}{dx}\left[\frac{y}{2}\,r\right] &= \frac{r}{2} - \frac{y^2}{2r}, \\ \frac{dS}{dx} &= \frac{13}{8}\cdot\frac{2/\sqrt{13}}{\sqrt{1 - 4y^2/13}} \\ &= \frac{13}{8}\cdot\frac{2}{2r} = \frac{13/4}{2r}. \end{aligned}

    Adding, over 2r2r⁠:

    r2−y2+1342r=2(134−y2)2r=r. ✓\frac{r^2 - y^2 + \frac{13}{4}}{2r} = \frac{2\left(\frac{13}{4} - y^2\right)}{2r} = r.\ \checkmark
    13⋅1−4y213=13−4y2\sqrt{13}\cdot\sqrt{1 - \frac{4y^2}{13}} = \sqrt{13 - 4y^2} and 13−4y2=2134−y2=2r\sqrt{13 - 4y^2} = 2\sqrt{\frac{13}{4} - y^2} = 2r⁠. With r2=134−y2r^2 = \frac{13}{4} - y^2 the numerator is 2r22r^2⁠. Valid strictly inside the domain; at the end points the integrand is 0 and the answer's one-sided slope is 0 too.
    Product rule; chain rule; standard formula (viii), Section 7.2. Basics: integration undoes differentiation
Result ∫1+3x−x2 dx=2x−341+3x−x2+138sin⁡−1(2x−313)+C,\begin{aligned} \int\sqrt{1 + 3x - x^2}\,dx &= \frac{2x - 3}{4}\sqrt{1 + 3x - x^2} \\ &\quad + \frac{13}{8}\sin^{-1}\left(\frac{2x - 3}{\sqrt{13}}\right) + C, \end{aligned}

valid for 3−132≤x≤3+132\frac{3 - \sqrt{13}}{2} \le x \le \frac{3 + \sqrt{13}}{2}⁠. (Textbook answer: (2x−3)41+3x−x2\frac{(2x - 3)}{4}\sqrt{1 + 3x - x^2} +138sin⁡−1(2x−313)+C+ \frac{13}{8}\sin^{-1}\left(\frac{2x - 3}{\sqrt{13}}\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⁠, on any interval where the integrand is continuous. 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,3][0, 3]4.69407964.69407964.69407964.6940796
[−0.2,1][-0.2, 1]1.62149911.62149911.62149911.6214991
Common mistakes
  1. a2=134a^2 = \frac{13}{4} but a=132a = \frac{13}{2}⁠. The square root of 134\frac{13}{4} is 132\frac{\sqrt{13}}{2}⁠.
  2. Coefficient 134\frac{13}{4} in front of sin⁡−1\sin^{-1}⁠. It is a22=138\frac{a^2}{2} = \frac{13}{8}⁠.
  3. Sign of the shift. x2−3xx^2 - 3x completes to (x−32)2\left(x - \frac32\right)^2⁠, so y=x−32y = x - \frac32⁠, not x+32x + \frac32⁠.
What to take away
  1. Fractions do not change the method: take the minus out, complete the square, read off a2a^2⁠.
  2. Clear nested fractions at the end: x−3/22=2x−34\frac{x - 3/2}{2} = \frac{2x - 3}{4}⁠.

Every fact used, and where it comes from

FactUsed inSource
Completing the squareSteps 1, 2Section 7.4 (7); Example 24 (Basics: completing the square)
Substitution y=x−32y = x - \frac32Step 3Section 7.3.1
∫a2−y2 dy\int\sqrt{a^2 - y^2}\,dy formulaStep 4Formula 7.6.2 (iii), Section 7.6.2
ddxsin⁡−1x=11−x2\frac{d}{dx}\sin^{-1}x = \frac{1}{\sqrt{1 - x^2}}Step 6Standard formula (viii), Section 7.2
∫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 →