How to solve : dT/dt = k(T-Tm)... T(0) = To... k,Tm,&To are constants
I would like to try to solve this using Maple software, but not sure what the steps are. If not with Maple just showing the steps would be a great help.
Thanks
![]() |
How to solve : dT/dt = k(T-Tm)... T(0) = To... k,Tm,&To are constants
I would like to try to solve this using Maple software, but not sure what the steps are. If not with Maple just showing the steps would be a great help.
Thanks
Is that what you are asking for?
Then, to solve this, divide by (T - Tm) and multiply by dt, on both sides, adding the integration sign:
When t = 0, T = To
When t = t, T = T.
Hence:
Can you complete it?
I'm not sure how to go about the limits(?)... T -> To & t -> 0
I'm not sure what you are asking here... sorry :(
When you evaluate the integral, you get:
And then you can simplify.
First the manual way:
This is a simple linear first-order differential equation. Now we need to find an integrating factor u(t) that satisfies
The answer to that, by inspection is simply
Multiplying your entire equation by u(t), we then get
Now, notice that the entire left side is the derivative of T*u(t):
so
Now we can integrate both sides with respect to t:
,
where C is a constant. This is where your initial conditions come in (to find the value of C).
so
Plugging that back into the solution for T(t), we finally get:
Tadaaah! There's your final solution.
-------------------------------------------------
Now, to do it with Maple I think you'd do the following:
DE1 := diff(T(t), t) = k*(T(t) - Tm);
dsolve ( { DE1, T(0) = T0 }, T(t) );
Does it give you the same answer? My differential equations are almost as rusty as my Maple skills. :)
In this case it's significantly more complicated than that because T is a function, not a variable. The goal here is not to find the value of T, but rather to find the function T(t) which satisfies the differential equation under the condition that T(0) = To.
If you plug in my answer, T(t)=Tm + (To-Tm)exp(kt), you'll find that it does indeed satisfy the differential equation in general, as well as the specified initial condition that T(0) = To.
There's a pretty good primer on solving this type of first-order ODE here: Pauls Online Notes : Differential Equations - Linear Equations
Um... okay. I see what you mean now. I never did those types of differential equations >.<
Thanks for the link! I'll see if I can understand it :)
Hm.. I just read the first example in the site you gave using what I did here and I got the answer, and I then tried that problem, I got the same answer as yours :)
I guess that only when the variables are 'unseparable' that I'll need to use the method of the site you gave me.
I'm starting to get it. I did up to example 5. Example 6 is next! :p
Paul's site is pretty awesome, isn't it? He's got everything on there from basic algebra up through partial differential equations.
Like I said, I'm guessing by the end of the day you'll know more than he does. :)
All times are GMT -7. The time now is 06:24 AM. |