# Integral of (x^2+1)/x

## Answer

$\frac{1}{2}x^2+\ln\left|x\right|+C_0$

## Step-by-step explanation

Problem to solve:

$\int\frac{x^2+1}{x}dx$

1

Split the fraction $\frac{x^2+1}{x}$ in two terms with same denominator

$\int\left(\frac{x^2}{x}+\frac{1}{x}\right)dx$

2

Simplifying the fraction by $x$

$\int\left(x+\frac{1}{x}\right)dx$

## Answer

$\frac{1}{2}x^2+\ln\left|x\right|+C_0$