MathLive Logo

Complex Functions: eᶻ, ln z, √z, sin z, cos z

Evaluate the exponential, logarithm, square root and trigonometric functions at any complex number. MathLive shows the principal value, every value of the multi-valued functions (ln z and √z), the formula with your numbers, and where z goes in the image plane.

Function and input

Examples

Result

z-plane (input)

Drag z and watch w move.

w-plane (output)

Step-by-step solution

Domain colouring

Each point z of the square is coloured by the value f(z): the colour shows the angle of f(z) (red = 0°, yellow = 60°, green = 120°, cyan = 180°, blue = 240°, magenta = 300°) and the rings show its size (each ring is a doubling of |f(z)|). Zeros are where all colours meet; poles look the same with the colours reversed.

The formulas (z = a + bi)

FunctionFormulaNotes
ExponentialRepeats every 2πi. Euler: e^(iπ) + 1 = 0.
LogarithmInfinitely many values; k = 0 is the principal value Ln z. Undefined at 0.
Square rootTwo values; the principal one has Re ≥ 0.
SineNot bounded: |sin z| can be larger than 1.
Cosinecos(ib) = cosh b.
TangentUndefined where cos z = 0.
sinh, coshsinh(iz) = i sin z, cosh(iz) = cos z.

Branches

ln z and √z have more than one value, because the angle of z is only known up to whole turns. MathLive gives the principal value, which uses the principal argument in (−π, π]; it jumps when z crosses the negative real axis (the branch cut). The other values are listed under the result.