Integral of tan²(x)

∫tan⁡2(x) dx\int \tan^{2}\left(x\right)\,dx = −x+tan⁡(x)+C- x + \tan{\left(x \right)} + C

Answer

Indefinite integral
−x+tan⁡(x)+C- x + \tan{\left(x \right)} + C

Checked numerically before it is shown

Step-by-step solution

  1. Rewrite the integrand

    tan⁡2(x)=sec⁡2(x)−1\tan^{2}{\left(x \right)} = \sec^{2}{\left(x \right)} - 1
  2. Sum rule

    Integrate term by term:

    ∫(sec⁡2(x)−1) dx=∫sec⁡2(x) dx+∫−1 dx\int \left(\sec^{2}{\left(x \right)} - 1\right)\,dx = \int \sec^{2}{\left(x \right)}\,dx + \int -1\,dx
  3. Standard integral

    ∫sec⁡2(x) dx=tan⁡(x)\int \sec^{2}{\left(x \right)}\,dx = \tan{\left(x \right)}
  4. Integral of a constant

    ∫−1 dx=−x\int -1\,dx = - x
  5. Constant of integration

    Add the constant of integration:

    ∫tan⁡2(x) dx=−x+tan⁡(x)+C\int \tan^{2}{\left(x \right)}\,dx = - x + \tan{\left(x \right)} + C

Change the problem in the solver Integral calculator

Related solved examples