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

Miscellaneous · Q2: ∫dxx+a+x+b\int\frac{dx}{\sqrt{x+a}+\sqrt{x+b}}

Miscellaneous ExerciseRationalising, then the power rule · Miscellaneous Exercise on Chapter 7
The question

Integrate the functions in Exercises 1 to 23.

2. 1x+a+x+b\dfrac{1}{\sqrt{x+a}+\sqrt{x+b}}

Exam answer

Let I=∫dxx+a+x+bI = \displaystyle\int\frac{dx}{\sqrt{x + a} + \sqrt{x + b}}⁠.

Multiplying numerator and denominator by x+a−x+b\sqrt{x + a} - \sqrt{x + b}⁠,

I=∫x+a−x+b(x+a)−(x+b) dx=1a−b∫x+a dx−1a−b∫x+b dx=1a−b⋅(x+a)3/23/2−1a−b⋅(x+b)3/23/2+C\begin{aligned} I &= \int\frac{\sqrt{x + a} - \sqrt{x + b}}{(x + a) - (x + b)}\,dx \\ &= \frac{1}{a - b}\int\sqrt{x + a}\,dx \\ &\quad - \frac{1}{a - b}\int\sqrt{x + b}\,dx \\ &= \frac{1}{a - b}\cdot\frac{(x + a)^{3/2}}{3/2} \\ &\quad - \frac{1}{a - b}\cdot\frac{(x + b)^{3/2}}{3/2} + C \end{aligned}

∴ I=23(a−b)[(x+a)3/2\therefore\ I = \dfrac{2}{3(a - b)}\Big[(x + a)^{3/2} −(x+b)3/2]+C- (x + b)^{3/2}\Big] + C (for a≠ba \ne b⁠).

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

The one idea this problem is built on

A sum of two square roots in a denominator is removed by multiplying top and bottom by the conjugate x+a−x+b\sqrt{x+a} - \sqrt{x+b}⁠. The denominator becomes (x+a)−(x+b)=a−b(x+a) - (x+b) = a - b⁠, a constant, and the numerator becomes two square roots of linear expressions, which the power rule integrates at once.

Given, to find, and the plan
Given
f(x)=1x+a+x+bf(x) = \dfrac{1}{\sqrt{x+a}+\sqrt{x+b}} with constants a≠ba \ne b (Step 1 explains why, and the remark at the end covers a=ba = b⁠). Both roots need x+a≥0x + a \ge 0 and x+b≥0x + b \ge 0⁠.
To find
∫dxx+a+x+b\displaystyle\int\frac{dx}{\sqrt{x+a}+\sqrt{x+b}}⁠.
Plan
(1) Domain and choice of method. (2) Multiply by the conjugate. (3) Integrate each root with the power rule. (4) Differentiate back.

Basics you need

1Conjugates

(p+q)(p−q)=p−q(\sqrt p + \sqrt q)(\sqrt p - \sqrt q) = p - q for p,q≥0p, q \ge 0⁠. This is the difference of squares (u+v)(u−v)=u2−v2(u+v)(u-v) = u^2 - v^2 with u=pu = \sqrt p⁠, v=qv = \sqrt q⁠.

2Power rule

∫xn dx=xn+1n+1+C\int x^n\,dx = \frac{x^{n+1}}{n+1} + C for n≠−1n \ne -1 (standard formula (i)). With t=x+at = x + a⁠, dt=dxdt = dx⁠, the same holds for (x+a)n(x+a)^n⁠. Basics: the power rule

