BrightChamps Logo
Login

Summarize this article:

Live Math Learners Count Icon118 Learners

Last updated on September 30, 2025

Integral of Sec x

Professor Greenline Explaining Math Concepts

The fundamental concept of calculus is the integral. An integral is used to find the area under a curve. It is the inverse operation of differentiation. In this topic, we will discuss the integral of sec x.

Integral of Sec x for US Students
Professor Greenline from BrightChamps

What is the Integral of Sec x?

The reciprocal function of sec x is cos x, since sec x = 1 / cos x. The integral function is denoted by the symbol ∫. So integral sec x is ∫sec x dx. One of the popular formulas to find the integral of sec x is ∫sec x dx = In |sec x + tan x| + C, where C is the integration constant, and In is the natural logarithm. 

Professor Greenline from BrightChamps

Methods to Solve the Integral of Sec x

There are multiple ways to find the integration. In this section, we will discuss some common methods we use to find the integral of sec x.

 

  • Substitution method
     
  • Partial method
     
  • Trigonometric formula
     
  • Hyperbolic function
Professor Greenline from BrightChamps

Integral of Sec x by Substitution Method

When the given function is complex or direct integration is not possible, we use the substitution method. Here we use a new variable to substitute. Let’s find the integral of sec x using the Substitution method.

 

Multiplying and dividing by sec x + tan x 

 

That is, ∫sec (x) dx = ∫sec(x). (sec(x) + tan(x)) / sec(x) + tan (x) 


Expanding the numerator

 

sec(x). (sec(x) + tan(x)) = sec2 (x) + sec (x) tan (x) 

 

So, ∫sec (x) dx = ∫sec2 (x) + sec (x) tan (x) / sec (x) + tan (x) dx

 

Let u = sec (x) + tan (x)

 

Differentiate u with x: du/dx = sec (x) tan (x) + sec2(x)

 

Therefore, du = (sec (x) tan (x) + sec2(x)) dx

 

Hence, the numerator is equal to the du.

 

Substituting, u = sec (x) + tan (x); du = (sec (x) tan (x) + sec2(x)) dx

 

∫sec2 (x) + sec (x) tan (x) / sec (x) + tan (x) dx = ∫du/u = In |u| + C

 

Here, u = sec (x) + tan (x)

 

So, In |u| + C = In |sec (x) + tan (x)| + C

 

Therefore, ∫sec (x) dx = In |sec (x) + tan (x)| + C

Professor Greenline from BrightChamps

Integral of Sec x by Partial Method

In this method, an improper-looking rational function is broken down into a proper rational function. Sec(x) = 1/cos(x)

 

∫sec (x) dx =  ∫1 / cos(x)

 

Multiplying and diving by cos(x)

 ∫sec (x) dx =  ∫cos(x) / (cos2x) dx

 

In trigonometry identities, cos2x = 1 - sin2x

So,  ∫sec (x) dx =  ∫cos(x) / (1 - sin2x) dx

u = sin(x), du = cos(x) dx, substituting the value in

∫cos(x) / (1 - sin2x) can be written as ∫du / (1 - u)2

So, ∫sec (x) dx =  ∫du / (1 - u)2

 

Using partial fraction decomposition on 1 / (1 - u2)

That is, 1 / 1 - u2 = A / (1 + u) + B / (1 - u) 

1 = A(1 - u) +B(1 +u)

1 = A - Au + B + Bu

1 = (A + B) + (-A + B)u


That is A + B = 1

-A + B = 0 → B - A = 0 → B = A

 

Substituting, B = A into A + B = 1

A + A = 1 →  A = ½, and since B = A, B = ½

Therefore, 1 / 1 - u2 = (1/2)/1 + u + (1/2)/1 - u 

 ∫1 / 1 - u2 du = ½  ∫1 / 1 + u du + ½  ∫ 1 / 1 - u du

 ∫1 / 1 + u = In| 1 + u| and  ∫1 / 1 - u = -In |1 - u| 

 

So,  ∫1 / 1 - u2 du = ½  In| 1 + u|  + ½  In| 1 - u| + C
∫1 / 1 - u2 du = ½ In |1 + u/1 - u| + C

As u = sin(x), so substituting u = sin(x)

∫ sec(x) dx = ½ In |1 + sin(x)/1 - sin(x)| + C

Therefore, ∫ sec(x) dx = ½ In | 1 + sin(x) / 1 - sin(x) | + C

Professor Greenline from BrightChamps

Integral of Sec x by Trigonometric formula

