Give integral I = $\int{\sqrt{x^2+a}}dx$
Using the U substitution, solution of integral is as follows.
u = $\sqrt{x^2+a}$
du= $\frac{x}{\sqrt{x^2+a}}$
dv = dx
v = x
I am trying to understand how the give steps below have been simplified
I = $x\times\sqrt{x^2+a}$ -$\int{\frac{x^2}{\sqrt{x^2+a}}}dx$ =
= $x\times\sqrt{x^2+a}$ -$\int{\frac{(x^2+a)-a}{\sqrt{x^2+a}}}dx$=
= $x\times\sqrt{x^2+a}$ - $\int{\sqrt{x^2+a}}dx$ + $a\times\int{\frac{1}{\sqrt{x^2+a}}}dx$=
= $x\times\sqrt{x^2+a}-I $ + $a\times\ln{|x+\sqrt{x^2+a}|}$
I was trying to make sense of following steps but i couldn't, how can we simplify the following part of integral from $\int{\frac{(x^2+a)-a}{\sqrt{x^2+a}}}dx$ to $\int{\sqrt{x^2+a}}dx$ + $a\times\int{\frac{1}{\sqrt{x^2+a}}}dx$