### Arctan

In mathematics, the inverse trigonometric functions (occasionally called cyclometric functions[1]) are the inverse functions of the trigonometric functions (with suitably restricted domains). Specifically, they are the inverses of the sine, cosine, tangent, cotangent, secant, and cosecant functions. They are used to obtain an angle from any of the angle's trigonometric ratios. Inverse trigonometric functions are widely used in engineering, navigation, physics, and geometry.

## Notation

There are many notations used for the inverse trigonometric functions. The notations sin−1 (x), cos−1 (x), tan−1 (x), etc. are often used, but this convention logically conflicts with the common semantics for expressions like sin2 (x), which refer to numeric power rather than function composition, and therefore may result in confusion between multiplicative inverse and compositional inverse. Another convention used by some authors[2] is to use a majuscule (capital/upper-case) first letter along with a −1 superscript, e.g., Sin−1 (x), Cos−1 (x), etc., which avoids confusing them with the multiplicative inverse, which should be represented by sin−1 (x), cos−1 (x), etc. Yet another convention is to use an arc- prefix, so that the confusion with the −1 superscript is resolved completely, e.g., arcsin (x), arccos (x), etc. This convention is used throughout the article. In computer programming languages the inverse trigonometric functions are usually called asin, acos, atan.

### Etymology of the arc- prefix

When measuring in radians, an angle of θ radians will correspond to an arc whose length is rθ, where r is the radius of the circle. Thus, in the unit circle, "the arc whose cosine is x" is the same as "the angle whose cosine is x", because the measure of the length of the arc of the circle in radii is the same as the measurement of the angle in radians.

## Principal values

Since none of the six trigonometric functions are one-to-one, they are restricted in order to have inverse functions. Therefore the ranges of the inverse functions are proper subsets of the domains of the original functions

For example, using function in the sense of multivalued functions, just as the square root function y = √x could be defined from that y2 = x, the function y = arcsin(x) is defined so that sin(y) = x. There are multiple numbers y such that sin(y) = x; for example, sin(0) = 0, but also sin(Template:Pi) = 0, sin(2Template:Pi) = 0, etc. It follows that the arcsine function is multivalued: arcsin(0) = 0, but also arcsin(0) = , arcsin(0) = 2Template:Pi, etc. When only one value is desired, the function may be restricted to its principal branch. With this restriction, for each x in the domain the expression arcsin(x) will evaluate only to a single value, called its principal value. These properties apply to all the inverse trigonometric functions.

The principal inverses are listed in the following table.

Name Usual notation Definition Domain of x for real result Range of usual principal value
Range of usual principal value
(degrees)
arcsine y = arcsin x x = sin y −1 ≤ x ≤ 1 Template:Pi/2 ≤ yTemplate:Pi/2 −90° ≤ y ≤ 90°
arccosine y = arccos x x = cos y −1 ≤ x ≤ 1 0 ≤ yTemplate:Pi 0° ≤ y ≤ 180°
arctangent y = arctan x x = tan y all real numbers Template:Pi/2 < y < Template:Pi/2 −90° < y < 90°
arccotangent y = arccot x x = cot y all real numbers 0 < y < Template:Pi 0° < y < 180°
arcsecant y = arcsec x x = sec y x ≤ −1 or 1 ≤ x 0 ≤ y < Template:Pi/2 or Template:Pi/2 < yTemplate:Pi 0° ≤ y < 90° or 90° < y ≤ 180°
arccosecant y = arccsc x x = csc y x ≤ −1 or 1 ≤ x Template:Pi/2 ≤ y < 0 or 0 < yTemplate:Pi/2 -90° ≤ y < 0° or 0° < y ≤ 90°

If x is allowed to be a complex number, then the range of y applies only to its real part.

## Relationships among the inverse trigonometric functions

Complementary angles:

$\arccos x = \frac\left\{\pi\right\}\left\{2\right\} - \arcsin x$
$\arccot x = \frac\left\{\pi\right\}\left\{2\right\} - \arctan x$
$\arccsc x = \frac\left\{\pi\right\}\left\{2\right\} - \arcsec x$

