How to solve ode 1st order question

PapayaC

New member
Joined
Jun 18, 2020
Messages
6
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
 
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?
 

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?
Ohhh okay so:

(a/(b-y))dy= dx
a ln(b-y)= x
ln(b-y) = x/a
How do I subject y with the help of e and get rid of b at the same time?
(Also thank you so much for the help)
 
Recall that:

[MATH]\log_a(b)=c[/MATH]
implies:

[MATH]b=a^c[/MATH]
 
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
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.

[MATH]a * \dfrac{dy}{dt} + y = b \implies a * \dfrac{dy}{dt} = b - y \implies \\ a \ dy = (b - y) \ dt \implies a * \dfrac{1}{b - y} \ dy = dt \implies \\ a * \int \ \dfrac{1}{b - y} \ dy = \int dt \implies a * ln|b - y| + c_1 = t + c_2.[/MATH]Now there are quite a few games to play with those constants before taking advantage of latest Mark's hint.

You just said that y is not equal to b. If that is all you know, it might be easier to deal with y > b and y < b as seperate cases.
 
Last edited:
@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.)
 
Ohhh I get it now, thank you so much. It's my first time using this forum and I'm so happy my question was answered so quick. Thank you again
 
@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.)
Oh my bad, it was to find the family not a particular solution so yeah but I'll keep what you said in mind :)
 
Top