Inverse Tangent
The inverse tangent is the multivalued function
(Zwillinger 1995, p. 465), also denoted
(Abramowitz and Stegun 1972, p. 79;
Harris and Stocker 1998, p. 311; Jeffrey 2000, p. 124) or
(Spanier
and Oldham 1987, p. 333; Gradshteyn and Ryzhik 2000, p. 208; Jeffrey 2000,
p. 127), that is the inverse function of
the tangent. The variants
(e.g., Bronshtein
and Semendyayev, 1997, p. 70) and
are sometimes
used to refer to explicit principal values of
the inverse cotangent, although this distinction is not always made (e.g,. Zwillinger
1995, p. 466).
The inverse tangent function
is plotted
above along the real axis.
Worse yet, the notation
is sometimes used for the principal
value, with
being used for the multivalued
function (Abramowitz and Stegun 1972, p. 80). Note that in the notation
(commonly used in North America and in
pocket calculators worldwide),
denotes the
tangent and
the inverse
function, not the multiplicative inverse.
The principal value of the inverse tangent is implemented as ArcTan[z] in the Wolfram Language. In the GNU C library, it is implemented as atan(double x).
The inverse tangent is a multivalued function and hence requires a branch cut in the complex
plane, which the Wolfram Language's
convention places at
and
. This
follows from the definition of
as
|
(1)
|
In the Wolfram Language (and in this work), this branch cut definition determines the range
of
for real
as
. Care
must be taken, however, as other branch cut definitions can give different ranges
(most commonly,
).
![]() |
The inverse tangent function
is plotted
above in the complex plane.
has the special values
|
(2)
| |||
|
(3)
| |||
|
(4)
| |||
|
(5)
| |||
|
(6)
|
The derivative of
is
|
(7)
|
and the indefinite integral is
|
(8)
|

The complex argument of a complex number
is often written as
|
(9)
|
where
, sometimes also denoted
, corresponds
to the counterclockwise angle from the positive real axis, i.e., the value of
such that
and
. Plots
of
are illustrated above for
real values of
and
.
![]() |
A special kind of inverse tangent that takes into account the quadrant in which
lies and is returned by the FORTRAN command
ATAN2(y, x), the GNU C library command atan2(double y, double
x), and the Wolfram Language command
ArcTan[x,
y], and is often restricted to the range
.
In the degenerate case when
,
![]() |
(10)
|
The usual
has the Maclaurin
series of
|
(11)
| |||
|
(12)
|
(OEIS A033999 and A005408). A more rapidly converging form due to Euler is given by
|
(13)
|
for real
(Castellanos 1988). This is related to
the formula of Euler given by
|
(14)
|
where
|
(15)
|
The inverse tangent formulas are connected with many interesting approximations to pi
|
(16)
| |||
|
(17)
|
The inverse tangent satisfies
|
(18)
|
for
,
|
(19)
|
for all complex
,
![]() |
(20)
| ||
![]() |
(21)
| ||
![]() |
(22)
|
for all real
, where equality for the last equation
is understood to be in the limit as
, and
![]() |
(23)
| ||
![]() |
(24)
| ||
![]() |
(25)
| ||
![]() |
(26)
| ||
![]() |
(27)
|
In terms of the hypergeometric function,
|
(28)
|
for complex
, and
|
(29)
|
for real
(Castellanos 1988).
Castellanos (1986, 1988) also gives some curious formulas in terms of the Fibonacci numbers,
|
(30)
| |||
![]() |
(31)
| ||
![]() |
(32)
|
where
![]() |
(33)
| ||
|
(34)
|
and
is the largest positive root of
|
(35)
|
The inverse tangent satisfies the addition formula
|
(36)
|
for
, as well as the more complicated
formula
|
(37)
|
valid for all complex
. An additional identity known to Euler
is given by
|
(38)
|
for
or
.
Another interesting inverse tangent identity attributed to Charles Dodgson (Lewis
Carroll) by Lehmer (1938b; Bromwich 1991, Castellanos 1988) is
|
(39)
|
where
|
(40)
|
and
.
The inverse tangent has continued fraction representations
![]() |
(41)
|
(Lambert 1770; Lagrange 1776; Wall 1948, p. 343; Olds 1963, p. 138) and
![]() |
(42)
|
due to Euler and sometimes known as Euler's continued fraction (Borwein et al. 2004, p. 30).
To find
numerically, the following arithmetic-geometric mean-like algorithm
can be used. Let
|
(43)
| |||
|
(44)
|
Then compute
|
(45)
| |||
|
(46)
|
and the inverse tangent is given by
|
(47)
|
(Acton 1990).
An inverse tangent
with integral
is called reducible
if it is expressible as a finite sum of the form
|
(48)
|
where
are positive
or negative integers and
are integers
.
is reducible
iff all the prime factors
of
occur among the prime
factors of
for
, ...,
. A second necessary and sufficient
condition is that the largest prime factor of
is less than
. Equivalent to
the second condition is the statement that every Gregory
number
can be uniquely expressed
as a sum in terms of
s for which
is a Størmer
number (Conway and Guy 1996). To find this decomposition, write
|
(49)
|
so the ratio
|
(50)
|
is a rational number. Equation (50) can also be written
|
(51)
|
Writing (◇) in the form
|
(52)
|
allows a direct conversion to a corresponding inverse cotangent formula
|
(53)
|
where
|
(54)
|
Todd (1949) gives a table of decompositions of
for
. Conway and Guy (1996) give a similar table
in terms of Størmer numbers.
Arndt and Gosper give the remarkable inverse tangent identity
![]() |
(55)
|
There is an amazing set of BBP-type formulas for
:
![]() |
(56)
| ||
![]() |
(57)
| ||
![]() |
(58)
| ||
![]() |
(59)
|
the finding one of which is a given as a problem by Bailey et al. (2006, p. 225).
















