Inverse trigonometric functions explained

In mathematics, the inverse trigonometric functions (occasionally also called arcus functions, antitrigonometric functions or cyclometric functions) 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,[1] and 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

Several notations for the inverse trigonometric functions exist. The most common convention is to name inverse trigonometric functions using an arc- prefix:,,, etc. (This convention is used throughout this article.) This notation arises from the following geometric relationships:when measuring in radians, an angle of radians will correspond to an arc whose length is, where is the radius of the circle. Thus in the unit circle, the cosine of x function is both the arc and the angle, because the arc of a circle of radius 1 is the same as the angle. Or, "the arc whose cosine is " is the same as "the angle whose cosine is ", because the length of the arc of the circle in radii is the same as the measurement of the angle in radians. In computer programming languages, the inverse trigonometric functions are often called by the abbreviated forms,, .[2]

The notations,,, etc., as introduced by John Herschel in 1813, are often used as well in English-language sources, much more than the also established,, – conventions consistent with the notation of an inverse function, that is useful (for example) to define the multivalued version of each inverse trigonometric function:

\tan-1(x)=\{\arctan(x)+\pik\midk\inZ\}~.

However, this might appear to conflict logically with the common semantics for expressions such as (although only, without parentheses, is the really common use), which refer to numeric power rather than function composition, and therefore may result in confusion between notation for the reciprocal (multiplicative inverse) and inverse function.[3]

The confusion is somewhat mitigated by the fact that each of the reciprocal trigonometric functions has its own name — for example, . Nevertheless, certain authors advise against using it, since it is ambiguous. Another precarious convention used by a small number of authors is to use an uppercase first letter, along with a “” superscript:,,, etc. Although it is intended to avoid confusion with the reciprocal, which should be represented by,, etc., or, better, by,, etc., it in turn creates yet another major source of ambiguity, especially since many popular high-level programming languages (e.g. Mathematica and MAGMA) use those very same capitalised representations for the standard trig functions, whereas others (Python, SymPy, NumPy, Matlab, MAPLE, etc.) use lower-case.

Hence, since 2009, the ISO 80000-2 standard has specified solely the "arc" prefix for the inverse functions.

Basic concepts

Principal values

Since none of the six trigonometric functions are one-to-one, they must be restricted in order to have inverse functions. Therefore, the result ranges of the inverse functions are proper (i.e. strict) subsets of the domains of the original functions.

For example, using in the sense of multivalued functions, just as the square root function

y=\sqrt{x}

could be defined from

y2=x,

the function

y=\arcsin(x)

is defined so that

\sin(y)=x.

For a given real number

x,

with

-1\leqx\leq1,

there are multiple (in fact, countably infinitely many) numbers

y

such that

\sin(y)=x

; for example,

\sin(0)=0,

but also

\sin(\pi)=0,

\sin(2\pi)=0,

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.

NameUsual notationDefinitionDomain of

x

for real result
Range of usual principal value
(radians)
Range of usual principal value
(degrees)
arcsine

y=\arcsin(x)

-1\leqx\leq1

-

\pi
2

\leqy\leq

\pi
2

-90\circ\leqy\leq90\circ

arccosine

y=\arccos(x)

-1\leqx\leq1

0\leqy\leq\pi

0\circ\leqy\leq180\circ

arctangent

y=\arctan(x)

all real numbers

-

\pi
2

<y<

\pi
2

-90\circ<y<90\circ

arccotangent

y=\arccot(x)

all real numbers

0<y<\pi

0\circ<y<180\circ

arcsecant

y=\arcsec(x)

{\left\vertx\right\vert}\geq1

0\leqy<

\pi
2

or

\pi
2

<y\leq\pi

0\circ\leqy<90\circor90\circ<y\leq180\circ

arccosecant

y=\arccsc(x)

{\left\vertx\right\vert}\geq1

-

\pi
2

\leqy<0or0<y\leq

\pi
2

-90\circ\leqy<0\circor0\circ<y\leq90\circ

Note: Some authors define the range of arcsecant to be (0 \leq y < \frac \text \pi \leq y < \frac), because the tangent function is nonnegative on this domain. This makes some computations more consistent. For example, using this range,

\tan(\arcsec(x))=\sqrt{x2-1},

whereas with the range (0 \leq y < \frac \text \frac < y \leq \pi), we would have to write

\tan(\arcsec(x))=\pm\sqrt{x2-1},

since tangent is nonnegative on 0 \leq y < \frac, but nonpositive on \frac < y \leq \pi. For a similar reason, the same authors define the range of arccosecant to be (- \pi < y \leq - \frac or 0 < y \leq \frac) .

Domains

If

x

is allowed to be a complex number, then the range of

y

applies only to its real part.

Solutions to elementary trigonometric equations

Each of the trigonometric functions is periodic in the real part of its argument, running through all its values twice in each interval of

2\pi:

k

is an integer), finish it at 2 \pi k+\frac, and then reverse themselves over 2 \pi k+\frac to 2 \pi k+\frac.

2\pik,

finish it at

2\pik+\pi.

and then reverse themselves over

2\pik+\pi

to

2\pik+2\pi.

2\pik,

finishes it at

2\pik+\pi,

and then repeats it (forward) over

2\pik+\pi

to

2\pik+2\pi.

This periodicity is reflected in the general inverses, where

k

is some integer.

The following table shows how inverse trigonometric functions may be used to solve equalities involving the six standard trigonometric functions. It is assumed that the given values

\theta,

r,

s,

x,

and

y

all lie within appropriate ranges so that the relevant expressions below are well-defined. Note that "for some

k\in\Z

" is just another way of saying "for some integer

k.

"

The symbol

\iff

is logical equality and indicates that if the left hand side is true then so is the right hand side and, conversely, if the right hand side is true then so is the left hand side (see this footnote[4] for more details and an example illustrating this concept).
Equation Solution

