Verify R2025b
matlabRelease
ans =
matlabRelease with properties:
Release: "R2025b"
Stage: "release"
Update: 2
Date: 16-Oct-2025
Define some functions
Case 1 looks correct:
eqn1 = G(x) == int(g(t),t,f_1(x),f_2(x));
case1 = [eqn1;eqn2]
case1 =

Case 2 looks correct. Same as case 1 with dg(t)/dt replacing g(t).
eqn3 = G(x) == int(Dg(t),t,f_1(x),f_2(x));
case2 = [eqn3;eqn4]
case2 =

Case 3 looks correct. Same as case 1 with g(t) = h(t)p(t)
eqn5 = G(x) == int(h(t)*p(t),t,f_1(x),f_2(x));
case3 = [eqn5;eqn6]
case3 =

Case 4 looks incorrect
eqn7 = G(x) == int(h(t)*Dp(t),t,f_1(x),f_2(x));
case4 = [eqn7;eqn8]
case4 =

I don't understand the meaning of the third multiplicands in both terms of the derivative expression. What does it mean to differentiate with respect to a function?
Seems like case 4 should be:
eqn9 = diff(G(x),x) == h(f_2(x))*Dp(f_2(x))*diff(f_2(x),x) - h(f_1(x))*Dp(f_1(x))*diff(f_1(x),x)
eqn9 =

Is case 4 (eqn8) incorrect or am I misunderstanding the mathematical meaning of
diff(p(f_2(x)),f_2(x))
ans =
