How can I solve this differential equation with given initial conditions?

AI Thread Summary
The discussion revolves around solving the differential equation \(\frac{dx}{dt}=-\alpha xy\) with the initial condition \(x(0)=x_0\) and \(y=y_0e^{-\beta t}\). The user initially separates variables and integrates but arrives at an incorrect final expression for \(x\). The key mistake identified is the failure to evaluate the time integral at both limits, which is crucial for determining the constant of integration. After clarification, the user realizes the premature inclusion of the \(x_0\) term and corrects their approach. The final solution aligns with the book's answer after properly applying the initial condition.
amcavoy
Messages
663
Reaction score
0
I have the following to solve:

\frac{dx}{dt}=-\alpha xy;\quad y=y_0e^{-\beta t};\quad x(0)=x_0

I separate variables and come up with:

\frac{dx}{x}=-\alpha y_0e^{-\beta t}dt

\ln{x}=-\alpha y_0\int e^{-\beta t}dt=\frac{\alpha y_0}{\beta}e^{-\beta t}+C

...so for a final answer I come up with:

x=x_0\exp{\left(\frac{\alpha y_0}{\beta}e^{-\beta t}\right)}

..however the book says that the answer is:

x=x_0\exp{\left(\frac{-\alpha y_0\left(1-e^{-\beta t}\right)}{\beta}\right)}

I cannot find where I went wrong, any ideas?

Thanks a lot.
 
Physics news on Phys.org
You didn't evaluate the time integral at both limits.
 
Good catch. I stared at it for a few minutes and couldn't figure it out.
 
Tide said:
You didn't evaluate the time integral at both limits.

...both limits?
 
You have:

x(t)=K\text{Exp}\left[\frac{\alpha y_0}{\beta}e^{-\beta t}\right]

with:

x(0)=x_0

Now, carefully substitute that initial value into the equation to solve for K.
 
saltydog said:
You have:

x(t)=K\text{Exp}\left[\frac{\alpha y_0}{\beta}e^{-\beta t}\right]

with:

x(0)=x_0

Now, carefully substitute that initial value into the equation to solve for K.

Ahh, I must have put the x0 term there prematurely. Thanks for the help everyone, I have it now. :smile:
 
Thread 'Variable mass system : water sprayed into a moving container'
Starting with the mass considerations #m(t)# is mass of water #M_{c}# mass of container and #M(t)# mass of total system $$M(t) = M_{C} + m(t)$$ $$\Rightarrow \frac{dM(t)}{dt} = \frac{dm(t)}{dt}$$ $$P_i = Mv + u \, dm$$ $$P_f = (M + dm)(v + dv)$$ $$\Delta P = M \, dv + (v - u) \, dm$$ $$F = \frac{dP}{dt} = M \frac{dv}{dt} + (v - u) \frac{dm}{dt}$$ $$F = u \frac{dm}{dt} = \rho A u^2$$ from conservation of momentum , the cannon recoils with the same force which it applies. $$\quad \frac{dm}{dt}...
I was thinking using 2 purple mattress samples, and taping them together, I do want other ideas though, the main guidelines are; Must have a volume LESS than 1600 cubic centimeters, and CAN'T exceed 25 cm in ANY direction. Must be LESS than 1 kg. NO parachutes. NO glue or Tape can touch the egg. MUST be able to take egg out in less than 1 minute. Grade A large eggs will be used.
Back
Top