math.wiki
Trigonometry › Trigonometric functions and their graphs › Composing trig and inverse trig functions
Open on the map
Precalculus

Composing trig and inverse trig functions

If all you know about an angle is that its sine is \displaystyle \frac{5}{13}, can you find its cosine without ever finding the angle?

Where you are 8 in Trigonometric functions and their graphs

When you reach for it

An inverse trig function hands back an angle. Very often that angle is not wanted for itself: it is fed straight into another trig function, as in \displaystyle \cos\left(\arcsin\frac{5}{13}\right). This is a composition, the output of \arcsin becoming the input of \cos. A calculator can grind out a decimal, but the exact value, \displaystyle \frac{12}{13}, comes from a picture, and when the inside holds a variable, as in \displaystyle \tan\left(\arccos\frac{x}{3}\right), only the picture works. The result is then an algebraic expression in x, with no trig left in it.

You reach for this move whenever a trig function is applied to an inverse trig function of a different kind, when a formula such as \cos(\arcsin x) needs to be written without trig, and later, in calculus, wherever an angle was introduced only to be removed again. It rests on the slices chosen in the inverse trig functions: \arcsin returns an angle in \displaystyle \left[-\frac{\pi}{2}, \frac{\pi}{2}\right], \arccos one in [0, \pi], and \arctan one in \displaystyle \left(-\frac{\pi}{2}, \frac{\pi}{2}\right).

The procedure

Name the inner angle. Write \theta for the inner expression. In \displaystyle \cos\left(\arcsin\frac{5}{13}\right), let \displaystyle \theta = \arcsin\frac{5}{13}. By the definition of arcsine this says two things: \displaystyle \sin\theta = \frac{5}{13}, and \theta lies in \displaystyle \left[-\frac{\pi}{2}, \frac{\pi}{2}\right]. The question has become “find \cos\theta”, and both facts are needed to answer it.

Put a point on the terminal side. Place \theta in standard position and pick a point (a, b) on its terminal side, at distance \displaystyle r = \sqrt{a^2 + b^2} from the origin. Then

\sin\theta = \frac{b}{r}, \qquad \cos\theta = \frac{a}{r}, \qquad \tan\theta = \frac{b}{a}

The inner function fixes two of a, b, r, and the Pythagorean relation a^2 + b^2 = r^2 gives the third up to a sign. The slice settles the sign, and this is the step that makes the answer exact rather than “plus or minus”.

  • \displaystyle \theta = \arcsin\frac{p}{q} ends in the right half of the plane. Take b = p and r = q; then \displaystyle a = \sqrt{q^2 - p^2}, never negative.
  • \displaystyle \theta = \arccos\frac{p}{q} ends in the upper half of the plane. Take a = p and r = q; then \displaystyle b = \sqrt{q^2 - p^2}, never negative.
  • \displaystyle \theta = \arctan\frac{p}{q}, written with q > 0, ends in the right half of the plane, off the vertical axis. Take a = q and b = p; then \displaystyle r = \sqrt{p^2 + q^2}.

The sign of the input is carried by the known coordinate; the third coordinate is always the positive root, because each slice lies in a half plane where that coordinate is never negative. When the input is positive, \theta is acute and the point (a, b) is simply the corner of a right triangle with legs a, b and hypotenuse r: the reference triangle.

Read off the outer function. With a, b and r in hand, the outer function is one of the ratios above (or a reciprocal: \displaystyle \csc\theta = \frac{r}{b}, \displaystyle \sec\theta = \frac{r}{a}, \displaystyle \cot\theta = \frac{a}{b}).

Find the domain when the input is a variable. The composition is defined where the inner function accepts its input and where the outer ratio has no zero denominator. For \displaystyle \tan\left(\arccos\frac{x}{3}\right) the first condition is \displaystyle -1 \le \frac{x}{3} \le 1, and the second removes the x that makes a = 0.

