How to solve a set of transcendental differential equation?
Show older comments
I have to solve a couple of transcendental differential equation. Can anyone please suggest me how should I write a code for solving these equations: -
The intensity at a depth z is: -
I(z) = I₀ e^(-∫_0^1[f(z,t) A_undam + {1-f(z,t)A_dam}]dz)……………………………………(1) (The lower limit of this integration is 0 and the upper limit is 1.)
and the rate equation: - df(z,t) = -α I (z) f(z,t) dt + β N {1 - f(z, t)} dt ………………………….(2)
I have the data for α, β, Iₒ, A_undam and A_dam. I need to get f(z,t). How do I solve these two transcendental equations? Here, α, β, Iₒ are just a number like 10.34 etc, A_undam and A_dam are both column vector. Using equation (1) and (2), I need to solve for f(z,t). How should I do it?
Accepted Answer
More Answers (2)
Prabodh
on 24 Aug 2013
0 votes
2 Comments
Walter Roberson
on 24 Aug 2013
You are going to end up with the scalar Io multiplied by a non-scalar quantity, which means that I(z) would have to be non-scalar. But that forces f(z,t) to be non-scalar, in contradiction to your description that f(z) is a scalar.
Walter Roberson
on 24 Aug 2013
If f(z,t) is a scalar and not a 2 dimensional array, then I suggest you expand your expression
[f(z,t) A_undam + {1-f(z,t)} A_dam] * dz
becomes
(f(z,t) * A_undam + A_dam - f(z,t) * A_dam) * dz
which becomes
(f(z,t) * (A_undam - A_dam) + A_dam) * dz
then use a fundamental properties of integrals, that when C is a constant, integral(f(x) + C, x = a to b) = integral(f(x), x = a to b) + (b-a) * C. The integral in this case is over 0 to 1, so (1-0) * A_dam becomes the contribution from the +A_dam in the integral.
A_dam + integral(f(z,t) * (A_undam - A_dam) * dz, z = 0 to 1
Then use the property that integral(C * f(x)) = C * integral(f(x)) to transform to
A_dam + integral(f(z,t) * dz) * (A_undam - A_dam)
which will be easier to work with (having only one integral).
However, your integral is over z, so z is effectively "bound" into the integral as a dummy variable, unrelated to the "z" of I(z). And "t" does not appear as a variable of integration, but the equation is not I(t). So you have a problem.
Prabodh
on 26 Aug 2013
0 votes
Categories
Find more on Numeric Solvers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!