Seperation of Variables/Integrating Factor Method

  • Thread starter Thread starter _N3WTON_
  • Start date Start date
  • Tags Tags
    Method
Click For Summary

Homework Help Overview

The discussion revolves around solving a first-order linear differential equation of the form dy/dx + ay = b, where a and b are constants. Participants are exploring two methods: the integrating factor method and separation of variables, aiming to verify that both approaches yield the same solution.

Discussion Character

  • Mixed

Approaches and Questions Raised

  • Participants describe their attempts to solve the equation using both methods, expressing uncertainty about equating the solutions obtained. One participant highlights a potential blunder in the separation of variables approach and questions the validity of their steps.

Discussion Status

The discussion is ongoing, with participants providing insights into their reasoning and questioning specific steps in the methods used. One participant has acknowledged a misunderstanding and expressed gratitude for clarification, indicating a productive exchange of ideas.

Contextual Notes

There is a mention of a preference for expressing terms in a certain form (e^{-ax}) for ease of differentiation and integration. Additionally, participants are navigating the implications of their assumptions and the correctness of their mathematical manipulations.

_N3WTON_
Messages
350
Reaction score
3

Homework Statement


The first order linear equation of the form:
\frac{dy}{dx} + ay = b
where a and b are constants, can be solved both by the integrating factor method and by separation of variables. Solve the equation using both methods to see that you get the same solution.



Homework Equations


Separation of variables and Integrating factor equations

The Attempt at a Solution


I am 80% sure that I have correctly found the solution using both methods; however, I am having trouble equating the two solutions. This is what I have done so far, first I will show using the integrating factor method, followed by separation of variables:
p(x) = a
u(x) = e^{ax}
\frac{d}{dx}(e^{ax} y(x)) = be^{ax}
\int\frac{d}{dx}(e^{ax} y(x))\,dx = \int be^{ax}\, dx
e^{ax} y(x) = abe^{ax} + C
y(x) = ab + \frac{C}{e^ax}
Now again using the separation of variables method:
\frac{dy}{dx} = b-ay
\frac{dy}{y} = (b-a)dx
\int\frac{dy}{y} = \int b-a\, dx
ln(y) = bx - ax + C
y = e^{bx} - e^{ax} + e^C
 
Physics news on Phys.org
(b-ay)/y =b/y -a
 
_N3WTON_ said:

Homework Statement


The first order linear equation of the form:
\frac{dy}{dx} + ay = b
where a and b are constants, can be solved both by the integrating factor method and by separation of variables. Solve the equation using both methods to see that you get the same solution.



Homework Equations


Separation of variables and Integrating factor equations

The Attempt at a Solution


I am 80% sure that I have correctly found the solution using both methods; however, I am having trouble equating the two solutions. This is what I have done so far, first I will show using the integrating factor method, followed by separation of variables:
p(x) = a
u(x) = e^{ax}
\frac{d}{dx}(e^{ax} y(x)) = be^{ax}
\int\frac{d}{dx}(e^{ax} y(x))\,dx = \int be^{ax}\, dx
e^{ax} y(x) = abe^{ax} + C
y(x) = ab + \frac{C}{e^ax}
Now again using the separation of variables method:
\frac{dy}{dx} = b-ay
\frac{dy}{y} = (b-a)dx
\int\frac{dy}{y} = \int b-a\, dx
ln(y) = bx - ax + C
y = e^{bx} - e^{ax} + e^C

Never write ##1/e^{ax}##; always write it as ##e^{-ax}##, because that way you can apply standard differentiation/integration formulas.

Your second method has an obvious blunder: from
\frac{dy}{dx} = b-ay
it dos NOT follow that
\frac{dy}{y} = (b-a)dx \: \longleftarrow \:\text{false}
 
Ray Vickson said:
Never write ##1/e^{ax}##; always write it as ##e^{-ax}##, because that way you can apply standard differentiation/integration formulas.

Your second method has an obvious blunder: from
\frac{dy}{dx} = b-ay
it dos NOT follow that
\frac{dy}{y} = (b-a)dx \: \longleftarrow \:\text{false}
im a little confused about what is wrong with the separation I performed?
Edit: Nvm I see it now, thank you
 
Last edited:

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
19
Views
3K
Replies
4
Views
2K
Replies
7
Views
2K
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K