Integrate the functions in Exercises 1 to 23.
\(\frac{x+2}{\sqrt{x^2+2x+3}}\)Show solutionHide solution
Complete the square in the quadratic under the square root:
\[ x^2+2x+3=(x+1)^2+2>0. \] So the integrand is defined for every real \(x\). Split the numerator as \[ \frac{x+2}{\sqrt{x^2+2x+3}} =\frac{x+1}{\sqrt{x^2+2x+3}} +\frac{1}{\sqrt{(x+1)^2+2}}. \] For the first part, let \(u=x^2+2x+3\). Then \(du=2(x+1)\,dx\), so \[ \int \frac{x+1}{\sqrt{x^2+2x+3}}\,dx =\sqrt{x^2+2x+3}. \] For the second part, \[ \int \frac{dx}{\sqrt{(x+1)^2+2}} =\ln\left(x+1+\sqrt{x^2+2x+3}\right), \] since the derivative of the logarithm is \[ \frac{1+\frac{x+1}{\sqrt{x^2+2x+3}}}{x+1+\sqrt{x^2+2x+3}} =\frac{1}{\sqrt{x^2+2x+3}}. \] Therefore, \[ \int \frac{x+2}{\sqrt{x^2+2x+3}}\,dx =\sqrt{x^2+2x+3} +\ln\left(x+1+\sqrt{x^2+2x+3}\right)+C. \]A quick derivative check gives \((x+1)/\sqrt{x^2+2x+3}+1/\sqrt{x^2+2x+3}=(x+2)/\sqrt{x^2+2x+3}\), as required.