\sin\theta=y

\iff

style='border-style: solid none solid none; text-align: left; padding-left: 2em;'

\theta=

style='border-style: solid none solid none; text-align: right;'

(-1)k

style='border-style: solid none solid none; text-align: left;'

\arcsin(y)

style='border-style: solid none solid none;'

+

style='border-style: solid none solid none;' style='border-style: solid none solid none; padding-right: 2em;'

\pik

for some

k\in\Z

<
--------------- END: sin θ = x --------------->

\csc\theta=r

\iff

style='border-style: solid none solid none; text-align: left; padding-left: 2em;'

\theta=

style='border-style: solid none solid none; text-align: right;'

(-1)k

style='border-style: solid none solid none; text-align: left;'

\arccsc(r)

style='border-style: solid none solid none;'

+

style='border-style: solid none solid none;' style='border-style: solid none solid none; padding-right: 2em;'

\pik

for some

k\in\Z

<
--------------- END: csc θ = r --------------->

\cos\theta=x

\iff

style='border-style: solid none solid none; text-align: left; padding-left: 2em;'

\theta=

style='border-style: solid none solid none; text-align: right;'

\pm

style='border-style: solid none solid none; text-align: left;'

\arccos(x)

style='border-style: solid none solid none;'

+

style='border-style: solid none solid none;'

2

style='border-style: solid none solid none; padding-right: 2em;'

\pik

for some

k\in\Z

<
--------------- END: cos θ = x --------------->

\sec\theta=r

\iff

style='border-style: solid none solid none; text-align: left; padding-left: 2em;'

\theta=

style='border-style: solid none solid none; text-align: right;'

\pm

style='border-style: solid none solid none; text-align: left;'

\arcsec(r)

style='border-style: solid none solid none;'

+

style='border-style: solid none solid none;'

2

style='border-style: solid none solid none; padding-right: 2em;'

\pik

for some

k\in\Z

\tan\theta=s

\iff

style='border-style: solid none solid none; text-align: left; padding-left: 2em;'

\theta=

style='border-style: solid none solid none; text-align: right;' style='border-style: solid none solid none; text-align: left;'

\arctan(s)

style='border-style: solid none solid none;'

+

style='border-style: solid none solid none;' style='border-style: solid none solid none; padding-right: 2em;'

\pik

for some

k\in\Z

<
--------------- END: tan θ = s --------------->

\cot\theta=r

\iff

style='border-style: solid none solid none; text-align: left; padding-left: 2em;'

\theta=

style='border-style: solid none solid none; text-align: right;' style='border-style: solid none solid none; text-align: left;'

\arccot(r)

style='border-style: solid none solid none;'

+

style='border-style: solid none solid none;' style='border-style: solid none solid none; padding-right: 2em;'

\pik

for some

k\in\Z

<
--------------- END: cot θ = r --------------->

where the first four solutions can be written in expanded form as:

Equation Solution

\sin\theta=y

\iff

style='border-style: solid none solid none; text-align: left; padding-left: 2em;'

\theta=   \arcsin(y)+2\pih


or

\theta=-\arcsin(y)+2\pih+\pi

for some

h\in\Z

<
--------------- END: sin θ = x --------------->

\csc\theta=r

\iff

style='border-style: solid none solid none; text-align: left; padding-left: 2em;'

\theta=   \arccsc(r)+2\pih


or

\theta=-\arccsc(r)+2\pih+\pi

for some

h\in\Z

<
--------------- END: csc θ = r --------------->

\cos\theta=x

\iff

style='border-style: solid none solid none; text-align: left; padding-left: 2em;'

\theta=   \arccos(x)+2\pik


or

\theta=-\arccos(x)+2\pik

for some

k\in\Z

<
--------------- END: cos θ = x --------------->

\sec\theta=r

\iff

style='border-style: solid none solid none; text-align: left; padding-left: 2em;'

\theta=   \arcsec(r)+2\pik


or

\theta=-\arcsec(r)+2\pik

for some

k\in\Z

<
--------------- END: sec θ = r --------------->

For example, if

\cos\theta=-1

then

\theta=\pi+2\pik=-\pi+2\pi(1+k)

for some

k\in\Z.

While if

\sin\theta=\pm1

then \theta = \frac+\pi k =-\frac+\pi (k+1) for some

k\in\Z,

where

k

will be even if

\sin\theta=1

and it will be odd if

\sin\theta=-1.

The equations

\sec\theta=-1

and

\csc\theta=\pm1

have the same solutions as

\cos\theta=-1

and

\sin\theta=\pm1,

respectively. In all equations above for those just solved (i.e. except for

\sin

/

\csc\theta=\pm1

and

\cos

/

\sec\theta=-1

), the integer

k

in the solution's formula is uniquely determined by

\theta

(for fixed

r,s,x,

and

y

).

With the help of integer parity \operatorname(h) =\begin0 & \text h \text \\1 & \text h \text \\\endit is possible to write a solution to

\cos\theta=x

that doesn't involve the "plus or minus"

\pm

symbol:

cos\theta=x

if and only if

\theta=(-1)h\arccos(x)+\pih+\pi\operatorname{Parity}(h)

for some

h\in\Z.

And similarly for the secant function,

sec\theta=r

if and only if

\theta=(-1)h\arcsec(r)+\pih+\pi\operatorname{Parity}(h)

for some

h\in\Z,

where

\pih+\pi\operatorname{Parity}(h)

equals

\pih

when the integer

h

is even, and equals

\pih+\pi

when it's odd.

Detailed example and explanation of the "plus or minus" symbol

The solutions to

\cos\theta=x

and

\sec\theta=x

involve the "plus or minus" symbol

\pm,

whose meaning is now clarified. Only the solution to

\cos\theta=x

will be discussed since the discussion for

\sec\theta=x

is the same. We are given

x

between

-1\leqx\leq1

