I am reading a calculus book.
There is the following problem with a hint:
Find the following integral $$\int\sqrt{x^2+1} dx.$$ Hint: use the substitution $x+\sqrt{x^2+1}=s$.
I was not able to complete my solution.
My attempt is here:
$s=x+\sqrt{x^2+1}$.
$ds=(1+\frac{x}{\sqrt{x^2+1}})dx=\frac{s}{\sqrt{x^2+1}}dx$.
$dx=\frac{\sqrt{x^2+1}}{s}ds$.
So, $\int\sqrt{x^2+1} dx=\int\frac{x^2+1}{s} ds$.
Please complete my solution.
Hint:
$$\sqrt{x^2+1} = s-x \implies x^2+1 = s^2-2sx+x^2$$
Solve for $x$ and substitute.