Differentiation of an Integral Function

10 Ansichten (letzte 30 Tage)
Shozeal
Shozeal am 11 Jul. 2018
Kommentiert: Shozeal am 12 Jul. 2018
Hello,
I have this problem at hand to solve but it's taking longer than I envisaged to solve.
Let A be a function with respect to x,y,z i.e A(x,y,z)
B is the integration of A(x,y,z) w.r.t to time t from t_0 to t_f.
I need to solve dz/dt = B( x(t),y,z(t)).
A(x,y,z), where A can be anything, if possible a constant but a function of x,y,z.
x is a function of time, i.e x(t)
z also is a function of time i.e z(t)
Let just say B = integral(@(t) A,t_0,t_f)
Then I need to solve dz/dt = B(x,y,z);
I have tried both numerical means to solve this but what I am getting is not making sense.
Please advise what I can do.
  8 Kommentare
Walter Roberson
Walter Roberson am 12 Jul. 2018
syms x(t) y(t) z(t) C1 C2
z(t) = C1 * t + C2;
lhs = diff(z(t),t); %would be C1
syms A(X, Y, Z) t_0 t_f
rhs = int(A(x(t), y(t), z(t)), t, t_0, t_f);
eqn = lhs == rhs
No error (but also not much you can do with this.)
Note that for this purpose, C1 and C2 might be related to additional variables other than t: they just have to be independent of t, not of any other variable.
Shozeal
Shozeal am 12 Jul. 2018
Thank you, Walter.
Let me see how I can develop this to make it compatible with what I am working on.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Produkte


Version

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by