- #1
Feodalherren
- 605
- 6
- Homework Statement
- Use separation of variables to solve the following problem for t ≥ 0
- Relevant Equations
- dx/dt + 2x = 20
x(0) = 3
The way I want to solve it is the way that I always want to solve separable linear diffEqs:
after some trivial algebra and an easy integral I end up with
t = (-1/2) ln (20-2x) +C
Easy enough, solve for x(t) yields
x(t) = 10 - (1/2)e^(-2t) + C
Solve for C when x(0) = 3 yields
C = -13/2
But the book does something really weird and integrates the x-side from 3 to x(t) giving them the result
ln(20-2x(t)) - ln(20-2*3) = -2t
finally yielding
x(t) = 10 - 7e^(-2t)
I've never seen it done like this. What am I doing wrong? I feel like my method ought to work and I ought to end up with the same answer.
after some trivial algebra and an easy integral I end up with
t = (-1/2) ln (20-2x) +C
Easy enough, solve for x(t) yields
x(t) = 10 - (1/2)e^(-2t) + C
Solve for C when x(0) = 3 yields
C = -13/2
But the book does something really weird and integrates the x-side from 3 to x(t) giving them the result
ln(20-2x(t)) - ln(20-2*3) = -2t
finally yielding
x(t) = 10 - 7e^(-2t)
I've never seen it done like this. What am I doing wrong? I feel like my method ought to work and I ought to end up with the same answer.