The same function inside and out. When the inner and outer functions match, no triangle is needed. Since \arcsin x is an angle whose sine is x, \sin(\arcsin x) = x for every x in [-1, 1]; likewise \cos(\arccos x) = x on [-1, 1] and \tan(\arctan x) = x for every real x. In the other order the inverse can only return an angle from its slice, so \arcsin(\sin y) = y only for y in \displaystyle \left[-\frac{\pi}{2}, \frac{\pi}{2}\right], and outside the slice the answer is the slice angle with the same sine. The prerequisite lesson works through those cases; here they appear mixed with other functions.

Worked examples

Example 1

Otieno’s exact cosine

Otieno is asked for two values without a calculator. Find \displaystyle \cos\left(\arcsin\frac{5}{13}\right) and \displaystyle \tan\left(\arcsin\frac{5}{13}\right).

Solution

Let \displaystyle \theta = \arcsin\frac{5}{13}. Then \displaystyle \sin\theta = \frac{5}{13} and \theta lies in the arcsine slice. The input is positive, so \theta lies in \displaystyle \left(0, \frac{\pi}{2}\right) and is acute: it is an angle of a right triangle with opposite side 5 and hypotenuse 13.

θ
12
5
13
Figure 1Example 1. The angle \displaystyle \theta = \arcsin\frac{5}{13} drawn as an acute angle with opposite side 5 and hypotenuse 13; the Pythagorean theorem supplies the adjacent side 12.

By the Pythagorean theorem the adjacent side is

\sqrt{13^2 - 5^2} = \sqrt{169 - 25} = \sqrt{144} = 12

Reading the ratios off the triangle,

\cos\left(\arcsin\frac{5}{13}\right) = \frac{12}{13}, \qquad \tan\left(\arcsin\frac{5}{13}\right) = \frac{5}{12}

Check with a calculator: \displaystyle \arcsin\frac{5}{13} \approx 0.3948, and \displaystyle \cos 0.3948 \approx 0.9231 \approx \frac{12}{13}. Otieno never needed the angle itself.

Example 2

The sign comes from the slice

Find (a) \displaystyle \tan\left(\arcsin\left(-\frac{8}{17}\right)\right) and (b) \displaystyle \sin\left(\arccos\left(-\frac{7}{25}\right)\right).

Solution

(a) Let \displaystyle \theta = \arcsin\left(-\frac{8}{17}\right), so \displaystyle \sin\theta = -\frac{8}{17} with \theta in \displaystyle \left[-\frac{\pi}{2}, \frac{\pi}{2}\right]. The sine is negative, so \theta is in \displaystyle \left[-\frac{\pi}{2}, 0\right), ending in the fourth quadrant. Take b = -8 and r = 17. The slice is the right half of the plane, so a \ge 0:

a = \sqrt{17^2 - 8^2} = \sqrt{289 - 64} = \sqrt{225} = 15

Then \displaystyle \tan\theta = \frac{b}{a} = -\frac{8}{15}. The reference triangle is the 8, 15, 17 triangle; the slice decided that the opposite side points down while the adjacent side points right.

(b) Let \displaystyle \theta = \arccos\left(-\frac{7}{25}\right), so \displaystyle \cos\theta = -\frac{7}{25} with \theta in [0, \pi]. A negative cosine puts \theta in \displaystyle \left(\frac{\pi}{2}, \pi\right], the second quadrant. Take a = -7 and r = 25. The arccosine slice is the upper half of the plane, so b \ge 0:

b = \sqrt{25^2 - 7^2} = \sqrt{625 - 49} = \sqrt{576} = 24
θ
x
y
25
24
-7
(-7,\ 24)
Figure 2Example 2. The angle \displaystyle \theta = \arccos\left(-\frac{7}{25}\right) ends in the second quadrant. The point (-7, 24) on its terminal side is 25 from the origin, and its height is positive.

So \displaystyle \sin\left(\arccos\left(-\frac{7}{25}\right)\right) = \frac{24}{25}. The sine of an arccosine is never negative, whatever the input, because every angle in [0, \pi] ends on or above the horizontal axis.

