I am asked to prove the following statement is correct
integral (sqrt(a^2+x^2))/x dx = sqrt(a^2+x^2)-a log(a (sqrt(a^2+x^2)+a))+ C
x = atanθ
dx = (asecθ)^2
tan^2+1 = sec^2
The Attempt at a Solution
got down to a (sec^2 θ a(√sec^2)dθ)/atanθ
I plugged into wolfram and immediately got something involving csc in the steps and im not sure where it came from. Just beginning these trig substitutions in class.