- #1
kostoglotov
- 234
- 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
[tex]\frac{dx}{dt} = k(a-x)(b-x)[/tex]
[tex]\int \frac{1}{(a-x)(b-x)} dx = k \int dt[/tex]
Use partial fraction decomposition on LHS
[tex]\frac{1}{(a-x)(b-x)} = \frac{A}{a-x}+\frac{B}{b-x}[/tex]
[tex]A(b-x) + B(a-x) = 1[/tex]
Let x = b
[tex]B(a-b) = 1 \ \ B = \frac{1}{a-b}[/tex]
Let x = a
[tex]A(b-a) = 1 \ \ A = \frac{1}{b-a} = \frac{-1}{a-b}[/tex]
[tex]\int \frac{1}{(a-x)(b-x)} dx = \int \frac{1}{(a-b)(b-x))} - \frac{1}{(a-b)(a-x)} dx[/tex]
[tex] = \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)[/tex]
[tex]\ln{\frac{|a-x|}{|b-x|}} = (a-b)k(t+C)[/tex]
[tex]\frac{|a-x|}{|b-x|} = e^{(a-b)kC}e^{(a-b)kt}[/tex]
Now let's skip a few steps and get
[tex]\frac{a-x}{b-x} = Ke^{(a-b)kt}[/tex]
already here I can see problems with part (b), as when a = b, [itex]\frac{a-x}{b-x} = K[/itex]
But if we carry on with some algebra from the last step I arrive at
[tex]x(t) = \frac{bKe^{(a-b)kt}-a}{Ke^{(a-b)kt}-1}[/tex]
and if x(0) = 0 then
[tex]K = \frac{a}{b}[/tex]
and then
[tex]x(t) = \frac{a(e^{(a-b)kt}-1)}{\frac{a}{b}e^{(a-b)kt}-1}[/tex]
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 [itex]a \neq b[/itex]?