Solution

  1. Domain, and why we rationalise

    Both roots are real when x≥−ax \ge -a and x≥−bx \ge -b⁠. The denominator can only be 0 if both roots are 0, that is x=−ax = -a and x=−bx = -b at once, which is impossible when a≠ba \ne b⁠. So the integrand is defined for x≥max⁡(−a,−b)x \ge \max(-a, -b)⁠, and we work on the open interval x>max⁡(−a,−b)x > \max(-a, -b)⁠, where both roots are positive.

    No standard formula has a sum of roots in the denominator, and a substitution such as t=x+at = \sqrt{x+a} leaves the other root behind. Multiplying by the conjugate, however, turns the awkward denominator into a constant. This is the same idea as rationalising 13+2\frac{1}{\sqrt3 + \sqrt2} in arithmetic.
    The square root p\sqrt p is real only for p≥0p \ge 0⁠, and p=0\sqrt p = 0 only for p=0p = 0⁠.
  2. Multiply top and bottom by the conjugate

    The conjugate x+a−x+b\sqrt{x+a} - \sqrt{x+b} is not zero, because x+a≠x+bx + a \ne x + b when a≠ba \ne b⁠. So we may multiply by it:

    f(x)=x+a−x+b(x+a+x+b)(x+a−x+b)=x+a−x+b(x+a)−(x+b)=x+a−x+ba−b.\begin{aligned} f(x) &= \frac{\sqrt{x+a} - \sqrt{x+b}}{\big(\sqrt{x+a}+\sqrt{x+b}\big)\big(\sqrt{x+a}-\sqrt{x+b}\big)} \\ &= \frac{\sqrt{x+a} - \sqrt{x+b}}{(x+a) - (x+b)} \\ &= \frac{\sqrt{x+a} - \sqrt{x+b}}{a - b}. \end{aligned}
    The product in the denominator is u2−v2u^2 - v^2 with u=x+au = \sqrt{x+a}⁠, v=x+bv = \sqrt{x+b}⁠, and u2=x+au^2 = x + a⁠, v2=x+bv^2 = x + b⁠. The xx's cancel, leaving the constant a−ba - b⁠. This is exactly where a≠ba \ne b is needed: otherwise we would be dividing by 0.
    Conjugates (Basic 1).
  3. Integrate each square root with the power rule

    With t=x+at = x + a⁠, dt=dxdt = dx⁠, and standard formula (i) with n=12n = \frac12⁠:

    ∫(x+a)1/2 dx=(x+a)3/23/2=23(x+a)3/2.\int (x+a)^{1/2}\,dx = \frac{(x+a)^{3/2}}{3/2} = \frac23(x+a)^{3/2}.

    In the same way ∫(x+b)1/2 dx=23(x+b)3/2\int (x+b)^{1/2}\,dx = \frac23(x+b)^{3/2}⁠. Taking the constant 1a−b\frac{1}{a-b} outside:

    ∫f(x) dx=1a−b[23(x+a)3/2−23(x+b)3/2]+C=23(a−b)[(x+a)3/2−(x+b)3/2]+C.\begin{aligned} \int f(x)\,dx &= \frac{1}{a-b}\Big[\tfrac23(x+a)^{3/2} \\ &\qquad - \tfrac23(x+b)^{3/2}\Big] + C \\ &= \frac{2}{3(a-b)}\Big[(x+a)^{3/2} \\ &\qquad - (x+b)^{3/2}\Big] + C. \end{aligned}
    The power rule needs n≠−1n \ne -1⁠; here n=12n = \frac12⁠, so it applies and n+1=32n + 1 = \frac32⁠. Dividing by 32\frac32 is multiplying by 23\frac23⁠. The answer is the same as the textbook's, term for term.
    Standard formula (i), Section 7.2; properties (III), (IV), Section 7.2.1; substitution, Section 7.3.1. Basics: the power rule
  4. Check: differentiate the answer

    ddx(x+a)3/2=32(x+a)1/2\frac{d}{dx}(x+a)^{3/2} = \frac32(x+a)^{1/2}⁠, and the same for bb⁠. So

    ddx(23(a−b)[(x+a)3/2−(x+b)3/2])=23(a−b)⋅32[x+a−x+b]=x+a−x+ba−b.\begin{aligned} &\frac{d}{dx}\Big(\tfrac{2}{3(a-b)}\big[(x+a)^{3/2} - (x+b)^{3/2}\big]\Big) \\ &= \frac{2}{3(a-b)}\cdot\frac32\big[\sqrt{x+a} - \sqrt{x+b}\big] \\ &= \frac{\sqrt{x+a} - \sqrt{x+b}}{a-b}. \end{aligned}

    Undo Step 2: a−b=(x+a+x+b)(x+a−x+b)a - b = \big(\sqrt{x+a}+\sqrt{x+b}\big)\big(\sqrt{x+a}-\sqrt{x+b}\big)⁠, so the last fraction is 1x+a+x+b\dfrac{1}{\sqrt{x+a}+\sqrt{x+b}}⁠. ✓

    Cancelling the non-zero factor x+a−x+b\sqrt{x+a}-\sqrt{x+b} brings back the integrand exactly, so the antiderivative is right on the whole interval x>max⁡(−a,−b)x > \max(-a, -b)⁠.
    Power rule and chain rule for derivatives, Chapter 5. Basics: integration undoes differentiation
