I'm self learning calculus and I stumbled upon the following integral
$\int \frac{\sqrt{x+1} +1}{\sqrt{x+1} -1}dx$
Wolfram couldn't display the result of solving this integral, but I think I solved it. My questions are:
- Is long division the best way for solving integrals of this type? Are there any rules of thumb for integrals in general?
- Is my solution correct?
My solution:
- Long division $\int \frac{\sqrt{x+1} +1}{\sqrt{x+1} -1}dx = \int{(1 + \frac2{\sqrt{x+1}-1})dx} = x+ 2\int{\frac1{\sqrt{x+1}-1}} dx$
- Substitute $u=\sqrt{x+1}; du=\frac{1}{2\sqrt{x+1}}dx;\\ x+2\int{\frac1{\sqrt{x+1}-1}dx}=x+4\int{\frac u{u-1}}du$
- Long division $x+4\int{\frac u{u-1}}du = x+4\int{(1 + \frac1{u-1})du} = x+4(\sqrt{x+1} +ln(\sqrt{x+1}-1)) + C$