First time here? Check out the FAQ!
answered 2020-09-26 10:27:59 +0100
on Sage 9.2.beta13, WorksForMe(TM):
sage: integrate(f(x),x) 1/2*(cos(x) + sin(x))*e^x
Didn't you inadvertently redefine (= scratch) e ?
e