Jump to
Table of Contents
Share this
See also
Evaluate sin(x)
Evaluate cos(x)
Evaluate cot(x)
Evaluate arctan(x)
All evaluation tools

Trigonometric tangent calculator

- By Dr. Minas E. Lemonis, PhD - Updated: March 3, 2019

This tool evaluates the tangent of a number: tan(x). Enter the argument x, in radians or degrees, below.

x =
Result:
tan(x) =
Also, at same x:
sin(x) =
cos(x) =
cot(x) =
shape details
Table of Contents
Share this

Definitions

General

The tangent function, in modern notation written as tan(x), is a trigonometric function. Trigonometric functions are commonly established as functions of angle, in the context of right triangle geometry. This way, the tangent of an angle φ is defined as the ratio of the opposite side of a right triangle containing φ, divided by the adjacent side (see figure):

\[ \tan(\varphi) = \frac{\textrm{opposite side}}{\textrm{adjacent side}} \]

sine-triangle

Unfortunately the above definition is limited to a range of angles between 0 and 90°. Extending that range, a convenient definition employs a unit circle (radius equal to 1). Any point of the circle, corresponds to a pair of sine and cosine values, of the angle that is contained by the horizontal positive axis and the radial segment towards that point, as shown in the figure below. The absolute value of tangent is represented by the length of the tangent segment from the circle point towards the horizontal axis. The angle φ is assumed positive in counter-clockwise direction. Angles larger than 90°, as well as negative ones, are possible, if the appropriate sign of the coordinates is respected.

tan-circle

The above definitions of tangent function are based on a geometrical construct (right triangle or unit circle) and assume that its argument is an angle. This association to an angle is restrictive, considering the broad use of trigonometric functions in mathematics, physics, engineering etc. Applications may accept any real value \( x\in \mathbb{R} \) as argument, with any imaginable meaning given to it, or no meaning at all. In that case, x should be better measured in radians (\(1 rad = \frac{180^\circ}{\pi}\)). Thus, derivation and integration rules are more conveniently applied.

Series

All trigonometric functions can be defined in an infinite series form. Tangent function can be written as:

\[ \begin{split} \tan x & = \sum_{n=1}^{\infty}\frac{(-1)^{n-1} 2^{2n} (2^{2n}-1) B_{2n} x^{2n-1}}{(2n)!} = \\ & = x + \frac{x^3}{3} + \frac{2 x^5}{15} - \frac{17 x^7}{315} \cdots \end{split} \]

The above series converges for \( -\frac{pi}{2} < x < \frac{pi}{2}\). Bn denotes the n-th Bernulli number .

Properties

The tangent function is periodic, with a period equal to π. Therefore:

\[ \tan (x + k\pi ) = \tan x, \quad k\in \mathbb{Z} \]

Tangent is associated with sine and cosine functions with the formula:

\[ \tan x = \frac{\sin x}{\cos x} \]

The derivative of the tangent function (x in radians) is given by the following expressions:

\[ \left(\tan x\right)' = \sec^2 x = 1+\tan^2 x = \frac{1}{\cos^2 x} \]

The integral of the tangent function (x in radians) is given by:

\[ \int \tan x\, \mathrm{d}x = -ln |\cos x | +C = ln |\sec x | +C \]

Identities

The following formulas are valid for the tangent function:

\[ \begin{split} & \tan (-a) &= -\tan a \\ \\ & \tan (2a) &= \frac{2\tan a}{1-\tan^2 a}\\ \\ & \tan (na) &= \frac{\tan\left[\left(n-1\right)a\right]+\tan a}{1- \tan\left(\left(n-1\right)a\right) \tan a}\\ \\ & \tan \big(\frac{a}{2}\big) &= \frac{\sin a}{1+\cos a} = \frac{1-\cos a}{\sin a}\\ \\ & \tan \big(\frac{a}{2}\big) &= \frac{\tan a \sin a}{\tan a + \sin a}\\ \\ & \tan(a+b) &= \frac{\tan a + \tan b}{1-\tan a \tan b}\\ \\ & \tan(a-b) &= \frac{\tan a - \tan b}{1+\tan a \tan b}\\ \\ & \tan^2 a &= 1 - \sec^2 a\\ \\ \end{split} \]

See also
Evaluate sin(x)
Evaluate cos(x)
Evaluate cot(x)
Evaluate arctan(x)
All evaluation tools