Ohhh okay so:Hello, and welcome to FMH!
It is a separable ODE, but you don't have to treat it as such. However, let's go that route, and write:
[MATH]a\d{y}{x}=b-y[/MATH]
Since we are told \(y\ne b\) we may divide through by \(b-y\) without losing a trivial solution. What do you get when doing that?
As Mark explained, given that a is a non-zero constant and b is a constant not in the range of y, we can determine that we have a separable differential equation and solve appropriately. In terms of looking for separable equations, I like Leibniz notation. But you made two mistakes unless you know that y < b. Absolute value and these are indefinite integrals so there are constants.I have to solve this ode.
ay'+y=b
where a=!0 and y=!b (a not equal to zero and y is not equal to b)
I know I have to separate the variables but I don't know how to do it. I would be really grateful if someone could post the working. Thank you
Oh my bad, it was to find the family not a particular solution so yeah but I'll keep what you said in mind@PapayaC
Something occurred to me. You may not have given us the entire problem. We ask that you give us the entire problem in Read Before Posting, but many do not bother to read that. Not giving the entire problem almost always ends up in delaying our giving useful help.
If you were given, as well you may have, additional information, we may be able to deal with the absolute value complication, the constants issue, or both before they make things too complicated.
In general (always???), the solution to a differential equation is not a function, but a family of functions, and we need additional information to determine which of the family is the answer wanted.
In the future, please provide a complete and exact statement of the problem. (If you did so this time, congratulations, but you will not get a specific function as an answer if that is the way the problem was posed.)