Exams
Test Series
Previous Year Papers
JEE Main Previous Year Question Paper JEE Advanced Previous Year Papers NEET Previous Year Question Paper CUET Previous Year Papers COMEDK UGET Previous Year Papers UP Polytechnic Previous Year Papers AP POLYCET Previous Year Papers TS POLYCET Previous Year Papers KEAM Previous Year Papers MHT CET Previous Year Papers WB JEE Previous Year Papers GUJCET Previous Year Papers ICAR AIEEA Previous Year Papers CUET PG Previous Year Papers JCECE Previous Year Papers Karnataka PGCET Previous Year Papers NEST Previous Year Papers KCET Previous Year Papers LPUNEST Previous Year Papers AMUEEE Previous Year Papers IISER IAT Previous Year Papers Bihar Diploma DECE-LE Previous Year Papers NPAT Previous Year Papers JMI Entrance Exam Previous Year Papers PGDBA Exam Previous Year Papers AP ECET Previous Year Papers PU CET Previous Year Papers GPAT Previous Year Papers CEED Previous Year Papers AIAPGET Previous Year Papers JKCET Previous Year Papers HPCET Previous Year Papers CG PAT Previous Year Papers SRMJEEE Previous Year Papers BCECE Previous Year Papers AGRICET Previous Year Papers TS PGECET Previous Year Papers MP PAT Previous Year Papers IIT JAM Previous Year Papers CMC Vellore Previous Year Papers ACET Previous Year Papers TS EAMCET Previous Year Papers NATA Previous Year Papers AIIMS MBBS Previous Year Papers BITSAT Previous Year Papers JEXPO Previous Year Papers HITSEEE Previous Year Papers AP EAPCET Previous Year Papers UCEED Previous Year Papers CG PET Previous Year Papers OUAT Previous Year Papers VITEEE Previous Year Papers
Syllabus
JEE Main Syllabus JEE Advanced Syllabus NEET Syllabus CUET Syllabus COMEDK UGET Syllabus UP Polytechnic JEECUP Syllabus AP POLYCET Syllabus TS POLYCET Syllabus KEAM Syllabus MHT CET Syllabus WB JEE Syllabus OJEE Syllabus ICAR AIEEA Syllabus CUET PG Syllabus NID Syllabus JCECE Syllabus Karnataka PGCET Syllabus NEST Syllabus KCET Syllabus UPESEAT EXAM Syllabus LPUNEST Syllabus PUBDET Syllabus AMUEEE Syllabus IISER IAT Syllabus NPAT Syllabus JIPMER Syllabus JMI Entrance Exam Syllabus AAU VET Syllabus PGDBA Exam Syllabus AP ECET Syllabus GCET Syllabus CEPT Syllabus PU CET Syllabus GPAT Syllabus CEED Syllabus AIAPGET Syllabus JKCET Syllabus HPCET Syllabus CG PAT Syllabus BCECE Syllabus AGRICET Syllabus TS PGECET Syllabus BEEE Syllabus MP PAT Syllabus MCAER PG CET Syllabus VITMEE Syllabus IIT JAM Syllabus CMC Vellore Syllabus AIMA UGAT Syllabus AIEED Syllabus ACET Syllabus TS EAMCET Syllabus PGIMER Exam Syllabus NATA Syllabus AFMC Syllabus AIIMS MBBS Syllabus BITSAT Syllabus BVP CET Syllabus JEXPO Syllabus HITSEEE Syllabus AP EAPCET Syllabus GITAM GAT Syllabus UPCATET Syllabus UCEED Syllabus CG PET Syllabus OUAT Syllabus IEMJEE Syllabus VITEEE Syllabus SEED Syllabus MU OET Syllabus
Books
Cut Off
JEE Main Cut Off JEE Advanced Cut Off NEET Cut Off CUET Cut Off COMEDK UGET Cut Off UP Polytechnic JEECUP Cut Off AP POLYCET Cut Off TNEA Cut Off TS POLYCET Cut Off KEAM Cut Off MHT CET Cut Off WB JEE Cut Off ICAR AIEEA Cut Off CUET PG Cut Off NID Cut Off JCECE Cut Off Karnataka PGCET Cut Off NEST Cut Off KCET Cut Off UPESEAT EXAM Cut Off AMUEEE Cut Off IISER IAT Cut Off Bihar Diploma DECE-LE Cut Off JIPMER Cut Off JMI Entrance Exam Cut Off PGDBA Exam Cut Off AP ECET Cut Off GCET Cut Off CEPT Cut Off PU CET Cut Off CEED Cut Off AIAPGET Cut Off JKCET Cut Off HPCET Cut Off CG PAT Cut Off SRMJEEE Cut Off TS PGECET Cut Off BEEE Cut Off MP PAT Cut Off VITMEE Cut Off IIT JAM Cut Off CMC Vellore Cut Off ACET Cut Off TS EAMCET Cut Off PGIMER Exam Cut Off NATA Cut Off AFMC Cut Off AIIMS MBBS Cut Off BITSAT Cut Off BVP CET Cut Off JEXPO Cut Off HITSEEE Cut Off AP EAPCET Cut Off GITAM GAT Cut Off UCEED Cut Off CG PET Cut Off OUAT Cut Off VITEEE Cut Off MU OET Cut Off
Latest Updates
Eligibility
JEE Main Eligibility JEE Advanced Eligibility NEET Eligibility CUET Eligibility COMEDK UGET Eligibility UP Polytechnic JEECUP Eligibility TNEA Eligibility TS POLYCET Eligibility KEAM Eligibility MHT CET Eligibility WB JEE Eligibility OJEE Eligibility ICAR AIEEA Eligibility CUET PG Eligibility NID Eligibility JCECE Eligibility Karnataka PGCET Eligibility NEST Eligibility KCET Eligibility LPUNEST Eligibility PUBDET Eligibility AMUEEE Eligibility IISER IAT Eligibility Bihar Diploma DECE-LE Eligibility NPAT Eligibility JIPMER Eligibility JMI Entrance Exam Eligibility AAU VET Eligibility PGDBA Exam Eligibility AP ECET Eligibility GCET Eligibility CEPT Eligibility PU CET Eligibility GPAT Eligibility CEED Eligibility AIAPGET Eligibility JKCET Eligibility HPCET Eligibility CG PAT Eligibility SRMJEEE Eligibility BCECE Eligibility AGRICET Eligibility TS PGECET Eligibility MP PAT Eligibility MCAER PG CET Eligibility VITMEE Eligibility IIT JAM Eligibility CMC Vellore Eligibility AIMA UGAT Eligibility AIEED Eligibility ACET Eligibility PGIMER Exam Eligibility CENTAC Eligibility NATA Eligibility AFMC Eligibility AIIMS MBBS Eligibility BITSAT Eligibility JEXPO Eligibility HITSEEE Eligibility AP EAPCET Eligibility GITAM GAT Eligibility UPCATET Eligibility UCEED Eligibility CG PET Eligibility OUAT Eligibility IEMJEE Eligibility SEED Eligibility MU OET Eligibility

