Mister Exam

Other calculators


x(tan^2(x))

Integral of x(tan^2(x)) dx

Limits of integration:

from to
v

The graph:

from to

Piecewise:

The solution

You have entered [src]
  1             
  /             
 |              
 |       2      
 |  x*tan (x) dx
 |              
/               
0               
01xtan2(x)dx\int\limits_{0}^{1} x \tan^{2}{\left(x \right)}\, dx
Integral(x*tan(x)^2, (x, 0, 1))
Detail solution
  1. Use integration by parts:

    udv=uvvdu\int \operatorname{u} \operatorname{dv} = \operatorname{u}\operatorname{v} - \int \operatorname{v} \operatorname{du}

    Let u(x)=xu{\left(x \right)} = x and let dv(x)=tan2(x)\operatorname{dv}{\left(x \right)} = \tan^{2}{\left(x \right)}.

    Then du(x)=1\operatorname{du}{\left(x \right)} = 1.

    To find v(x)v{\left(x \right)}:

    1. Rewrite the integrand:

      tan2(x)=sec2(x)1\tan^{2}{\left(x \right)} = \sec^{2}{\left(x \right)} - 1

    2. Integrate term-by-term:

      1. sec2(x)dx=tan(x)\int \sec^{2}{\left(x \right)}\, dx = \tan{\left(x \right)}

      1. The integral of a constant is the constant times the variable of integration:

        (1)dx=x\int \left(-1\right)\, dx = - x

      The result is: x+tan(x)- x + \tan{\left(x \right)}

    Now evaluate the sub-integral.

  2. Integrate term-by-term:

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

      (x)dx=xdx\int \left(- x\right)\, dx = - \int x\, dx

      1. The integral of xnx^{n} is xn+1n+1\frac{x^{n + 1}}{n + 1} when n1n \neq -1:

        xdx=x22\int x\, dx = \frac{x^{2}}{2}

      So, the result is: x22- \frac{x^{2}}{2}

    1. Rewrite the integrand:

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

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

      Then let du=sin(x)dxdu = - \sin{\left(x \right)} dx 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(x))- \log{\left(\cos{\left(x \right)} \right)}

    The result is: x22log(cos(x))- \frac{x^{2}}{2} - \log{\left(\cos{\left(x \right)} \right)}

  3. Now simplify:

    x22+xtan(x)+log(cos(x))- \frac{x^{2}}{2} + x \tan{\left(x \right)} + \log{\left(\cos{\left(x \right)} \right)}

  4. Add the constant of integration:

    x22+xtan(x)+log(cos(x))+constant- \frac{x^{2}}{2} + x \tan{\left(x \right)} + \log{\left(\cos{\left(x \right)} \right)}+ \mathrm{constant}


The answer is:

x22+xtan(x)+log(cos(x))+constant- \frac{x^{2}}{2} + x \tan{\left(x \right)} + \log{\left(\cos{\left(x \right)} \right)}+ \mathrm{constant}

The answer (Indefinite) [src]
  /                                                     
 |                     2                                
 |      2             x                                 
 | x*tan (x) dx = C + -- + x*(-x + tan(x)) + log(cos(x))
 |                    2                                 
/                                                       
(sin2(2x)+cos2(2x)+2cos(2x)+1)log(sin2(2x)+cos2(2x)+2cos(2x)+1)x2sin2(2x)+4xsin(2x)x2cos2(2x)2x2cos(2x)x22sin2(2x)+2cos2(2x)+4cos(2x)+2{{\left(\sin ^2\left(2\,x\right)+\cos ^2\left(2\,x\right)+2\,\cos \left(2\,x\right)+1\right)\,\log \left(\sin ^2\left(2\,x\right)+ \cos ^2\left(2\,x\right)+2\,\cos \left(2\,x\right)+1\right)-x^2\, \sin ^2\left(2\,x\right)+4\,x\,\sin \left(2\,x\right)-x^2\,\cos ^2 \left(2\,x\right)-2\,x^2\,\cos \left(2\,x\right)-x^2}\over{2\,\sin ^ 2\left(2\,x\right)+2\,\cos ^2\left(2\,x\right)+4\,\cos \left(2\,x \right)+2}}
The graph
0.001.000.100.200.300.400.500.600.700.800.900.02.5
The answer [src]
         /       2   \         
  1   log\1 + tan (1)/         
- - - ---------------- + tan(1)
  2          2                 
(sin22+cos22+2cos2+1)log(sin22+cos22+2cos2+1)sin22+4sin2cos222cos212sin22+2cos22+4cos2+2log42{{\left(\sin ^22+\cos ^22+2\,\cos 2+1\right)\,\log \left(\sin ^22+ \cos ^22+2\,\cos 2+1\right)-\sin ^22+4\,\sin 2-\cos ^22-2\,\cos 2-1 }\over{2\,\sin ^22+2\,\cos ^22+4\,\cos 2+2}}-{{\log 4}\over{2}}
=
=
         /       2   \         
  1   log\1 + tan (1)/         
- - - ---------------- + tan(1)
  2          2                 
log(1+tan2(1))212+tan(1)- \frac{\log{\left(1 + \tan^{2}{\left(1 \right)} \right)}}{2} - \frac{1}{2} + \tan{\left(1 \right)}
Numerical answer [src]
0.441781254268888
0.441781254268888
The graph
Integral of x(tan^2(x)) dx

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