Tangent function

From Calculus
(Redirected from Tan)

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

Unit circle definition

The tangent function, denoted tan, is defined as follows.

Consider the unit circle centered at the origin, described as the following subset of the coordinate:

{(x,y)x2+y2=1}

For a real number t, we define tant as follows:

  • Start at the point (1,0), which lies on the unit circle centered at the origin.
  • Move a distance of t along the unit circle in the counter-clockwise direction (i.e., the motion begins in the first quadrant, with both coordinates positive).
  • At the end, the quotient of the y-coordinate by the x-coordinate of the point thus obtained is defined as tant.

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.

Identities

Type of identity Identity in algebraic form
complementary angle tan(π/2x)=1/tanx=cotx, relates to cotangent function, its composite with reciprocal function
square relationship with secant tan2x+1=sec2x
angle sum tangent formula tan(x+y)=tanx+tany1tanxtany
angle difference tangent formula tan(xy)=tanxtany1+tanxtany
double angle tangent formula tan(2x)=2tanx1tan2x
formula for double angle sine and cosine in terms of tangent cos(2x)=1tan2x1+tan2x,sin(2x)=2tanx1+tan2x
formula for tangent of acute angle in terms of double angle cosine tanx=(1cos(2x))/(1+cos(2x))
other symmetries periodicity: tan(π+x)=tanx
tan(πx)=tanx
odd function: tan(x)=tanx

Values

Values at some acute angles

All these can be deduced from the values at π/3 and π/4 and the identities above. The values at π/3 and π/4 in turn can be deduced from the corresponding sine or cosine values.

Angle in radians (default) Numerical approximation for angle in radians Angle in degrees Formal expression for tan Numerical approximation
0 0.0000 0 0 0.0000
π/12 0.2618 15 23 0.2678
π/8 0.3927 22.5 21 0.4142
π/6 0.5236 30 1/3=3/3 0.5774
π/4 0.7854 45 1 1.0000
π/3 1.0472 60 3 1.7321
3π/8 1.1781 67.5 2+1 2.4142
5π/12 1.3090 75 2+3 3.7321
π/2 1.5708 90 undefined undefined

Note that for x close to zero, tanx is just slightly bigger than x. As x becomes bigger, the functions diverge and as xπ/2, tanx+.

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.

Differential equations

Autonomous differential equations with this function as solution

The standard differential equation is:

dydx=1+y2

The general solution to this is y=tan(x+φ) where φ is a constant. The value of φ can be determined using initial value conditions.

Power series and Taylor series

Computation of Taylor series

The tan function has a Taylor series at x=0. The first few terms are indicated below:

tanx=x+x33+2x515+17x7315+

Note the following:

  • All the terms with nonzero coefficients are odd degree terms, because tan is an odd function.
  • All the coefficients on odd degree terms are positive. This follows from the fact that all the higher derivatives of tan, evaluated at 0, are positive.

The coefficients can be written explicitly using the odd-degree up/down numbers, which are also called the tangent numbers or zag numbers. Explicitly, if An denotes the nth tangent number, then the Taylor series for tan is:

k=0A2k+1x2k+1(2k+1)!

Taylor series equals power series

The Taylor series for tan converges to tan on its interval of convergence, which is (π/2,π/2).

Limit computations

Order of zero

We get the following limit from the power series:

limx0tanxx=1

Thus, the order of the zero of tan at 0 is 1 and the residue is 1.

The limit can be computed in many ways:

Name of method for computing the limit Details
Simple manipulation, using limx0(sinx)/x=1 limx0tanxx=limx0sinxx1cosx=limx0sinxxlimx01cosx=11=1
Using the L'Hopital rule limx0tanxx=*limx0sec2x1=sec20=1
Using the power series We have tanx=x+x33+O(x5), so (tanx)/x=1+x23+O(x4). Taking the limit at x=0 gives 1.