Integral of Tanx: Explained with Proof and Solved Examples

Last Updated on Jun 30, 2025
Download As PDF
IMPORTANT LINKS

Integral Calculus is a branch of mathematics that helps us find the total or whole by adding up many small parts. It is the opposite of differentiation. When we use integral calculus, we are often trying to find areas, volumes, or the total value of a changing quantity.

In simple terms, if a function shows how something changes (like speed, height, or temperature), integration helps us find the total of that change over time or space.

Maths Notes Free PDFs

Topic PDF Link
Class 12 Maths Important Topics Free Notes PDF Download PDF
Class 10, 11 Mathematics Study Notes Download PDF
Most Asked Maths Questions in Exams Download PDF
Increasing and Decreasing Function in Maths Download PDF

Many types of mathematical functions can be integrated, including trigonometric functions like sin(x), cos(x), and tan(x). These are commonly used in physics, engineering, and other fields.

What is the Integral of Tanx?

The integral of tan(x) is written as −ln|cos(x)| + C or ln|sec(x)| + C.

The function tan(x) is continuous everywhere except at points like π/2, 3π/2, 5π/2, etc., where it is not defined.

So, the domain of tan(x) includes all real numbers except those odd multiples of π/2.

Tan is a trigonometric function that relates the two sides of a right angled triangle to an angle. Tan or Tangent is a mathematical ratio of the opposite sides and adjacent sides. Thus,