and we know that there is an angle

\theta

in some interval that satisfies

\cos\theta=x.

We want to find this

\theta.

The table above indicates that the solution is \,\theta = \pm \arccos x+2 \pi k\, \quad \textk \in \Zwhich is a shorthand way of saying that (at least) one of the following statement is true:

\theta=\arccosx+2\pik

for some integer

k,


or

\theta=-\arccosx+2\pik

for some integer

k.

As mentioned above, if

\arccosx=\pi

(which by definition only happens when

x=\cos\pi=-1

) then both statements (1) and (2) hold, although with different values for the integer

k

: if

K

is the integer from statement (1), meaning that

\theta=\pi+2\piK

holds, then the integer

k

for statement (2) is

K+1

(because

\theta=-\pi+2\pi(1+K)

). However, if

x-1

then the integer

k

is unique and completely determined by

\theta.

If

\arccosx=0

(which by definition only happens when

x=\cos0=1

) then

\pm\arccosx=0

(because

+\arccosx=+0=0

and

-\arccosx=-0=0

so in both cases

\pm\arccosx

is equal to

0

) and so the statements (1) and (2) happen to be identical in this particular case (and so both hold). Having considered the cases

\arccosx=0

and

\arccosx=\pi,

we now focus on the case where

\arccosx0

and

\arccosx\pi,

So assume this from now on. The solution to

\cos\theta=x

is still\,\theta = \pm \arccos x+2 \pi k\, \quad \textk \in \Zwhich as before is shorthand for saying that one of statements (1) and (2) is true. However this time, because

\arccosx0

and

0<\arccosx<\pi,

statements (1) and (2) are different and furthermore, exactly one of the two equalities holds (not both). Additional information about

\theta

is needed to determine which one holds. For example, suppose that

x=0

and that that is known about

\theta

is that

-\pi\leq\theta\leq\pi

(and nothing more is known). Then \arccos x = \arccos 0 = \frac and moreover, in this particular case

k=0

(for both the

+

case and the

-

case) and so consequently,\theta ~=~ \pm \arccos x+2 \pi k ~=~ \pm \left(\frac\right)+2\pi (0) ~=~ \pm \frac.This means that

\theta

could be either

\pi/2

or

-\pi/2.

Without additional information it is not possible to determine which of these values

\theta

has. An example of some additional information that could determine the value of

\theta

would be knowing that the angle is above the

x

-axis (in which case

\theta=\pi/2

) or alternatively, knowing that it is below the

x

-axis (in which case

\theta=-\pi/2

).

Equal identical trigonometric functions

Set of all solutions to elementary trigonometric equations

Thus given a single solution

\theta

to an elementary trigonometric equation (

\sin\theta=y

is such an equation, for instance, and because

\sin(\arcsiny)=y

always holds,

\theta:=\arcsiny

is always a solution), the set of all solutions to it are:
If

\theta

solves
then Set of all solutions (in terms of

\theta

)

\sin\theta=y

thenstyle='border-style: solid none solid none; text-align: left; padding-left: 1em;'

\{\varphi:\sin\varphi=y\}=

style='border-style: solid none solid none; text-align: right; padding: 0;'

(\theta

style='border-style: solid none solid none; text-align: left; padding: 0;'

+2

style='border-style: solid none solid none; text-align: left; padding: 0;'

\pi\Z)

style='border-style: solid none solid none; text-align: left; padding: 0;'

\cup(-\theta

style='border-style: solid none solid none; text-align: left; padding: 0;'

-\pi

style='border-style: solid solid solid none; text-align: left; padding-left: 0; padding-right: 2em;'

+2\pi\Z)

\csc\theta=r

thenstyle='border-style: solid none solid none; text-align: left; padding-left: 1em;'

\{\varphi:\csc\varphi=r\}=

style='border-style: solid none solid none; text-align: right; padding: 0;'

(\theta

style='border-style: solid none solid none; text-align: left; padding: 0;'

+2

style='border-style: solid none solid none; text-align: left; padding: 0;'

\pi\Z)

style='border-style: solid none solid none; text-align: left; padding: 0;'

\cup(-\theta

style='border-style: solid none solid none; text-align: left; padding: 0;'

-\pi

style='border-style: solid solid solid none; text-align: left; padding-left: 0; padding-right: 2em;'

+2\pi\Z)

\cos\theta=x

thenstyle='border-style: solid none solid none; text-align: left; padding-left: 1em;'

\{\varphi:\cos\varphi=x\}=

style='border-style: solid none solid none; text-align: right; padding: 0;'

(\theta

style='border-style: solid none solid none; text-align: left; padding: 0;'

+2

style='border-style: solid none solid none; text-align: left; padding: 0;'

\pi\Z)

style='border-style: solid none solid none; text-align: left; padding: 0;'

\cup(-\theta

style='border-style: solid none solid none; text-align: left; padding: 0;' style='border-style: solid solid solid none; text-align: left; padding-left: 0; padding-right: 2em;'

+2\pi\Z)

\sec\theta=r

thenstyle='border-style: solid none solid none; text-align: left; padding-left: 1em;'

\{\varphi:\sec\varphi=r\}=

style='border-style: solid none solid none; text-align: right; padding: 0;'

(\theta

style='border-style: solid none solid none; text-align: left; padding: 0;'

+2

style='border-style: solid none solid none; text-align: left; padding: 0;'

\pi\Z)

style='border-style: solid none solid none; text-align: left; padding: 0;'

\cup(-\theta

style='border-style: solid none solid none; text-align: left; padding: 0;' style='border-style: solid solid solid none; text-align: left; padding-left: 0; padding-right: 2em;'

+2\pi\Z)

\tan\theta=s

thenstyle='border-style: solid none solid none; text-align: left; padding-left: 1em;'

\{\varphi:\tan\varphi=s\}=

style='border-style: solid none solid none; text-align: right; padding: 0;'

