Solving an Initial Value Problem for x(t=ln2): Step-by-Step Solution

Click For Summary

Homework Help Overview

The discussion revolves around solving an initial value problem defined by the differential equation \(\frac{dx}{dt} = x(2-x)\) with the initial condition \(x(0) = 1\), specifically for the value of \(x\) at \(t = \ln 2\).

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants describe their attempts to separate variables and integrate the equation. There are discussions about the manipulation of logarithmic expressions and the implications of constants introduced during the integration process. Some participants question the validity of certain steps and the treatment of absolute values in the equations.

Discussion Status

Several participants have provided insights and alternative perspectives on the integration steps and the handling of constants. There is a recognition of potential issues with assumptions made during the process, particularly regarding the nature of the constant \(C\). A participant reports a successful resolution to the problem, indicating that a viable approach has been identified.

Contextual Notes

Participants note the importance of correctly applying logarithmic identities and the potential complexity introduced by the absolute value signs in the equations. There is also mention of the need to ensure that the derived expressions remain valid under the initial conditions provided.

Drakkith
Mentor
Messages
23,205
Reaction score
7,687

Homework Statement


Solve the initial value problem:
##\frac{dx}{dt} = x(2-x)##, ##x(0) = 1##
for ##x(t=ln2)##.

Homework Equations

The Attempt at a Solution



I moved the right side to the left and multiplied both sides by dt to get:
##\frac{dx}{x(2-x)} = dt##

Integrating gave me:
##\frac{ln|x|}{2} - \frac{ln|x-2|}{2} = t+C##

Then:
##ln|x| - ln|x-2| = 2t + 2C##
##ln|\frac{x}{x-2}| = 2t + 2C##
##\frac{x}{x-2} = e^{2t}e^{2c}##
##\frac{1}{1-\frac{2}{x}} = Ke^{2t}##

Manipulating for a while, I end up with:
##x=\frac{2}{Ke^{2t}}##

Since ##x(0) = 1##, I set the left side to 1 and solve for K, winding up with ##k=3##.
However, when trying to solve for ##x(ln2)## I end up with ##\frac{2}{11}##, which isn't one of my possible answers.

Does my process look even remotely correct?
 
Physics news on Phys.org
Drakkith said:

Homework Statement


Solve the initial value problem:
##\frac{dx}{dt} = x(2-x)##, ##x(0) = 1##
for ##x(t=ln2)##.

Homework Equations

The Attempt at a Solution



I moved the right side to the left and multiplied both sides by dt to get:
##\frac{dx}{x(2-x)} = dt##

Integrating gave me:
##\frac{ln|x|}{2} - \frac{ln|x-2|}{2} = t+C##

Then:
##ln|x| - ln|x-2| = 2t + 2C##
##ln|\frac{x}{x-2}| = 2t + 2C##
##\frac{x}{x-2} = e^{2t}e^{2c}##
##\frac{1}{1-\frac{2}{x}} = Ke^{2t}##
So you could say ##\frac x {x-2} = Ke^{2t}## Put ##t=0,~x=1## there to get ##\frac x {x-2} = -e^{2t}##. Now put ##t=\ln 2## in that, then solve for ##x##. See if that fixes it.
 
  • Like
Likes   Reactions: Drakkith
Drakkith said:

Homework Statement



****************.

##ln|x| - ln|x-2| = 2t + 2C##
##ln|\frac{x}{x-2}| = 2t + 2C##
##\frac{x}{x-2} = e^{2t}e^{2c}##
##\frac{1}{1-\frac{2}{x}} = Ke^{2t}##

For ##t## near 0 you have ##x## near 1, and so ##x/(x-2) = e^{2C} e^{2t}## is impossible unless you let ##C## be a complex number. However, ##\ln(|x|/|x-2|) = \ln(x/(2-x))##, and so having ##x/(2-x) = e^{2C} e^{2t}## is OK. Of course, when you re-wrote ##e^{2C}## as ##K## and then forgot the origin of ##K##, you were then able to have a valid formula!
 
  • Like
Likes   Reactions: Drakkith
Drakkith said:
##ln|\frac{x}{x-2}| = 2t + 2C##
##\frac{x}{x-2} = e^{2t}e^{2c}##
##\frac{1}{1-\frac{2}{x}} = Ke^{2t}##

Ray Vickson said:
For ##t## near 0 you have ##x## near 1, and so ##x/(x-2) = e^{2C} e^{2t}## is impossible unless you let ##C## be a complex number. However, ##\ln(|x|/|x-2|) = \ln(x/(2-x))##, and so having ##x/(2-x) = e^{2C} e^{2t}## is OK. Of course, when you re-wrote ##e^{2C}## as ##K## and then forgot the origin of ##K##, you were then able to have a valid formula!

@Drakkith: Ray is quite correct and I didn't notice you had been sloppy with the absolute value signs. A better way for you to have written it would be like this:$$
ln\left | \frac{x}{x-2}\right | = 2t + 2C$$ $$
\left|\frac{x}{x-2}\right | =e^{2t + 2C}=e^{2C}e^{2t}$$ $$
\frac{x}{x-2} =\pm e^{2C}e^{2t} = Ke^{2t}$$
 
  • Like
Likes   Reactions: Drakkith
LCKurtz said:
So you could say ##\frac x {x-2} = Ke^{2t}## Put ##t=0,~x=1## there to get ##\frac x {x-2} = -e^{2t}##. Now put ##t=\ln 2## in that, then solve for ##x##. See if that fixes it.

Yes, that seemed to work. I got x=8/5, which is one of the possible answers. Thanks guys!
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
3K
Replies
5
Views
3K
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 15 ·
Replies
15
Views
2K
Replies
4
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K