Negative arguments:

$\arcsin \left(-x\right) = - \arcsin x \!$
$\arccos \left(-x\right) = \pi - \arccos x \!$
$\arctan \left(-x\right) = - \arctan x \!$
$\arccot \left(-x\right) = \pi - \arccot x \!$
$\arcsec \left(-x\right) = \pi - \arcsec x \!$
$\arccsc \left(-x\right) = - \arccsc x \!$

Reciprocal arguments:

$\arccos \left(1/x\right) \,= \arcsec x \,$
$\arcsin \left(1/x\right) \,= \arccsc x \,$
$\arctan \left(1/x\right) = \tfrac\left\{1\right\}\left\{2\right\}\pi - \arctan x =\arccot x,\text\left\{ if \right\}x > 0 \,$
$\arctan \left(1/x\right) = -\tfrac\left\{1\right\}\left\{2\right\}\pi - \arctan x = -\pi + \arccot x,\text\left\{ if \right\}x < 0 \,$
$\arccot \left(1/x\right) = \tfrac\left\{1\right\}\left\{2\right\}\pi - \arccot x =\arctan x,\text\left\{ if \right\}x > 0 \,$
$\arccot \left(1/x\right) = \tfrac\left\{3\right\}\left\{2\right\}\pi - \arccot x = \pi + \arctan x,\text\left\{ if \right\}x < 0 \,$
$\arcsec \left(1/x\right) = \arccos x \,$
$\arccsc \left(1/x\right) = \arcsin x \,$

If you only have a fragment of a sine table:

$\arccos x = \arcsin \sqrt\left\{1-x^2\right\},\text\left\{ if \right\}0 \leq x \leq 1$
$\arctan x = \arcsin \frac\left\{x\right\}\left\{\sqrt\left\{x^2+1\right\}\right\}$

Whenever the square root of a complex number is used here, we choose the root with the positive real part (or positive imaginary part if the square was negative real).

From the half-angle formula $\tan \frac\left\{\theta\right\}\left\{2\right\} = \frac\left\{\sin \theta\right\}\left\{1+\cos \theta\right\}$, we get:

$\arcsin x = 2 \arctan \frac\left\{x\right\}\left\{1+\sqrt\left\{1-x^2\right\}\right\}$
$\arccos x = 2 \arctan \frac\left\{\sqrt\left\{1-x^2\right\}\right\}\left\{1+x\right\},\text\left\{ if \right\}-1 < x \leq +1$
$\arctan x = 2 \arctan \frac\left\{x\right\}\left\{1+\sqrt\left\{1+x^2\right\}\right\}$

## Relationships between trigonometric functions and inverse trigonometric functions

Trigonometric functions of inverse trigonometric functions are tabulated below. A quick way to derive them is by considering the geometry of a right-angled triangle, with one side of length 1, and another side of length x (any real number between 0 and 1), then applying the Pythagorean theorem and definitions the trigonometric ratios. Purely algebraic derivations are longer.

