The ability of the INT function to find an explicit solution sometimes depends on the order in which a multiplication is presented. I enter the following code:
clear allsyms t xf = heaviside(x)*heaviside(t-x);g= int(f,x,-Inf,Inf)
and receive the expected output:
g = t-heaviside(-t)*t
However, when I enter the following code:
clear allsyms t xf = heaviside(t-x)*heaviside(x);g = int(f,x,-Inf,Inf)
I receive the following warning message:
Warning: Explicit integral could not be found. In sym.int at 58 g = int(heaviside(t-x)*heaviside(x),x = -Inf .. Inf)
Best Answer