I am trying to solve the ODE $y'-axy=b$, where $a$ and $b$ are constants. For $b=0$, the eqn is separable, but for $b\ne 0$ I tried to use an integrating factor of $I=\exp (-ax^2/2)$. This leaves me with $y\exp (-ax^2/2) = \int \exp (-ax^2/2) dx + C$. I cannot evaluate the integral on the RHS analytically.
Is there another applicable method that will solve the original ODE in closed form?
Let $$\mu(x)=e^{\int-axdx}=e^{-ax^2/2}$$ then
$$e^{-ax^2/2}\frac{dy(x)}{dx}-\left(ae^{-ax^2/2}x \right)y(x)=be^{-ax^2/2}$$
$$\frac{d}{dx}\left(e^{-ax^2/2}y(x)\right)=be^{-ax^2/2}$$ $$\int \frac{d}{dx}\left(e^{-ax^2/2}y(x)\right)dx=\int be^{-ax^2/2}dx$$ so
$$e^{-ax^2/2}y(x)=\frac{b\sqrt{\pi/2}erf(\frac{\sqrt{ax}}{\sqrt{2}})}{\sqrt{a}}+C_1$$