Trigonometric formulas use trigonometric identities to find the value of sec x. Sec x is equal to 1 / cos x.

∫ sec(x) = ∫ 1 / cos(x) dx

In trigonometric identity, cos(x) = sin(x +π/2)

Thus, ∫ sec(x) = ∫ 1 / sin(x +π/2) dx

Rewriting sine function using half-angle formula

sin(A) = 2sin(A/2) cos(A/2)

Substituting it in sin(x +π/2)

sin(x +π/2) = 2sin(x/2 +π/4) cos(x/2 +π/4)

Finding the ∫ sec(x) 

That is ∫ sec(x) dx = ∫ 1/ 2sin(x/2 +π/4) cos(x/2 +π/4) dx

Factor out ½
That is, ∫ sec(x) dx = ½ ∫ 1/ sin(x/2 +π/4) cos(x/2 +π/4) dx
 
Multiplying and dividing the denominator by cos((x/2) + (π/4)),

∫ sec(x) dx = ½ ∫ 1/ sin(x/2 +π/4) / cos(x/2 +π/4). cos2((x/2) + (π/4)) dx
= ½ ∫ sec2((x/2) + (π/4)) / tan ((x/2) +(π/4)) dx


Considering u = tan((x/2) +(π/4)) 

Derivate of tan(A), d/dx [tan(A)] = sec2 (A) dA/dx

Differentiate u = d/dx tan (x/2 + π/4) = ½ sec2 (x/2 + π/4)
du = ½ sec2(x/2 + π/4) dx 

∫ sec(x) dx = ∫ 1/u du

Integral of 1/u is ∫ 1/u du = In|u| + C

Here, u = tan (x/2 + π/4)

So, ∫ sec(x) dx = In | tan (x/2 + π/4) | + C

Professor Greenline from BrightChamps

Integral of Sec x by Hyperbolic function

The hyperbolic function is the same as a trigonometric function for circles. Here sinh, cosh, tanh, coth, sech, and csch are the functions. Let's find the value of ∫ sec(x) dx.

 

In trigonometric identities, tan(x) = √sec2(x) - 1

In hyperbolic identity, cosh2(t) - sinh2(t) = 1

That is tanh2(t) = cosh2(t) - 1

So, tan(x) = sinh(t)

Differentiating both sides

 sec2x dx = cosh t dt

sec x = cosh t

cosh2t dx = cosh t dt

dx = (cosh t) / cosh2(t) dt

= 1 / cosh t dx

Substituting the ∫ sec x dx

= ∫ sec x dx

= ∫ (cosh t) (1,(cosh t) dt)

= ∫ dt

= t

= cosh-1(sec x) + C

So, ∫ sec x dx = cosh-1(sec x) + C

Professor Greenline from BrightChamps

Tips and Tricks for Integration of Sec x

Tips and tricks make it interesting for kids to learn integration. To master integration, kids can use these tips and tricks.

 

  • Memorizing the integrals: By memorizing the equations, students can apply and use it when finding a number's integral.

 

  • Following the correct method: There are different ways to find the integrals, so we should use the correct method to get the correct answer.  

 

  • Memorize the trigonometric identities: By identifying the correct trigonometric identities students can easily apply them when finding the integrals. 
Max Pointing Out Common Math Mistakes

Common Mistakes and How to Avoid Them in Integration of Sec x

Students usually consider integers as one of the most difficult and confusing topics in math. So they make the same mistake mostly, in this section let’s discuss some common mistakes and the ways to avoid them.

Mistake 1

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Forgetting the formula

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Students get confused with the formulas, they assume that ∫ sec(x) dx is 1/cos(x). Because finding the value of integral sec x involves logarithmic expressions. So students need to memorize the formula that is ∫ sec(x) dx = In |sec(x) + tan(x)| + c. 

Mistake 2

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Errors in algebraic equations

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

When multiplying and dividing sec(x) + tan(x) with ∫ sec(x), that is ∫ sec(x) dx = ∫ sec (x) (sec(x) + tan(x)) / sec(x) + tan(x) dx. If the numerator and denominator aren’t handled carefully that may lead to error. So students check the answer step by step to avoid errors.

Mistake 3

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Writing the value without integration constant

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Students tend to write that ∫ sec(x) is In |sec(x) + tan(x)|. It is incorrect as they did not add +C which is the integration constant. To avoid the mistake kids should add the integration constant when solving the integrals.

Mistake 4

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Forgetting the trigonometric identities

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

Students are usually confused with the trigonometric identities, so students should memorize the important identities. Such as sec2x - 1 = tan2x.

Mistake 5

