Home › Trigonometry › Lesson 4

Inverse Trigonometric Functions and Principal Branches

Lesson 4 of 12

Key idea of this section

arcsin: [−1, 1] → [−π/2, π/2],   arccos: [−1, 1] → [0, π],   arctan: ℝ → (−π/2, π/2)
arctan x = ∫₀ˣ dt/(1 + t²) = x − x³/3 + x⁵/5 − ⋯   (|x| ≤ 1)

Principal branches on the real line

Since sin, cos and tan are periodic they are not injective, and an inverse function requires a choice of interval on which the function is a bijection. By Lesson 2, sin is strictly increasing from −1 to 1 on [−π/2, π/2], cos is strictly decreasing from 1 to −1 on [0, π], and tan is strictly increasing from −∞ to ∞ on (−π/2, π/2). The inverse functions on these intervals are the principal branches arcsin, arccos and arctan. They are continuous, and by the inverse function theorem they are differentiable on the interiors with

(arcsin x)′ = 1/√(1 − x²),   (arccos x)′ = −1/√(1 − x²),   (arctan x)′ = 1/(1 + x²).

For example, if y = arcsin x then cos y ≥ 0 on [−π/2, π/2], so cos y = √(1 − x²) and dy/dx = 1/cos y. Since the derivatives of arcsin and arccos are negatives of each other and arcsin 0 + arccos 0 = π/2, we get arcsin x + arccos x = π/2 on [−1, 1].

The compositions in the "wrong" order are not identity maps. For real x, arcsin(sin x) is the unique y ∈ [−π/2, π/2] with sin y = sin x; it is a triangle wave of period 2π:

arcsin(sin x) = x − 2kπ        for x ∈ [2kπ − π/2, 2kπ + π/2],
arcsin(sin x) = (2k+1)π − x     for x ∈ [2kπ + π/2, 2kπ + 3π/2].

For instance, 5 lies in [3π/2, 5π/2], so arcsin(sin 5) = 5 − 2π ≈ −1.2832, while 5 lies in [π, 2π] and arccos(cos 5) = 2π − 5 ≈ 1.2832.

The arctangent addition law and atan2

From the tangent addition formula, for real a, b with ab ≠ 1,

arctan a + arctan b = arctan((a + b)/(1 − ab)) + επ,

where ε = 0 if ab < 1, ε = 1 if ab > 1 and a > 0, and ε = −1 if ab > 1 and a < 0. The correction term appears because arctan a + arctan b may leave the interval (−π/2, π/2). For example arctan 2 + arctan 3: here (2 + 3)/(1 − 6) = −1 and ab > 1, a > 0, so the sum is −π/4 + π = 3π/4. In the same way arctan x + arctan(1/x) = π/2 for x > 0 and −π/2 for x < 0.

The function atan2(y, x) used in numerical computation returns the argument of the point (x, y) in (−π, π]: it equals arctan(y/x) when x > 0, arctan(y/x) + π when x < 0 and y ≥ 0, arctan(y/x) − π when x < 0 and y < 0, and ±π/2 on the y-axis. It is the principal argument Arg z of z = x + iy.

The arctangent series and Machin-type formulas

Integrating the geometric series 1/(1 + t²) = 1 − t² + t⁴ − ⋯ term by term gives, for |x| < 1,

arctan x = x − x³/3 + x⁵/5 − x⁷/7 + ⋯ .

The series also converges at x = ±1 (alternating series), and Abel's theorem identifies the sum with arctan(±1) = ±π/4, giving the Leibniz–Madhava series π/4 = 1 − 1/3 + 1/5 − ⋯. This series converges far too slowly for computation. John Machin (1706) observed that if α = arctan(1/5) then tan 2α = 5/12 and tan 4α = 120/119, so

tan(4α − π/4) = (120/119 − 1)/(1 + 120/119) = 1/239,
π/4 = 4 arctan(1/5) − arctan(1/239).

Both series now converge geometrically. Using five terms of the first and two terms of the second already gives π ≈ 3.14159268, with error below 3 × 10⁻⁸. Formulas of this kind were used for record computations of π until the early 1980s, when quadratically convergent algorithms (Salamin–Brent, 1976, based on the arithmetic–geometric mean) took over; Machin-like formulas returned for some later records, such as Kanada's in 2002.

Complex inverse functions

Over ℂ, sin and cos are surjective but infinitely-many-to-one, and the inverses are multivalued. Solving w = sin z means eiz − e−iz = 2iw, a quadratic in u = eiz: u² − 2iwu − 1 = 0, so u = iw ± √(1 − w²). Therefore all solutions are

z = −i log(iw + √(1 − w²)),

with all values of the logarithm and both square roots. The principal branch takes the principal square root and the principal logarithm Log; it is analytic on ℂ minus the two cuts (−∞, −1] and [1, ∞) and agrees with the real arcsin on (−1, 1). Similarly

arctan w = (1/(2i)) Log((1 + iw)/(1 − iw)),

analytic off the cuts (−i∞, −i] and [i, i∞); the points ±i are logarithmic branch points, which is the deeper reason why the arctangent series has radius of convergence exactly 1 even though arctan is smooth on all of ℝ.

Example. The equation sin z = 2 has no real solutions, but in ℂ: with z = π/2 + iy we get sin z = cos(iy) = cosh y, and cosh y = 2 gives y = ±ln(2 + √3). By periodicity and the symmetry sin(π − z) = sin z, the full solution set is z = π/2 + 2kπ ± i ln(2 + √3), k ∈ ℤ.

Example. The zeros of cos in ℂ are only the real ones: cos z = 0 means e2iz = −1 = eiπ, so 2iz ∈ iπ + 2πiℤ, that is z ∈ π/2 + πℤ.

Exercise

  • (a)
    Evaluate arctan(1/2) + arctan(1/3) and arctan 1 + arctan 2 + arctan 3.
  • (b)
    Compute arcsin(sin 10) exactly.
  • (c)
    Show that the Euler formula π/4 = arctan(1/2) + arctan(1/5) + arctan(1/8) holds.
Show solution

Answers: (a) (1/2 + 1/3)/(1 − 1/6) = 1 with product < 1, so the first sum is π/4. For the second, arctan 2 + arctan 3 = 3π/4, so the total is π/4 + 3π/4 = π. (b) 10 ∈ [5π/2, 7π/2] = [2π + π/2, 2π + 3π/2], so arcsin(sin 10) = 3π − 10 ≈ −0.5752. (c) arctan(1/2) + arctan(1/5) = arctan((7/10)/(9/10)) = arctan(7/9); then arctan(7/9) + arctan(1/8) = arctan((65/72)/(65/72)) = arctan 1 = π/4, all products being less than 1.

V.3.1