Simple Linear DiffEq, not understanding the book

Click For Summary
The discussion focuses on solving a separable linear differential equation and highlights a discrepancy between the user's solution and the textbook's method. The user initially derives an expression for x(t) but questions the book's approach of integrating the x-side from a specific point. A participant clarifies that the constant C can be manipulated, emphasizing the importance of maintaining algebraic rules. This realization helps the user understand the correct application of constants in their solution. The conversation concludes with the user expressing gratitude for the clarification as they refresh their knowledge for a new job in Control Systems Engineering.
Feodalherren
Messages
604
Reaction score
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.
 
Physics news on Phys.org
Your solution for x(t) is wrong. If <br /> t = -\tfrac12 \ln(20 - 2x) + C then <br /> \ln(20 - 2x) = 2(C - t) and exponentiating gives <br /> 20 - 2x = e^{2C}e^{-2t}. Try again from here.
 
  • Like
Likes Feodalherren
Ah, of course! Thank you very much.

I vaguely remembered from my DiffEq class that you can 'play around' with C because it's just some constant. But of course you can't just ignore the algebraic rules for it, duh! Once I saw what you did with e^2C I remembered what 'play around with C' means i.e in this case it's still just some constant so call e^2C = C1 and forget about the exponents and other clutter.
I haven't seen a differential equation in quite some time but I got a new job as a Control Systems Engineer so I'm going through my textbook to try to refresh my memory on PID controllers.

Thank you!
 
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
3
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K