kostoglotov
- 231
- 6
Homework Statement
Imgur link: http://i.imgur.com/C1epJzI.png
My issues arise in part (b) but cause me to doubt my solution to part (a) as well.
Homework Equations
The Attempt at a Solution
\frac{dx}{dt} = k(a-x)(b-x)
\int \frac{1}{(a-x)(b-x)} dx = k \int dt
Use partial fraction decomposition on LHS
\frac{1}{(a-x)(b-x)} = \frac{A}{a-x}+\frac{B}{b-x}
A(b-x) + B(a-x) = 1
Let x = b
B(a-b) = 1 \ \ B = \frac{1}{a-b}
Let x = a
A(b-a) = 1 \ \ A = \frac{1}{b-a} = \frac{-1}{a-b}
\int \frac{1}{(a-x)(b-x)} dx = \int \frac{1}{(a-b)(b-x))} - \frac{1}{(a-b)(a-x)} dx
= \frac{1}{a-b} \left[ -\ln{|b-x|} + \ln{|a-x|} \right] = \frac{1}{a-b} \ln{\frac{|a-x|}{|b-x|}} = k(t+C)
\ln{\frac{|a-x|}{|b-x|}} = (a-b)k(t+C)
\frac{|a-x|}{|b-x|} = e^{(a-b)kC}e^{(a-b)kt}
Now let's skip a few steps and get
\frac{a-x}{b-x} = Ke^{(a-b)kt}
already here I can see problems with part (b), as when a = b, \frac{a-x}{b-x} = K
But if we carry on with some algebra from the last step I arrive at
x(t) = \frac{bKe^{(a-b)kt}-a}{Ke^{(a-b)kt}-1}
and if x(0) = 0 then
K = \frac{a}{b}
and then
x(t) = \frac{a(e^{(a-b)kt}-1)}{\frac{a}{b}e^{(a-b)kt}-1}
Now, if a = b x(t) = 0...
Where have I gone wrong?
edit: or is my answer to part (a) correct, and I need to return to the very beginning of the sequence and assume a = b in order to solve (b), thus, the solution to part (a) only holding for the condition that a \neq b?