# What is a solution to the differential equation dy/dx=1/x?

Aug 2, 2016

$y = \ln \left(\left\mid x \right\mid\right) + C$

#### Explanation:

Separate the variables:

$\mathrm{dy} = \frac{\mathrm{dx}}{x}$

Integrate both sides:

$\int \mathrm{dy} = \int \frac{\mathrm{dx}}{x} \text{ "=>" } y = \ln \left(\left\mid x \right\mid\right) + C$