Example 3

An arctangent with a radical answer

Find \sin(\arctan(-2)) and \cos(\arctan(-2)).

Solution

Let \theta = \arctan(-2), so \tan\theta = -2 with \theta in \displaystyle \left(-\frac{\pi}{2}, \frac{\pi}{2}\right). Write \displaystyle -2 = \frac{-2}{1} with the positive number on the bottom, and take a = 1, b = -2: the point (1, -2) is in the right half plane, where the slice lives, and the ray through it has slope -2. Then

r = \sqrt{1^2 + (-2)^2} = \sqrt{5}
\sin\theta = \frac{-2}{\sqrt{5}} = -\frac{2\sqrt{5}}{5}, \qquad \cos\theta = \frac{1}{\sqrt{5}} = \frac{\sqrt{5}}{5}

Check: \displaystyle \frac{\sin\theta}{\cos\theta} = \frac{-2\sqrt{5}/5}{\sqrt{5}/5} = -2, and \displaystyle \sin^2\theta + \cos^2\theta = \frac{4}{5} + \frac{1}{5} = 1. Choosing the point (-1, 2) instead would have given the same slope but an angle in the second quadrant, outside the slice, and both signs would have come out wrong.

Example 4

Akinyi’s algebraic expression

Akinyi wants \displaystyle \tan\left(\arccos\frac{x}{3}\right) written as an algebraic expression in x, with its domain.

Solution

Let \displaystyle \theta = \arccos\frac{x}{3}, so \displaystyle \cos\theta = \frac{x}{3} with \theta in [0, \pi]. Take a = x and r = 3. The arccosine slice is the upper half plane, so b \ge 0:

b = \sqrt{3^2 - x^2} = \sqrt{9 - x^2}

For 0 < x < 3 this is the triangle in the figure; for negative x the point \displaystyle (x, \sqrt{9 - x^2}) sits in the second quadrant, as in Example 2, and the same formulas hold because a carries the sign.

θ
x
\displaystyle \sqrt{9 - x^2}
3
Figure 3Example 4. For 0 < x < 3, the angle \displaystyle \theta = \arccos\frac{x}{3} has adjacent side x and hypotenuse 3, so its opposite side is \displaystyle \sqrt{9 - x^2}.
\tan\left(\arccos\frac{x}{3}\right) = \frac{b}{a} = \frac{\sqrt{9 - x^2}}{x}

Domain: arccosine needs \displaystyle -1 \le \frac{x}{3} \le 1, that is -3 \le x \le 3. Tangent needs a \ne 0, so x \ne 0; at x = 0 the angle is \displaystyle \arccos 0 = \frac{\pi}{2}, where tangent is undefined. The domain is [-3, 0) \cup (0, 3].

Check at \displaystyle x = \frac{3}{2}: \displaystyle \arccos\frac{1}{2} = \frac{\pi}{3} and \displaystyle \tan\frac{\pi}{3} = \sqrt{3}, while the formula gives \displaystyle \frac{\sqrt{9 - 9/4}}{3/2} = \frac{3\sqrt{3}/2}{3/2} = \sqrt{3}. At x = -3: \arccos(-1) = \pi, \tan\pi = 0, and the formula gives \displaystyle \frac{0}{-3} = 0.

Example 5

A variable that may be negative

Write \displaystyle \sin\left(\arctan\frac{x}{4}\right) as an algebraic expression in x, and give its domain.

Solution

Let \displaystyle \theta = \arctan\frac{x}{4}, so \displaystyle \tan\theta = \frac{x}{4} with \theta in \displaystyle \left(-\frac{\pi}{2}, \frac{\pi}{2}\right). The denominator 4 is positive, so take a = 4 and b = x; the point (4, x) lies in the right half plane for every x, in the first quadrant when x > 0 and the fourth when x < 0. Then \displaystyle r = \sqrt{x^2 + 16} and

\sin\left(\arctan\frac{x}{4}\right) = \frac{x}{\sqrt{x^2 + 16}}

