Need Help With a Separable Differential Equation

Click For Summary

Homework Help Overview

The discussion revolves around solving a separable differential equation involving an initial value problem. The equation presented is ty' = y^2 - y, with the initial condition y(1) = 1/2. Participants are exploring the integration of one side using partial fractions and discussing the implications of their findings.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss the integration of the equation using partial fractions and question the correctness of their intermediate steps. There is a focus on the handling of absolute values and the implications of different forms of the solution.

Discussion Status

Some participants have offered insights into the equivalence of different forms of the logarithmic expressions and the role of the constant of integration. There is recognition of the need to ensure the function remains defined at the initial condition, and the discussion is exploring various interpretations of the results.

Contextual Notes

Participants note that the original solution leads to an undefined expression at t=1, prompting further examination of the assumptions and the nature of the solutions derived from the differential equation.

cklabyrinth
Messages
7
Reaction score
0
Hello. I need some help solving a differential equation. I think where I'm going wrong is integrating one side via partial fractions, but I'm not quite sure where my mistake is. Using Wolfram, I found the correct answer, which is below. Thanks.

Homework Statement


Solve the following initial value problem:

ty' = y^2 - y
y(1) = \frac{1}{2}
y = ?

Homework Equations



n/a

The Attempt at a Solution



\int \frac{dy}{y(y-1)}\ Eq. 1

\frac{1}{y(y-1)} = \frac{A}{y} + \frac{B}{y-1}

A(y-1) + By = 1
y = 1 -> B = 1
y = 0 -> A = -1

So:
\int -\frac{1}{y} + \frac{1}{y-1}dy = ln|y-1|-ln|y| + c = ln|\frac{y-1}{y}| + c

However, Wolfram tells me that the answer is actually:

ln|\frac{1-y}{y}| + c

If I go on to use that in the problem, I get the correct answer for the DE.

y = \frac{1}{t + 1} (c = 0)

With my answer, I get the incorrect overall answer of:

y = \frac{1}{1 - t}


How am I solving the partial fractions problem incorrectly?

Thanks.
 
Physics news on Phys.org
cklabyrinth said:
Hello. I need some help solving a differential equation. I think where I'm going wrong is integrating one side via partial fractions, but I'm not quite sure where my mistake is. Using Wolfram, I found the correct answer, which is below. Thanks.

Homework Statement


Solve the following initial value problem:

ty' = y^2 - y
y(1) = \frac{1}{2}
y = ?

Homework Equations



n/a

The Attempt at a Solution



\int \frac{dy}{y(y-1)}\ Eq. 1

\frac{1}{y(y-1)} = \frac{A}{y} + \frac{B}{y-1}

A(y-1) + By = 1
y = 1 -> B = 1
y = 0 -> A = -1

So:
\int -\frac{1}{y} + \frac{1}{y-1}dy = ln|y-1|-ln|y| + c = ln|\frac{y-1}{y}| + c

However, Wolfram tells me that the answer is actually:

ln|\frac{1-y}{y}| + c

If I go on to use that in the problem, I get the correct answer for the DE.

y = \frac{1}{t + 1} (c = 0)

With my answer, I get the incorrect overall answer of:

y = \frac{1}{1 - t}


How am I solving the partial fractions problem incorrectly?

Thanks.

##|y-1|=|(-1)(1-y)|=|-1||1-y|=|1-y|##, so your intermediate answer is equivalent to Wolfram's.

Without seeing your work, it's impossible to know why your end answer is wrong. But I'm guessing it has something to do with not dealing with the absolute value properly. Or maybe it's just some lazy algebra, considering your answer differs from the correct one by a sign. I would point out that y = \frac{1}{1 - t} isn't even defined at ##t=1##. So something definitely went wrong somewhere.
 
Good point that my answer isn't even defined there.

I end up with:

ln|t| = ln|\frac{y-1}{y}| + c

c ends up being 0 with the initial value, so that simplifies to:

|t| = |\frac{y-1}{y}|

I suppose here is where I need to look at t equal to the positive or negative value of the entire quantity in the right side absolute value.

t = \frac{y-1}{y}
t = -(\frac{y-1}{y})

The second one gives me the correct answer. I guess each time I do this, I just need to make sure that the function is defined at the given condition? There should be no instance where the same initial value has two solutions, right?

Thanks again.
 
There are a few ways to handle this one. My personal favorite is to realize that the original "intermediate" solution is equivalent to $$\ln|Ct|=\ln\left|\frac{y-1}{y}\right|$$. All of the silliness with the absolute values gets "absorbed" by the undetermined constant of integration ##C##, and we get $$Ct=\frac{y-1}{y}$$ Now we can use the initial condition to solve for ##C## and then put ##y## in terms of ##t##. Or do it the other way around. It really doesn't matter at this point.
 
That's a neat trick. So basically, my equation

ln|t| = ln|\frac{y-1}{y}| + c

turns into

ln|t| + b = ln|\frac{y-1}{y}| with b = -c

Then ln|t| + b can be thought of as ln|t| + ln|C|, which is then ln|Ct|. If I'm getting the logic right.

Nice. Thanks for the tip.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
Replies
6
Views
2K
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
3
Views
2K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 5 ·
Replies
5
Views
1K
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K