Hi everyone,
can someone explain to me why the two symbolic expressions below yield different results when being integrated over x?
syms x y aE1 = a*(x+y);E2 = a*x + a*y;int(E1,x)ans = (a*(x + y)^2)/2int(E2,x)ans = (a*x*(x + 2*y))/2
Where clearly the first integral is not what I'd expect it to be. It seems for E1 int() is integrating x+y and not just x.
Thank you
Rob
Best Answer