Arctangent accepts every real number and r is never 0, so the domain is all real numbers. The sign takes care of itself: a negative x gives a fourth quadrant angle with negative sine, and the formula is negative too.

Check at x = 4: \displaystyle \arctan 1 = \frac{\pi}{4} and \displaystyle \sin\frac{\pi}{4} = \frac{\sqrt{2}}{2}, while the formula gives \displaystyle \frac{4}{\sqrt{32}} = \frac{4}{4\sqrt{2}} = \frac{\sqrt{2}}{2}.

Example 6

Mixed compositions with exact angles

Find (a) \displaystyle \cos\left(\arccos\left(-\frac{2}{7}\right)\right), (b) \displaystyle \arcsin\left(\cos\frac{2\pi}{3}\right), (c) \displaystyle \arccos\left(\sin\frac{4\pi}{3}\right).

Solution

(a) \displaystyle -\frac{2}{7} is in [-1, 1], the domain of arccosine, so \displaystyle \arccos\left(-\frac{2}{7}\right) is an angle whose cosine is \displaystyle -\frac{2}{7}. Its cosine is therefore \displaystyle -\frac{2}{7}. Cosine undoes arccosine on the whole domain.

(b) Work from the inside. \displaystyle \cos\frac{2\pi}{3} = -\frac{1}{2}, and the angle in \displaystyle \left[-\frac{\pi}{2}, \frac{\pi}{2}\right] with sine \displaystyle -\frac{1}{2} is \displaystyle -\frac{\pi}{6}. So \displaystyle \arcsin\left(\cos\frac{2\pi}{3}\right) = -\frac{\pi}{6}. The answer is not \displaystyle \frac{2\pi}{3}: the two functions are different, and nothing here undoes anything.

(c) \displaystyle \sin\frac{4\pi}{3} = -\frac{\sqrt{3}}{2}, and the angle in [0, \pi] with cosine \displaystyle -\frac{\sqrt{3}}{2} is \displaystyle \frac{5\pi}{6}. So \displaystyle \arccos\left(\sin\frac{4\pi}{3}\right) = \frac{5\pi}{6}.

Example 7

Kipchoge’s identity

Kipchoge is writing a short program in a language that offers arctangent but no arcsine. Show that for -1 < x < 1,

\arcsin x = \arctan\frac{x}{\sqrt{1 - x^2}}

and check it at \displaystyle x = \frac{1}{2}.

Solution

Let \theta = \arcsin x, so \sin\theta = x with \theta in \displaystyle \left[-\frac{\pi}{2}, \frac{\pi}{2}\right]. Since x \ne \pm 1, \displaystyle \theta \ne \pm\frac{\pi}{2}, so \theta lies in the open interval \displaystyle \left(-\frac{\pi}{2}, \frac{\pi}{2}\right). With b = x and r = 1, the slice gives \displaystyle a = \sqrt{1 - x^2} > 0, so

\tan\theta = \frac{x}{\sqrt{1 - x^2}}

Now apply arctangent to both sides. Arctangent undoes tangent only for angles in its slice \displaystyle \left(-\frac{\pi}{2}, \frac{\pi}{2}\right), and \theta was just shown to lie there, so \arctan(\tan\theta) = \theta. That gives \displaystyle \arctan\frac{x}{\sqrt{1 - x^2}} = \theta = \arcsin x.

Check at \displaystyle x = \frac{1}{2}: \displaystyle \arcsin\frac{1}{2} = \frac{\pi}{6}, and \displaystyle \frac{1/2}{\sqrt{3/4}} = \frac{1}{\sqrt{3}} with \displaystyle \arctan\frac{1}{\sqrt{3}} = \frac{\pi}{6}. At x = \pm 1 the right side has a zero denominator, which is why the identity needs the open interval.

