Solution:
To solve (1) we will use following formula
General solution for the differential equation in the form of
The general solution is given by,
Where integrating factor,
Dividing the above equation by ,
Comparing (2) with
We get, and
Therefore, integrating factor is
General solution is