Verify analytical expression: derivative of an integral with undefined function
2 views (last 30 days)
Show older comments
Emilio Aguilera Valdes
on 17 Aug 2022
Commented: Emilio Aguilera Valdes
on 19 Aug 2022
I’m trying to verify an analytical expression i did by hand. The expression is:
What i think is that the result is just the integral argument evaluated in T, but i’m really not sure. I tried to use diff and int, but i don’t know how to write the function Phi(t).
1 Comment
Torsten
on 17 Aug 2022
As written, the result is 0 since you differentiate with respect to t, not T.
Accepted Answer
John D'Errico
on 17 Aug 2022
Edited: John D'Errico
on 17 Aug 2022
You define a function of a variable as I do here:
syms n omega phi(t) T
diff(int(phi*exp(-i*n*omega*t),[0,T]),T)
Looks like you were pretty close after all, but I think you knew that. :)
6 Comments
Walter Roberson
on 19 Aug 2022
Edited: Walter Roberson
on 19 Aug 2022
The integral with respect to t will not have any remaining t in it. When you differentiate that with respect to t you will get 0. You would need to have t as a bound of the integral for the derivative to be non-zero
More Answers (0)
See Also
Categories
Find more on Calculus 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!