In
integral calculus
In mathematics, an integral is the continuous analog of a sum, which is used to calculate areas, volumes, and their generalizations. Integration, the process of computing an integral, is one of the two fundamental operations of calculus,Int ...
, the tangent half-angle substitution is a
change of variables
In mathematics, a change of variables is a basic technique used to simplify problems in which the original variables are replaced with functions of other variables. The intent is that when expressed in new variables, the problem may become si ...
used for evaluating
integrals
In mathematics, an integral is the continuous analog of a sum, which is used to calculate areas, volumes, and their generalizations. Integration, the process of computing an integral, is one of the two fundamental operations of calculus,Int ...
, which converts a
rational function
In mathematics, a rational function is any function that can be defined by a rational fraction, which is an algebraic fraction such that both the numerator and the denominator are polynomials. The coefficients of the polynomials need not be ...
of
trigonometric functions
In mathematics, the trigonometric functions (also called circular functions, angle functions or goniometric functions) are real functions which relate an angle of a right-angled triangle to ratios of two side lengths. They are widely used in all ...
of
into an ordinary rational function of
by setting
. This is the one-dimensional
stereographic projection
In mathematics, a stereographic projection is a perspective transform, perspective projection of the sphere, through a specific point (geometry), point on the sphere (the ''pole'' or ''center of projection''), onto a plane (geometry), plane (th ...
of the
unit circle
In mathematics, a unit circle is a circle of unit radius—that is, a radius of 1. Frequently, especially in trigonometry, the unit circle is the circle of radius 1 centered at the origin (0, 0) in the Cartesian coordinate system in the Eucli ...
parametrized by
angle measure
In Euclidean geometry, an angle can refer to a number of concepts relating to the intersection of two straight lines at a point. Formally, an angle is a figure lying in a plane formed by two rays, called the '' sides'' of the angle, sharing ...
onto the
real line
A number line is a graphical representation of a straight line that serves as spatial representation of numbers, usually graduated like a ruler with a particular origin (geometry), origin point representing the number zero and evenly spaced mark ...
. The general transformation formula is:
The tangent of half an angle is important in
spherical trigonometry
Spherical trigonometry is the branch of spherical geometry that deals with the metrical relationships between the edge (geometry), sides and angles of spherical triangles, traditionally expressed using trigonometric functions. On the sphere, ge ...
and was sometimes known in the 17th century as the half tangent or semi-tangent.
Leonhard Euler
Leonhard Euler ( ; ; ; 15 April 170718 September 1783) was a Swiss polymath who was active as a mathematician, physicist, astronomer, logician, geographer, and engineer. He founded the studies of graph theory and topology and made influential ...
used it to evaluate the integral
in his
1768 integral calculus textbook, and
Adrien-Marie Legendre
Adrien-Marie Legendre (; ; 18 September 1752 – 9 January 1833) was a French people, French mathematician who made numerous contributions to mathematics. Well-known and important concepts such as the Legendre polynomials and Legendre transforma ...
described the general method in 1817.
The substitution is described in most integral calculus textbooks since the late 19th century, usually without any special name. It is known in Russia as the universal trigonometric substitution, and also known by variant names such as ''half-tangent substitution'' or ''half-angle substitution''. It is sometimes misattributed as the Weierstrass substitution.
Michael Spivak
Michael David Spivak (May 25, 1940October 1, 2020) was an American mathematician specializing in differential geometry, an expositor of mathematics, and the founder of Publish-or-Perish Press. Spivak was the author of the five-volume ''A Comprehe ...
called it the "world's sneakiest substitution".
The substitution

Introducing a new variable
sines and cosines can be expressed as
rational function
In mathematics, a rational function is any function that can be defined by a rational fraction, which is an algebraic fraction such that both the numerator and the denominator are polynomials. The coefficients of the polynomials need not be ...
s of
and
can be expressed as the product of
and a rational function of
as follows:
Similar expressions can be written for , , , and .
Derivation
Using the
double-angle formulas
and
and introducing denominators equal to one by the
Pythagorean identity
The Pythagorean trigonometric identity, also called simply the Pythagorean identity, is an identity expressing the Pythagorean theorem in terms of trigonometric functions. Along with the sum-of-angles formulae, it is one of the basic relations ...
results in
Finally, since
,
differentiation rules
This article is a summary of differentiation rules, that is, rules for computing the derivative of a function (mathematics), function in calculus.
Elementary rules of differentiation
Unless otherwise stated, all functions are functions of real nu ...
imply
and thus
Examples
Antiderivative of cosecant
We can confirm the above result using a standard method of evaluating the cosecant integral by multiplying the numerator and denominator by
and performing the substitution
.
These two answers are the same because
The
secant integral may be evaluated in a similar manner.
A definite integral
We wish to evaluate the integral:
A naïve approach splits the interval and applies the substitution
. However, this substitution has a singularity at
, which corresponds to a vertical asymptote. Therefore, the integral must be split at that point and handled carefully:
Note: The substitution
maps
to
and
to
. The point
corresponds to a vertical asymptote in
, so the integral is evaluated as a limit around this point.
Alternatively, we can compute the indefinite integral first:
Using symmetry:
Thus, the value of the definite integral is:
Third example: both sine and cosine
if
Geometry

As ''x'' varies, the point (cos ''x'', sin ''x'') winds repeatedly around the
unit circle
In mathematics, a unit circle is a circle of unit radius—that is, a radius of 1. Frequently, especially in trigonometry, the unit circle is the circle of radius 1 centered at the origin (0, 0) in the Cartesian coordinate system in the Eucli ...
centered at (0, 0). The point
goes only once around the circle as ''t'' goes from −∞ to +∞, and never reaches the point (−1, 0), which is approached as a limit as ''t'' approaches ±∞. As ''t'' goes from −∞ to −1, the point determined by ''t'' goes through the part of the circle in the third quadrant, from (−1, 0) to (0, −1). As ''t'' goes from −1 to 0, the point follows the part of the circle in the fourth quadrant from (0, −1) to (1, 0). As ''t'' goes from 0 to 1, the point follows the part of the circle in the first quadrant from (1, 0) to (0, 1). Finally, as ''t'' goes from 1 to +∞, the point follows the part of the circle in the second quadrant from (0, 1) to (−1, 0).
Here is another geometric point of view. Draw the unit circle, and let ''P'' be the point . A line through ''P'' (except the vertical line) is determined by its slope. Furthermore, each of the lines (except the vertical line) intersects the unit circle in exactly two points, one of which is ''P''. This determines a function from points on the unit circle to slopes. The trigonometric functions determine a function from angles to points on the unit circle, and by combining these two functions we have a function from angles to slopes.
Hyperbolic functions
As with other properties shared between the trigonometric functions and the hyperbolic functions, it is possible to use
hyperbolic identities to construct a similar form of the substitution,
:
Similar expressions can be written for , , , and . Geometrically, this change of variables is a one-dimensional stereographic projection of the
hyperbolic
Hyperbolic may refer to:
* of or pertaining to a hyperbola, a type of smooth curve lying in a plane in mathematics
** Hyperbolic geometry, a non-Euclidean geometry
** Hyperbolic functions, analogues of ordinary trigonometric functions, defined u ...
line onto the real interval, analogous to the
Poincaré disk model
In geometry, the Poincaré disk model, also called the conformal disk model, is a model of 2-dimensional hyperbolic geometry in which all points are inside the unit disk, and straight lines are either circular arcs contained within the disk t ...
of the hyperbolic plane.
Alternatives
There are other approaches to integrating trigonometric functions. For example, it can be helpful to rewrite trigonometric functions in terms of and using
Euler's formula
Euler's formula, named after Leonhard Euler, is a mathematical formula in complex analysis that establishes the fundamental relationship between the trigonometric functions and the complex exponential function. Euler's formula states that, for ...
.
See also
*
Rational curve
*
Stereographic projection
In mathematics, a stereographic projection is a perspective transform, perspective projection of the sphere, through a specific point (geometry), point on the sphere (the ''pole'' or ''center of projection''), onto a plane (geometry), plane (th ...
*
Tangent half-angle formula
*
Trigonometric substitution
In mathematics, a trigonometric substitution replaces a trigonometric function for another expression. In calculus, trigonometric substitutions are a technique for evaluating integrals. In this case, an expression involving a radical function is ...
*
Euler substitution
Euler substitution is a method for evaluating integrals of the form
\int R(x, \sqrt) \, dx,
where R is a rational function of x and \sqrt. In such cases, the integrand can be changed to a rational function by using the substitutions of Euler.
...
Further reading
*
*
* Second edition 1916
pp. 52–62*
*
Notes and references
External links
Weierstrass substitution formulasat
PlanetMath
PlanetMath is a free content, free, collaborative, mathematics online encyclopedia. Intended to be comprehensive, the project is currently hosted by the University of Waterloo. The site is owned by a US-based nonprofit corporation, "PlanetMath.org ...
{{Integrals
Integral calculus