\theta

style='border-style: solid none solid none; text-align: left; padding: 0;'

+

style='border-style: solid none solid none; text-align: left; padding: 0;'

\pi\Z

style='border-style: solid none solid none; text-align: left; padding: 0;' style='border-style: solid none solid none; text-align: left; padding: 0;' style='border-style: solid solid solid none; text-align: left; padding-left: 0; padding-right: 2em;'

\cot\theta=r

thenstyle='border-style: solid none solid none; text-align: left; padding-left: 1em;'

\{\varphi:\cot\varphi=r\}=

style='border-style: solid none solid none; text-align: right; padding: 0;'

\theta

style='border-style: solid none solid none; text-align: left; padding: 0;'

+

style='border-style: solid none solid none; text-align: left; padding: 0;'

\pi\Z

style='border-style: solid none solid none; text-align: left; padding: 0;' style='border-style: solid none solid none; text-align: left; padding: 0;' style='border-style: solid solid solid none; text-align: left; padding-left: 0; padding-right: 2em;'

Transforming equations

The equations above can be transformed by using the reflection and shift identities:

Transforming equations by shifts and reflections
Argument:

\underline{~~~~~~}=

-\theta

\pi
2

\pm\theta

\pi\pm\theta

3\pi
2

\pm\theta

2k\pi\pm\theta,


(k\in\Z)

\sin\underline{~~~~~~~~~~~~~~}=

-\sin\theta

\phantom{-}\cos\theta

\mp\sin\theta

-\cos\theta

\pm\sin\theta

\csc\underline{~~~~~~~~~~~~~~}=

-\csc\theta

\phantom{-}\sec\theta

\mp\csc\theta

-\sec\theta

\pm\csc\theta

\cos\underline{~~~~~~~~~~~~~~}=

\phantom{-}\cos\theta

\mp\sin\theta

-\cos\theta

\pm\sin\theta

\phantom{-}\cos\theta

\sec\underline{~~~~~~~~~~~~~~}=

\phantom{-}\sec\theta

\mp\csc\theta

-\sec\theta

\pm\csc\theta

\phantom{-}\sec\theta

\tan\underline{~~~~~~~~~~~~~~}=

-\tan\theta

\mp\cot\theta

\pm\tan\theta

\mp\cot\theta

\pm\tan\theta

\cot\underline{~~~~~~~~~~~~~~}=

-\cot\theta

\mp\tan\theta

\pm\cot\theta

\mp\tan\theta

\pm\cot\theta

These formulas imply, in particular, that the following hold:

\begin\sin \theta&= -\sin(-\theta)&&= -\sin(\pi+\theta)&&= \phantom\sin(\pi-\theta) \\&= -\cos\left(\frac+\theta\right)&&= \phantom\cos\left(\frac-\theta\right)&&= -\cos\left(-\frac-\theta\right) \\&= \phantom\cos\left(-\frac+\theta\right)&&= -\cos\left(\frac-\theta\right)&&= -\cos\left(-\frac+\theta\right)\\[0.3ex]\cos \theta&= \phantom\cos(-\theta)&&= -\cos(\pi+\theta)&&= \phantom\cos(\pi-\theta) \\&= \phantom\sin\left(\frac+\theta\right)&&= \phantom\sin\left(\frac-\theta\right) &&= -\sin\left(-\frac-\theta\right) \\&= -\sin\left(-\frac+\theta\right)&&= -\sin\left(\frac-\theta\right)&&= \phantom\sin\left(-\frac+\theta\right)\\[0.3ex]\tan \theta&= -\tan(-\theta)&&= \phantom\tan(\pi+\theta)&&= -\tan(\pi-\theta) \\&= -\cot\left(\frac+\theta\right)&&= \phantom\cot\left(\frac-\theta\right)&&= \phantom\cot\left(-\frac-\theta\right) \\&= -\cot\left(-\frac+\theta\right)&&= \phantom\cot\left(\frac-\theta\right)&&= -\cot\left(-\frac+\theta\right)\\[0.3ex]\end

where swapping

\sin\leftrightarrow\csc,

swapping

\cos\leftrightarrow\sec,

and swapping

\tan\leftrightarrow\cot

gives the analogous equations for

\csc,\sec,and\cot,

respectively.

So for example, by using the equality \sin \left(\frac-\theta\right) = \cos \theta, the equation

\cos\theta=x

can be transformed into \sin \left(\frac-\theta\right) = x, which allows for the solution to the equation

\sin\varphi=x

(where \varphi := \frac-\theta) to be used; that solution being:

\varphi=(-1)k\arcsin(x)+\pikforsomek\in\Z,

which becomes:\frac-\theta ~=~ (-1)^k \arcsin (x)+\pi k \quad \text k \in \Zwhere using the fact that

(-1)k=(-1)-k

and substituting

h:=-k

proves that another solution to

\cos\theta=x

is:\theta ~=~ (-1)^ \arcsin (x)+\pi h+\frac \quad \text h \in \Z.The substitution

\arcsinx=

\pi
2

-\arccosx

may be used express the right hand side of the above formula in terms of

\arccosx

instead of

\arcsinx.

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,

then applying the Pythagorean theorem and definitions of the trigonometric ratios. It is worth noting that for arcsecant and arccosecant, the diagram assumes that

x

is positive, and thus the result has to be corrected through the use of absolute values and the signum (sgn) operation.

\theta

\sin(\theta)

\cos(\theta)

\tan(\theta)

Diagram

\arcsin(x)

\sin(\arcsin(x))=x

\cos(\arcsin(x))=\sqrt{1-x2}

\tan(\arcsin(x))=

x
\sqrt{1-x2
}

\arccos(x)

\sin(\arccos(x))=\sqrt{1-x2}

\cos(\arccos(x))=x

\tan(\arccos(x))=

\sqrt{1-x2
}

\arctan(x)

