Skip to content
Tutorials Center
My learning

Topics

Lesson 16 of 36 · Elementary Functions

Complex Trigonometric and Hyperbolic Functions

Define sin z and cos z through the exponential, split them into real and imaginary parts with cosh and sinh, find their zeros, and see why they are unbounded.

Euler's formula gave us the identities cos θ = (e^(iθ) + e^(-iθ))/2 and sin θ = (e^(iθ) - e^(-iθ))/(2i) for real θ. The right-hand sides make sense for every complex number, so we use them as the definitions of the complex cosine and sine:

Text
cos z = (e^(iz) + e^(-iz)) / 2
sin z = (e^(iz) - e^(-iz)) / (2i)

The hyperbolic functions are defined the same way without the i:

Text
cosh z = (e^z + e^(-z)) / 2
sinh z = (e^z - e^(-z)) / 2

The other functions follow: tan z = sin z / cos z, tanh z = sinh z / cosh z, and so on.

Properties inherited from the exponential

Since e^z is entire, so are sin z, cos z, sinh z and cosh z. Differentiating the definitions gives the familiar rules:

Text
(sin z)' = cos z       (cos z)' = -sin z
(sinh z)' = cosh z     (cosh z)' = sinh z

The usual identities survive because they follow algebraically from the exponential's addition law:

Text
sin² z + cos² z = 1
sin(z + w) = sin z cos w + cos z sin w
cos(z + w) = cos z cos w - sin z sin w
cosh² z - sinh² z = 1

Both sin and cos have period 2π, as before. And there is a link between the two families, discovered by substituting iz:

Text
cos(iz) = cosh z        sin(iz) = i sinh z
cosh(iz) = cos z        sinh(iz) = i sin z

So trigonometry and hyperbolic functions are the same object seen along the real and imaginary axes.

Real and imaginary parts

For z = x + iy, apply the addition formulas and the identities cos(iy) = cosh y, sin(iy) = i sinh y:

Text
sin(x + iy) = sin x cosh y + i cos x sinh y
cos(x + iy) = cos x cosh y - i sin x sinh y

From the first, abs(sin z)² = sin² x cosh² y + cos² x sinh² y = sin² x + sinh² y. (Use cosh² y = 1 + sinh² y.) Similarly abs(cos z)² = cos² x + sinh² y.

Let us confirm these formulas against the library.

Python Verifying the real/imaginary split

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

In each pair the hand-built value matches the library value.

Zeros and boundedness

The real sine has zeros at kπ. Could the complex sine have extra zeros off the real axis? Use the modulus formula: abs(sin z)² = sin² x + sinh² y. This is zero only if both terms vanish. sinh² y = 0 forces y = 0, and then sin² x = 0 forces x = kπ. So the zeros of sin z are exactly the real numbers kπ, and likewise the zeros of cos z are π/2 + kπ. This is not obvious in advance, and it is a neat piece of reasoning.

On the other hand, abs(sin z)² ≥ sinh² y, which grows without bound as y → ∞. Therefore sin z and cos z are unbounded on the complex plane. The familiar bound abs(sin x) ≤ 1 is purely a real phenomenon. (Later, Liouville's theorem will show that an entire function cannot be bounded unless it is constant, so this fact had to be true.)

This means that the equation sin z = 2 has solutions even though no real x has sin x = 2. Solve it: put sin z = (e^(iz) - e^(-iz))/(2i) = 2, let t = e^(iz), then t - 1/t = 4i, i.e. t² - 4it - 1 = 0, so t = (4i ± √(-16 + 4))/2 = 2i ± i√3 = i(2 ± √3). Then iz = ln t, so z = -i ln t. With t = i(2 + √3), ln t = ln(2 + √3) + iπ/2 + 2πik, hence z = π/2 + 2πk - i ln(2 + √3). The other root, t = i(2 - √3), has logarithm -ln(2 + √3) + iπ/2 + 2πik and gives z = π/2 + 2πk + i ln(2 + √3). We verify both numerically below.

Python Solving sin z = 2

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Both π/2 ± i ln(2 + √3) give sin z = 2, and the last loop shows the growth of abs(sin(iy)) = sinh y.

Real-variable habits that fail in ℂ: abs(sin z) ≤ 1 is false; sin z = 2 is solvable; cosh is not an "even bigger" cousin of cos, since cosh z = cos(iz) makes them the same function evaluated at rotated inputs.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What is the definition of cos z in terms of exponentials?

    cos z = (e^(iz) + e^(-iz))/2; the version without i is cosh z.
  2. 2. Which identity relates cos and cosh?

    Substituting iz in the definition of cos gives (e^(-z) + e^z)/2 = cosh z.
  3. 3. Where are the zeros of sin z in the complex plane?

    abs(sin z)² = sin²x + sinh²y vanishes only when y = 0 and sin x = 0.
  4. 4. Is sin z bounded on the complex plane?

    Along the imaginary axis sin(iy) = i sinh y, which is unbounded.

Summary

  • cos z, sin z, cosh z and sinh z are defined from e^z; all are entire with the usual derivatives and identities.
  • sin(x + iy) = sin x cosh y + i cos x sinh y and cos(x + iy) = cos x cosh y - i sin x sinh y.
  • abs(sin z)² = sin² x + sinh² y, so the zeros of sin z are exactly kπ.
  • sin z and cos z are unbounded, and equations like sin z = 2 have complex solutions.

Next: The Complex Logarithm and Branches