Boundaries

  • The inner input must be in the inverse’s domain. \cos(\arcsin 2) is undefined, because no angle has sine 2. For a variable input this is the first condition on the domain, as in Example 4.
  • The outer function may be undefined at the angle. \displaystyle \tan(\arccos 0) = \tan\frac{\pi}{2} does not exist, and \cot(\arctan 0) = \cot 0 does not exist. Every zero denominator in the final expression marks such a point and is removed from the domain.
  • The positive root is right only because of the slice. The rule “third coordinate is \displaystyle +\sqrt{\phantom{x}}” comes from the half plane that each slice occupies. For an angle that was not produced by an inverse function, knowing \displaystyle \sin\theta = \frac{5}{13} leaves \displaystyle \cos\theta = \pm\frac{12}{13}.
  • Undoing works in one order only. \sin(\arcsin x) = x on all of [-1, 1], but \arcsin(\sin y) = y only for y in \displaystyle \left[-\frac{\pi}{2}, \frac{\pi}{2}\right]; the same holds for cosine on [0, \pi] and tangent on \displaystyle \left(-\frac{\pi}{2}, \frac{\pi}{2}\right).
  • An identity between inverses holds only where the angles share a slice. Example 7 holds on (-1, 1); the analogous formula for arccosine fails for negative x (Exercise 24).

Where this goes next

Turning \displaystyle \tan\left(\arccos\frac{x}{3}\right) into \displaystyle \frac{\sqrt{9 - x^2}}{x} is a small case of simplifying trig expressions: an angle is introduced and then removed with the Pythagorean relation, which is the Pythagorean identity in triangle form. The same move, read in reverse, is trigonometric substitution in calculus, where \displaystyle \sqrt{9 - x^2} is simplified by setting x = 3\cos\theta and the answer is translated back to x with exactly the triangle of Example 4. It is also how the derivatives of the inverse trig functions lose all their trig: the derivative of \arcsin x comes out as \displaystyle \frac{1}{\cos(\arcsin x)}, which is \displaystyle \frac{1}{\sqrt{1 - x^2}}.

Exercises

Exact values, positive inputs

Find the exact value.

  1. \displaystyle \sin\left(\arccos\frac{8}{17}\right)
  2. \displaystyle \tan\left(\arcsin\frac{20}{29}\right)
  3. \displaystyle \cos\left(\arctan\frac{7}{24}\right)
  4. \displaystyle \sec\left(\arcsin\frac{1}{3}\right)

Exact values, the sign from the slice

Find the exact value.

  1. \displaystyle \cos\left(\arcsin\left(-\frac{9}{41}\right)\right)
  2. \displaystyle \tan\left(\arccos\left(-\frac{12}{13}\right)\right)
  3. \displaystyle \sin\left(\arctan\left(-\frac{3}{4}\right)\right)
  4. \displaystyle \sin\left(\arccos\left(-\frac{1}{4}\right)\right)
  5. \displaystyle \cot\left(\arcsin\left(-\frac{2}{5}\right)\right)

Mixed and undoing compositions

Find the exact value.

  1. \cos(\arccos(-0.35))
  2. \displaystyle \arccos\left(\cos\left(-\frac{\pi}{7}\right)\right)
  3. \displaystyle \arcsin\left(\cos\frac{5\pi}{6}\right)
  4. \displaystyle \arctan\left(\sin\frac{3\pi}{2}\right)
  5. \arcsin(\sin 5), also to four decimal places.
  6. \displaystyle \cos\left(\arctan\left(\sin\frac{\pi}{2}\right)\right)

Algebraic expressions

Write each as an algebraic expression in x and give its domain.

  1. \displaystyle \sin\left(\arccos\frac{x}{5}\right)
  2. \cos(\arctan(3x))
  3. \displaystyle \tan\left(\arcsin\frac{x}{2}\right)
  4. \sec(\arctan x)
  5. \sin(\arccos(x + 1))
  6. \displaystyle \cot\left(\arccos\frac{x}{4}\right)

