Verify analytical expression: derivative of an integral with undefined function

2 views (last 30 days)
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).

Accepted Answer

John D'Errico
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)
ans = 
Looks like you were pretty close after all, but I think you knew that. :)
  6 Comments
Walter Roberson
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

Sign in to comment.

More Answers (0)

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!