# Solve the Differential Equation (x^2+1)y'=xy

In this tutorial we shall solve a differential equation of the form $\left( {{x^2} + 1} \right)y' = xy$ by using the separating the variables method.

The differential equation of the form is given as

This differential equation can also be written as

Separating the variables, the given differential equation can be written as

Keep in mind that in the separating variable technique the terms $dy$ and $dx$ are placed in the numerator with their respective variables.

Now integrating both sides of the equation (i), we have

Using the formulas of integration $\int {\frac{{f'\left( x \right)}}{{f\left( x \right)}}dx = \ln f\left( x \right)}$ and $\int {\frac{1}{x}dx = \ln x}$, we get

This is the required solution of the given differential equation.