Red Cross Icon Indicating Mistakes to Avoid in This Math Topic

Using wrong trigonometric substitutions

Green Checkmark Icon Indicating Correct Solutions in This Math Topic

When finding the integral using the substitution method, students should not get confused with the substitutions.

 

For e.g., using u = tab x instead of u = sec x + tan x. So students should check and use the correct substitutions. 

arrow-right
Max from BrightChamps Saying "Hey"
Hey!

Examples on Integration of Sec x

Ray, the Character from BrightChamps Explaining Math Concepts
Max, the Girl Character from BrightChamps

Problem 1

Find the value of ∫ sec(x) dx, where x = π/4

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

∫ sec(x) dx, where x = π/4 =  In |√2 + 1| + C 

Explanation

Find the value of ∫ sec(x) dx for x= π/4

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

As x = π/4,

sec(π/4) = 1/cos(π/4) = 1/√2/2 = √2

tan(π/4) = 1

Substituting the values in ∫ sec(x) dx = In |sec(x) + tan(x) | + C

That is, In |sec(x) + tan(x) | + C = In |√2 + 1| + C 

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Max, the Girl Character from BrightChamps

Problem 2

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

Explanation

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Max, the Girl Character from BrightChamps

Problem 3

∫ sec(-x) dx

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

∫ sec(-x) dx = -In |sec(x) + tan(x)| + C

Explanation

Using trigonometric identities, 

sec(-x) = sec(x) as it is an even function

As, ∫ sec (x) dx = In |sec(x) + tan(x)| +C

∫ sec(-x) = -In |sec(x) + tan(x)| +C

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Max, the Girl Character from BrightChamps

Problem 4

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

Explanation

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Max, the Girl Character from BrightChamps

Problem 5

∫sec⁡²(x) dx

Ray, the Boy Character from BrightChamps Saying "Let’s Begin"
Okay, lets begin

∫sec⁡2(x) dx = tan(x) + C

Explanation

The derivatives of tan(x) is sec2(x)

d/dx tan(x) = sec2(x)

The integration is the inverse operation of derivatives
 
∫ sec2(x) dx = tan(x) + C

Max from BrightChamps Praising Clear Math Explanations
Well explained 👍
Ray Thinking Deeply About Math Problems

FAQs on Integral of Sec x

1.What is the integration of sec x?

The integration of sec x is In|sec x + tan x| +C

Math FAQ Answers Dropdown Arrow

2.What is the integral of cot x?

The integral of cot x is In |sin x| + C

Math FAQ Answers Dropdown Arrow

3.What is the ∫ sec 𝚹 dx?

The integration of sec 𝚹 is In|sec 𝚹 + tan 𝚹| +C

Math FAQ Answers Dropdown Arrow

4.What is C in integration?

In integration, C represents the constant of integration.

Math FAQ Answers Dropdown Arrow

5.List some real-life applications of integrals.

Integrals are used in our real life to calculate the area, volume, moment of inertia, and center of mass, of variable forces.

Math FAQ Answers Dropdown Arrow
Professor Greenline from BrightChamps

Important Glossaries for Integration of sec x

  • Trigonometric identities: The equations related to trigonometric function. For example, sec2(x) - tan2(x) = 1

 

  • Integration constant (C): Integration constant is a number which could be added when we integrate a function 

 

  • Substitution Method: It is a method used to find the value of integration. It is used when the function is complex or director integration is not applicable; we use a substitution method. 
INDONESIA - Axa Tower 45th floor, JL prof. Dr Satrio Kav. 18, Kel. Karet Kuningan, Kec. Setiabudi, Kota Adm. Jakarta Selatan, Prov. DKI Jakarta
INDIA - H.No. 8-2-699/1, SyNo. 346, Rd No. 12, Banjara Hills, Hyderabad, Telangana - 500034
SINGAPORE - 60 Paya Lebar Road #05-16, Paya Lebar Square, Singapore (409051)
USA - 251, Little Falls Drive, Wilmington, Delaware 19808
VIETNAM (Office 1) - Hung Vuong Building, 670 Ba Thang Hai, ward 14, district 10, Ho Chi Minh City
VIETNAM (Office 2) - 143 Nguyễn Thị Thập, Khu đô thị Him Lam, Quận 7, Thành phố Hồ Chí Minh 700000, Vietnam
UAE - BrightChamps, 8W building 5th Floor, DAFZ, Dubai, United Arab Emirates
UK - Ground floor, Redwood House, Brotherswood Court, Almondsbury Business Park, Bristol, BS32 4QW, United Kingdom