We can integrate tanx to get value as

Continue reading about second order derivatives.

UGC NET/SET Course Online by SuperTeachers: Complete Study Material, Live Classes & More

Get UGC NET/SET SuperCoaching @ just

₹25999 ₹11666

Your Total Savings ₹14333
Explore SuperCoaching

How to Solve Integration of Tanx?

To find the Integral of Tanx we use integration by substitution method. Let’s learn how we can integrate Tanx. 

The easiest way to integrate tan(x) is to recall that

so

We use the substitution method to integrate this function

We substitute u = cos(x), du = -sinx dx.

 

Resubstituting cos(x) = u, we get;

Continue reading more about First Principles of Derivative here.

Definite Integration of Tanx

A definite integral is the area under a curve between two fixed limits. The process of finding integrals is called integration. Definite integrals are used when the limits are defined to generate a unique value. 

We apply the formula of definite integrals

Example: Let’s integrate Tanx between

Solution:

so

We use the substitution method to integrate this function

We substitute u = cos(x), du = -sinx dx.

 

Resubstituting cos(x) = u, we get;

We know that, 

Therefore, 

Check out this article on Limits and Continuity.

Test Series
133.7k Students
NCERT XI-XII Physics Foundation Pack Mock Test
323 TOTAL TESTS | 3 Free Tests
  • 3 Live Test
  • 163 Class XI Chapter Tests
  • 157 Class XII Chapter Tests

Get Started

Integration of Tanx Summary

The integral of tan(x) means we are trying to find a function whose derivative is tan(x). In calculus, this process is called finding the antiderivative or indefinite integral.

We know that:

tan(x) = sin(x)/cos(x)

To integrate tan(x), we use a method called substitution. If we let u = cos(x), then du = -sin(x) dx. This helps us change the integral into a simpler form.

Now,

∫tan(x) dx = ∫sin(x)/cos(x) dx

= -∫du/u

= -ln|u| + C

Since u = cos(x), we replace it back:

∫tan(x) dx = -ln|cos(x)| + C

This is the most commonly used form. You can also write it as:

∫tan(x) dx = ln|sec(x)| + C

because -ln|cos(x)| is the same as ln|sec(x)|.

Here, ln is the natural logarithm and C is the constant of integration added to all indefinite integrals.

In summary, integrating tan(x) gives us a logarithmic function based on the cosine or secant of x.

Properties of the Integral of tan(x):
  1. Derivative Relationship
    Since the derivative of -ln|cos(x)| is tan(x),
    we get:
    ∫tan(x) dx = -ln|cos(x)| + C
    (This can also be written as ln|sec(x)| + C)
  2. Linearity
    If a is a constant, then:
    ∫a · tan(x) dx = a · ∫tan(x) dx
    = -a · ln|cos(x)| + C
  3. Odd Function Property
    Since tan(x) is an odd function:
    ∫ from -a to a of tan(x) dx = 0
    (This holds only if the interval [-a, a] avoids the vertical asymptotes at x = π/2 + nπ)
  4. Periodic Nature
    Since tan(x) has a period of π:
    ∫ from x to x+π of tan(t) dt = 0
    (Again, this holds only if the interval avoids points of discontinuity)
  5. Integration in Definite Form
    When evaluating a definite integral like ∫ from a to b of tan(x) dx,
    make sure that cos(x) ≠ 0 in the interval [a, b] —
    because the integral becomes undefined at vertical asymptotes of tan(x),
    which occur at x = π/2 + nπ.

Examples of Integration of Tanx

Now that we have learnt the derivation and proof of integral of tanx let’s see some solved examples on integration of secx tanx.

Solved Example 1: Find the

Solution:

We know that, 

We will divide the problem into two integrations. 

We know that

Let’s put thus

Thus, =

=

Now substituting  

=

Now we take the main question:

Solved Example 2:Find ∫ tan⁵(x)·sec⁷(x) dx

Solution:
We rewrite the expression as:
∫ tan⁵(x)·sec⁷(x) dx = ∫ tan⁴(x)·sec⁶(x)·sec(x)·tan(x) dx

Now use the identity:
tan²(x) = sec²(x) − 1
⇒ tan⁴(x) = (tan²(x))² = (sec²(x) − 1)²

