Answer
See answer below.
Work Step by Step
The linear first-order differential equations are given by:
$\dfrac{dy}{dx}+P(x) y=Q(x)$
These equations can be solved when we multiply both sides of the above equation by the integrating factor, that is, $I.P.=e^{\int P(x) \ dx }$ and then integrate both sides.