The tangent function is defined for real numbers with
by
|
(1)
|
where is the sine
function and
is the cosine function. The notation
is sometimes also used (Gradshteyn and Ryzhik 2000, p. xxix).
For an acute angle in a right triangle,
its tangent is the ratio of the side lengths opposite to
the angle and adjacent to the angle,
i.e.,
|
(2)
|
A convenient mnemonic for remembering the definition of the sine, cosine, and tangent is SOHCAHTOA (sine equals opposite over hypotenuse, cosine equals adjacent over hypotenuse, tangent equals opposite over adjacent).
The word "tangent" also occurs in the geometric concepts of a tangent line to a curve and a tangent plane to a surface. Tangency does not require that the objects have only one point in common.
The definition of the tangent function extends to complex numbers
with
as
|
(3)
| |||
|
(4)
| |||
|
(5)
| |||
|
(6)
|
where e is the base of the natural logarithm and i is the imaginary unit. The tangent is implemented in the Wolfram Language as Tan[z].
A related function known as the hyperbolic tangent is defined for
with
by
|
(7)
|
The following identities hold wherever their displayed fractions are defined. An important tangent identity is
|
(8)
|
Angle addition formulas, subtraction and half-angle identities, and multiple-angle formulas are given by
|
(9)
| |||
|
(10)
| |||
|
(11)
| |||
|
(12)
| |||
|
(13)
| |||
|
(14)
| |||
|
(15)
|
The sine and cosine functions can conveniently be expressed in terms of a tangent as
|
(16)
| |||
|
(17)
|
which can be particularly convenient in polynomial computations such as Gröbner basis since it
reduces the number of equations compared with explicit
inclusion of
and
together with the additional relation
(Trott 2006, p. 39).
These lead to the pretty identity
|
(18)
|
There is also a beautiful angle addition identity for three variables,
|
(19)
|
For a positive integer , another tangent identity is
|
(20)
| |||
|
(21)
| |||
|
(22)
|
where (Beeler et al. 1972). Written
explicitly,
|
(23)
|
This gives the first few expansions as
|
(24)
| |||
|
(25)
| |||
|
(26)
| |||
|
(27)
| |||
|
(28)
|
For a positive integer , the angle addition
formulas generalize to
|
(29)
|
(Szmulowicz 2005).
There are a number of simple but interesting tangent identities based on those given above, including
|
(30)
|
(Borchardt and Perrott 1930).
The Maclaurin series for the tangent function, valid for ,
is
|
(31)
| |||
|
(32)
|
(OEIS A002430 and A036279), where is a Bernoulli
number.
is irrational
for any rational
, which can be proved by writing
as a continued fraction
as
|
(33)
|
(Wall 1948, p. 349; Olds 1963, p. 138) and
|
(34)
|
both due to Lambert.
For a positive integer , an identity involving the product
of tangents is
|
(35)
|
where is the floor
function.
The equation
|
(36)
|
is equivalent to ,
where
is the tanc
function with
.
It has the solution
and pairs of positive and negative real roots.
The difference between consecutive positive roots tends
to
.