Reasoning

  1. Explain why \cos(\arcsin x) is never negative, while \cos(\arccos x) is negative for every negative x in [-1, 1].
  2. Otieno claims that \sin(\arccos x) and \cos(\arcsin x) are the same expression. Is he right? Give two reasons, one from triangles and one from the fact that \displaystyle \arcsin x + \arccos x = \frac{\pi}{2}.
  3. Show that \displaystyle \arccos x = \arctan\frac{\sqrt{1 - x^2}}{x} for 0 < x \le 1 but fails for -1 \le x < 0, and give a correct formula for -1 \le x < 0.
  4. Kipchoge says \sin(\arctan x) gets as close to 1 as you like but never equals it. Prove this from the algebraic expression for \sin(\arctan x), and explain it from the arctangent slice.
Answers
  1. \displaystyle \frac{15}{17}. a = 8, r = 17, and \displaystyle b = \sqrt{289 - 64} = 15.
  2. \displaystyle \frac{20}{21}. b = 20, r = 29, and \displaystyle a = \sqrt{841 - 400} = 21, so \displaystyle \tan\theta = \frac{20}{21}.
  3. \displaystyle \frac{24}{25}. a = 24, b = 7, and \displaystyle r = \sqrt{576 + 49} = 25.
  4. \displaystyle \frac{3\sqrt{2}}{4}. b = 1, r = 3, \displaystyle a = \sqrt{8} = 2\sqrt{2}, so \displaystyle \sec\theta = \frac{r}{a} = \frac{3}{2\sqrt{2}} = \frac{3\sqrt{2}}{4}.
  5. \displaystyle \frac{40}{41}. b = -9, r = 41, and the arcsine slice gives \displaystyle a = +\sqrt{1681 - 81} = 40.
  6. \displaystyle -\frac{5}{12}. a = -12, r = 13, b = +5 (upper half plane), so \displaystyle \tan\theta = \frac{5}{-12}.
  7. \displaystyle -\frac{3}{5}. a = 4, b = -3, r = 5, so \displaystyle \sin\theta = \frac{-3}{5}.
  8. \displaystyle \frac{\sqrt{15}}{4}. a = -1, r = 4, \displaystyle b = +\sqrt{16 - 1} = \sqrt{15}.
  9. \displaystyle -\frac{\sqrt{21}}{2}. b = -2, r = 5, \displaystyle a = \sqrt{25 - 4} = \sqrt{21}, so \displaystyle \cot\theta = \frac{a}{b} = \frac{\sqrt{21}}{-2}.
  10. -0.35. -0.35 is in [-1, 1], and cosine undoes arccosine on that whole interval.
  11. \displaystyle \frac{\pi}{7}. \displaystyle -\frac{\pi}{7} is outside [0, \pi], but cosine is even, so \displaystyle \cos\left(-\frac{\pi}{7}\right) = \cos\frac{\pi}{7}, and \displaystyle \frac{\pi}{7} is in the slice.
  12. \displaystyle -\frac{\pi}{3}. \displaystyle \cos\frac{5\pi}{6} = -\frac{\sqrt{3}}{2}, and the slice angle with that sine is \displaystyle -\frac{\pi}{3}.
  13. \displaystyle -\frac{\pi}{4}. \displaystyle \sin\frac{3\pi}{2} = -1 and \displaystyle \arctan(-1) = -\frac{\pi}{4}.
  14. 5 - 2\pi \approx -1.2832. The angle 5 lies between \displaystyle \frac{3\pi}{2} and 2\pi, outside the slice; sine has period 2\pi, so \sin 5 = \sin(5 - 2\pi), and 5 - 2\pi is in \displaystyle \left[-\frac{\pi}{2}, \frac{\pi}{2}\right].
  15. \displaystyle \frac{\sqrt{2}}{2}. \displaystyle \sin\frac{\pi}{2} = 1, \displaystyle \arctan 1 = \frac{\pi}{4}, and \displaystyle \cos\frac{\pi}{4} = \frac{\sqrt{2}}{2}.
  16. \displaystyle \frac{\sqrt{25 - x^2}}{5} on [-5, 5]. a = x, r = 5, \displaystyle b = +\sqrt{25 - x^2}; arccosine needs -5 \le x \le 5.
  17. \displaystyle \frac{1}{\sqrt{9x^2 + 1}} for all real x. a = 1, b = 3x, \displaystyle r = \sqrt{9x^2 + 1}, never 0.
  18. \displaystyle \frac{x}{\sqrt{4 - x^2}} on (-2, 2). b = x, r = 2, \displaystyle a = \sqrt{4 - x^2}; arcsine needs -2 \le x \le 2, and a = 0 at x = \pm 2, where \displaystyle \theta = \pm\frac{\pi}{2}.
  19. \displaystyle \sqrt{1 + x^2} for all real x. a = 1, b = x, \displaystyle r = \sqrt{1 + x^2}, so \displaystyle \sec\theta = \frac{r}{a}; a is never 0.
  20. \displaystyle \sqrt{-x^2 - 2x} on [-2, 0]. a = x + 1, r = 1, \displaystyle b = \sqrt{1 - (x + 1)^2} = \sqrt{-x^2 - 2x}; arccosine needs -1 \le x + 1 \le 1.
  21. \displaystyle \frac{x}{\sqrt{16 - x^2}} on (-4, 4). a = x, r = 4, \displaystyle b = \sqrt{16 - x^2}, so \displaystyle \cot\theta = \frac{a}{b}; b = 0 at x = \pm 4, where \theta is 0 or \pi.
  22. \arcsin x lies in \displaystyle \left[-\frac{\pi}{2}, \frac{\pi}{2}\right], the right half of the plane, where every point has a \ge 0, so its cosine \displaystyle \sqrt{1 - x^2} is never negative. \cos(\arccos x) = x for every x in [-1, 1], so it is negative exactly when x is; the arccosine slice reaches into the second quadrant, where cosine is negative.
  23. Yes, both equal \displaystyle \sqrt{1 - x^2} on [-1, 1]. Triangles: for \arccos x, a = x, r = 1, \displaystyle b = \sqrt{1 - x^2}; for \arcsin x, b = x, r = 1, \displaystyle a = \sqrt{1 - x^2}. Complementary angles: \displaystyle \arccos x = \frac{\pi}{2} - \arcsin x, and \displaystyle \sin\left(\frac{\pi}{2} - t\right) = \cos t, so \sin(\arccos x) = \cos(\arcsin x).
  24. Let \theta = \arccos x, so \displaystyle \tan\theta = \frac{\sqrt{1 - x^2}}{x}. For 0 < x \le 1, \theta is in \displaystyle \left[0, \frac{\pi}{2}\right), inside the arctangent slice, so arctangent returns \theta. For -1 \le x < 0, \theta is in \displaystyle \left(\frac{\pi}{2}, \pi\right], outside it: at \displaystyle x = -\frac{1}{2}, \displaystyle \arccos x = \frac{2\pi}{3} but \displaystyle \arctan(-\sqrt{3}) = -\frac{\pi}{3}. Tangent has period \pi and \theta - \pi lies in the slice, so \displaystyle \arccos x = \pi + \arctan\frac{\sqrt{1 - x^2}}{x} for -1 \le x < 0.
  25. \displaystyle \sin(\arctan x) = \frac{x}{\sqrt{1 + x^2}}, and \displaystyle |x| = \sqrt{x^2} < \sqrt{1 + x^2}, so the value is always strictly between -1 and 1. It approaches 1 as x grows, since \displaystyle \frac{x}{\sqrt{1 + x^2}} = \frac{1}{\sqrt{1/x^2 + 1}} for x > 0. From the slice: \arctan x lies in the open interval \displaystyle \left(-\frac{\pi}{2}, \frac{\pi}{2}\right) and never equals \displaystyle \frac{\pi}{2}, the only angle in \displaystyle \left[-\frac{\pi}{2}, \frac{\pi}{2}\right] with sine 1.
kg1128 · updated 2026-10-20 · CC-BY-SA-4.0