\sin(\arctan(x))=

x
\sqrt{1+x2
}

\cos(\arctan(x))=

1
\sqrt{1+x2
}

\tan(\arctan(x))=x

\arccot(x)

\sin(\arccot(x))=

1
\sqrt{1+x2
}

\cos(\arccot(x))=

x
\sqrt{1+x2
}

\tan(\arccot(x))=

1
x

\arcsec(x)

\sin(\arcsec(x))=

\sqrt{x2-1
}

\cos(\arcsec(x))=

1
x

\tan(\arcsec(x))=sgn(x)\sqrt{x2-1}

\arccsc(x)

\sin(\arccsc(x))=

1
x

\cos(\arccsc(x))=

\sqrt{x2-1
}

\tan(\arccsc(x))=

sgn(x)
\sqrt{x2-1
}

Relationships among the inverse trigonometric functions

Complementary angles:

\begin{align} \arccos(x)&=

\pi
2

-\arcsin(x)\\[0.5em] \arccot(x)&=

\pi
2

-\arctan(x)\\[0.5em] \arccsc(x)&=

\pi
2

-\arcsec(x) \end{align}

Negative arguments:

\begin{align} \arcsin(-x)&=-\arcsin(x)\\ \arccsc(-x)&=-\arccsc(x)\\ \arccos(-x)&=\pi-\arccos(x)\\ \arcsec(-x)&=\pi-\arcsec(x)\\ \arctan(-x)&=-\arctan(x)\\ \arccot(-x)&=\pi-\arccot(x) \end{align}

Reciprocal arguments:

\begin{align} \arcsin\left(1
x

\right)&=\arccsc(x)&\\[0.3em] \arccsc\left(

1
x

\right)&=\arcsin(x)&\\[0.3em] \arccos\left(

1
x

\right)&=\arcsec(x)&\\[0.3em] \arcsec\left(

1
x

\right)&=\arccos(x)&\\[0.3em] \arctan\left(

1
x

\right)&=\arccot(x)&=

\pi
2

-\arctan(x),ifx>0\\[0.3em] \arctan\left(

1
x

\right)&=\arccot(x)-\pi&=-

\pi
2

-\arctan(x),ifx<0\\[0.3em] \arccot\left(

1
x

\right)&=\arctan(x)&=

\pi
2

-\arccot(x),ifx>0\\[0.3em] \arccot\left(

1
x

\right)&=\arctan(x)+\pi&=

3\pi
2

-\arccot(x),ifx<0\end{align}

The identities above can be used with (and derived from) the fact that

\sin

and

\csc

are reciprocals (i.e.

\csc=\tfrac1{\sin}

), as are

\cos

and

\sec,

and

\tan

and

\cot.

Useful identities if one only has a fragment of a sine table:

\begin{align} \arcsin(x)&=

1
2

\arccos\left(1-2x2\right),if0\leqx\leq1\\ \arcsin(x)&=\arctan\left(

x
\sqrt{1-x2
}\right) \\\arccos(x) &= \frac\arccos\left(2x^2-1\right) \,, \text 0 \leq x \leq 1 \\\arccos(x) &= \arctan\left(\frac\right) \\\arccos(x) &= \arcsin\left(\sqrt\right) \,, \text 0 \leq x \leq 1 \text \\\arccos &\left(\frac\right) = \arcsin \left (\frac\right) \,, \text 0 \leq x \leq 1 \\\arcsin &\left(\sqrt\right) =\frac-\sgn(x)\arcsin(x) \\\arctan(x) &= \arcsin\left(\frac\right) \\\arccot(x) &= \arccos\left(\frac\right)\end

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).

A useful form that follows directly from the table above is

\arctan(x)=\arccos\left(\sqrt{

1
1+x2
}\right)\,, \text x\geq 0 .

It is obtained by recognizing that

\cos\left(\arctan\left(x\right)\right)=\sqrt{

1
1+x2
} = \cos\left(\arccos\left(\sqrt\right)\right).

From the half-angle formula,

\tan\left(\tfrac{\theta}{2}\right)=\tfrac{\sin(\theta)}{1+\cos(\theta)}

, we get:

\begin{align} \arcsin(x)&=2\arctan\left(

x
1+\sqrt{1-x2
}\right) \\[0.5em]\arccos(x) &= 2 \arctan\left(\frac\right) \,, \text -1 < x \leq 1 \\[0.5em]\arctan(x) &= 2 \arctan\left(\frac\right)\end

Arctangent addition formula

\arctan(u)\pm\arctan(v)=\arctan\left(

u\pmv
1\mpuv

\right)\pmod\pi,uv\ne1.

This is derived from the tangent addition formula

\tan(\alpha\pm\beta)=

\tan(\alpha)\pm\tan(\beta)
1\mp\tan(\alpha)\tan(\beta)

,

by letting

\alpha=\arctan(u),\beta=\arctan(v).

In calculus

Derivatives of inverse trigonometric functions

See main article: Differentiation of trigonometric functions.

The derivatives for complex values of z are as follows:

\begin{align} d
dz

\arcsin(z)&{}=

1
\sqrt{1-z2
} \; ; &z &\neq -1, +1 \\\frac \arccos(z) & = -\frac \; ; &z &\neq -1, +1 \\\frac \arctan(z) & = \frac \; ; &z &\neq -i, +i\\\frac \arccot(z) & = -\frac \; ; &z &\neq -i, +i \\\frac \arcsec(z) & = \frac \; ; &z &\neq -1, 0, +1 \\\frac \arccsc(z) & = -\frac \; ; &z &\neq -1, 0, +1\endOnly for real values of x:
\begin{align} d
dx

\arcsec(x)&{}=

1
|x|\sqrt{x2-1
} \; ; & |x| > 1\\\frac \arccsc(x) & = -\frac
\sqrt
\; ; & |x| > 1\end

