Need Help With a Separable Differential Equation

In summary, the differential equation can be solved using Wolfram if the initial value is known. However, when attempting to solve for the initial value, it is important to make sure that the function is defined at the given condition.
  • #1
cklabyrinth
7
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:

[itex]ty' = y^2 - y[/itex]
[itex]y(1) = \frac{1}{2}[/itex]
[itex]y = ?[/itex]

Homework Equations



n/a

The Attempt at a Solution



[itex]\int \frac{dy}{y(y-1)}\ [/itex] Eq. 1

[itex]\frac{1}{y(y-1)} = \frac{A}{y} + \frac{B}{y-1} [/itex]

[itex]A(y-1) + By = 1 [/itex]
[itex]y = 1 -> B = 1 [/itex]
[itex]y = 0 -> A = -1 [/itex]

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

However, Wolfram tells me that the answer is actually:

[itex]ln|\frac{1-y}{y}| + c[/itex]

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

[itex]y = \frac{1}{t + 1} (c = 0)[/itex]

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

[itex]y = \frac{1}{1 - t}[/itex]


How am I solving the partial fractions problem incorrectly?

Thanks.
 
Physics news on Phys.org
  • #2
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:

[itex]ty' = y^2 - y[/itex]
[itex]y(1) = \frac{1}{2}[/itex]
[itex]y = ?[/itex]

Homework Equations



n/a

The Attempt at a Solution



[itex]\int \frac{dy}{y(y-1)}\ [/itex] Eq. 1

[itex]\frac{1}{y(y-1)} = \frac{A}{y} + \frac{B}{y-1} [/itex]

[itex]A(y-1) + By = 1 [/itex]
[itex]y = 1 -> B = 1 [/itex]
[itex]y = 0 -> A = -1 [/itex]

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

However, Wolfram tells me that the answer is actually:

[itex]ln|\frac{1-y}{y}| + c[/itex]

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

[itex]y = \frac{1}{t + 1} (c = 0)[/itex]

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

[itex]y = \frac{1}{1 - t}[/itex]


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 [itex]y = \frac{1}{1 - t}[/itex] isn't even defined at ##t=1##. So something definitely went wrong somewhere.
 
  • #3
Good point that my answer isn't even defined there.

I end up with:

[itex]ln|t| = ln|\frac{y-1}{y}| + c[/itex]

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

[itex]|t| = |\frac{y-1}{y}|[/itex]

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.

[itex]t = \frac{y-1}{y}[/itex]
[itex]t = -(\frac{y-1}{y})[/itex]

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.
 
  • #4
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.
 
  • #5
That's a neat trick. So basically, my equation

[itex]ln|t| = ln|\frac{y-1}{y}| + c[/itex]

turns into

[itex]ln|t| + b = ln|\frac{y-1}{y}| [/itex] 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.
 

Related to Need Help With a Separable Differential Equation

1. What is a separable differential equation?

A separable differential equation is a type of differential equation that can be written in the form of y' = f(x)g(y), where y is the dependent variable and x is the independent variable. This means that the equation can be separated into two functions, f(x) and g(y), each involving only one variable.

2. How do I solve a separable differential equation?

To solve a separable differential equation, you need to separate the variables and then integrate both sides of the equation. This will result in a general solution, which may include a constant of integration. To find the particular solution, you will need to use the initial conditions or boundary values provided in the problem.

3. What are initial conditions and boundary values?

Initial conditions are the values of the dependent variable and its derivative at a given point, usually denoted as x = xo. Boundary values, on the other hand, are the values of the dependent variable at the endpoints of the interval, usually denoted as x = a and x = b. These values are used to find the particular solution of a separable differential equation.

4. Can a separable differential equation have more than one solution?

Yes, a separable differential equation can have infinitely many solutions. This is because the equation contains an arbitrary constant, which can take on any value. To find the unique solution, you will need to use the initial conditions or boundary values provided in the problem.

5. What are some real-life applications of separable differential equations?

Separable differential equations are commonly used in physics, engineering, and economics to model various phenomena. Some examples include population growth, radioactive decay, mixing of solutions, and heat transfer. They are also used in the field of mathematics to solve more complex differential equations.

Similar threads

  • Calculus and Beyond Homework Help
Replies
6
Views
592
  • Calculus and Beyond Homework Help
Replies
6
Views
808
  • Calculus and Beyond Homework Help
Replies
21
Views
905
  • Calculus and Beyond Homework Help
Replies
5
Views
348
  • Calculus and Beyond Homework Help
Replies
4
Views
739
  • Calculus and Beyond Homework Help
Replies
3
Views
403
  • Calculus and Beyond Homework Help
Replies
18
Views
1K
  • Calculus and Beyond Homework Help
Replies
13
Views
379
  • Calculus and Beyond Homework Help
Replies
6
Views
900
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
Back
Top