{"id":4351,"date":"2026-08-18T12:25:51","date_gmt":"2026-08-18T12:25:51","guid":{"rendered":"https:\/\/www.mathros.net.ua\/en\/?p=4351"},"modified":"2026-08-18T14:25:26","modified_gmt":"2026-08-18T14:25:26","slug":"integration-of-trigonometric-functions","status":"publish","type":"post","link":"https:\/\/www.mathros.net.ua\/en\/integration-of-trigonometric-functions.html","title":{"rendered":"Integration of Trigonometric Functions: Basic Methods and Transformations"},"content":{"rendered":"<p>Integration of trigonometric functions does not always come down to directly using a table of <a title=\"What is antiderivatives\" href=\"https:\/\/en.wikipedia.org\/wiki\/Antiderivative\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">antiderivatives<\/a>. Often, the integrand first needs to be simplified using trigonometric identities or a substitution. How can you determine which method to use? To do this, you should analyze the types of functions involved, their powers, and the relationship between the individual factors.<\/p>\n<h2>Basic Antiderivatives: Standard Formulas and Linear Arguments<\/h2>\n<p>The simplest trigonometric integrals can be evaluated directly using a <a title=\"Standard table of integrals\" href=\"https:\/\/www.mathros.net.ua\/en\/table-of-integrals.html\">table of antiderivatives<\/a>:<\/p>\n<p>\\[<br \/>\n\\begin{gathered}<br \/>\n\\int \\sin(x)\\,dx=-\\cos(x)+C,\\\\[4pt]<br \/>\n\\int \\cos(x)\\,dx=\\sin(x)+C,\\\\[4pt]<br \/>\n\\int \\frac{dx}{\\cos^2(x)}=\\tan(x)+C,\\\\[4pt]<br \/>\n\\int \\frac{dx}{\\sin^2(x)}=-\\cot(x)+C.<br \/>\n\\end{gathered}<br \/>\n\\]<\/p>\n<p>For tangent and cotangent, we use the formulas<\/p>\n<p>\\[<br \/>\n\\begin{gathered}<br \/>\n\\int \\tan(x)\\,dx=-\\ln|\\cos(x)|+C,\\\\[4pt]<br \/>\n\\int \\cot(x)\\,dx=\\ln|\\sin(x)|+C.<br \/>\n\\end{gathered}<br \/>\n\\]<\/p>\n<p>Why does a logarithm appear in the last two formulas? Tangent and cotangent can be written as ratios of sine and cosine:<\/p>\n<p>\\[<br \/>\n\\tan(x)=\\frac{\\sin(x)}{\\cos(x)},<br \/>\n\\qquad<br \/>\n\\cot(x)=\\frac{\\cos(x)}{\\sin(x)}.<br \/>\n\\]<\/p>\n<p>Therefore, the corresponding integrals have the structure of the standard expression<\/p>\n<p>\\[<br \/>\n\\int \\frac{f'(x)}{f(x)}\\,dx=\\ln|f(x)|+C.<br \/>\n\\]<\/p>\n<p>For example, the derivative of \\( \\cos(x) \\) is \\( -\\sin(x) \\). This is why a minus sign appears before the logarithm when integrating the tangent function.<\/p>\n<p>Special attention should be given to trigonometric functions with a linear argument. If \\( a\\neq 0 \\), then<\/p>\n<p>\\[<br \/>\n\\begin{gathered}<br \/>\n\\int \\sin(a\\cdot x+b)\\,dx<br \/>\n=<br \/>\n-\\frac{1}{a}\\cdot\\cos(a\\cdot x+b)+C,\\\\[4pt]<br \/>\n\\int \\cos(a\\cdot x+b)\\,dx<br \/>\n=<br \/>\n\\frac{1}{a}\\cdot\\sin(a\\cdot x+b)+C.<br \/>\n\\end{gathered}<br \/>\n\\]<\/p>\n<p>The coefficient of \\( x \\) appears in the denominator. Why does this happen? When differentiating a composite function, an additional factor \\( a \\) appears. Therefore, during integration, this factor must be compensated for.<\/p>\n<p>The same principle applies to other trigonometric functions:<\/p>\n<p>\\[<br \/>\n\\begin{gathered}<br \/>\n\\int \\frac{dx}{\\cos^2(a\\cdot x+b)}<br \/>\n=<br \/>\n\\frac{1}{a}\\cdot\\tan(a\\cdot x+b)+C,\\\\[4pt]<br \/>\n\\int \\frac{dx}{\\sin^2(a\\cdot x+b)}<br \/>\n=<br \/>\n-\\frac{1}{a}\\cdot\\cot(a\\cdot x+b)+C.<br \/>\n\\end{gathered}<br \/>\n\\]<\/p>\n<p>Thus, before applying a standard integration formula, you need to check not only the type of trigonometric function but also its argument.<\/p>\n<h2>Integration of Trigonometric Functions: Powers of Sine and Cosine<\/h2>\n<p>After the basic formulas, let us move on to integrals that contain powers of sine and cosine:<\/p>\n<p>\\[<br \/>\n\\int \\sin^m(x)\\cdot\\cos^n(x)\\,dx.<br \/>\n\\]<\/p>\n<p>Which transformation should we choose here? First, we need to determine whether the exponents \\( m \\) and \\( n \\) are even or odd. This determines which function is most convenient to choose as the new variable.<\/p>\n<p>If the power of sine is odd, one factor of \\( \\sin(x) \\) is separated. The remaining power is transformed using the identity<\/p>\n<p>\\[<br \/>\n\\sin^2(x)=1-\\cos^2(x).<br \/>\n\\]<\/p>\n<p>As a result, all even powers of sine are expressed in terms of cosine. After that, we use the substitution<\/p>\n<p>\\[<br \/>\nu=\\cos(x),<br \/>\n\\qquad<br \/>\ndu=-\\sin(x)\\,dx.<br \/>\n\\]<\/p>\n<p>Let us look at the structure of this transformation:<\/p>\n<p>\\[<br \/>\n\\int \\sin^3(x)\\cdot\\cos^2(x)\\,dx.<br \/>\n\\]<\/p>\n<p>We write the odd power of sine as<\/p>\n<p>\\[<br \/>\n\\sin^3(x)=\\sin(x)\\cdot\\sin^2(x).<br \/>\n\\]<\/p>\n<p>Next, we replace the square of sine:<\/p>\n<p>\\[<br \/>\n\\sin^3(x)<br \/>\n=<br \/>\n\\sin(x)\\cdot\\bigl(1-\\cos^2(x)\\bigr).<br \/>\n\\]<\/p>\n<p>Therefore, the original integral becomes<\/p>\n<p>\\[<br \/>\n\\int<br \/>\n\\sin(x)\\cdot<br \/>\n\\bigl(1-\\cos^2(x)\\bigr)\\cdot<br \/>\n\\cos^2(x)\\,dx.<br \/>\n\\]<\/p>\n<p>After the substitution \\( u=\\cos(x) \\), we obtain an algebraic integral:<\/p>\n<p>\\[<br \/>\n-\\int \\bigl(1-u^2\\bigr)\\cdot u^2\\,du.<br \/>\n\\]<\/p>\n<p>Thus, the separated factor \\( \\sin(x) \\), together with \\( dx \\), forms the differential of the new variable.<\/p>\n<p>If the power of cosine is odd, we proceed in a similar way. One factor of \\( \\cos(x) \\) is separated, while the remaining power is transformed using the identity<\/p>\n<p>\\[<br \/>\n\\cos^2(x)=1-\\sin^2(x).<br \/>\n\\]<\/p>\n<p>Then we use the substitution<\/p>\n<p>\\[<br \/>\nu=\\sin(x),<br \/>\n\\qquad<br \/>\ndu=\\cos(x)\\,dx.<br \/>\n\\]<\/p>\n<p>For example, the power of cosine can be transformed as follows:<\/p>\n<p>\\[<br \/>\n\\cos^3(x)<br \/>\n=<br \/>\n\\cos(x)\\cdot\\cos^2(x)<br \/>\n=<br \/>\n\\cos(x)\\cdot\\bigl(1-\\sin^2(x)\\bigr).<br \/>\n\\]<\/p>\n<p>After that, the entire integrand can be expressed in terms of \\( \\sin(x) \\), while the factor \\( \\cos(x)\\,dx \\) can be replaced by \\( du \\).<\/p>\n<p>What should we do when both exponents are even? In this case, we cannot separate a single sine or cosine factor that would immediately form the differential of a new variable. Therefore, we use the power-reduction formulas:<\/p>\n<p>\\[<br \/>\n\\begin{gathered}<br \/>\n\\sin^2(x)=\\frac{1-\\cos(2\\cdot x)}{2},\\\\[4pt]<br \/>\n\\cos^2(x)=\\frac{1+\\cos(2\\cdot x)}{2}.<br \/>\n\\end{gathered}<br \/>\n\\]<\/p>\n<p>For example,<\/p>\n<p>\\[<br \/>\n\\sin^2(x)\\cdot\\cos^2(x)<br \/>\n=<br \/>\n\\frac{1-\\cos(2\\cdot x)}{2}<br \/>\n\\cdot<br \/>\n\\frac{1+\\cos(2\\cdot x)}{2}.<br \/>\n\\]<\/p>\n<p>Next, multiply the resulting expressions and simplify the result. As a result, the powers of the trigonometric functions are reduced. If a squared trigonometric function appears again, apply the power-reduction formula once more.<\/p>\n<p>Thus, when one of the powers is odd, we usually separate one factor and use a substitution. If both powers are even, we reduce them step by step using the power-reduction formulas.<\/p>\n<h2>Integration of Trigonometric Functions: Powers of Tangent, Cotangent, Secant, and Cosecant<\/h2>\n<p>Now let us consider integrals that contain tangent and secant. Secant is defined as the reciprocal of cosine:<\/p>\n<p>\\[<br \/>\n\\sec(x)=\\frac{1}{\\cos(x)}.<br \/>\n\\]<\/p>\n<p>Cosecant is defined as the reciprocal of sine:<\/p>\n<p>\\[<br \/>\n\\csc(x)=\\frac{1}{\\sin(x)}.<br \/>\n\\]<\/p>\n<p>Integrals involving powers of tangent and secant usually have the form<\/p>\n<p>\\[<br \/>\n\\int \\tan^m(x)\\cdot\\sec^n(x)\\,dx.<br \/>\n\\]<\/p>\n<p>To transform them, we use the identities<\/p>\n<p>\\[<br \/>\n\\begin{gathered}<br \/>\n\\sec^2(x)=1+\\tan^2(x),\\\\[4pt]<br \/>\n\\tan^2(x)=\\sec^2(x)-1.<br \/>\n\\end{gathered}<br \/>\n\\]<\/p>\n<p>The following derivatives are also important:<\/p>\n<p>\\[<br \/>\n\\begin{gathered}<br \/>\n\\bigl(\\tan(x)\\bigr)&#8217;=\\sec^2(x),\\\\[4pt]<br \/>\n\\bigl(\\sec(x)\\bigr)&#8217;=\\sec(x)\\cdot\\tan(x).<br \/>\n\\end{gathered}<br \/>\n\\]<\/p>\n<p>These relationships determine how we choose the substitution.<\/p>\n<p>First, we check the power of secant. If it is even, we separate one factor \\( \\sec^2(x) \\). The remaining even power of secant is expressed in terms of tangent, and then we use the substitution<\/p>\n<p>\\[<br \/>\nu=\\tan(x),<br \/>\n\\qquad<br \/>\ndu=\\sec^2(x)\\,dx.<br \/>\n\\]<\/p>\n<p>Let us look at an intermediate transformation:<\/p>\n<p>\\[<br \/>\n\\int \\tan^3(x)\\cdot\\sec^4(x)\\,dx.<br \/>\n\\]<\/p>\n<p>The power of secant is even, so we write it as<\/p>\n<p>\\[<br \/>\n\\sec^4(x)=\\sec^2(x)\\cdot\\sec^2(x).<br \/>\n\\]<\/p>\n<p>We replace one of the factors using the identity<\/p>\n<p>\\[<br \/>\n\\sec^2(x)=1+\\tan^2(x).<br \/>\n\\]<\/p>\n<p>Then we obtain<\/p>\n<p>\\[<br \/>\n\\int<br \/>\n\\tan^3(x)\\cdot<br \/>\n\\bigl(1+\\tan^2(x)\\bigr)\\cdot<br \/>\n\\sec^2(x)\\,dx.<br \/>\n\\]<\/p>\n<p>After the substitution \\( u=\\tan(x) \\), the integral takes an algebraic form:<\/p>\n<p>\\[<br \/>\n\\int u^3\\cdot\\bigl(1+u^2\\bigr)\\,du.<br \/>\n\\]<\/p>\n<p>If the power of secant is odd, we check the power of tangent. When the power of tangent is also odd, we separate the product<\/p>\n<p>\\[<br \/>\n\\sec(x)\\cdot\\tan(x).<br \/>\n\\]<\/p>\n<p>The remaining even power of tangent is expressed in terms of secant using the formula<\/p>\n<p>\\[<br \/>\n\\tan^2(x)=\\sec^2(x)-1.<br \/>\n\\]<\/p>\n<p>After that, we use the substitution<\/p>\n<p>\\[<br \/>\nu=\\sec(x),<br \/>\n\\qquad<br \/>\ndu=\\sec(x)\\cdot\\tan(x)\\,dx.<br \/>\n\\]<\/p>\n<p>For example, an odd power of tangent can be written as<\/p>\n<p>\\[<br \/>\n\\tan^3(x)<br \/>\n=<br \/>\n\\tan^2(x)\\cdot\\tan(x)<br \/>\n=<br \/>\n\\bigl(\\sec^2(x)-1\\bigr)\\cdot\\tan(x).<br \/>\n\\]<\/p>\n<p>If there is also a factor \\( \\sec(x) \\), then the product \\( \\sec(x)\\cdot\\tan(x)\\,dx \\) forms the differential of the new variable.<\/p>\n<p>If neither of these rules provides a convenient transformation, another trigonometric identity or integration by parts may be needed.<\/p>\n<p>A similar approach is used for powers of cotangent and cosecant. Here we use the identity<\/p>\n<p>\\[<br \/>\n\\csc^2(x)=1+\\cot^2(x)<br \/>\n\\]<\/p>\n<p>and the derivatives<\/p>\n<p>\\[<br \/>\n\\begin{gathered}<br \/>\n\\bigl(\\cot(x)\\bigr)&#8217;=-\\csc^2(x),\\\\[4pt]<br \/>\n\\bigl(\\csc(x)\\bigr)&#8217;=-\\csc(x)\\cdot\\cot(x).<br \/>\n\\end{gathered}<br \/>\n\\]<\/p>\n<p>A minus sign appears in these formulas. Therefore, it must always be taken into account when performing the substitution.<\/p>\n<h2>Products of Trigonometric Functions: Converting Products into Sums<\/h2>\n<p>In the previous sections, we considered powers of trigonometric functions with the same argument. Now let us move on to products of sine and cosine functions whose arguments may be different.<\/p>\n<p>Integrating such products directly is usually inconvenient. How can we change their structure? For this purpose, we use the product-to-sum formulas:<\/p>\n<p>\\[<br \/>\n\\begin{gathered}<br \/>\n\\sin(\\alpha)\\cdot\\sin(\\beta)<br \/>\n=<br \/>\n\\frac{1}{2}\\cdot<br \/>\n\\bigl(<br \/>\n\\cos(\\alpha-\\beta)-\\cos(\\alpha+\\beta)<br \/>\n\\bigr),\\\\[4pt]<br \/>\n\\cos(\\alpha)\\cdot\\cos(\\beta)<br \/>\n=<br \/>\n\\frac{1}{2}\\cdot<br \/>\n\\bigl(<br \/>\n\\cos(\\alpha-\\beta)+\\cos(\\alpha+\\beta)<br \/>\n\\bigr),\\\\[4pt]<br \/>\n\\sin(\\alpha)\\cdot\\cos(\\beta)<br \/>\n=<br \/>\n\\frac{1}{2}\\cdot<br \/>\n\\bigl(<br \/>\n\\sin(\\alpha+\\beta)+\\sin(\\alpha-\\beta)<br \/>\n\\bigr).<br \/>\n\\end{gathered}<br \/>\n\\]<\/p>\n<p>For example, for the integral<\/p>\n<p>\\[<br \/>\n\\int \\sin(3\\cdot x)\\cdot\\cos(2\\cdot x)\\,dx<br \/>\n\\]<\/p>\n<p>we use the third formula:<\/p>\n<p>\\[<br \/>\n\\sin(3\\cdot x)\\cdot\\cos(2\\cdot x)<br \/>\n=<br \/>\n\\frac{1}{2}\\cdot<br \/>\n\\bigl(<br \/>\n\\sin(5\\cdot x)+\\sin(x)<br \/>\n\\bigr).<br \/>\n\\]<\/p>\n<p>Therefore, the original integral becomes<\/p>\n<p>\\[<br \/>\n\\frac{1}{2}\\cdot<br \/>\n\\int<br \/>\n\\bigl(<br \/>\n\\sin(5\\cdot x)+\\sin(x)<br \/>\n\\bigr)\\,dx.<br \/>\n\\]<\/p>\n<p>The resulting expression no longer contains a product. It is now a sum of standard trigonometric functions with linear arguments.<\/p>\n<p>It is also useful to remember the formula<\/p>\n<p>\\[<br \/>\n\\sin(2\\cdot x)=2\\cdot\\sin(x)\\cdot\\cos(x).<br \/>\n\\]<\/p>\n<p>It allows us to replace the product \\( \\sin(x)\\cdot\\cos(x) \\) with a single trigonometric function:<\/p>\n<p>\\[<br \/>\n\\sin(x)\\cdot\\cos(x)<br \/>\n=<br \/>\n\\frac{1}{2}\\cdot\\sin(2\\cdot x).<br \/>\n\\]<\/p>\n<p>Thus, for products of functions with different arguments, we use the product-to-sum formulas. If the arguments are the same, the double-angle formula for sine may sometimes be enough.<\/p>\n<h2>Integration of Trigonometric Functions: Rational Expressions with Sine and Cosine<\/h2>\n<p>More challenging integrals have the form<\/p>\n<p>\\[<br \/>\n\\int R\\bigl(\\sin(x),\\cos(x)\\bigr)\\,dx,<br \/>\n\\]<\/p>\n<p>where \\( R \\) is a rational function of \\( \\sin(x) \\) and \\( \\cos(x) \\). This means that sine and cosine appear in the expression through addition, subtraction, multiplication, division, and integer powers.<\/p>\n<p>First, we should check whether the integrand contains a function together with its derivative, or an expression proportional to that derivative. In this case, a simple substitution is enough.<\/p>\n<p>If the expression contains \\( \\sin(x) \\) together with the factor \\( \\cos(x)\\,dx \\), it is convenient to set<\/p>\n<p>\\[<br \/>\nu=\\sin(x),<br \/>\n\\qquad<br \/>\ndu=\\cos(x)\\,dx.<br \/>\n\\]<\/p>\n<p>For example, in the integral<\/p>\n<p>\\[<br \/>\n\\int \\frac{\\cos(x)}{1+\\sin(x)}\\,dx<br \/>\n\\]<\/p>\n<p>the numerator is the derivative of sine. Therefore, after the substitution \\( u=\\sin(x) \\), we obtain<\/p>\n<p>\\[<br \/>\n\\int \\frac{du}{1+u}.<br \/>\n\\]<\/p>\n<p>The trigonometric functions disappear, and the original integral is reduced to an integral of a rational function of the variable \\( u \\).<\/p>\n<p>If the integrand contains \\( \\cos(x) \\) together with the factor \\( \\sin(x)\\,dx \\), it is convenient to use the substitution<\/p>\n<p>\\[<br \/>\nu=\\cos(x),<br \/>\n\\qquad<br \/>\ndu=-\\sin(x)\\,dx.<br \/>\n\\]<\/p>\n<p>For example,<\/p>\n<p>\\[<br \/>\n\\int \\frac{\\sin(x)}{2+\\cos(x)}\\,dx<br \/>\n\\]<\/p>\n<p>after the substitution \\( u=\\cos(x) \\) becomes<\/p>\n<p>\\[<br \/>\n-\\int \\frac{du}{2+u}.<br \/>\n\\]<\/p>\n<p>The minus sign appears because of the derivative of cosine. Therefore, it must be preserved when changing to the new variable.<\/p>\n<p>Sometimes the integrand contains the derivative of tangent. In that case, we use the substitution<\/p>\n<p>\\[<br \/>\nu=\\tan(x),<br \/>\n\\qquad<br \/>\ndu=\\frac{dx}{\\cos^2(x)}.<br \/>\n\\]<\/p>\n<p>For example,<\/p>\n<p>\\[<br \/>\n\\int<br \/>\n\\frac{dx}<br \/>\n{\\cos^2(x)\\cdot\\bigl(1+\\tan(x)\\bigr)}<br \/>\n\\]<\/p>\n<p>after the substitution \\( u=\\tan(x) \\) becomes<\/p>\n<p>\\[<br \/>\n\\int \\frac{du}{1+u}.<br \/>\n\\]<\/p>\n<p>This substitution is convenient because the factor \\( 1\/\\cos^2(x) \\) is exactly the derivative of tangent.<\/p>\n<p>However, a simple substitution does not always work. If both sine and cosine appear in the numerator or denominator and the derivative of neither function provides the required factor, we use the universal trigonometric substitution<\/p>\n<p>\\[<br \/>\nt=\\tan\\left(\\frac{x}{2}\\right).<br \/>\n\\]<\/p>\n<p>With this substitution, sine and cosine can be expressed as rational functions of \\( t \\):<\/p>\n<p>\\[<br \/>\n\\begin{gathered}<br \/>\n\\sin(x)=\\frac{2\\cdot t}{1+t^2},\\\\[4pt]<br \/>\n\\cos(x)=\\frac{1-t^2}{1+t^2},\\\\[4pt]<br \/>\ndx=\\frac{2}{1+t^2}\\,dt.<br \/>\n\\end{gathered}<br \/>\n\\]<\/p>\n<p>Why is this substitution called universal? It allows us to eliminate both sine and cosine from the integrand at the same time.<\/p>\n<p>Consider the structure of the integral<\/p>\n<p>\\[<br \/>\n\\int \\frac{dx}{2+\\sin(x)+\\cos(x)}.<br \/>\n\\]<\/p>\n<p>After the substitution \\( t=\\tan(x\/2) \\), we obtain<\/p>\n<p>\\[<br \/>\n\\int<br \/>\n\\frac{<br \/>\n\\frac{2}{1+t^2}\\,dt<br \/>\n}{<br \/>\n2+<br \/>\n\\frac{2\\cdot t}{1+t^2}<br \/>\n+<br \/>\n\\frac{1-t^2}{1+t^2}<br \/>\n}.<br \/>\n\\]<\/p>\n<p>Bringing the expressions in the denominator to a common denominator gives<\/p>\n<p>\\[<br \/>\n\\int<br \/>\n\\frac{2}{t^2+2\\cdot t+3}\\,dt.<br \/>\n\\]<\/p>\n<p>Thus, all trigonometric functions disappear, and the original integral is transformed into an integral of a rational function.<\/p>\n<p>The universal substitution works for a wide range of expressions. However, it often leads to longer algebraic transformations. Therefore, before using it, we should check whether a simpler substitution involving \\( \\sin(x) \\), \\( \\cos(x) \\), or \\( \\tan(x) \\) can be applied.<\/p>\n<h2>Integration of Trigonometric Functions: Step-by-Step Solutions to Practical Problems<\/h2>\n<p>Let us see how the main integration methods are applied to different trigonometric expressions. In each case, we will first analyze the structure of the integrand and then choose the appropriate identity or substitution.<\/p>\n<h3 class=\"example\">Example 1. Evaluate the integral<br \/>\n\\[<br \/>\n\\int \\sin^2(x)\\cdot\\cos^3(x)\\,dx.<br \/>\n\\]<\/h3>\n<p>The integrand contains an odd power of cosine. Therefore, we separate one factor \\( \\cos(x) \\) and express the square of cosine in terms of sine:<\/p>\n<p>\\[<br \/>\n\\cos^3(x)<br \/>\n=<br \/>\n\\cos^2(x)\\cdot\\cos(x).<br \/>\n\\]<\/p>\n<p>We use the identity<\/p>\n<p>\\[<br \/>\n\\cos^2(x)=1-\\sin^2(x).<br \/>\n\\]<\/p>\n<p>Then<\/p>\n<p>\\[<br \/>\n\\cos^3(x)<br \/>\n=<br \/>\n\\bigl(1-\\sin^2(x)\\bigr)\\cdot\\cos(x).<br \/>\n\\]<\/p>\n<p>The original integral becomes<\/p>\n<p>\\[<br \/>\n\\int<br \/>\n\\sin^2(x)\\cdot<br \/>\n\\bigl(1-\\sin^2(x)\\bigr)\\cdot<br \/>\n\\cos(x)\\,dx.<br \/>\n\\]<\/p>\n<p>Now we make the substitution<\/p>\n<p>\\[<br \/>\nu=\\sin(x).<br \/>\n\\]<\/p>\n<p>Since<\/p>\n<p>\\[<br \/>\ndu=\\cos(x)\\,dx,<br \/>\n\\]<\/p>\n<p>after the substitution we obtain<\/p>\n<p>\\[<br \/>\n\\int<br \/>\nu^2\\cdot\\bigl(1-u^2\\bigr)\\,du.<br \/>\n\\]<\/p>\n<p>Expand the expression:<\/p>\n<p>\\[<br \/>\n\\int \\bigl(u^2-u^4\\bigr)\\,du.<br \/>\n\\]<\/p>\n<p>Integrate each term:<\/p>\n<p>\\[<br \/>\n\\int \\bigl(u^2-u^4\\bigr)\\,du<br \/>\n=<br \/>\n\\frac{u^3}{3}<br \/>\n&#8211;<br \/>\n\\frac{u^5}{5}<br \/>\n+<br \/>\nC.<br \/>\n\\]<\/p>\n<p>Now return to the variable \\( x \\):<\/p>\n<p>\\[<br \/>\nu=\\sin(x).<br \/>\n\\]<\/p>\n<p>Therefore,<\/p>\n<p>\\[<br \/>\n\\int \\sin^2(x)\\cdot\\cos^3(x)\\,dx<br \/>\n=<br \/>\n\\frac{\\sin^3(x)}{3}<br \/>\n&#8211;<br \/>\n\\frac{\\sin^5(x)}{5}<br \/>\n+<br \/>\nC.<br \/>\n\\]<\/p>\n<h3 class=\"example\">Example 2. Evaluate the integral<br \/>\n\\[<br \/>\n\\int \\sin^2(x)\\cdot\\cos^2(x)\\,dx.<br \/>\n\\]<\/h3>\n<p>Both trigonometric functions have even powers. Therefore, we cannot separate a single factor for a convenient substitution. In this case, we use power-reduction formulas.<\/p>\n<p>First, we use the double-angle formula for sine:<\/p>\n<p>\\[<br \/>\n\\sin(2\\cdot x)<br \/>\n=<br \/>\n2\\cdot\\sin(x)\\cdot\\cos(x).<br \/>\n\\]<\/p>\n<p>Hence,<\/p>\n<p>\\[<br \/>\n\\sin(x)\\cdot\\cos(x)<br \/>\n=<br \/>\n\\frac{1}{2}\\cdot\\sin(2\\cdot x).<br \/>\n\\]<\/p>\n<p>Square both sides:<\/p>\n<p>\\[<br \/>\n\\sin^2(x)\\cdot\\cos^2(x)<br \/>\n=<br \/>\n\\frac{1}{4}\\cdot\\sin^2(2\\cdot x).<br \/>\n\\]<\/p>\n<p>Therefore, the original integral becomes<\/p>\n<p>\\[<br \/>\n\\frac{1}{4}\\cdot<br \/>\n\\int \\sin^2(2\\cdot x)\\,dx.<br \/>\n\\]<\/p>\n<p>Now apply the power-reduction formula:<\/p>\n<p>\\[<br \/>\n\\sin^2(2\\cdot x)<br \/>\n=<br \/>\n\\frac{1-\\cos(4\\cdot x)}{2}.<br \/>\n\\]<\/p>\n<p>Thus,<\/p>\n<p>\\[<br \/>\n\\frac{1}{4}\\cdot<br \/>\n\\int \\sin^2(2\\cdot x)\\,dx<br \/>\n=<br \/>\n\\frac{1}{8}\\cdot<br \/>\n\\int<br \/>\n\\bigl(1-\\cos(4\\cdot x)\\bigr),dx.<br \/>\n\\]<\/p>\n<p>Split it into two integrals:<\/p>\n<p>\\[<br \/>\n\\frac{1}{8}\\cdot\\int dx<br \/>\n&#8211;<br \/>\n\\frac{1}{8}\\cdot\\int\\cos(4\\cdot x)\\,dx.<br \/>\n\\]<\/p>\n<p>The first integral is<\/p>\n<p>\\[<br \/>\n\\int dx=x.<br \/>\n\\]<\/p>\n<p>For the second integral, we take the linear argument into account:<\/p>\n<p>\\[<br \/>\n\\int\\cos(4\\cdot x)\\,dx<br \/>\n=<br \/>\n\\frac{1}{4}\\cdot\\sin(4\\cdot x).<br \/>\n\\]<\/p>\n<p>Therefore,<\/p>\n<p>\\[<br \/>\n\\int \\sin^2(x)\\cdot\\cos^2(x)\\,dx<br \/>\n=<br \/>\n\\frac{x}{8}<br \/>\n&#8211;<br \/>\n\\frac{1}{32}\\cdot\\sin(4\\cdot x)<br \/>\n+<br \/>\nC.<br \/>\n\\]<\/p>\n<h3 class=\"example\">Example 3. Evaluate the integral<br \/>\n\\[<br \/>\n\\int \\tan^2(x)\\cdot\\sec^4(x)\\,dx.<br \/>\n\\]<\/h3>\n<p>The power of secant is even. Therefore, we separate one factor \\( \\sec^2(x) \\), which together with \\( dx \\) will form the differential of tangent:<\/p>\n<p>\\[<br \/>\n\\sec^4(x)<br \/>\n=<br \/>\n\\sec^2(x)\\cdot\\sec^2(x).<br \/>\n\\]<\/p>\n<p>Rewrite the original integral as<\/p>\n<p>\\[<br \/>\n\\int<br \/>\n\\tan^2(x)\\cdot<br \/>\n\\sec^2(x)\\cdot<br \/>\n\\sec^2(x)\\,dx.<br \/>\n\\]<\/p>\n<p>We express one of the factors \\( \\sec^2(x) \\) in terms of tangent:<\/p>\n<p>\\[<br \/>\n\\sec^2(x)=1+\\tan^2(x).<br \/>\n\\]<\/p>\n<p>Then we obtain<\/p>\n<p>\\[<br \/>\n\\int<br \/>\n\\tan^2(x)\\cdot<br \/>\n\\bigl(1+\\tan^2(x)\\bigr)\\cdot<br \/>\n\\sec^2(x)\\,dx.<br \/>\n\\]<\/p>\n<p>Now make the substitution<\/p>\n<p>\\[<br \/>\nu=\\tan(x).<br \/>\n\\]<\/p>\n<p>Since<\/p>\n<p>\\[<br \/>\ndu=\\sec^2(x)\\,dx,<br \/>\n\\]<\/p>\n<p>the integral becomes<\/p>\n<p>\\[<br \/>\n\\int<br \/>\nu^2\\cdot\\bigl(1+u^2\\bigr)\\,du.<br \/>\n\\]<\/p>\n<p>Expand the expression:<\/p>\n<p>\\[<br \/>\n\\int \\bigl(u^2+u^4\\bigr)\\,du.<br \/>\n\\]<\/p>\n<p>Integrate each term:<\/p>\n<p>\\[<br \/>\n\\int \\bigl(u^2+u^4\\bigr)\\,du<br \/>\n=<br \/>\n\\frac{u^3}{3}<br \/>\n+<br \/>\n\\frac{u^5}{5}<br \/>\n+<br \/>\nC.<br \/>\n\\]<\/p>\n<p>Return to the original variable:<\/p>\n<p>\\[<br \/>\nu=\\tan(x).<br \/>\n\\]<\/p>\n<p>Thus,<\/p>\n<p>\\[<br \/>\n\\int \\tan^2(x)\\cdot\\sec^4(x)\\,dx<br \/>\n=<br \/>\n\\frac{\\tan^3(x)}{3}<br \/>\n+<br \/>\n\\frac{\\tan^5(x)}{5}<br \/>\n+<br \/>\nC.<br \/>\n\\]<\/p>\n<h3 class=\"example\">Example 4. Evaluate the integral<br \/>\n\\[<br \/>\n\\int \\cos(5\\cdot x)\\cdot\\cos(3\\cdot x)\\,dx.<br \/>\n\\]<\/h3>\n<p>The integrand contains a product of cosines with different arguments. Therefore, we use the formula<\/p>\n<p>\\[<br \/>\n\\cos(\\alpha)\\cdot\\cos(\\beta)<br \/>\n=<br \/>\n\\frac{1}{2}\\cdot<br \/>\n\\bigl(<br \/>\n\\cos(\\alpha-\\beta)+\\cos(\\alpha+\\beta)<br \/>\n\\bigr).<br \/>\n\\]<\/p>\n<p>In our case,<\/p>\n<p>\\[<br \/>\n\\alpha=5\\cdot x,<br \/>\n\\qquad<br \/>\n\\beta=3\\cdot x.<br \/>\n\\]<\/p>\n<p>Then<\/p>\n<p>\\[<br \/>\n\\cos(5\\cdot x)\\cdot\\cos(3\\cdot x)<br \/>\n=<br \/>\n\\frac{1}{2}\\cdot<br \/>\n\\bigl(<br \/>\n\\cos(2\\cdot x)+\\cos(8\\cdot x)<br \/>\n\\bigr).<br \/>\n\\]<\/p>\n<p>The original integral becomes<\/p>\n<p>\\[<br \/>\n\\frac{1}{2}\\cdot<br \/>\n\\int<br \/>\n\\bigl(<br \/>\n\\cos(2\\cdot x)+\\cos(8\\cdot x)<br \/>\n\\bigr)\\,dx.<br \/>\n\\]<\/p>\n<p>Split it into two integrals:<\/p>\n<p>\\[<br \/>\n\\frac{1}{2}\\cdot<br \/>\n\\int\\cos(2\\cdot x)\\,dx<br \/>\n+<br \/>\n\\frac{1}{2}\\cdot<br \/>\n\\int\\cos(8\\cdot x)\\,dx.<br \/>\n\\]<\/p>\n<p>For the first integral, we have<\/p>\n<p>\\[<br \/>\n\\int\\cos(2\\cdot x)\\,dx<br \/>\n=<br \/>\n\\frac{1}{2}\\cdot\\sin(2\\cdot x).<br \/>\n\\]<\/p>\n<p>For the second integral,<\/p>\n<p>\\[<br \/>\n\\int\\cos(8\\cdot x)\\,dx<br \/>\n=<br \/>\n\\frac{1}{8}\\cdot\\sin(8\\cdot x).<br \/>\n\\]<\/p>\n<p>Substitute the antiderivatives:<\/p>\n<p>\\[<br \/>\n\\frac{1}{2}\\cdot<br \/>\n\\frac{1}{2}\\cdot<br \/>\n\\sin(2\\cdot x)<br \/>\n+<br \/>\n\\frac{1}{2}\\cdot<br \/>\n\\frac{1}{8}\\cdot<br \/>\n\\sin(8\\cdot x)<br \/>\n+<br \/>\nC.<br \/>\n\\]<\/p>\n<p>After simplification, we obtain<\/p>\n<p>\\[<br \/>\n\\int \\cos(5\\cdot x)\\cdot\\cos(3\\cdot x)\\,dx<br \/>\n=<br \/>\n\\frac{1}{4}\\cdot\\sin(2\\cdot x)<br \/>\n+<br \/>\n\\frac{1}{16}\\cdot\\sin(8\\cdot x)<br \/>\n+<br \/>\nC.<br \/>\n\\]<\/p>\n<h3 class=\"example\">Example 5. Evaluate the integral<br \/>\n\\[<br \/>\n\\int<br \/>\n\\frac{dx}<br \/>\n{3+\\sin(x)+\\cos(x)}.<br \/>\n\\]<\/h3>\n<p>The denominator contains both sine and cosine. The numerator does not contain a factor that can be directly related to the derivative of either of these functions. Therefore, we use the universal trigonometric substitution<\/p>\n<p>\\[<br \/>\nt=\\tan\\left(\\frac{x}{2}\\right).<br \/>\n\\]<\/p>\n<p>With this substitution,<\/p>\n<p>\\[<br \/>\n\\begin{gathered}<br \/>\n\\sin(x)=\\frac{2\\cdot t}{1+t^2},\\\\[4pt]<br \/>\n\\cos(x)=\\frac{1-t^2}{1+t^2},\\\\[4pt]<br \/>\ndx=\\frac{2}{1+t^2}\\,dt.<br \/>\n\\end{gathered}<br \/>\n\\]<\/p>\n<p>Substitute these expressions into the original integral:<\/p>\n<p>\\[<br \/>\n\\int<br \/>\n\\frac{<br \/>\n\\frac{2}{1+t^2}\\,dt<br \/>\n}{<br \/>\n3+<br \/>\n\\frac{2\\cdot t}{1+t^2}<br \/>\n+<br \/>\n\\frac{1-t^2}{1+t^2}<br \/>\n}.<br \/>\n\\]<\/p>\n<p>Bring the terms in the denominator to a common denominator:<\/p>\n<p>\\[<br \/>\n3+<br \/>\n\\frac{2\\cdot t}{1+t^2}<br \/>\n+<br \/>\n\\frac{1-t^2}{1+t^2}<br \/>\n=<br \/>\n\\frac{<br \/>\n3\\cdot\\bigl(1+t^2\\bigr)<br \/>\n+<br \/>\n2\\cdot t<br \/>\n+<br \/>\n1-t^2<br \/>\n}{<br \/>\n1+t^2<br \/>\n}.<br \/>\n\\]<\/p>\n<p>Expand the expression in the numerator:<\/p>\n<p>\\[<br \/>\n3\\cdot\\bigl(1+t^2\\bigr)<br \/>\n+<br \/>\n2\\cdot t<br \/>\n+<br \/>\n1-t^2<br \/>\n=<br \/>\n3+3\\cdot t^2+2\\cdot t+1-t^2.<br \/>\n\\]<\/p>\n<p>After combining like terms, we obtain<\/p>\n<p>\\[<br \/>\n2\\cdot t^2+2\\cdot t+4.<br \/>\n\\]<\/p>\n<p>Factor out the common factor \\( 2 \\):<\/p>\n<p>\\[<br \/>\n2\\cdot t^2+2\\cdot t+4<br \/>\n=<br \/>\n2\\cdot\\bigl(t^2+t+2\\bigr).<br \/>\n\\]<\/p>\n<p>Therefore, the original integral becomes<\/p>\n<p>\\[<br \/>\n\\int<br \/>\n\\frac{<br \/>\n\\frac{2}{1+t^2}\\,dt<br \/>\n}{<br \/>\n\\frac{<br \/>\n2\\cdot\\bigl(t^2+t+2\\bigr)<br \/>\n}{<br \/>\n1+t^2<br \/>\n}<br \/>\n}.<br \/>\n\\]<\/p>\n<p>Cancel the factors \\( 2 \\) and \\( 1+t^2 \\):<\/p>\n<p>\\[<br \/>\n\\int<br \/>\n\\frac{dt}<br \/>\n{t^2+t+2}.<br \/>\n\\]<\/p>\n<p>To apply the standard arctangent formula, complete the square in the denominator:<\/p>\n<p>\\[<br \/>\nt^2+t+2<br \/>\n=<br \/>\n\\left(t+\\frac{1}{2}\\right)^2<br \/>\n+<br \/>\n\\frac{7}{4}.<br \/>\n\\]<\/p>\n<p>Write \\( 7\/4 \\) as a square:<\/p>\n<p>\\[<br \/>\n\\frac{7}{4}<br \/>\n=<br \/>\n\\left(\\frac{\\sqrt{7}}{2}\\right)^2.<br \/>\n\\]<\/p>\n<p>Thus,<\/p>\n<p>\\[<br \/>\n\\int<br \/>\n\\frac{dt}<br \/>\n{<br \/>\n\\left(t+\\frac{1}{2}\\right)^2<br \/>\n+<br \/>\n\\left(\\frac{\\sqrt{7}}{2}\\right)^2<br \/>\n}.<br \/>\n\\]<\/p>\n<p>We use the formula<\/p>\n<p>\\[<br \/>\n\\int<br \/>\n\\frac{du}<br \/>\n{u^2+a^2}<br \/>\n=<br \/>\n\\frac{1}{a}\\cdot<br \/>\n\\arctan\\left(\\frac{u}{a}\\right)<br \/>\n+<br \/>\nC.<br \/>\n\\]<\/p>\n<p>Let<\/p>\n<p>\\[<br \/>\nu=t+\\frac{1}{2},<br \/>\n\\qquad<br \/>\ndu=dt,<br \/>\n\\qquad<br \/>\na=\\frac{\\sqrt{7}}{2}.<br \/>\n\\]<\/p>\n<p>Then<\/p>\n<p>\\[<br \/>\n\\int<br \/>\n\\frac{dt}<br \/>\n{<br \/>\n\\left(t+\\frac{1}{2}\\right)^2<br \/>\n+<br \/>\n\\left(\\frac{\\sqrt{7}}{2}\\right)^2<br \/>\n}<br \/>\n=<br \/>\n\\frac{2}{\\sqrt{7}}\\cdot<br \/>\n\\arctan\\left(<br \/>\n\\frac{<br \/>\nt+\\frac{1}{2}<br \/>\n}{<br \/>\n\\frac{\\sqrt{7}}{2}<br \/>\n}<br \/>\n\\right)<br \/>\n+<br \/>\nC.<br \/>\n\\]<\/p>\n<p>Simplify the argument of the arctangent:<\/p>\n<p>\\[<br \/>\n\\frac{<br \/>\nt+\\frac{1}{2}<br \/>\n}{<br \/>\n\\frac{\\sqrt{7}}{2}<br \/>\n}<br \/>\n=<br \/>\n\\frac{2\\cdot t+1}{\\sqrt{7}}.<br \/>\n\\]<\/p>\n<p>We obtain<\/p>\n<p>\\[<br \/>\n\\frac{2}{\\sqrt{7}}\\cdot<br \/>\n\\arctan\\left(<br \/>\n\\frac{2\\cdot t+1}{\\sqrt{7}}<br \/>\n\\right)<br \/>\n+<br \/>\nC.<br \/>\n\\]<\/p>\n<p>Now return to the variable \\( x \\):<\/p>\n<p>\\[<br \/>\nt=\\tan\\left(\\frac{x}{2}\\right).<br \/>\n\\]<\/p>\n<p>Therefore,<\/p>\n<p>\\[<br \/>\n\\int<br \/>\n\\frac{dx}<br \/>\n{3+\\sin(x)+\\cos(x)}<br \/>\n=<br \/>\n\\frac{2}{\\sqrt{7}}\\cdot<br \/>\n\\arctan\\left(<br \/>\n\\frac{<br \/>\n2\\cdot\\tan\\left(\\frac{x}{2}\\right)+1<br \/>\n}{<br \/>\n\\sqrt{7}<br \/>\n}<br \/>\n\\right)<br \/>\n+<br \/>\nC.<br \/>\n\\]<\/p>\n<p>The resulting antiderivative should be considered on each interval where the substitution \\( t=\\tan(x\/2) \\) is defined.<\/p>\n<h2>Next Steps in Integral Calculus: Topics to Explore<\/h2>\n<p>After studying the integration of trigonometric functions, you can move on to other important topics in integral calculus. They will help you work with new types of integrands and make the transition from indefinite integrals to definite integrals.<\/p>\n<ol>\n<li><a title=\"Integrals of irrational functions\" href=\"https:\/\/www.mathros.net.ua\/en\/\">Integrals of Irrational Functions: Common Substitutions<\/a> \u2014 We will look at substitutions that help eliminate radicals and transform irrational expressions into forms that are easier to integrate.<\/li>\n<li><a title=\"Definite integral\" href=\"https:\/\/www.mathros.net.ua\/en\/\">Definite Integral: Geometric Meaning and Properties<\/a> \u2014 We will explore the geometric meaning of the definite integral, its connection with area, and its main properties.<\/li>\n<li><a title=\"Newton\u2013Leibniz formula\" href=\"https:\/\/www.mathros.net.ua\/en\/\">Newton\u2013Leibniz Formula: How to Evaluate a Definite Integral<\/a> \u2014 We will learn how to use an antiderivative and the limits of integration to calculate the value of a definite integral.<\/li>\n<\/ol>\n<h2>Integration of Trigonometric Functions: From Flowchart to Program Code<\/h2>\n<p>Do you enjoy programming? Then try turning the mathematical calculations into your own program. Implement the algorithm shown in the flowchart using <em>Pascal<\/em>, <a title=\"What is Python\" href=\"https:\/\/www.mathros.net.ua\/en\/what-is-python.html\"><em>Python<\/em><\/a>, <em>JavaScript<\/em>, <em>C++<\/em>, or another programming language of your choice. The program should calculate the value of the integrand<\/p>\n<p>\\[<br \/>\nf(x)=\\sin^2(x)\\cdot\\cos^3(x),<br \/>\n\\]<\/p>\n<p>approximate the derivative of the antiderivative<\/p>\n<p>\\[<br \/>\nF(x)=\\frac{\\sin^3(x)}{3}-\\frac{\\sin^5(x)}{5},<br \/>\n\\]<\/p>\n<p>and compare the resulting values. This way, you can apply your knowledge of the integration of trigonometric functions in practice and see how a sequence of mathematical calculations can be transformed into program code.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-4373 aligncenter\" src=\"https:\/\/www.mathros.net.ua\/en\/wp-content\/uploads\/2026\/08\/integration-of-trigonometric-functions1.jpg\" alt=\"Flowchart of the algorithm for verifying the antiderivative and applying knowledge of the integration of trigonometric functions in practice\" width=\"600\" height=\"300\" srcset=\"https:\/\/www.mathros.net.ua\/en\/wp-content\/uploads\/2026\/08\/integration-of-trigonometric-functions1.jpg 600w, https:\/\/www.mathros.net.ua\/en\/wp-content\/uploads\/2026\/08\/integration-of-trigonometric-functions1-300x150.jpg 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Integration of trigonometric functions does not always come down to directly using a table of antiderivatives. Often, the integrand first<\/p>\n","protected":false},"author":1,"featured_media":4375,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"template-centered.php","format":"standard","meta":{"footnotes":""},"categories":[562],"tags":[564,539,563,566,580],"class_list":["post-4351","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-integral-calculus","tag-antiderivative","tag-calculus","tag-indefinite-integral","tag-integration-examples","tag-integration-of-trigonometric-functions"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/posts\/4351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/comments?post=4351"}],"version-history":[{"count":21,"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/posts\/4351\/revisions"}],"predecessor-version":[{"id":4374,"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/posts\/4351\/revisions\/4374"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/media\/4375"}],"wp:attachment":[{"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/media?parent=4351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/categories?post=4351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mathros.net.ua\/en\/wp-json\/wp\/v2\/tags?post=4351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}