These formulas can be derived in terms of the derivatives of trigonometric functions. For example, if

x=\sin\theta

, then dx/d\theta = \cos \theta = \sqrt, so
d
dx

\arcsin(x)=

d\theta
dx

=

1
dx/d\theta

=

1
\sqrt{1-x2
}.

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)&{}=

x
\int
0
1
\sqrt{1-z2
} \, dz \;, & |x| & \leq 1\\\arccos(x) &= \int_x^1 \frac \, dz \;, & |x| & \leq 1\\\arctan(x) &= \int_0^x \frac \, dz \;,\\\arccot(x) &= \int_x^\infty \frac \, dz \;,\\\arcsec(x) &= \int_1^x \frac \, dz = \pi + \int_^ \frac \, dz\;, & x & \geq 1\\\arccsc(x) &= \int_x^\infty \frac \, dz = \int_^ \frac \, dz \;, & x & \geq 1\\\endWhen x equals 1, the integrals with limited domains are improper integrals, but still well-defined.

Infinite series

Similar to the sine and cosine functions, the inverse trigonometric functions can also be calculated using power series, as follows. For arcsine, the series can be derived by expanding its derivative, \tfrac, as a binomial series, and integrating term by term (using the integral definition as above). The series for arctangent can similarly be derived by expanding its derivative \frac in a geometric series, and applying the integral definition above (see Leibniz series).

\begin{align} \arcsin(z)&=z+\left(

1
2

\right)

z3
3

+\left(

1 ⋅ 3
2 ⋅ 4

\right)

z5
5

+\left(

1 ⋅ 3 ⋅ 5
2 ⋅ 4 ⋅ 6

\right)

z7
7

+\\[5pt] &=

infty
\sum
n=0
(2n-1)!!
(2n)!!
z2n+1
2n+1

\\[5pt] &=

infty
\sum
n=0
(2n)!
(2nn!)2
z2n+1
2n+1

;    |z|\le1 \end{align}

\arctan(z) =z-

z3+
3
z5
5

-

z7
7

+ =

infty
\sum
n=0
(-1)nz2n+1
2n+1

;    |z|\le1    zi,-i

Series for the other inverse trigonometric functions can be given in terms of these according to the relationships given above. For example,

\arccos(x)=\pi/2-\arcsin(x)

,

\arccsc(x)=\arcsin(1/x)

, and so on. Another series is given by:
2\left(\arcsin\left(x
2

\right)\right)2=

infty
\sum
n=1
x2n
n2\binom{2n

n}.

Leonhard Euler found a series for the arctangent that converges more quickly than its Taylor series:

\arctan(z)=

z
1+z2
infty
\sum
n=0
n
\prod
k=1
2kz2
(2k+1)(1+z2)

.

(The term in the sum for n = 0 is the empty product, so is 1.)

Alternatively, this can be expressed as

\arctan(z)=

infty
\sum
n=0
22n(n!)2
(2n+1)!
z2n
(1+z2)n

.

Another series for the arctangent function is given by

\arctan(z)=

infty1
2n-1
i\sum\left(
n=1
1
(1+2i/z)2n-1

-

1
(1-2i/z)2n

\right),

where

i=\sqrt{-1}

is the imaginary unit.

Continued fractions for arctangent

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

\arctan(z)=

z
1+\cfrac{(1z)2

{3-1z2+\cfrac{(3z)2}{5-3z2+\cfrac{(5z)2}{7-5z2+\cfrac{(7z)2}{9-7z2+\ddots}}}}}=

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 z:

\begin{align} \int\arcsin(z)dz&{}=z\arcsin(z)+\sqrt{1-z2}+C\\ \int\arccos(z)dz&{}=z\arccos(z)-\sqrt{1-z2}+C\\ \int\arctan(z)dz&{}=z\arctan(z)-

1
2

ln\left(1+z2\right)+C\\ \int\arccot(z)dz&{}=z\arccot(z)+

1
2

ln\left(1+z2\right)+C\\ \int\arcsec(z)dz&{}=z\arcsec(z)-ln\left[z\left(1+\sqrt{

z2-1
z2

}\right)\right]+C\\ \int\arccsc(z)dz&{}=z\arccsc(z)+ln\left[z\left(1+\sqrt{

z2-1
z2

}\right)\right]+C \end{align}

For real x ≥ 1:

\begin{align} \int\arcsec(x)dx&{}=x\arcsec(x)-ln\left(x+\sqrt{x2-1}\right)+C\\ \int\arccsc(x)dx&{}=x\arccsc(x)+ln\left(x+\sqrt{x2-1}\right)+C \end{align}

For all real x not between -1 and 1:

\begin{align} \int\arcsec(x)dx&{}=x\arcsec(x)-sgn(x)ln\left|x+\sqrt{x2-1}\right|+C\\ \int\arccsc(x)dx&{}=x\arccsc(x)+sgn(x)ln\left|x+\sqrt{x2-1}\right|+C \end{align}

The absolute value is necessary to compensate for both negative and positive values of the arcsecant and arccosecant functions. The signum function is also necessary due to the absolute values in the derivatives of the two functions, which create two different solutions for positive and negative values of x. These can be further simplified using the logarithmic definitions of the inverse hyperbolic functions:

\begin{align} \int\arcsec(x)dx&{}=x\arcsec(x)-\operatorname{arcosh}(|x|)+C\\ \int\arccsc(x)dx&{}=x\arccsc(x)+\operatorname{arcosh}(|x|)+C\\ \end{align}

The absolute value in the argument of the arcosh function creates a negative half of its graph, making it identical to the signum logarithmic function shown above.

All of these antiderivatives can be derived using integration by parts and the simple derivative forms shown above.

Example

Using

\intudv=uv-\intvdu

(i.e. integration by parts), set

\begin{align} u&=\arcsin(x)&dv&=dx\\ du&=

