First order ordinary differential equation

In summary: It should be T = 27e^{-kt} - 7In summary, the problem involves finding the temperature of mercury (T_{Hg}) after a certain amount of time (t). The equation for this involves various constants such as h, A, m_{Hg}, C_{p,Hg}, and T_{air}. The solution involves using initial conditions and substituting values to solve for T_{Hg}(t=590).
  • #1
KillerZ
116
0

Homework Statement



I haven't done ODEs in a few years and I am trying to do this equation:

[itex]m_{Hg}C_{p,Hg}\frac{dT_{Hg}}{dt} = Q[/itex]

[itex]Q = hA(T_{air} - T_{Hg})[/itex]

[itex]T_{Hg}(t = 0) = 20[/itex]

I need to find [itex]T_{Hg}(t=590)[/itex]

Homework Equations



The Attempt at a Solution



[itex]h, A, m_{Hg}, C_{p,Hg}, T_{air}[/itex] are all constants

[itex]\frac{dT_{Hg}}{dt} = \frac{hA(T_{air} - T_{Hg})}{m_{Hg}C_{p,Hg}}[/itex]

[itex]\frac{m_{Hg}C_{p,Hg}}{hA(T_{air} - T_{Hg})} dT_{Hg} = dt[/itex]

[itex]\int\frac{m_{Hg}C_{p,Hg}}{hA(T_{air} - T_{Hg})} dT_{Hg} = \int dt[/itex]

[itex]\frac{-m_{Hg}C_{p,Hg}}{hA}\int\frac{1}{(-T_{air} + T_{Hg})} dT_{Hg} = \int dt[/itex]

[itex]\frac{-m_{Hg}C_{p,Hg}}{hA} ln|T_{Hg} - T_{air}| = t + c[/itex]

[itex]ln|T_{Hg} - T_{air}| = \frac{t + c}{\frac{-m_{Hg}C_{p,Hg}}{hA}}[/itex]

[itex]T_{Hg} - T_{air} = e^{t/\frac{-m_{Hg}C_{p,Hg}}{hA}}e^{c/\frac{-m_{Hg}C_{p,Hg}}{hA}}[/itex]

[itex]e^{c/\frac{-m_{Hg}C_{p,Hg}}{hA}} = c[/itex]

[itex]T_{Hg} - T_{air} = ce^{t/\frac{-m_{Hg}C_{p,Hg}}{hA}}[/itex]

[itex]T_{Hg} = ce^{t/\frac{-m_{Hg}C_{p,Hg}}{hA}} + T_{air}[/itex]

[itex]T_{Hg}(t = 0) = 20[/itex]

[itex]T_{air} = -7[/itex]

[itex]h = 3.9[/itex]

[itex]A = 0.00176[/itex]

[itex]C_{p,HG} = 139.0908[/itex]

[itex]m_{Hg} = 0.05[/itex]

[itex]20 = ce^{0/\frac{-(0.05)(139.0908)}{(3.9)(0.00176)}} + (-7)[/itex]

[itex]c = 27[/itex]

[itex]T_{Hg} = 27e^{t/\frac{-m_{Hg}C_{p,Hg}}{hA}} + T_{air}[/itex]

[itex]T_{Hg}(t=590)[/itex]

[itex]T_{Hg}(t=590) = 27e^{590/\frac{-(0.05)(139.0908)}{(3.9)(0.00176)}} + (-7)[/itex]

[itex]T_{Hg}(t=590) = 8.0822[/itex]
 
Physics news on Phys.org
  • #2
Man, you must like typing subscripts. Why not call your dependent variable T and write the equation in the form

[tex]\frac{dT}{dt} = k(T_a - T)[/tex]

in the first place and put the constants in for k at the end? It would be much easier to read, not to mention typing it all in. Anyway, it looks like you solved it OK, with the caveat that I didn't check all the details.
 
  • #3
I think you made an error in using your initial condition (using the notation of LCKurtz) you had:
[tex]
-\ln |T_{a}-T|=kt+c
[/tex]
Now if [itex]T(0)=T_{0}[/itex], then I would use that at this point here to tell you that [itex]-\ln |T_{a}-T_{0}|=c[/itex] and your equation becomes:
[tex]
-\ln |T_{a}-T|=kt-\ln |T_{a}-T_{0}|
[/tex]
From here I think it is just algebra to obtain the correct answer.
 
  • #4
LCKurtz said:
Man, you must like typing subscripts. Why not call your dependent variable T and write the equation in the form

[tex]\frac{dT}{dt} = k(T_a - T)[/tex]

in the first place and put the constants in for k at the end? It would be much easier to read, not to mention typing it all in. Anyway, it looks like you solved it OK, with the caveat that I didn't check all the details.

OK doing it with the substitutions:

[itex]k = \frac{hA}{m_{Hg}C_{p,Hg}}[/itex]

and

[itex] T = T_{Hg}[/itex]

[itex]\frac{dT}{dt} = k(T_a - T)[/itex]

[itex]\frac{1}{k(T_a - T)}dT = dt[/itex]

[itex]\frac{-1}{k}\int\frac{1}{(-T_a + T)}dT = \int dt[/itex]

[itex]\frac{-1}{k}ln|-T_a + T| = t + c[/itex]

[itex]ln|-T_a + T| = -kt + c[/itex]

[itex]-T_a + T = e^{-kt + c}[/itex]

[itex]T = ce^{-kt} + T_a[/itex]

Then initial conditions T(t=0) = 20

[itex]20 = ce^{-k(0)} + (-7)[/itex]

[itex]27 = c[/itex]

[itex]T = 27e^{-kt} + T_a[/itex]
 
Last edited:
  • #5
This line is incorrect:
[tex]
T=ce^{-kt}+T_{a}
[/tex]
 

FAQ: First order ordinary differential equation

What is a first order ordinary differential equation?

A first order ordinary differential equation is a mathematical equation that relates the derivative of an unknown function to the function itself. It involves only one independent variable and the highest derivative is of first order.

What are the applications of first order ordinary differential equations?

First order ordinary differential equations are used to model a wide range of physical phenomena in fields such as physics, engineering, chemistry, biology, and economics. They are particularly useful in understanding rates of change, growth and decay, and motion.

How do you solve a first order ordinary differential equation?

The general solution of a first order ordinary differential equation can be found by separating the variables and integrating both sides. If given initial conditions, the particular solution can be found by substituting the values into the general solution.

What is the difference between an initial value problem and a boundary value problem in first order ordinary differential equations?

An initial value problem involves finding the unknown function at a given initial point, while a boundary value problem involves finding the unknown function at multiple points. The solution to an initial value problem is unique, while the solution to a boundary value problem may have multiple solutions.

What is the significance of first order ordinary differential equations in mathematical modeling?

First order ordinary differential equations are fundamental in mathematical modeling as they provide a simple and effective way to describe real-world phenomena and predict their behavior. They can be used to analyze and solve complex problems in various fields and provide insights into the underlying principles governing the systems being modeled.

Back
Top