$\theta$ $\sin \theta$ $\cos \theta$ $\tan \theta$ Diagram
$\arcsin x$ $\sin \left(\arcsin x\right) = x$ $\cos \left(\arcsin x\right) = \sqrt\left\{1-x^2\right\}$ $\tan \left(\arcsin x\right) = \frac\left\{x\right\}\left\{\sqrt\left\{1-x^2\right\}\right\}$
$\arccos x$ $\sin \left(\arccos x\right) = \sqrt\left\{1-x^2\right\}$ $\cos \left(\arccos x\right) = x$ $\tan \left(\arccos x\right) = \frac\left\{\sqrt\left\{1-x^2\right\}\right\}\left\{x\right\}$
$\arctan x$ $\sin \left(\arctan x\right) = \frac\left\{x\right\}\left\{\sqrt\left\{1+x^2\right\}\right\}$ $\cos \left(\arctan x\right) = \frac\left\{1\right\}\left\{\sqrt\left\{1+x^2\right\}\right\}$ $\tan \left(\arctan x\right) = x$
$\arccot x$ $\sin \left(\arccot x\right) = \frac\left\{1\right\}\left\{\sqrt\left\{1+x^2\right\}\right\}$ $\cos \left(\arccot x\right) = \frac\left\{x\right\}\left\{\sqrt\left\{1+x^2\right\}\right\}$ $\tan \left(\arccot x\right) = \frac\left\{1\right\}\left\{x\right\}$
$\arcsec x$ $\sin \left(\arcsec x\right) = \frac\left\{\sqrt\left\{x^2-1\right\}\right\}\left\{x\right\}$ $\cos \left(\arcsec x\right) = \frac\left\{1\right\}\left\{x\right\}$ $\tan \left(\arcsec x\right) = \sqrt\left\{x^2-1\right\}$
$\arccsc x$ $\sin \left(\arccsc x\right) = \frac\left\{1\right\}\left\{x\right\}$ $\cos \left(\arccsc x\right) = \frac\left\{\sqrt\left\{x^2-1\right\}\right\}\left\{x\right\}$ $\tan \left(\arccsc x\right) = \frac\left\{1\right\}\left\{\sqrt\left\{x^2-1\right\}\right\}$

## General solutions

Each of the trigonometric functions is periodic in the real part of its argument, running through all its values twice in each interval of 2Template:Pi. Sine and cosecant begin their period at 2Template:PikTemplate:Pi/2 (where k is an integer), finish it at 2Template:Pik + Template:Pi/2, and then reverse themselves over 2Template:Pik + Template:Pi/2 to 2Template:Pik + 3Template:Pi/2. Cosine and secant begin their period at 2Template:Pik, finish it at 2Template:Pik + Template:Pi, and then reverse themselves over 2Template:Pik + Template:Pi to 2Template:Pik + 2Template:Pi. Tangent begins its period at 2Template:PikTemplate:Pi/2, finishes it at 2Template:Pik + Template:Pi/2, and then repeats it (forward) over 2Template:Pik + Template:Pi/2 to 2Template:Pik + 3Template:Pi/2. Cotangent begins its period at 2Template:Pik, finishes it at 2Template:Pik + Template:Pi, and then repeats it (forward) over 2Template:Pik + Template:Pi to 2Template:Pik + 2Template:Pi.

This periodicity is reflected in the general inverses where k is some integer:

$\sin\left(y\right) = x \ \Leftrightarrow\ y = \arcsin\left(x\right) + 2k\pi \text\left\{ or \right\} y = \pi - \arcsin\left(x\right) + 2k\pi$
Which, written in one equation, is: $\sin\left(y\right) = x \ \Leftrightarrow\ y = \left(-1\right)^k\arcsin\left(x\right) + k\pi$
$\cos\left(y\right) = x \ \Leftrightarrow\ y = \arccos\left(x\right) + 2k\pi \text\left\{ or \right\} y = 2\pi - \arccos\left(x\right) + 2k\pi$
Which, written in one equation, is: $\cos\left(y\right) = x \ \Leftrightarrow\ y = \pm\arccos\left(x\right) + 2k\pi$
$\tan\left(y\right) = x \ \Leftrightarrow\ y = \arctan\left(x\right) + k\pi$
$\cot\left(y\right) = x \ \Leftrightarrow\ y = \arccot\left(x\right) + k\pi$
$\sec\left(y\right) = x \ \Leftrightarrow\ y = \arcsec\left(x\right) + 2k\pi \text\left\{ or \right\} y = 2\pi - \arcsec \left(x\right) + 2k\pi$
$\csc\left(y\right) = x \ \Leftrightarrow\ y = \arccsc\left(x\right) + 2k\pi \text\left\{ or \right\} y = \pi - \arccsc\left(x\right) + 2k\pi$

## Extension to complex plane

Since the inverse trigonometric functions are analytic functions, they can be extended from the real line to the complex plane. This results in functions with multiple sheets and branch points. One possible way of defining the extensions is:

$\arctan z = \int_0^z \frac\left\{d x\right\}\left\{1 + x^2\right\} \quad z \neq -i, +i \,$

where the part of the imaginary axis which does not lie strictly between −i and +i is the cut between the principal sheet and other sheets;

$\arcsin z = \arctan \frac\left\{z\right\}\left\{\sqrt\left\{1 - z^2\right\}\right\} \quad z \neq -1, +1 \,$

where (the square-root function has its cut along the negative real axis and) the part of the real axis which does not lie strictly between −1 and +1 is the cut between the principal sheet of arcsin and other sheets;

$\arccos z = \frac\left\{\pi\right\}\left\{2\right\} - \arcsin z \quad z \neq -1, +1 \,$

which has the same cut as arcsin;

$\arccot z = \frac\left\{\pi\right\}\left\{2\right\} - \arctan z \quad z \neq -i, +i \,$

which has the same cut as arctan;

$\arcsec z = \arccos \frac\left\{1\right\}\left\{z\right\} \quad z \neq -1, 0, +1 \,$

where the part of the real axis between −1 and +1 inclusive is the cut between the principal sheet of arcsec and other sheets;

$\arccsc z = \arcsin \frac\left\{1\right\}\left\{z\right\} \quad z \neq -1, 0, +1 \,$

which has the same cut as arcsec.

## Derivatives of inverse trigonometric functions

The derivatives for complex values of z are as follows:



\begin{align} \frac{d}{dz} \arcsin z & {}= \frac{1}{\sqrt{1-z^2}}; \quad z \neq -1, +1 \\ \frac{d}{dz} \arccos z & {}= \frac{-1}{\sqrt{1-z^2}}; \quad z \neq -1, +1 \\ \frac{d}{dz} \arctan z & {}= \frac{1}{1+z^2}; \quad z \neq -i, +i \\ \frac{d}{dz} \arccot z & {}= \frac{-1}{1+z^2}; \quad z \neq -i, +i \\ \frac{d}{dz} \arcsec z & {}= \frac{1}{z^2\,\sqrt{1 - z^{-2}}}; \quad z \neq -1, 0, +1 \\ \frac{d}{dz} \arccsc z & {}= \frac{-1}{z^2\,\sqrt{1 - z^{-2}}}; \quad z \neq -1, 0, +1 \end{align} Only for real values of x:



\begin{align} \frac{d}{dx} \arcsec x & {}= \frac{1}{|x|\,\sqrt{x^2-1}}; \qquad |x| > 1\\ \frac{d}{dx} \arccsc x & {}= \frac{-1}{|x|\,\sqrt{x^2-1}}; \qquad |x| > 1 \end{align}

For a sample derivation: if $\theta = \arcsin x \!$, we get:

$\frac\left\{d \arcsin x\right\}\left\{dx\right\} = \frac\left\{d \theta\right\}\left\{d \sin \theta\right\} = \frac\left\{d \theta\right\}\left\{\cos \theta d \theta\right\} = \frac\left\{1\right\} \left\{\cos \theta\right\} = \frac\left\{1\right\} \left\{\sqrt\left\{1-\sin^2 \theta\right\}\right\} = \frac\left\{1\right\}\left\{\sqrt\left\{1-x^2\right\}\right\}$

## Expression as definite integrals

Integrating the derivative and fixing the value at one point gives an expression for the inverse trigonometric function as a definite integral:



\begin{align} \arcsin x &{}= \int_0^x \frac {1} {\sqrt{1 - z^2}}\,dz,\qquad |x| \leq 1\\ \arccos x &{}= \int_x^1 \frac {1} {\sqrt{1 - z^2}}\,dz,\qquad |x| \leq 1\\ \arctan x &{}= \int_0^x \frac 1 {z^2 + 1}\,dz,\\ \arccot x &{}= \int_x^\infty \frac {1} {z^2 + 1}\,dz,\\ \arcsec x &{}= \int_1^x \frac 1 {z \sqrt{z^2 - 1}}\,dz, \qquad x \geq 1\\ \arcsec x &{}= \pi + \int_x^{-1} \frac 1 {z \sqrt{z^2 - 1}}\,dz, \qquad x \leq -1\\ \arccsc x &{}= \int_x^\infty \frac {1} {z \sqrt{z^2 - 1}}\,dz, \qquad x \geq 1\\ \arccsc x &{}= \int_{-\infty}^x \frac {1} {z \sqrt{z^2 - 1}}\,dz, \qquad x \leq -1 \end{align} When x equals 1, the integrals with limited domains are improper integrals, but still well-defined.

## Infinite series

Like the sine and cosine functions, the inverse trigonometric functions can be calculated using infinite series, as follows:

$\arcsin z = z + \left\left( \frac \left\{1\right\} \left\{2\right\} \right\right) \frac \left\{z^3\right\} \left\{3\right\}$

+ \left( \frac {1 \cdot 3} {2 \cdot 4} \right) \frac {z^5} {5} + \left( \frac{1 \cdot 3 \cdot 5} {2 \cdot 4 \cdot 6 } \right) \frac{z^7} {7} + \cdots\ = \sum_{n=0}^\infty \frac {\binom{2n} n z^{2n+1}} {4^n (2n+1)}; \qquad | z | \le 1

$\arccos z = \frac \left\{\pi\right\} \left\{2\right\} - \arcsin z$

= \frac {\pi} {2} - \left( z + \left( \frac {1} {2} \right) \frac {z^3} {3} + \left( \frac {1 \cdot 3} {2 \cdot 4} \right) \frac {z^5} {5} + \cdots\ \right) = \frac {\pi} {2} - \sum_{n=0}^\infty \frac {\binom{2n} n z^{2n+1}} {4^n (2n+1)}; \qquad | z | \le 1

$\arctan z = z - \frac \left\{z^3\right\} \left\{3\right\} +\frac \left\{z^5\right\} \left\{5\right\} -\frac \left\{z^7\right\} \left\{7\right\} +\cdots\$

= \sum_{n=0}^\infty \frac {(-1)^n z^{2n+1}} {2n+1}; \qquad | z | \le 1 \qquad z \neq i,-i

$\arccot z = \frac \left\{\pi\right\} \left\{2\right\} - \arctan z \ = \frac \left\{\pi\right\} \left\{2\right\} - \left\left( z - \frac \left\{z^3\right\} \left\{3\right\} +\frac \left\{z^5\right\} \left\{5\right\} -\frac \left\{z^7\right\} \left\{7\right\} +\cdots\ \right\right)$

= \frac {\pi} {2} - \sum_{n=0}^\infty \frac {(-1)^n z^{2n+1}} {2n+1}; \qquad | z | \le 1 \qquad z \neq i,-i

$\arcsec z = \arccos \left\{\left(1/z\right)\right\}$

= \frac {\pi} {2} - \left( z^{-1} + \left( \frac {1} {2} \right) \frac {z^{-3}} {3} + \left( \frac {1 \cdot 3} {2 \cdot 4} \right) \frac {z^{-5}} {5} + \cdots\ \right) = \frac {\pi} {2} - \sum_{n=0}^\infty \frac {\binom{2n} n z^{-(2n+1)}} {4^n (2n+1)}; \qquad | z | \ge 1

$\arccsc z = \arcsin \left\{\left(1/z\right)\right\}$

= z^{-1} + \left( \frac {1} {2} \right) \frac {z^{-3}} {3} + \left( \frac {1 \cdot 3} {2 \cdot 4 } \right) \frac {z^{-5}} {5} +\cdots\ = \sum_{n=0}^\infty \frac {\binom{2n} n z^{-(2n+1)}} {4^n (2n+1)}; \qquad | z | \ge 1

Leonhard Euler found a more efficient series for the arctangent, which is:

