Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Please guide me:

$y' + ay +b = 0$ ($a$ not zero) is supposed to be separable and has solution

$y = ce^{-ax} - \frac ba$

Here is my start to this problem:

$\frac{dy}{dx} + ay = -b$ is as far as I can go with this. How should I go about separating $x$ and

share|cite|improve this question
up vote 8 down vote accepted

$\dfrac{dy}{dx} +ay+b = 0$

$\dfrac{dy}{dx} = -ay-b$

$\dfrac{dy}{ay+b} = -dx$

Now, can you solve this?

share|cite|improve this answer
Yes that makes perfect sense and yes I can solve this. The integral on left is a natural logarithm. Thank you so much. – Jules Manson Jun 26 '14 at 4:52

You want to rewrite the equation in the form $f(y)dy=g(x)dx$. There is no need to isolate the constant, as it can be considered a function of $y$ (a constant function). Hint: $g(x)=1$

share|cite|improve this answer
Of course now I see it. Thank you for your help. – Jules Manson Nov 25 '14 at 17:29

We can take the differential equation $$y' + ay +b = 0$$ and write $$y'+ay = -b$$ then multiply by $e^{ax}$: $$e^{ax}y'+ae^{ax}y = -5 e^{ax}$$

Now the term on the left becomes $$(ye^{ax})' = -5 e^{ax}.$$ Next antidifferentiate and solve for $y$.

share|cite|improve this answer
I like this alternative way to solve this. – Jules Manson Jun 26 '14 at 7:25
Thank you :) It is a favorite approach of mine. – Joel Jun 26 '14 at 13:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.