Understanding the Solution to dx/dt = x(t)(1-x(t)) Differential Equation

  • Thread starter Thread starter Jamin2112
  • Start date Start date
Click For Summary
The discussion focuses on solving the differential equation x' = x(1-x). The initial approach involved separating variables and integrating, but a mistake was identified in the integration of dx/(1-x), which does not equal ln(1-x). After correcting this, the solution was derived as x(t) = 1/[1+(x(0)-1)e^(-t)], indicating that it can be expressed explicitly. Additionally, the discussion touches on the equation cos(x) = e^x, noting that it lacks an algebraic solution and highlighting the presence of infinitely many fixed points in related problems. The conversation emphasizes the importance of correctly applying integration techniques to arrive at valid solutions.
Jamin2112
Messages
973
Reaction score
12

Homework Statement



Where am I going wrong in solving this differential equation?

Homework Equations



x' = x(1-x) is what I'm after

The Attempt at a Solution



Separating variables: dx / [x(1-x)] = dt
Partial fraction decomposition on the left side yields: dx [1/x + 1/(1-x)] = dt.
Integrating both sides with respect to their variable: ln(x) + ln(1-x) = t + C
Simplifying the left side: ln(x(1-x)) = t + C
Raising both sides to the e power: x(1-x)=Ket

Nothing I can really do after this, though. I guess I just define it implicitly like that?
 
Physics news on Phys.org
Another question:

Any idea how I can get a formula for the x for which cos(x)=ex?
 
Jamin2112 said:

Homework Statement



Where am I going wrong in solving this differential equation?

Homework Equations



x' = x(1-x) is what I'm after

The Attempt at a Solution



Separating variables: dx / [x(1-x)] = dt
Partial fraction decomposition on the left side yields: dx [1/x + 1/(1-x)] = dt.
Integrating both sides with respect to their variable: ln(x) + ln(1-x) = t + C
Your mistake is just above.
$$ \int \frac{dx}{1 - x} \neq ln(1 - x)$$


Jamin2112 said:
Simplifying the left side: ln(x(1-x)) = t + C
Raising both sides to the e power: x(1-x)=Ket

Nothing I can really do after this, though. I guess I just define it implicitly like that?
 
Also, if you get x(1 - x) = f(t) you can definitely solve for x -- if you look more closely it's just a quadratic equation.
First correct the error pointed out by Mark though :)

As for your other question cos(x) = ex does not have an algebraic solution.
 
CompuChip said:
Also, if you get x(1 - x) = f(t) you can definitely solve for x -- if you look more closely it's just a quadratic equation.
First correct the error pointed out by Mark though :)

As for your other question cos(x) = ex does not have an algebraic solution.

Ok. Because one of our homework questions was to solve x'(t) = et - cos(t). Someone asked the professor what to do about the fact that there are infinitely many fixed points, and he told us to just deal with x'(0)=0 but to explain how we know there are infinitely many other solutions.
 
Mark44 said:
Your mistake is just above.
$$ \int \frac{dx}{1 - x} \neq ln(1 - x)$$

Ah, I see. :smile:

So then we have

x' = x(1-x)
---> dx / [x(1-x)] = dt
---> dx/x + dx/(1-x) = dt
---> ln(x) - ln(1-x) = t + c
---> ln[x/(1-x)] = t + c
---> x/(1-x) = Cet
---> (1-x)/x = Ke-t
---> 1/x - 1 = Ke-t
---> 1/x = 1 + Ke-t
---> x(t) = 1/(1+Ke-t)
---> x(0) = 1(1+K), K = x(0)-1
---> x(t) = 1/[1+(X(0)-1)e-t]
 
One way to show it has more than one solution is to show a graph of y= cos(x)- e^x and note that it crosses the x-axis multiple times.
cos-ex.jpeg
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 105 ·
4
Replies
105
Views
6K
Replies
9
Views
2K
Replies
6
Views
2K
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
1K
Replies
7
Views
2K
Replies
5
Views
2K
Replies
12
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K