$\arctan z = \frac\left\{z\right\}\left\{1+z^2\right\} \sum_\left\{n=0\right\}^\infty \prod_\left\{k=1\right\}^n \frac\left\{2k z^2\right\}\left\{\left(2k+1\right)\left(1+z^2\right)\right\}.$

(Notice that the term in the sum for n = 0 is the empty product which is 1.)

Alternatively, this can be expressed:

$\arctan z = \sum_\left\{n=0\right\}^\infty \frac\left\{2^\left\{\,2n\right\}\,\left(n!\right)^2\right\}\left\{\left\left(2n+1\right\right)!\right\} \; \frac\left\{z^\left\{\,2n+1\right\}\right\}\left\{\left\left(1+z^2\right\right)^\left\{n+1\right\}\right\}$

## Continued fractions for arctangent

Two alternatives to the power series for arctangent are these generalized continued fractions:



\arctan z=\cfrac{z} {1+\cfrac{(1z)^2} {3-1z^2+\cfrac{(3z)^2} {5-3z^2+\cfrac{(5z)^2} {7-5z^2+\cfrac{(7z)^2} {9-7z^2+\ddots}}}}} =\cfrac{z} {1+\cfrac{(1z)^2} {3+\cfrac{(2z)^2} {5+\cfrac{(3z)^2} {7+\cfrac{(4z)^2} {9+\ddots\,}}}}}\, The second of these is valid in the cut complex plane. There are two cuts, from −i to the point at infinity, going down the imaginary axis, and from i to the point at infinity, going up the same axis. It works best for real numbers running from −1 to 1. The partial denominators are the odd natural numbers, and the partial numerators (after the first) are just (nz)2, with each perfect square appearing once. The first was developed by Leonhard Euler; the second by Carl Friedrich Gauss utilizing the Gaussian hypergeometric series.

## Indefinite integrals of inverse trigonometric functions

For real and complex values of x:



