How to solve this equation?
1 view (last 30 days)
Show older comments
[EDIT: 20110604 23:41 CDT - reformat - WDR]
hi i`m trying to solve this differential equation
- ds/dt=[Co+U(MΦ)^P]exp(-Q/RT)
ds/dt = oxidation rate [μm/day]
Co = 8.04×10^7 [μm/day]
U = 2.38×10^8 [μm/day]
M = 1.91×10^-15 [cm^2-s/neutron]
Φ = 1.0×10^14 [neutron/cm^2-s]
P = 0.24
Q = 27,354 cal/mol
R = 1.98 cal/mol-k
T = 632 K
I want to plot a differential equation
please,,,, help
0 Comments
Accepted Answer
Walter Roberson
on 5 Jun 2011
s(t) = (Co+U*(M*Phi)^P)*exp(-Q/RT) * t + C1
where C1 is an arbitrary constant of integration.
Perhaps your original equation needs a "t" on the right-hand side?
Also, please clarify whether -Q/RT is -Q/R * T, or -Q/(R*T)
If your expression happens to be
diff(s(t), t) = (Co+U*(M*Phi)^P)*exp(-Q*t/(R*T))
then the solution is still fairly simple,
s(t) = -R*T*(Co+U*(M*Phi)^P)*exp(-Q*t/(R*T))/Q + C1
It doesn't start to get interesting until you are asking for something like
diff(s(t), t) = (Co+U*(M*Phi)^P)*t*exp(-Q*t/(R*T))
which solves as
s(t) = -R*T*(R*T+Q*t)*(Co+U*(M*Phi)^P)*exp(-Q*t/(R*T))/Q^2 + C1
2 Comments
Walter Roberson
on 5 Jun 2011
You cannot use that form of diff() at the MATLAB level, and you need the symbolic toolbox to solve the differential equation symbolically.
s = -R*T*(R*T+Q*t).*(Co+U*(M*Phi)^P).*exp(-Q*t/(R*T))/Q^2 + C1
Notice the added "." before the "*". For greater security you could convert all of the "*" to ".*".
Remember too that C1 is an arbitrary constant of integration, so it is symbolic here and must remain symbolic unless you have a boundary condition that can be used to define its value.
More Answers (0)
See Also
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!