Tangent Function

The tangent function f ( x ) = tan ⁡ ( x ) assigns to each angle x, expressed in radians, its corresponding tangent value.

Tangent function

The tangent function $f ( x ) = tan ⁡ ( x )$ assigns to each angle $x$, expressed in radians, its corresponding tangent value. Its graph is a periodic curve with a period of $\pi$ and features vertical asymptotes where the cosine of $x$ equals zero, specifically at $x = \pi / 2 + k \pi$ for $k \in \mathbb{Z}$. The function $f ( x ) = tan ⁡ ( x )$ has a domain of all real numbers except these points, and its range is all real numbers.

A useful way to read this graph is to keep in mind that the tangent is defined as \(tan ⁡ ( x ) = \frac{sin ⁡ ( x )}{cos ⁡ ( x )}\) Thinking of it as a ratio helps make sense of the curve: the tangent varies gently where the underlying sine and cosine change smoothly, while it rises or falls sharply as the cosine approaches zero, shaping the overall appearance of the graph.

The graph also shows that near the origin the tangent function behaves almost like a straight line: for small values of $x$, $tan ⁡ ( x )$ increases smoothly before its growth becomes more pronounced as it approaches the discontinuities.

Properties

  • Domain: $x \in \mathbb{R} : x \neq \frac{\pi}{2} + k \pi \text{for all} k \in \mathbb{Z}$
  • Range: $y \in \mathbb{R}$
  • Periodicity: periodic in $x$ with period $\pi$
  • Parity: odd, $tan ⁡ ( - x ) = - tan ⁡ ( x )$
  • Roots: $x = \pi n , n \in \mathbb{Z}$
  • Integer root: $x = 0$

Limits, derivatives, and integrals of the tangent function

The tangent of $x$ is defined as the ratio between the sine and cosine of the angle $x$. \(tan ⁡ ( x ) = \frac{sin ⁡ ( x )}{cos ⁡ ( x )}\)


A useful limit to remember is: \(\underset{x \rightarrow 0}{lim} \frac{tan ⁡ ( x )}{x} = 1\) which shows that, near the origin, the tangent behaves almost like the function $x$. The behaviour of the tangent near its first vertical asymptote is also well described by limits. As $x$ approaches $\pi / 2$ from the left, the function grows without bound: \(\underset{x \rightarrow (\frac{\pi}{2})^{-}}{lim} tan ⁡ ( x ) = + \infty\) Coming from the right, the values instead diverge negatively: \(\underset{x \rightarrow (\frac{\pi}{2})^{+}}{lim} tan ⁡ ( x ) = - \infty\)


The function is continuous and differentiable on its domain. The derivative is: \(\frac{d}{d x} tan ⁡ ( x ) = sec^{2} ⁡ ( x )\)


The indefinite integral is: \(\int tan ⁡ ( x ) d x = - ln ⁡ | cos ⁡ ( x ) | + c\)

A comprehensive overview of trigonometric integrals, together with the most useful transformation and substitution techniques for handling more complex cases, is available in the page on trigonometric function integrals.

An alternative form of the function $tan ⁡ ( x )$ using imaginary numbers is given by Euler’s formula. Here, $e^{i x}$ is the exponential function with base $e$ and $i$ is the imaginary unit: \(tan ⁡ ( x ) = \frac{e^{i x} - e^{- i x}}{i ( e^{i x} + e^{- i x} )}\)