Calculus/Integration techniques/Tangent Half Angle
Another useful change of variables is the Weierstrass substitution, named after Karl Weierstrass:
With this transformation, using the double-angle trigonometric identities,
This transforms a trigonometric integral into an algebraic integral, which may be easier to integrate.
For example, if the integrand is 1/(1 + sin x) then
This method can be used to further simplify trigonometric integrals produced by the changes of variables described earlier.
For example, if we are considering the integral
we can first use the substitution x = sin θ, which gives
then use the tan-half-angle substition to obtain
In effect, we've removed the square root from the original integrand. We could do this with a single change of variables, but doing it in two steps gives us the opportunity of doing the trigonometric integral another way.
Having done this, we can split the new integrand into partial fractions, and integrate.
This result can be further simplified by use of the identities
ultimately leading to
In principle, this approach will work with any integrand which is the square root of a quadratic multiplied by the ratio of two polynomials. However, it should not be applied automatically.
E.g., in this last example, once we deduced
we could have used the double angle formula, since this contains only even powers of cos and sin. Doing that gives
Using tan-half-angle on this new, simpler, integrand gives
This can be integrated on sight to give
This is the same result as before, but obtained with less algebra, which shows why it is best to look for the most straightforward methods at every stage.
A more direct way of evaluating the integral I is to substitute t = tan θ right from the start, which will directly bring us to the line
above. More generally, the substitution t = tan x gives us
so this substitution is the preferable one to use if the integrand is such that all the square roots would disappear after substitution, as is the case in the above integral.
Using the trigonometric substitution , then and (when ). So,
In general, to evaluate integrals of the form
it is extremely tedious to use the aforementioned "tan half angle" substitution directly, as one easily ends up with a rational function with a 4th degree denominator. Instead, we may first write the numerator as
Then the integral can be written as
which can be evaluated much more easily.
Comparing coefficients of cos x, sin x and the constants on both sides, we obtain
yielding p = q = 1/2, r = 2. Substituting back into the integrand,
The last integral can now be evaluated using the "tan half angle" substitution described above, and we obtain
The original integral is thus