Consider the given integral.
I=∫ex(sec2x+tanx)dx
I=∫exsec2xdx+∫extanxdx
I=extanx−∫extanxdx+∫extanxdx
I=extanx+C
Hence, this is the answer.