Tangent function

From Calculus

This article is about a particular function from a subset of the real numbers to the real numbers. Information about the function, including its domain, range, and key data relating to graphing, differentiation, and integration, is presented in the article.
View a complete list of particular functions on this wiki

For functions involving angles (trigonometric functions, inverse trigonometric functions, etc.) we follow the convention that all angles are measured in radians. Thus, for instance, the angle of

90

is measured as

π/2

.

Definition

Definition in terms of sine and cosine

The tangent function, denoted tan, is defined as the quotient of the sine function by the cosine function, and it is defined wherever the cosine function takes a nonzero value. In symbols:

tanx:=sinxcosx

Definition in terms of the unit circle

Fill this in later

Definition for acute angles in terms of triangles

Suppose t is an acute angle, i.e., t(0,π/2). Construct a right triangle where t is one of the acute angles. tant is defined as the quotient of the leg opposite t to the leg adjacent to t.


Key data

Item Value
default domain all real numbers except odd integer multiples of π/2, i.e., R{nπ+π/2nZ}.
This is a union of countably many open intervals of the form (nππ/2,nπ+π/2) with nZ:
(3π/2,π/2)(π/2,π/2)(π/2,3π/2)
range all real numbers, i.e., all of R
period π, i.e., 180
local maximum values and points of attainment there are no local maximum values
local minimum values and points of attainment there are no local minimum values
points of inflection (both coordinates) all points of the form (nπ,0) where n varies over integers.
vertical asymptotes All lines of the form x=nπ+π/2, n varies over integers. At each such line, the left hand limit is + and the right hand limit is .
important symmetries odd function
half turn symmetry about all points of the form (nπ/2,0) where n varies over integers. Note that for the even multiples of π/2, (i.e., the multiples of π, this is half turn symmetry about points of inflection. For the odd multiples of π/2, this is half turn symmetry about points not on the graph itself.
first derivative xsec2x, i.e., the secant-squared function. Note that sec2x=1+tan2x.
second derivative x2sec2xtanx.
higher derivatives every derivative can be expressed as a polynomial in terms of tan. The degree of the nth derivative as a polynomial in tan is n+1.
first antiderivative ln|cosx|+C=ln|secx|+C.
higher antiderivatives no antiderivatives higher than the first are expressible in terms of elementary functions.

Differentiation

First derivative

WHAT WE USE: sine function#First derivative, cosine function#First derivative, quotient rule for differentiation

The first derivative is:

ddx(tanx)=sec2x

Here's how we get it. We start with:

tanx=sinxcosx

Using the quotient rule for differentiation, we get:

tanx=(cosx)(sinx)(sinx)(cosx)cos2x=(cosx)(cosx)(sinx)(sinx)cos2x=cos2x+sin2xcos2x=1cos2x=sec2x

The penultimate step uses cos2x+sin2x=1.

Second derivative

WHAT WE USE: secant function#First derivative, chain rule for differentiation, differentiation rule for power functions

The second derivative is:

d2dx2(tanx)=2tanxsec2x

We obtain this by differentiating the first derivative:

d2dx2(tanx)=ddx(sec2x)=dd(secx)(sec2x)d(secx)dx=2secx(secxtanx)=2sec2xtanx

Points and intervals of interest

Consider the function f(x):=tanx.

Vertical asymptotes

At each of the points where tan is undefined, which are precisely the odd multiples of π/2, the left hand limit is + and the right hand limit is .

Critical points

As computed earlier, we have:

f(x)=sec2x

The original function f is undefined at odd multiples of π/2. The expression for f is also undefined at precisely these points, but these are not considered critical points. Note that f is defined wherever f is. Thus, the only kind of critical points are those where f(x)=0. However, f(x)0 anywhere because 0cos2x1 forces sec2x1.

The upshot is that the function has no critical points on its domain of definition.

Intervals of increase and decrease

Wherever the function is defined, the derivative f(x) is positive. Thus, tan is increasing on each of the open intervals in its domain of definition, i.e., tan is increasing on each of the intervals:

,(3π/2,π/2),(π/2,π/2),(π/2,3π/2),

Further, on each interval, it increases from a limiting value of at the left end of the interval to a limiting value of + at the right end of the interval.

However, it is not correct to say that tan is increasing throughout its domain. This is because between successive intervals, it jumps from <math+\infty</math> to .

Local extreme values

There are no local extreme values for the function.

Intervals of concave up and concave down

The second derivative is x2tanxsec2x. The sign of this is determined by the sign of tan. Thus, when tanx<0, the graph is concave down, and when tanx>0, the graph is concave up. Unpacking, we get:

  • The graph of tan is concave down on intervals of the form {nππ/2nZ}.
  • The graph of tan is concave up on intervals of the form {nπ+π/2nZ}.

Points of inflection

The points of inflection on the graph are points of the form {(nπ,0)nZ}, i.e., integer multiples of π. At these points, the graph transitions from concave down (on the left) to concave up (on the right).

Integration

First antiderivative

WHAT WE USE: integration of quotient of derivative of function by function

We use the following form:

f(x)dxf(x)=ln|f(x)|+C

In our case, we write:

tanxdx=sinxcosxdx=sinxcosxdx

Using the integration form above with f=cos, we get:

ln|cosx|+C

Alternative method: [SHOW MORE]

Definite integrals

The definite integral of the tan function can be computed on any closed interval that lies completely within one of the open intervals on which tan is defined, i.e., both endpoints must lie between the same pair of consecutive odd multiples of π/2. Thus, for instance, tan can be integrated from π/4 to π/3 but not from π/3 to 2π/3, because these lie on opposite sides of the point π/2 at which the function has a vertical asymptote.

Moreover, all improper integrals are undefined.

If a,b both lie between consecutive odd multiples of π/2, we get:

abtanxdx=ln(cosacosb)

Note that the lower limit comes on top because of the minus sign on the antiderivative. Further, we do not need to put an absolute value sign because cos has constant sign on each interval of definition, so the quotient is positive in sign.

Finally, note that tan is an odd function, and more generally, has half turn symmetry about points (nπ,0), so:

nπtnπ+ttanxdx=0

for t(0,π/2).

Transformed versions

We can use the integration of tan to integrate any function of the form xtan(mx+φ) using the integration of linear transform of function:

tan(mx+φ)dx=1mln|cos(mx+φ)|+C

The points where the transformed function is undefined are odd multiples of π/(2m) minus φ/m, i.e.,:

{nπ/m+π/(2m)φ/mnZ}

Higher antiderivatives

It is not possible to antidifferentiate the first antiderivative of tan within the universe of elementarily expressible functions.