It is a first order, first degree linear differential equation and can be solved by using integrating factor.
Any equation in the form of
y' +p(x)y = q(x) are linear differential equation, where p(x), q(x) are functions of x.