So the integral becomes:
∫ (sec²(x) − 1)²·sec⁶(x)·sec(x)·tan(x) dx
= ∫ (sec²(x) − 1)²·sec⁷(x)·tan(x) dx

Now substitute:
Let u = sec(x) ⇒ du = sec(x)·tan(x) dx

So:
∫ (u² − 1)² · u⁶ du
= ∫ (u⁴ − 2u² + 1) · u⁶ du
= ∫ (u¹⁰ − 2u⁸ + u⁶) du
= u¹¹/11 − 2u⁹/9 + u⁷/7 + C

Substituting back u = sec(x):
Final Answer:
∫ tan⁵(x)·sec⁷(x) dx = (sec¹¹(x))/11 − 2(sec⁹(x))/9 + (sec⁷(x))/7 + C

Solved Example 3:Find ∫ tan⁶(x)·sec⁴(x) dx

Solution:
We use the identity:
sec⁴(x) = (1 + tan²(x))·sec²(x)

So:
∫ tan⁶(x)·sec⁴(x) dx = ∫ tan⁶(x)·(1 + tan²(x))·sec²(x) dx
= ∫ (tan⁶(x) + tan⁸(x))·sec²(x) dx

Now let u = tan(x) ⇒ du = sec²(x) dx

So the integral becomes:
∫ (u⁶ + u⁸) du = u⁷/7 + u⁹/9 + C

Substitute back u = tan(x):
Final Answer:
∫ tan⁶(x)·sec⁴(x) dx = (tan⁷(x))/7 + (tan⁹(x))/9 + C

Solved Example 4: Find ∫ tan²(x) · sec⁴(x) dx

Solution:

Step 1: Use the identity
sec⁴(x) = (1 + tan²(x)) · sec²(x)

So the given integral becomes:
∫ tan²(x) · sec⁴(x) dx
= ∫ tan²(x) · (1 + tan²(x)) · sec²(x) dx
= ∫ (tan²(x) + tan⁴(x)) · sec²(x) dx

Step 2: Let
u = tan(x)
Then,
du = sec²(x) dx

Now the integral becomes:
∫ (u² + u⁴) du
= u³ / 3 + u⁵ / 5 + C

Step 3: Substitute back u = tan(x)

Final Answer:
∫ tan²(x) · sec⁴(x) dx = (tan³(x))/3 + (tan⁵(x))/5 + C

Hope this article on the Integral of Tanx was informative. Similarly, we can find limits of inverse trigonometric functions. Get some practice of the same on our free Testbook App. Download Now!

Important Links
NEET Exam
NEET Previous Year Question Papers NEET Mock Test NEET Syllabus
CUET Exam
CUET Previous Year Question Papers CUET Mock Test CUET Syllabus
JEE Main Exam
JEE Main Previous Year Question Papers JEE Main Mock Test JEE Main Syllabus
JEE Advanced Exam
JEE Advanced Previous Year Question Papers JEE Advanced Mock Test JEE Advanced Syllabus
More Articles for Maths

FAQs For Integral of Tanx

The fintegration formula of tanx is given by [latex]{\int}tan(x)dx = log(\frac{1}{cos(x)})+c[/latex] OR [latex]{\int}tan(x)dx = log(sec(x))+c[/latex].

The formula for integral of tanx is given by [latex]{\int}tan(x)dx = log(\frac{1}{cos(x)})+c[/latex] OR [latex]{\int}tan(x)dx = log(sec(x))+c[/latex].

The limit does not exist. So, [latex]\int^{\frac{\pi}{2}}_0tanxdx[/latex] diverges. Therefore [latex]\int^{\pi}_0tanxdx[/latex] diverges.

The antiderivative of tanx is given by [latex]{\int}tan(x)dx = log(\frac{1}{cos(x)})+c[/latex] OR [latex]{\int}tan(x)dx = log(sec(x))+c[/latex].

The formula for integral of tanx in terms of secx is given by [latex]{\int}tan(x)dx = log(sec(x))+c[/latex].

∫tan(x) dx = ln|sec(x)| + C ∫tan²(x) dx = ∫(sec²(x) - 1) dx = tan(x) - x + C

Tan(x) is a trigonometric function and also a periodic function. Its period is π, and it has vertical asymptotes where cos(x) = 0.

Report An Error