All Elementary Functions can be extended to the Complex Plane. Such definitions agree with the Real definitions on the x-Axis and constitute an Analytic Continuation.
See also Analytic Continuation, Elementary Function, Permanence of Mathematical Relations Principle
References
Arfken, G. Mathematical Methods for Physicists, 3rd ed. Orlando, FL: Academic Press, p. 380, 1985.