TOPICS
Search

Tangent


Tangent

The tangent function is defined for real numbers x with cosx!=0 by

 tanx=(sinx)/(cosx),
(1)

where sinx is the sine function and cosx is the cosine function. The notation tgx is sometimes also used (Gradshteyn and Ryzhik 2000, p. xxix).

TangentDiagram

For an acute angle theta in a right triangle, its tangent is the ratio of the side lengths opposite to the angle and adjacent to the angle, i.e.,

 tantheta=(opposite)/(adjacent).
(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.

TangentReIm
TanContours

The definition of the tangent function extends to complex numbers z with cosz!=0 as

tanz=(i(e^(-iz)-e^(iz)))/(e^(-iz)+e^(iz))
(3)
=(e^(iz)-e^(-iz))/(i(e^(iz)+e^(-iz)))
(4)
=(i(1-e^(2iz)))/(1+e^(2iz))
(5)
=(e^(2iz)-1)/(i(e^(2iz)+1)),
(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 z with coshz!=0 by

 tanhz=(e^z-e^(-z))/(e^z+e^(-z)).
(7)

The following identities hold wherever their displayed fractions are defined. An important tangent identity is

 tan^2theta+1=sec^2theta.
(8)

Angle addition formulas, subtraction and half-angle identities, and multiple-angle formulas are given by

tan(alpha+beta)=(tanalpha+tanbeta)/(1-tanalphatanbeta)
(9)
tan(alpha-beta)=(tanalpha-tanbeta)/(1+tanalphatanbeta)
(10)
tan(2alpha)=(2tanalpha)/(1-tan^2alpha)
(11)
tan(nalpha)=(tan[(n-1)alpha]+tanalpha)/(1-tan[(n-1)alpha]tanalpha)
(12)
tan(alpha/2)=(sinalpha)/(1+cosalpha)
(13)
=(1-cosalpha)/(sinalpha)
(14)
=(tanalphasinalpha)/(tanalpha+sinalpha).
(15)

The sine and cosine functions can conveniently be expressed in terms of a tangent as

cost=(1-tan^2(1/2t))/(1+tan^2(1/2t))
(16)
sint=(2tan(1/2t))/(1+tan^2(1/2t)),
(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 cost and sint together with the additional relation cos^2t+sin^2t-1=0 (Trott 2006, p. 39).

These lead to the pretty identity

 tan(x+1/4pi)=(1+tanx)/(1-tanx).
(18)

There is also a beautiful angle addition identity for three variables,

 tan(alpha+beta+gamma)=(tanalpha+tanbeta+tangamma-tanalphatanbetatangamma)/(1-tanbetatangamma-tangammatanalpha-tanalphatanbeta).
(19)

For a positive integer n, another tangent identity is

tan(nx)=(sum_(k=0)^(n)(-1)^k(n; 2k+1)t^(2k+1))/(sum_(k=0)^(n)(-1)^k(n; 2k)t^(2k))
(20)
=i((1-it)^n-(1+it)^n)/((1-it)^n+(1+it)^n)
(21)
=1/i((1+it)^n-(1-it)^n)/((1+it)^n+(1-it)^n),
(22)

where t=tanx (Beeler et al. 1972). Written explicitly,

 tan(nx)=(2i(1-it)^n)/((1-it)^n+(1+it)^n)-i.
(23)

This gives the first few expansions as

tanx=t
(24)
tan(2x)=(2t)/(1-t^2)
(25)
tan(3x)=(3t-t^3)/(1-3t^2)
(26)
tan(4x)=(4t-4t^3)/(1-6t^2+t^4)
(27)
tan(5x)=(5t-10t^3+t^5)/(1-10t^2+5t^4)
(28)

(OEIS A034867 and A034839).

For a positive integer N, the angle addition formulas generalize to

 tan(sum_(n=1)^Ntheta_n)=i(product_(n=1)^(N)(1-itantheta_n)-product_(n=1)^(N)(itantheta_n+1))/(product_(n=1)^(N)(itantheta_n+1)+product_(n=1)^(N)(1-itantheta_n))
(29)

(Szmulowicz 2005).

There are a number of simple but interesting tangent identities based on those given above, including

 tan(A+60 degrees)tan(A-60 degrees)+tanAtan(A+60 degrees)+tanAtan(A-60 degrees)=-3
(30)

(Borchardt and Perrott 1930).

The Maclaurin series for the tangent function, valid for -pi/2<x<pi/2, is

tanx=sum_(n=1)^(infty)((-1)^(n-1)2^(2n)(2^(2n)-1)B_(2n))/((2n)!)x^(2n-1)
(31)
=x+1/3x^3+2/(15)x^5+(17)/(315)x^7+(62)/(2835)x^9+...
(32)

(OEIS A002430 and A036279), where B_n is a Bernoulli number.

tanx is irrational for any rational x!=0, which can be proved by writing tanx as a continued fraction as

 tanx=x/(1-(x^2)/(3-(x^2)/(5-(x^2)/(7-...))))
(33)

(Wall 1948, p. 349; Olds 1963, p. 138) and

 tanx=1/(1/x-1/(3/x-1/(5/x-1/(7/x-...)))).
(34)

both due to Lambert.

For a positive integer n, an identity involving the product of tangents is

 product_(k=1)^(|_(n-1)/2_|)tan((kpi)/n)={sqrt(n)   for n odd; 1   for n even,
(35)

where |_x_| is the floor function.

The equation

 x=tanx,
(36)

is equivalent to tanc(x)=1, where tanc is the tanc function with tanc(0)=1. It has the solution x=0 and pairs of positive and negative real roots. The difference between consecutive positive roots tends to pi.


See also

Alternating Permutation, Cosine, Cotangent, Hyperbolic Tangent, Inverse Tangent, Law of Tangents, Morrie's Law, Sine, SOHCAHTOA, Tanc Function, Tangent Line, Tangent Plane, Tangent Vector, Vardi's Integral Explore this topic in the MathWorld classroom

Related Wolfram sites

https://functions.wolfram.com/ElementaryFunctions/Tan/

Explore with Wolfram|Alpha

References

Abramowitz, M. and Stegun, I. A. (Eds.). "Circular Functions." §4.3 in Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables, 9th printing. New York: Dover, pp. 71-79, 1972.Beeler, M. et al. Item 16 in Beeler, M.; Gosper, R. W.; and Schroeppel, R. HAKMEM. Cambridge, MA: MIT Artificial Intelligence Laboratory, Memo AIM-239, p. 9, Feb. 1972. https://www.inwap.com/pdp10/hbaker/hakmem/recurrence.html#item16.Beyer, W. H. CRC Standard Mathematical Tables, 28th ed. Boca Raton, FL: CRC Press, p. 226, 1987.Borchardt, W. G. and Perrott, A. D. Ex. 33 in A New Trigonometry for Schools. London, England: G. Bell, 1930.Gradshteyn, I. S. and Ryzhik, I. M. Tables of Integrals, Series, and Products, 6th ed. San Diego, CA: Academic Press, 2000.Jeffrey, A. "Trigonometric Identities." §2.4 in Handbook of Mathematical Formulas and Integrals, 2nd ed. Orlando, FL: Academic Press, pp. 111-117, 2000.Olds, C. D. Continued Fractions. New York: Random House, 1963.Sloane, N. J. A. Sequences A002430/M2100, A034839, A034867, A036279, and A115365 in "The On-Line Encyclopedia of Integer Sequences."Spanier, J. and Oldham, K. B. "The Tangent tan(x) and Cotangent cot(x) Functions." Ch. 34 in An Atlas of Functions. Washington, DC: Hemisphere, pp. 319-330, 1987.Szmulowicz, F. "New Analytic and Computational Formalism for the Band Structure of N-Layer Photonic Crystals." Phys. Lett. A 345, 469-477, 2005.Tropfke, J. Teil IB, §2. "Die Begriffe von Tangens und Kotangens eines Winkels." In Geschichte der Elementar-Mathematik in systematischer Darstellung mit besonderer Berücksichtigung der Fachwörter, fünfter Band, zweite aufl. Berlin, Germany and Leipzig, Germany: de Gruyter, pp. 23-28, 1923.Trott, M. The Mathematica GuideBook for Symbolics. New York: Springer-Verlag, 2006. https://www.mathematicaguidebooks.org/.Wall, H. S. Analytic Theory of Continued Fractions. New York: Chelsea, 1948.Zwillinger, D. (Ed.). "Trigonometric or Circular Functions." §6.1 in CRC Standard Mathematical Tables and Formulae. Boca Raton, FL: CRC Press, pp. 452-460, 1995.

Referenced on Wolfram|Alpha

Tangent

Cite this as:

Weisstein, Eric W. "Tangent." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Tangent.html

Subject classifications