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:
 
TL;DR Summary: I came across this question from a Sri Lankan A-level textbook. Question - An ice cube with a length of 10 cm is immersed in water at 0 °C. An observer observes the ice cube from the water, and it seems to be 7.75 cm long. If the refractive index of water is 4/3, find the height of the ice cube immersed in the water. I could not understand how the apparent height of the ice cube in the water depends on the height of the ice cube immersed in the water. Does anyone have an...
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}...
Back
Top