Mister Exam

Other calculators


tan(x/2)

Integral of tan(x/2) dx

Limits of integration:

from to
v

The graph:

from to

Piecewise:

The solution

You have entered [src]
  1          
  /          
 |           
 |     /x\   
 |  tan|-| dx
 |     \2/   
 |           
/            
0            
01tan(x2)dx\int\limits_{0}^{1} \tan{\left(\frac{x}{2} \right)}\, dx
Integral(tan(x/2), (x, 0, 1))
Detail solution
  1. Rewrite the integrand:

    tan(x2)=sin(x2)cos(x2)\tan{\left(\frac{x}{2} \right)} = \frac{\sin{\left(\frac{x}{2} \right)}}{\cos{\left(\frac{x}{2} \right)}}

  2. There are multiple ways to do this integral.

    Method #1

    1. Let u=cos(x2)u = \cos{\left(\frac{x}{2} \right)}.

      Then let du=sin(x2)dx2du = - \frac{\sin{\left(\frac{x}{2} \right)} dx}{2} and substitute 2du- 2 du:

      4udu\int \frac{4}{u}\, du

      1. The integral of a constant times a function is the constant times the integral of the function:

        (2u)du=21udu\int \left(- \frac{2}{u}\right)\, du = - 2 \int \frac{1}{u}\, du

        1. The integral of 1u\frac{1}{u} is log(u)\log{\left(u \right)}.

        So, the result is: 2log(u)- 2 \log{\left(u \right)}

      Now substitute uu back in:

      2log(cos(x2))- 2 \log{\left(\cos{\left(\frac{x}{2} \right)} \right)}

    Method #2

    1. Let u=x2u = \frac{x}{2}.

      Then let du=dx2du = \frac{dx}{2} and substitute 2du2 du:

      4sin(u)cos(u)du\int \frac{4 \sin{\left(u \right)}}{\cos{\left(u \right)}}\, du

      1. The integral of a constant times a function is the constant times the integral of the function:

        2sin(u)cos(u)du=2sin(u)cos(u)du\int \frac{2 \sin{\left(u \right)}}{\cos{\left(u \right)}}\, du = 2 \int \frac{\sin{\left(u \right)}}{\cos{\left(u \right)}}\, du

        1. Let u=cos(u)u = \cos{\left(u \right)}.

          Then let du=sin(u)dudu = - \sin{\left(u \right)} du and substitute du- du:

          1udu\int \frac{1}{u}\, du

          1. The integral of a constant times a function is the constant times the integral of the function:

            (1u)du=1udu\int \left(- \frac{1}{u}\right)\, du = - \int \frac{1}{u}\, du

            1. The integral of 1u\frac{1}{u} is log(u)\log{\left(u \right)}.

            So, the result is: log(u)- \log{\left(u \right)}

          Now substitute uu back in:

          log(cos(u))- \log{\left(\cos{\left(u \right)} \right)}

        So, the result is: 2log(cos(u))- 2 \log{\left(\cos{\left(u \right)} \right)}

      Now substitute uu back in:

      2log(cos(x2))- 2 \log{\left(\cos{\left(\frac{x}{2} \right)} \right)}

  3. Now simplify:

    2log(cos(x2))- 2 \log{\left(\cos{\left(\frac{x}{2} \right)} \right)}

  4. Add the constant of integration:

    2log(cos(x2))+constant- 2 \log{\left(\cos{\left(\frac{x}{2} \right)} \right)}+ \mathrm{constant}


The answer is:

2log(cos(x2))+constant- 2 \log{\left(\cos{\left(\frac{x}{2} \right)} \right)}+ \mathrm{constant}

The answer (Indefinite) [src]
  /                             
 |                              
 |    /x\               /   /x\\
 | tan|-| dx = C - 2*log|cos|-||
 |    \2/               \   \2//
 |                              
/                               
2logsec(x2)2\,\log \sec \left({{x}\over{2}}\right)
The graph
0.001.000.100.200.300.400.500.600.700.800.900.01.0
The answer [src]
-2*log(cos(1/2))
2logcos(12)-2\,\log \cos \left({{1}\over{2}}\right)
=
=
-2*log(cos(1/2))
2log(cos(12))- 2 \log{\left(\cos{\left(\frac{1}{2} \right)} \right)}
Numerical answer [src]
0.261168480887445
0.261168480887445
The graph
Integral of tan(x/2) dx

    Use the examples entering the upper and lower limits of integration.