Exercise 21
Not cross-checked
This solution has not been cross-checked against the answer printed in NCERT.
NCERT’s answer
\(\displaystyle \sqrt{x^{2}+2 x+3}+\log \left|x+1+\sqrt{x^{2}+2 x+3}\right|+\mathrm{C}\)
Split the numerator against \(\displaystyle \frac{d}{dx}\left(x^{2}+2x+3\right)=2x+2\):
\[x+2=\frac{1}{2}(2x+2)+1\]
\[\int \frac{x+2}{\sqrt{x^{2}+2x+3}}\,dx=\frac{1}{2}\int \frac{2x+2}{\sqrt{x^{2}+2x+3}}\,dx+\int \frac{dx}{\sqrt{x^{2}+2x+3}}\]
First part: with \(\displaystyle u=x^{2}+2x+3\), \(\displaystyle du=(2x+2)\,dx\), it is \(\displaystyle \frac{1}{2}\cdot 2\sqrt{u}=\sqrt{x^{2}+2x+3}\).Second part: complete the square, \(\displaystyle x^{2}+2x+3=(x+1)^{2}+\left(\sqrt{2}\right)^{2}\), so
\[\int \frac{dx}{\sqrt{(x+1)^{2}+2}}=\log\left|(x+1)+\sqrt{x^{2}+2x+3}\right|\]
Therefore
\[\int \frac{x+2}{\sqrt{x^{2}+2x+3}}\,dx=\sqrt{x^{2}+2x+3}+\log\left|(x+1)+\sqrt{x^{2}+2x+3}\right|+\mathrm{C}\]