![sin(sum_(k=1)^(2n+1)tan^(-1)a_k)=((-1)^n)/(2n+1)(sum_(k=1)^(2n+1)product_(j=1)^(2n+1)[a_j-tan((pi(j-k))/(2n+1))])/(sqrt(product_(j=1)^(2n+1)(a_j^2+1))).](/images/equations/InverseTangent/NumberedEquation29.gif)
![1/(131072)sum_(k=0)^(infty)1/(1048576^k)[(262144)/(40k+2)-(163840)/(40k+5)-(65536)/(40k+6)+(16384)/(40k+10)-(4096)/(40k+14)-(5120)/(40k+15)+(1024)/(40k+18)-(256)/(40k+22)+(160)/(40k+25)+(64)/(40k+26)-(16)/(40k+30)+4/(40k+34)+5/(40k+35)-1/(40k+38)]](/images/equations/InverseTangent/Inline147.gif)
![1/(131072)sum_(k=0)^(infty)1/(1048576^k)[(393216)/(40k+4)+(163840)/(40k+5)-(131072)/(40k+6)-(163840)/(40k+8)+(24576)/(40k+12)-(8192)/(40k+14)-(15360)/(40k+15)-(10240)/(40k+16)-(1024)/(40k+20)-(512)/(40k+22)-(640)/(40k+24)-(160)/(40k+25)+(96)/(40k+28)-(32)/(40k+30)-(40)/(40k+32)+(15)/(40k+35)+6/(40k+36)-2/(40k+38)]](/images/equations/InverseTangent/Inline150.gif)
![1/(131072)sum_(k=0)^(infty)1/(1048576^k)[(262144)/(40k+1)-(262144)/(40k+3)-(65536)/(40k+5)-(327680)/(40k+6)+(65536)/(40k+7)-(163840)/(40k+8)+(16384)/(40k+9)-(40960)/(40k+10)-(16384)/(40k+11)-(4096)/(40k+13)-(20480)/(40k+14)-(16384)/(40k+15)-(10240)/(40k+16)+(1024)/(40k+17)-(1024)/(40k+19)-(2560)/(40k+20)-(256)/(40k+21)-(1280)/(40k+22)+(256)/(40k+23)-(640)/(40k+24)+(64)/(40k+25)-(64)/(40k+27)-(16)/(40k+29)-(40)/(40k+30)+(16)/(40k+31)-(40)/(40k+32)+4/(40k+33)+(16)/(40k+35)-1/(40k+37)-5/(40k+38)+1/(40k+39)]](/images/equations/InverseTangent/Inline153.gif)
![1/(262144)sum_(k=0)^(infty)1/(1048576^k)[(262144)/(40k+3)+(262144)/(40k+4)+(131072)/(40k+6)-(65536)/(40k+7)+(81920)/(40k+10)+(16384)/(40k+11)+(16384)/(40k+12)+(8192)/(40k+14)-(4096)/(40k+15)+(1024)/(40k+19)+(1024)/(40k+20)+(512)/(40k+22)-(256)/(40k+23)+(64)/(40k+27)+(64)/(40k+28)-(48)/(40k+30)-(16)/(40k+31)+4/(40k+35)+4/(40k+36)+2/(40k+38)-1/(40k+39)],](/images/equations/InverseTangent/Inline156.gif)
inverse tangent