I would like to ask for some help regarding the following indefinite integral, tried integration by parts and trigonometric substitution which both brought me to $\int\frac{\sec\theta}{\tan\theta}d\theta$, and from this point it is messy to integrate by parts, any help would be appreciated.
$$\int\frac{dx}{x\sqrt{x^2+1}}$$