# How do you integrate 2/x?

$\int \frac{2}{x} \mathrm{dx} = 2 \ln \left\mid x \right\mid + C$
You need to know that $\int \frac{1}{x} \mathrm{dx} = \ln | x |$
So, $\int \frac{2}{x} \mathrm{dx} = 2 \ln x + C$, where $C$ is the constant of integration.