dx
\sqrt{1-x2
} & v &= x\end

Then

\int\arcsin(x)dx=x\arcsin(x)-\int

x
\sqrt{1-x2
} \, dx,

w=1-x2,dw=-2xdx

yields the final result:

\int\arcsin(x)dx=x\arcsin(x)+\sqrt{1-x2}+C

Extension to the 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 extension is:

\arctan(z)=

z
\int
0
dx
1+x2

z-i,+i

where the part of the imaginary axis which does not lie strictly between the branch points (−i and +i) is the branch cut between the principal sheet and other sheets. The path of the integral must not cross a branch cut. For z not on a branch cut, a straight line path from 0 to z is such a path. For z on a branch cut, the path must approach from for the upper branch cut and from for the lower branch cut.

The arcsine function may then be defined as:

\arcsin(z)=\arctan\left(

z
\sqrt{1-z2
}\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 branch cut between the principal sheet of arcsin and other sheets;

\arccos(z)=

\pi
2

-\arcsin(z)z-1,+1

which has the same cut as arcsin;

\arccot(z)=

\pi
2

-\arctan(z)z-i,i

which has the same cut as arctan;

\arcsec(z)=\arccos\left(

1
z

\right)z-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\left(

1
z

\right)z-1,0,+1

which has the same cut as arcsec.

Logarithmic forms

These functions may also be expressed using complex logarithms. This extends their domains to the complex plane in a natural fashion. The following identities for principal values of the functions hold everywhere that they are defined, even on their branch cuts.

\begin{align} \arcsin(z)&{}=-iln\left(\sqrt{1-z2}+iz\right)=iln\left(\sqrt{1-z2}-iz\right)&{}=\arccsc\left(

1
z

\right)\\[10pt] \arccos(z)&{}=-iln\left(i\sqrt{1-z2}+z\right)=

\pi
2

-\arcsin(z)&{}=\arcsec\left(

1
z

\right)\\[10pt] \arctan(z)&{}=-

i
2

ln\left(

i-z
i+z

\right)=-

i
2

ln\left(

1+iz
1-iz

\right)&{}=\arccot\left(

1
z

\right)\\[10pt] \arccot(z)&{}=-

i
2

ln\left(

z+i
z-i

\right)=-

i
2

ln\left(

iz-1
iz+1

\right)&{}=\arctan\left(

1
z

\right)\\[10pt] \arcsec(z)&{}=-iln\left(i\sqrt{1-

1
z2
} + \frac \right) = \frac - \arccsc(z) &= \arccos\left(\frac\right) \\[10pt]\arccsc(z) &= -i \ln \left(\sqrt + \frac \right) = i \ln \left(\sqrt - \frac \right) &= \arcsin\left(\frac\right)\end

Generalization

Because all of the inverse trigonometric functions output an angle of a right triangle, they can be generalized by using Euler's formula to form a right triangle in the complex plane. Algebraically, this gives us:

cei\theta=c\cos(\theta)+ic\sin(\theta)

or

cei\theta=a+ib

where

a

is the adjacent side,

b

is the opposite side, and

c

is the hypotenuse. From here, we can solve for

\theta

.

\begin{align} eln(c)&=a+ib\\ lnc+i\theta&=ln(a+ib)\\ \theta&=\operatorname{Im}\left(ln(a+ib)\right) \end{align}

or

\theta=-iln\left(

a+ib
c

\right)

Simply taking the imaginary part works for any real-valued

a

and

b

, but if

a

or

b

is complex-valued, we have to use the final equation so that the real part of the result isn't excluded. Since the length of the hypotenuse doesn't change the angle, ignoring the real part of

ln(a+bi)

also removes

c

from the equation. In the final equation, we see that the angle of the triangle in the complex plane can be found by inputting the lengths of each side. By setting one of the three sides equal to 1 and one of the remaining sides equal to our input

z

, we obtain a formula for one of the inverse trig functions, for a total of six equations. Because the inverse trig functions require only one input, we must put the final side of the triangle in terms of the other two using the Pythagorean Theorem relation

a2+b2=c2

The table below shows the values of a, b, and c for each of the inverse trig functions and the equivalent expressions for

\theta

that result from plugging the values into the equations

\theta=-iln\left(\tfrac{a+ib}{c}\right)

above and simplifying.

\begin{align} &a&&b&&c&&-iln\left(

a+ib
c

\right)&&\theta&&\thetaa,b\in\R\\ \arcsin(z)  &\sqrt{1-z2}&&z&&1&&-iln\left(

\sqrt{1-z2
+

iz}{1}\right)&&=-iln\left(\sqrt{1-z2}+iz\right)&&\operatorname{Im}\left(ln\left(\sqrt{1-z2}+iz\right)\right)\\ \arccos(z)  &z&&\sqrt{1-z2}&&1&&-iln\left(

z+i\sqrt{1-z2
} \right) && = -i\ln\left(z + \sqrt \right) && \operatorname\left(\ln\left(z + \sqrt \right)\right) \\\arctan(z)\ \ & 1 & & z & & \sqrt & & -i\ln\left(\frac \right) && = -\frac\ln\left(\frac \right) && \operatorname\left(\ln\left(1 + iz \right)\right) \\\arccot(z)\ \ & z & & 1 & & \sqrt & & -i\ln\left(\frac \right) && = -\frac\ln\left(\frac \right) && \operatorname\left(\ln\left(z + i \right)\right) \\\arcsec(z)\ \ & 1 & & \sqrt & & z & & -i\ln\left(\frac \right) && = -i\ln\left(\frac + \sqrt \right) && \operatorname\left(\ln\left(\frac + \sqrt \right)\right) \\\arccsc(z)\ \ & \sqrt & & 1 & & z & & -i\ln\left(\frac \right) && = -i\ln\left(\sqrt + \frac \right) && \operatorname\left(\ln\left(\sqrt + \frac \right)\right) \\\end

The particular form of the simplified expression can cause the output to differ from the usual principal branch of each of the inverse trig functions. The formulations given will output the usual principal branch when using the

\operatorname{Im}\left(lnz\right)\in(-\pi,\pi]

and

\operatorname{Re}\left(\sqrt{z}\right)\ge0

principal branch for every function except arccotangent in the

\theta

column. Arccotangent in the

\theta

column will output on its usual principal branch by using the

\operatorname{Im}\left(lnz\right)\in[0,2\pi)

and

\operatorname{Im}\left(\sqrt{z}\right)\ge0

convention.

In this sense, all of the inverse trig functions can be thought of as specific cases of the complex-valued log function. Since these definition work for any complex-valued

z

, the definitions allow for hyperbolic angles as outputs and can be used to further define the inverse hyperbolic functions. It's possible to algebraically prove these relations by starting with the exponential forms of the trigonometric functions and solving for the inverse function.

Example proof

\begin{align} \sin(\phi)&=z\\ \phi&=\arcsin(z) \end{align}

Using the exponential definition of sine, and letting

\xi=ei,

\begin{align} z&=

ei-e-i
2i

\\[10mu] 2iz&=\xi-

1
\xi

\\[5mu] 0&=\xi2-2iz\xi-1\\[5mu] \xi&=iz\pm\sqrt{1-z2}\\[5mu] \phi&=-iln\left(iz\pm\sqrt{1-z2}\right) \end{align}

(the positive branch is chosen)

\phi=\arcsin(z)=-iln\left(iz+\sqrt{1-z2}\right)

-

\arcsin(z)

\arccos(z)

\arctan(z)

-

\arccsc(z)

\arcsec(z)

\arccot(z)

Applications

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 and cosine, it follows that

\theta=\arcsin\left(

opposite
hypotenuse

\right)=\arccos\left(

adjacent
hypotenuse

\right).

Often, the hypotenuse is unknown and would need to be calculated before using arcsine or arccosine using the Pythagorean Theorem:

a2+b2=h2

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(

opposite
adjacent

\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(

opposite
adjacent

\right) =\arctan\left(

rise
run

\right) =\arctan\left(

8
20

\right)21.8\circ.

In computer science and engineering

Two-argument variant of arctangent

See main article: atan2. The two-argument atan2 function computes the arctangent of y / x given y and x, but with a range of (−, ]. 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 (−,), it can be expressed as follows:

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

y
x\right)

&x>0\\ \arctan\left(

y
x\right)

+\pi&y\ge0,x<0\\ \arctan\left(

y
x\right)

-\pi&y<0,x<0\\

\pi
2

&y>0,x=0\\ -

\pi
2

&y<0,x=0\\ undefined&y=0,x=0 \end{cases}

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

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

\operatorname{atan2}(y,x)=2\arctan\left(

y
\sqrt{x2+y2

+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[5] the solution

y

of the equation

x=\tan(y)

is to come as close as possible to a given value

-infty<η<infty

. The adequate solution is produced by the parameter modified arctangent function

y=\arctanη(x):=\arctan(x)+\pi\operatorname{rni}\left(

η-\arctan(x)
\pi

\right).

The function

\operatorname{rni}

rounds to the nearest integer.

Numerical accuracy

For angles near 0 and, arccosine is ill-conditioned, and similarly with arcsine for angles near -/2 and /2. Computer applications thus need to consider the stability of inputs to these functions and the sensitivity of their calculations, or use alternate methods.

See also

References

Notes and References

  1. Web site: Weisstein. Eric W.. Inverse Trigonometric Functions. 2020-08-29. mathworld.wolfram.com. en.
  2. Web site: Cook, John D. . 2021-02-11 . Trig functions across programming languages . johndcook.com . blog . 2021-03-10 .
  3. Web site: Inverse trigonometric functions . Wiki . Brilliant Math & Science (brilliant.org) . 2020-08-29 . en-us.
  4. The expression "LHS

    \iff

    RHS" indicates that (a) the left hand side (i.e. LHS) and right hand side (i.e. RHS) are true, or else (b) the left hand side and right hand side are false; there is option (c) (e.g. it is possible for the LHS statement to be true and also simultaneously for the RHS statement to be false), because otherwise "LHS

    \iff

    RHS" would not have been written.

    To clarify, suppose that it is written "LHS

    \iff

    RHS" where LHS (which abbreviates left hand side) and RHS are both statements that can individually be either be true or false. For example, if

    \theta

    and

    s

    are some given and fixed numbers and if the following is written:\tan \theta = s \,\iff\, \theta = \arctan(s)+\pi k \quad \text k \in \Zthen LHS is the statement "

    \tan\theta=s

    ". Depending on what specific values

    \theta

    and

    s

    have, this LHS statement can either be true or false. For instance, LHS is true if

    \theta=0

    and

    s=0

    (because in this case

    \tan\theta=\tan0=s

    ) but LHS is false if

    \theta=0

    and

    s=2

    (because in this case

    \tan\theta=\tan0=s

    which is not equal to

    s=2

    ); more generally, LHS is false if

    \theta=0

    and

    s0.

    Similarly, RHS is the statement "

    \theta=\arctan(s)+\pik

    for some

    k\in\Z

    ". The RHS statement can also either true or false (as before, whether the RHS statement is true or false depends on what specific values

    \theta

    and

    s

    have). The logical equality symbol

    \iff

    means that (a) if the LHS statement is true then the RHS statement is also true, and moreover (b) if the LHS statement is false then the RHS statement is also false. Similarly,

    \iff

    means that (c) if the RHS statement is true then the LHS statement is also true, and moreover (d) if the RHS statement is false then the LHS statement is also false.
  5. when a time varying angle crossing

    \pm\pi/2

    should be mapped by a smooth line instead of a saw toothed one (robotics, astromomy, angular movement in general)