Your question is not clear.
What does your first line mean? Are you somehow indicating an integral? What does the function have to do with Euler's formula?
Euler's formula is most easily proved by looking at the Taylor expansions of ex, cos x and sin x.