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

Example 24: ∫3−2x−x2 dx\int\sqrt{3-2x-x^2}\,dx

ExamplesIntegrals of some more types · Section 7.6.2
The question

Find ∫3−2x−x2  dx\displaystyle\int \sqrt{3 - 2x - x^2}\; dx⁠.

Exam answer

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

3−2x−x2=3−(x2+2x)=3−[(x+1)2−1]=22−(x+1)2\begin{aligned} 3 - 2x - x^2 &= 3 - (x^2 + 2x) \\ &= 3 - \left[(x + 1)^2 - 1\right] \\ &= 2^2 - (x + 1)^2 \end{aligned}

Put x+1=yx + 1 = y⁠. Then dx=dydx = dy⁠.

I=∫22−y2 dyI = \int\sqrt{2^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=y24−y2+2sin⁡−1y2+CI = \frac{y}{2}\sqrt{4 - y^2} + 2\sin^{-1}\frac{y}{2} + C

∴ I=x+123−2x−x2\therefore\ I = \dfrac{x + 1}{2}\sqrt{3 - 2x - x^2} +2sin⁡−1(x+12)+C+ 2\sin^{-1}\left(\dfrac{x + 1}{2}\right) + C⁠.

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

The one idea this problem is built on

Completing the square turns the quadratic into "a constant minus a square": 3−2x−x2=4−(x+1)2=22−(x+1)23 - 2x - x^2 = 4 - (x+1)^2 = 2^2 - (x+1)^2⁠. After the shift y=x+1y = x + 1 the integral is ∫22−y2 dy\int\sqrt{2^2 - y^2}\,dy⁠, which is the standard formula 7.6.2 (iii) with a=2a = 2⁠. The graph of the integrand is a semicircle, which tells us where the answer makes sense and gives a neat check.

Given, to find, and the plan
Given
The integrand 3−2x−x2\sqrt{3 - 2x - x^2}⁠, defined only where 3−2x−x2≥03 - 2x - x^2 \ge 0⁠, which (Step 1) is −3≤x≤1-3 \le x \le 1⁠.
To find
∫3−2x−x2 dx\int\sqrt{3 - 2x - x^2}\,dx⁠: one antiderivative plus an arbitrary constant C.
Plan
Complete the square and find the domain; substitute y=x+1y = x + 1⁠; use formula 7.6.2 (iii) with a=2a = 2⁠; return to xx⁠; differentiate the answer to check it.

Basics you need

1Completing the square with a negative x2x^2

Take the minus sign out first: −x2−2x=−(x2+2x)=−[(x+1)2−1]-x^2 - 2x = -(x^2 + 2x) = -\left[(x+1)^2 - 1\right]⁠. Then the constant left over is what we call a2a^2⁠. Basics: completing the square

2A shift needs no extra factor

If y=x+1y = x + 1 then dy=dxdy = dx⁠, so ∫g(x+1) dx=∫g(y) dy\int g(x+1)\,dx = \int g(y)\,dy⁠. Basics: substitution

3The standard formula 7.6.2 (iii)

∫a2−x2 dx=12xa2−x2+a22sin⁡−1xa+C.\int\sqrt{a^2 - x^2}\,dx = \frac{1}{2}x\sqrt{a^2 - x^2} + \frac{a^2}{2}\sin^{-1}\frac{x}{a} + C. The book gets it by parts, taking 1 as the second function (Section 7.6.2). Lesson: integration by parts

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

ddxsin⁡−1u=11−u2⋅dudx\frac{d}{dx}\sin^{-1}u = \frac{1}{\sqrt{1 - u^2}}\cdot\frac{du}{dx} for −1<u<1-1 < u < 1⁠, and sin⁡−1\sin^{-1} takes values in [−π2,π2]\left[-\frac{\pi}{2}, \frac{\pi}{2}\right]⁠. Basics: integration undoes differentiation

Solution

  1. Complete the square and find where the root exists

    Group the xx terms and take out the minus sign:

    3−2x−x2=3−(x2+2x)=3−[(x+1)2−1]=4−(x+1)2=22−(x+1)2.\begin{aligned}3 - 2x - x^2 &= 3 - (x^2 + 2x) \\ &= 3 - \left[(x + 1)^2 - 1\right] \\ &= 4 - (x + 1)^2 = 2^2 - (x+1)^2.\end{aligned}

    The root needs 4−(x+1)2≥04 - (x+1)^2 \ge 0⁠, that is (x+1)2≤4(x+1)^2 \le 4⁠, that is ∣x+1∣≤2|x + 1| \le 2⁠, which means −2≤x+1≤2-2 \le x + 1 \le 2⁠, or −3≤x≤1-3 \le x \le 1. Outside this interval the integrand does not exist, so the question only makes sense on [−3,1][-3, 1]⁠.

    The form "constant minus a square" is the pattern a2−y2a^2 - y^2 of formula (iii). It also shows at once that the quantity is largest (equal to 4) at x=−1x = -1 and falls to 0 at x=−3x = -3 and x=1x = 1⁠. Indeed, a point of the graph at height h=4−(x+1)2h = \sqrt{4 - (x+1)^2} satisfies (x+1)2+h2=4(x+1)^2 + h^2 = 4 with h≥0h \ge 0⁠: the graph is the upper half of the circle with centre (−1,0)(-1, 0) and radius 2 (figure). (We call the height hh here because from Step 2 on the letter yy stands for x+1x + 1⁠.)
    Expand to check: 4−(x2+2x+1)=3−2x−x24 - (x^2 + 2x + 1) = 3 - 2x - x^2⁠. Basics: completing the square
  2. Shift: put y=x+1y = x + 1

    With y=x+1y = x + 1 we have dy=dxdy = dx⁠, and yy runs over [−2,2][-2, 2] as xx runs over [−3,1][-3, 1]⁠:

    ∫3−2x−x2 dx=∫4−y2 dy.\int\sqrt{3 - 2x - x^2}\,dx = \int\sqrt{4 - y^2}\,dy.
    This makes the integrand exactly a2−y2\sqrt{a^2 - y^2} with a=2a = 2⁠. As in any shift, the derivative of x+1x + 1 is 1, so dxdx becomes dydy with no extra factor.
    Integration by substitution, Section 7.3.1. Lesson: integration by substitution
  3. Apply formula 7.6.2 (iii) with a=2a = 2

    Here a2=4a^2 = 4⁠, a22=2\frac{a^2}{2} = 2 and ya=y2\frac{y}{a} = \frac{y}{2}⁠:

    ∫4−y2 dy=12y4−y2+2sin⁡−1y2+C.\int\sqrt{4 - y^2}\,dy = \frac{1}{2}y\sqrt{4 - y^2} + 2\sin^{-1}\frac{y}{2} + C.

    The book writes the middle step as 42sin⁡−1y2\frac{4}{2}\sin^{-1}\frac{y}{2}⁠; that is the same 2.

    Because −2≤y≤2-2 \le y \le 2⁠, the number y2\frac{y}{2} lies in [−1,1][-1, 1]⁠, the domain of sin⁡−1\sin^{-1}⁠, so the formula's right-hand side is defined wherever the integrand is.
    Formula (iii) is the one with a2−x2a^2 - x^2 under the root: its answer has sin⁡−1\sin^{-1}⁠, not a log (compare Example 23). Lesson: integration by parts
  4. Return to xx

    Put back y=x+1y = x + 1 and 4−y2=3−2x−x24 - y^2 = 3 - 2x - x^2 (Step 1):

    ∫3−2x−x2 dx=12(x+1)3−2x−x2+2sin⁡−1 ⁣(x+12)+C.\begin{aligned}\int\sqrt{3 - 2x - x^2}\,dx = {}&\tfrac{1}{2}(x + 1)\sqrt{3 - 2x - x^2} \\ &+ 2\sin^{-1}\!\left(\frac{x + 1}{2}\right) + C.\end{aligned}

    Where it is valid. Both sides are defined for −3≤x≤1-3 \le x \le 1⁠. The derivative check in Step 5 is done on the open interval −3<x<1-3 < x < 1⁠, where the root is positive. At the two end points the answer is still continuous, and its one-sided derivatives there are 0, which is the value of the integrand at those points.

    The answer must be in the variable of the question. Writing 4−y24 - y^2 back as 3−2x−x23 - 2x - x^2 gives the book's printed form.
  5. Check: differentiate the answer

    Let y=x+1y = x + 1 and R=4−y2R = \sqrt{4 - y^2}⁠, for −3<x<1-3 < x < 1 (so R>0R > 0⁠). By the chain rule dRdx=−2y2R=−yR\frac{dR}{dx} = \frac{-2y}{2R} = -\frac{y}{R}⁠.

    First term, product rule:

    ddx(12yR)=12R−12y⋅yR=R2−y22R.\frac{d}{dx}\left(\tfrac{1}{2}yR\right) = \tfrac{1}{2}R - \tfrac{1}{2}y\cdot\frac{y}{R} = \frac{R^2 - y^2}{2R}.

    Second term, chain rule with u=y2u = \frac{y}{2}⁠, dudx=12\frac{du}{dx} = \frac{1}{2}⁠:

    ddx 2sin⁡−1y2=2⋅121−y24=1R2=2R.\frac{d}{dx}\,2\sin^{-1}\frac{y}{2} = \frac{2\cdot\frac{1}{2}}{\sqrt{1 - \frac{y^2}{4}}} = \frac{1}{\frac{R}{2}} = \frac{2}{R}.

    (We used 1−y24=4−y22=R2\sqrt{1 - \frac{y^2}{4}} = \frac{\sqrt{4 - y^2}}{2} = \frac{R}{2}⁠.) Add, using R2=4−y2R^2 = 4 - y^2⁠:

    R2−y2+42R=8−2y22R=4−y2R=R.\frac{R^2 - y^2 + 4}{2R} = \frac{8 - 2y^2}{2R} = \frac{4 - y^2}{R} = R.

    So the derivative is R=3−2x−x2R = \sqrt{3 - 2x - x^2}⁠, the integrand. The answer is confirmed.

    By definition, FF is an antiderivative of ff exactly when F′=fF' = f⁠. The same computation proves formula 7.6.2 (iii) for a=2a = 2⁠.
    ddxsin⁡−1u=u′1−u2\frac{d}{dx}\sin^{-1}u = \frac{u'}{\sqrt{1-u^2}} is formula (viii) of the list in Section 7.2 read backwards. Basics: integration undoes differentiation
  6. A check from the picture

    −3 −2 −1 1 1 2 x y radius 2 centre y = √(4 − (x + 1)²) half disc area 2π
    The integrand is the upper half of the circle (x+1)2+y2=4(x+1)^2 + y^2 = 4⁠. It exists only for −3≤x≤1-3 \le x \le 1⁠.

    Call the answer without C F(x)F(x)⁠. The definite integral F(1)−F(−3)F(1) - F(-3) is the area of the whole half disc, which is 12π⋅22=2π\frac{1}{2}\pi\cdot 2^2 = 2\pi⁠. From the formula:

    F(1)=12⋅2⋅0+2sin⁡−11=2⋅π2=π,F(−3)=12⋅(−2)⋅0+2sin⁡−1(−1)=−π.\begin{aligned}F(1) &= \tfrac{1}{2}\cdot 2\cdot 0 + 2\sin^{-1}1 = 2\cdot\tfrac{\pi}{2} = \pi, \\ F(-3) &= \tfrac{1}{2}\cdot(-2)\cdot 0 + 2\sin^{-1}(-1) = -\pi.\end{aligned}

    So F(1)−F(−3)=2πF(1) - F(-3) = 2\pi⁠, exactly the area of the half disc.

    This is an independent check: the area of a half disc comes from geometry, not from the formula. The sin⁡−1\sin^{-1} term produces the π\pi⁠, which is why a circle's integral has an inverse sine in it.
    A definite integral of a positive function is the area under its graph (Sections 7.7 and 7.8). Basics: area as a sum of thin strips
Result

∫3−2x−x2 dx=12(x+1)3−2x−x2+2sin⁡−1 ⁣(x+12)+C,\begin{aligned}\int\sqrt{3 - 2x - x^2}\,dx = {}&\tfrac{1}{2}(x + 1)\sqrt{3 - 2x - x^2} \\ &+ 2\sin^{-1}\!\left(\frac{x + 1}{2}\right) + C,\end{aligned} for −3≤x≤1-3 \le x \le 1 (the only xx where the integrand exists). This is exactly the book's answer.

Check it with numbers

With FF as above, F(−1)=0F(-1) = 0 and F(0)=32+2sin⁡−112=32+π3≈1.9132230F(0) = \frac{\sqrt3}{2} + 2\sin^{-1}\frac{1}{2} = \frac{\sqrt3}{2} + \frac{\pi}{3} \approx 1.9132230⁠. A direct numerical integration of 3−2x−x2\sqrt{3 - 2x - x^2} from −1-1 to 0 gives 1.9132230 too. The symmetric difference quotient of FF at x=0x = 0 (step 0.0001 on each side, so F(0.0001)−F(−0.0001)0.0002\frac{F(0.0001) - F(-0.0001)}{0.0002}⁠) gives 1.7320508, and the integrand there is 3≈1.7320508\sqrt3 \approx 1.7320508⁠.

Common mistakes
  1. Sign slips when completing the square. 3−2x−x23 - 2x - x^2 is 4−(x+1)24 - (x+1)^2⁠, not 4+(x+1)24 + (x+1)^2 or 2−(x+1)22 - (x+1)^2⁠. Expand back to check.
  2. Using the log formula. "Constant minus square" gives sin⁡−1\sin^{-1} (formula iii); the log belongs to y2±a2\sqrt{y^2 \pm a^2}⁠.
  3. Writing sin⁡−1(x+1)\sin^{-1}(x+1)⁠. The formula has sin⁡−1ya\sin^{-1}\frac{y}{a}⁠, and a=2a = 2⁠: it is sin⁡−1x+12\sin^{-1}\frac{x+1}{2}⁠.
  4. Ignoring the domain. The integrand, and so the answer, only exists for −3≤x≤1-3 \le x \le 1⁠.
What to take away
  1. When the x2x^2 term is negative, take the minus out, complete the square inside, and you reach a2−(x+k)2a^2 - (x + k)^2⁠.
  2. a2−(x+k)2\sqrt{a^2 - (x+k)^2} is a semicircle of radius aa centred at x=−kx = -k⁠: its integral has a sin⁡−1\sin^{-1} term and is defined only on [−k−a, −k+a][-k - a,\ -k + a]⁠.
  3. Integrating over the whole semicircle must give 12πa2\frac{1}{2}\pi a^2⁠: a quick check on any answer of this type.

Every fact used, and where it comes from

FactUsed inSource
3−2x−x2=22−(x+1)23 - 2x - x^2 = 2^2 - (x+1)^2Step 1Completing the square (Basics)
y=x+1, dy=dxy = x + 1,\ dy = dxStep 2Integration by substitution, Section 7.3.1 (Lesson)
∫a2−x2 dx\int\sqrt{a^2 - x^2}\,dx formulaStep 3Section 7.6.2 (iii), proved by parts (Lesson)
ddxsin⁡−1x=11−x2\frac{d}{dx}\sin^{-1}x = \frac{1}{\sqrt{1-x^2}}Step 5Chapter 5; standard formula (viii), Section 7.2
sin⁡−11=π2\sin^{-1}1 = \frac{\pi}{2}⁠, sin⁡−1(−1)=−π2\sin^{-1}(-1) = -\frac{\pi}{2}Step 6Principal values, Chapter 2
Area of a half disc =12πr2= \frac{1}{2}\pi r^2Step 6Mensuration
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 →