Problem 298
Medium Substitutions

Evaluate the integral: I = integral dx/(1+ sqrt x+

Evaluate the integral: $$ I = \int \frac{dx}{1+\sqrt x+\sqrt{1+x}}. $$

Explanation of Method

After substituting $u=\sqrt x$ and $v=\sqrt{1+u^2}$, the key move is rationalizing $\dfrac{2u}{1+u+v}$ by multiplying by the conjugate $1+u-v$. Since $(1+u)^2-v^2=2u$ exactly, this collapses the entire fraction to the simple expression $1+u-v$, with no remaining denominator at all.

  1. Substitute $u=\sqrt x$.
  2. Rationalize by the conjugate $1+u-\sqrt{1+u^2}$.
  3. Integrate the simplified expression.
  4. Back-substitute.

Step 1 · Substitute

Let $u=\sqrt x$, so $x=u^2$, $dx=2u\,du$, and $\sqrt{1+x}=\sqrt{1+u^2}$:

$$ I = \int\frac{2u\,du}{1+u+\sqrt{1+u^2}}. $$

Step 2 · Rationalize

Multiplying numerator and denominator by $1+u-\sqrt{1+u^2}$, and using $(1+u)^2-\left(1+u^2\right)=2u$:

$$ \frac{2u}{1+u+\sqrt{1+u^2}} = \frac{2u\left(1+u-\sqrt{1+u^2}\right)}{(1+u)^2-\left(1+u^2\right)} = \frac{2u\left(1+u-\sqrt{1+u^2}\right)}{2u} = 1+u-\sqrt{1+u^2}. $$

The denominator vanishes entirely — the integrand becomes a simple algebraic expression with no fraction at all.

Step 3 · Integrate

Using $\displaystyle\int\sqrt{1+u^2}\,du = \frac u2\sqrt{1+u^2}+\frac12\ln\left(u+\sqrt{1+u^2}\right)$:

$$ I = \int\left(1+u-\sqrt{1+u^2}\right)du = u + \frac{u^2}2 - \frac u2\sqrt{1+u^2} - \frac12\ln\left(u+\sqrt{1+u^2}\right) + C. $$

Step 4 · Back-substitute

$$ I = \sqrt x + \frac x2 - \frac{\sqrt x}2\sqrt{1+x} - \frac12\ln\left(\sqrt x+\sqrt{1+x}\right) + C. $$


Summary Table

PieceAntiderivative
$1+u$$u+u^2/2$
$-\sqrt{1+u^2}$$-\tfrac u2\sqrt{1+u^2}-\tfrac12\ln\left(u+\sqrt{1+u^2}\right)$

Additional Notes

Result

The solution to the integral is:

$$ I = \sqrt x + \frac x2 - \frac{\sqrt{x(1+x)}}2 - \frac12\ln\left(\sqrt x+\sqrt{1+x}\right) + C. $$