Result

For a≠ba \ne b and x>max⁡(−a,−b)x > \max(-a, -b)⁠:

∫dxx+a+x+b=23(a−b)[(x+a)3/2−(x+b)3/2]+C.\begin{aligned} &\int\frac{dx}{\sqrt{x+a}+\sqrt{x+b}} \\ &= \frac{2}{3(a-b)}\Big[(x+a)^{3/2} - (x+b)^{3/2}\Big] + C. \end{aligned}

(Textbook answer: 23(a−b)[(x+a)3/2−(x+b)3/2]+C\frac{2}{3(a-b)}\big[(x+a)^{3/2} - (x+b)^{3/2}\big] + C⁠, the same.)

Remark: if a=ba = b⁠, the integrand is 12x+a\frac{1}{2\sqrt{x+a}}⁠, whose integral is x+a+C\sqrt{x+a} + C (power rule with n=−12n = -\frac12⁠).

Check it with numbers

Take a=2a = 2⁠, b=1b = 1⁠. At x=2x = 2⁠: 14+3=13.7320508≈0.2679492\frac{1}{\sqrt4 + \sqrt3} = \frac{1}{3.7320508} \approx 0.2679492⁠, and the rationalised form gives 2−31≈0.2679492\frac{2 - \sqrt3}{1} \approx 0.2679492⁠. ✓

Area check on [0,2][0, 2]⁠: with F(x)=23[(x+2)3/2−(x+1)3/2]F(x) = \frac23\big[(x+2)^{3/2} - (x+1)^{3/2}\big]⁠,

F(2)−F(0)=23(8−33)−23(22−1)≈0.6502803.\begin{aligned} F(2) - F(0) &= \tfrac23\big(8 - 3\sqrt3\big) - \tfrac23\big(2\sqrt2 - 1\big) \\ &\approx 0.6502803. \end{aligned}

Numerical integration from 0 to 2 also gives 0.65028030.6502803⁠.

Common mistakes
  1. Writing 1x+a+x+b=1x+a+1x+b\frac{1}{\sqrt{x+a}+\sqrt{x+b}} = \frac{1}{\sqrt{x+a}} + \frac{1}{\sqrt{x+b}}⁠. A fraction does not split over a sum in its denominator.
  2. Getting the order wrong in the denominator: (x+a)−(x+b)=a−b(x+a) - (x+b) = a - b⁠, not b−ab - a⁠. Swapping it flips the sign of the whole answer.
  3. Forgetting that a≠ba \ne b is needed to divide by a−ba - b⁠.
What to take away
  1. A sum or difference of two square roots in a denominator: multiply by the conjugate. If the expressions under the roots differ by a constant, the denominator becomes that constant.
  2. ∫(x+a)n dx=(x+a)n+1n+1+C\int (x+a)^n\,dx = \frac{(x+a)^{n+1}}{n+1} + C for n≠−1n \ne -1⁠: the power rule works on any x+ax + a⁠, because d(x+a)=dxd(x+a) = dx⁠.

Every fact used, and where it comes from

FactUsed inSource
Square roots are real only for non-negative numbersStep 1Algebra
(u+v)(u−v)=u2−v2(u+v)(u-v) = u^2 - v^2Steps 2, 4Algebra (difference of squares)
∫xn dx=xn+1n+1+C\int x^n\,dx = \frac{x^{n+1}}{n+1} + C⁠, n≠−1n \ne -1Step 3Standard formula (i), Section 7.2
Substitution t=x+at = x + aStep 3Section 7.3.1
Integral of a sum; constants outsideStep 3Properties (III), (IV), Section 7.2.1
Derivative of u3/2u^{3/2}⁠, chain ruleStep 4Chapter 5
All decimalsCheckRecomputed in the site's verification script
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 →