\begin{align} \int \arcsin x\,dx &{}= x\,\arcsin x + \sqrt{1-x^2} + C\\ \int \arccos x\,dx &{}= x\,\arccos x - \sqrt{1-x^2} + C\\ \int \arctan x\,dx &{}= x\,\arctan x - \frac{1}{2}\ln\left(1+x^2\right) + C\\ \int \arccot x\,dx &{}= x\,\arccot x + \frac{1}{2}\ln\left(1+x^2\right) + C\\ \int \arcsec x\,dx &{}= x\,\arcsec x - \ln\left[x\left(1+\sqrt&\quad\quad{}v = x \end{align}

Then

$\int \arcsin\left(x\right)\,\mathrm\left\{d\right\}x = x \arcsin x - \int \frac\left\{x\right\}\left\{\sqrt\left\{1-x^2\right\}\right\}\,\mathrm\left\{d\right\}x$
$k = 1 - x^2.\,$

Then

$\mathrm\left\{d\right\}k = -2x\,\mathrm\left\{d\right\}x$

and

$\int \frac\left\{x\right\}\left\{\sqrt\left\{1-x^2\right\}\right\}\,\mathrm\left\{d\right\}x = -\frac\left\{1\right\}\left\{2\right\}\int \frac\left\{\mathrm\left\{d\right\}k\right\}\left\{\sqrt\left\{k\right\}\right\} = -\sqrt\left\{k\right\}$

Back-substitute for x to yield

$\int \arcsin\left(x\right)\, \mathrm\left\{d\right\}x = x \arcsin x + \sqrt\left\{1-x^2\right\}+C$

## Two-argument variant of arctangent

Main article: atan2

The two-argument atan2 function computes the arctangent of y / x given y and x, but with a range of (−Template:PiTemplate:Pi]. In other words, atan2(yx) is the angle between the positive x-axis of a plane and the point (xy) on it, with positive sign for counter-clockwise angles (upper half-plane, y > 0), and negative sign for clockwise angles (lower half-plane, y < 0). It was first introduced in many computer programming languages, but it is now also common in other fields of science and engineering.

In terms of the standard arctan function, that is with range of (−Template:Pi/2, Template:Pi/2), it can be expressed as follows:

$\operatorname\left\{atan2\right\}\left(y, x\right) = \begin\left\{cases\right\}$

\arctan(\frac y x) & \qquad x > 0 \\ \pi + \arctan(\frac y x) & \qquad y \ge 0 , x < 0 \\ -\pi + \arctan(\frac y x) & \qquad y < 0 , x < 0 \\ \frac{\pi}{2} & \qquad y > 0 , x = 0 \\ -\frac{\pi}{2} & \qquad y < 0 , x = 0 \\ \text{undefined} & \qquad y = 0, x = 0 \end{cases}

It also equals the principal value of the argument of the complex number x + iy.

This function may also be defined using the tangent half-angle formulae as follows:

$\operatorname\left\{atan2\right\}\left(y, x\right)=2\arctan \frac\left\{y\right\}\left\{\sqrt\left\{x^2 + y^2\right\} + x\right\}$

provided that either x > 0 or y ≠ 0. However this fails if given x ≤ 0 and y = 0 so the expression is unsuitable for computational use.

The above argument order (y, x) seems to be the most common, and in particular is used in ISO standards such as the C programming language, but a few authors may use the opposite convention (x, y) so some caution is warranted. These variations are detailed at Atan2.

## Arctangent function with location parameter

In many applications the solution $y$ of the equation $x=\tan y$ is to come as close as possible to a given value $-\infty<\eta<\infty$. The adequate solution is produced by the parameter modified arctangent function

$y=\arctan_\eta x:=\arctan x+\pi\cdot\operatorname\left\{rni\right\}\frac\left\{\eta-\arctan x\right\}\left\{\pi\right\} \, .$

The function $\operatorname\left\{rni\right\}$ rounds to the nearest integer.

## Logarithmic forms

These functions may also be expressed using complex logarithms. This extends in a natural fashion their domain to the complex plane.



\begin{align} \arcsin x &{}= -i\,\ln\left(i\,x+\sqrt{1-x^2}\right) &{}= \arccsc \frac{1}{x}\\[10pt] \arccos x &{}= i\,\ln\left(x-i\,\sqrt{1-x^2}\right) = \frac{\pi}{2}\,+i\ln\left(i\,x+\sqrt{1-x^2}\right) = \frac{\pi}{2}-\arcsin x &{}= \arcsec \frac{1}{x}\\[10pt] \arctan x &{}= \tfrac{1}{2}i\left(\ln\left(1-i\,x\right)-\ln\left(1+i\,x\right)\right) &{}= \arccot \frac{1}{x}\\[10pt] \arccot x &{}= \tfrac{1}{2}i\left(\ln\left(1-\frac{i}{x}\right)-\ln\left(1+\frac{i}{x}\right)\right) &{}= \arctan \frac{1}{x}\\[10pt] \arcsec x &{}= -i\,\ln\left(i\,\sqrt{1-\frac{1}{x^2}}+\frac{1}{x}\right) = i\,\ln\left(\sqrt{1-\frac{1}{x^2}}+\frac{i}{x}\right)+\frac{\pi}{2} = \frac{\pi}{2}-\arccsc x &{}= \arccos \frac{1}{x}\\[10pt] \arccsc x &{}= -i\,\ln\left(\sqrt{1-\frac{1}{x^2}}+\frac{i}{x}\right) &{}= \arcsin \frac{1}{x} \end{align}

Elementary proofs of these relations proceed via expansion to exponential forms of the trigonometric functions.

### Example proof

$\theta = \arcsin x$
$\sin\left(\theta\right) = \sin\left(\arcsin x\right)$
$\sin\left(\theta\right) = x$

Using the exponential definition of sine

$\frac\left\{e^\left\{i\phi\right\} - e^\left\{-i\phi\right\}\right\}\left\{2i\right\} = \sin\left(\phi\right)$

one obtains

$\frac\left\{e^\left\{i\theta\right\} - e^\left\{-i\theta\right\}\right\}\left\{2i\right\} = x$

Let

$k=e^\left\{i\,\theta\right\}. \,$

Then

$\frac\left\{k-\frac\left\{1\right\}\left\{k\right\}\right\}\left\{2i\right\} = x$
$\left\{k-\frac\left\{1\right\}\left\{k\right\}\right\} = 2ix$
$\left\{k -2ix -\frac\left\{1\right\}\left\{k\right\}\right\} = 0$
$k^2-2\,i\,k\,x-1\,=\,0$
$k = ix \pm \sqrt\left\{1-x^2\right\} \,$
$e^\left\{i\theta\right\} = ix \pm \sqrt\left\{1-x^2\right\} \,$
$i \theta = \ln \left\left(ix \pm \sqrt\left\{1-x^2\right\}\right\right) \,$
$\theta = -i \ln \left\left(ix \pm \sqrt\left\{1-x^2\right\}\right\right) \,$

(the positive branch is chosen)

$\theta = \arcsin x = -i \ln \left\left(ix + \sqrt\left\{1-x^2\right\}\right\right) \,$

### Example proof (variant 2)

$\theta = \arcsin x$
$e^\left\{i\theta\right\}= \cos \left(\theta\right) + i \sin\left(\theta\right)$
Apply the natural logarithm, multiply by -i and substitute theta.
$\arcsin x= -i \ln\left(\cos \left(\arcsin x\right) + i \sin\left(\arcsin x\right)\right)$
$\arcsin x= -i \ln\left(\sqrt\left\{1-x^2\right\} + i x\right)$
 \arcsin(z) \arccos(z) \arctan(z) \arccot(z) \arcsec(z) \arccsc(z)

$\arctan u + \arctan v = \arctan \left\left( \frac\left\{u+v\right\}\left\{1-uv\right\} \right\right) \pmod \pi, \qquad u v \ne 1 \,.$

This is derived from the tangent addition formula

$\tan \left( \alpha + \beta \right) = \frac\left\{\tan \alpha + \tan \beta\right\} \left\{1 - \tan \alpha \tan \beta\right\} \,,$

by letting

$\alpha = \arctan u \,, \quad \beta = \arctan v \,.$

## Application: finding the angle of a right triangle

Inverse trigonometric functions are useful when trying to determine the remaining two angles of a right triangle when the lengths of the sides of the triangle are known. Recalling the right-triangle definitions of sine, for example, it follows that

$\theta = \arcsin \left\left( \frac\left\{\text\left\{opposite\right\}\right\}\left\{\text\left\{hypotenuse\right\}\right\} \right\right).$

Often, the hypotenuse is unknown and would need to be calculated before using arcsine or arccosine using the Pythagorean Theorem: $a^2+b^2=h^2$ where $h$ is the length of the hypotenuse. Arctangent comes in handy in this situation, as the length of the hypotenuse is not needed.

$\theta = \arctan \left\left( \frac\left\{\text\left\{opposite\right\}\right\}\left\{\text\left\{adjacent\right\}\right\} \right\right).$

For example, suppose a roof drops 8 feet as it runs out 20 feet. The roof makes an angle θ with the horizontal, where θ may be computed as follows:

$\theta = \arctan \left\left(\frac\left\{\text\left\{opposite\right\}\right\}\left\{\text\left\{adjacent\right\}\right\} \right\right) = \arctan \left\left( \frac\left\{\text\left\{rise\right\}\right\}\left\{\text\left\{run\right\}\right\} \right\right) = \arctan \left\left( \frac\left\{8\right\}\left\{20\right\} \right\right) \approx 21.8^\left\{\circ\right\}.$

## Practical considerations

For angles near 0 and Template:Pi, arccosine is ill-conditioned and will thus calculate the angle with reduced accuracy in a computer implementation (due to the limited number of digits). Similarly, arcsine is inaccurate for angles near −Template:Pi/2 and Template:Pi/2. To achieve full accuracy for all angles, arctangent or atan2 should be used for the implementation.