Physics Forums Insights
  • Physics
    • Physics Articles
    • Physics Tutorials
    • Physics Guides
    • Physics FAQs
  • Math
    • Math Articles
    • Math Tutorials
    • Math Guides
    • Math FAQs
  • Bio/Chem/Tech
    • Bio/Chem Articles
    • Computer Science Tutorials
    • Technology Guides
  • Education
    • Education Articles
    • Education Guides
  • Interviews
  • Quizzes
  • Forums
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu
integraltrick

Trick to Solving Integrals Involving Tangent and Secant

March 6, 2017/6 Comments/in Mathematics Tutorials/by stevendaryl
📖Read Time: 2 minutes
📊Readability: Accessible (Clear & approachable)
🔖Core Topics: tanseclogfunctionssinh

This little trick is used for some integration problems involving trigonometric functions is probably well-known, but I only learned it yesterday. So under the assumption that others don’t know it, I will share my insight.

When you take calculus, one of the most mysterious integrals is this one involving the secant:

∫ sec(θ) dθ = log(sec(θ) + tan(θ))

It’s not too hard to prove that it’s true (by taking the derivative of the right side), but how did anyone ever come up with this? And how are you supposed to remember it?

Well, this and related integrals can be solved by a weird substitution involving the hyperbolic trig functions. The most obvious relationship between the trig functions and the hyperbolic trig functions is implied by the names:

sinh(x) ⇒ -i sin(ix)

cosh(x) ⇒ cos(ix)

tanh(x) ⇒ -i tan(ix)

sech(x) ⇒ sec(ix)

But there is a non-obvious relationship that can be seen by looking at the identities, or looking at the graphs:

trig and hyperbolic trig functions

The shape of the tangent function on the interval from -π/2 to +π/2 is similar to that of the hyperbolic sine function on the interval from -∞ to +∞. The shape of the secant function is similar to that of the hyperbolic cosine. More importantly, the pair of functions tan and sec share the same identity with sinh and cosh:

(tan x)² + 1 = (sec x)²

(sinh x)² + 1 = (cosh x)²

So these analogies inspire the implicit variable substitution:

tan x → sinh y

We can easily show that

dx/dy = 1/(cosh y)

How does that help? Well, with this substitution:

∫ sec^n(x) dx = ∫ cosh^{n-1}(y) dy

Integrating powers of cosh is pretty straightforward (you can use integration by parts repeatedly). But the simplest case is when n=1. In that case, the integral becomes:

∫ sec(x) dx = ∫ dy = y

Looking back at our definition of y in terms of x, we get the result:

∫ sec(x) dx = arcsinh(tan x)

There’s your answer. Hmm. But the original formula involved log and not arcsinh! Not to worry–they are the same:

  1. arcsinh(u) = v
  2. sinh(v) = u
  3. (e^{v} – e^{-v})/2 = u
  4. e^{2v} – 2u e^v = 1
  5. Solving for e^{v} gives e^v = u + √(1+u^2
  6. So v = log(u + √(1+u^2))
  7. So arcsinh(u) = log(u + √(1+u^2))

So ∫ sec(x) dx = arcsinh(tan x) = log(tan x + √(1+(tan x)^2) = log(tan x + sec x)

 

 

More Related Articles

  • SOHCAHTOA: Seemingly Simple, Conceivably Complex
  • Some Misconceptions on Indefinite Integrals
  • The Art of Integration
Tags: integral
Share this entry
  • Share on Facebook
  • Share on X
  • Share on WhatsApp
  • Share on LinkedIn
  • Share on Reddit
  • Share by Mail
https://www.physicsforums.com/insights/wp-content/uploads/2017/03/integraltrick.png 135 240 stevendaryl https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png stevendaryl2017-03-06 13:48:552021-04-17 17:40:58Trick to Solving Integrals Involving Tangent and Secant
You might also like
art of integration The Art of Integration
Parsevalstheorem Learn an Integral Result from Parseval’s Theorem
hypercube integral A Novel Technique of Calculating Unit Hypercube Integrals
6 replies
  1. haushofer says:
    March 8, 2017 at 8:28 am

    Thanks, useful for my calculus teaching! :)

    Log in to Reply
  2. TheAdmin says:
    March 7, 2017 at 3:18 pm

    Very cool Daryl, thanks!

    Log in to Reply
  3. Mastermind01 says:
    March 7, 2017 at 10:49 am

    @vanhees71 Awesome, I hadn't seen this one.

    I still can't give five stars though.:sorry:

    Log in to Reply
  4. vanhees71 says:
    March 7, 2017 at 10:14 am

    Finally I could give you your 5 stars! :-).

    An alternative way to integrate ##sec x## is to use the standard subsitution
    $$u=tan left (frac{x}{2} right), quad mathrm{d} x=mathrm{d} u frac{1}{1+u^2}.$$
    The integrand is
    $$sec x= frac{1}{cos x}=frac{1}{2 cos^2 (x/2)-1}=frac{1-u^2}{1+u^2}.$$
    Thus you get
    $$int mathrm{d} x sec x= int mathrm{d} u frac{2}{1-u^2} = int mathrm{d} u left (frac{1}{u+1}-frac{1}{u-1} right) = ln left |frac{u+1}{u-1} right|+C$$
    or finaly resubstituting
    $$int mathrm{d} x sec x=ln left |frac{tan(x/2)+1}{tan(x/2)-1} right|+C.$$

    Log in to Reply
  5. vanhees71 says:
    March 6, 2017 at 4:29 pm

    I'd like to give this Insight 5 stars, but it just doesn't let me, because I'm not logged in for some reason when clicking at this specific Insight article. Anyway, it's a great trick, I hope to remember when I need it.

    Log in to Reply
  6. Mastermind01 says:
    March 6, 2017 at 4:21 pm

    Fascinating!

    The most commonly given proof in high school for integrating sec x is multiplying the numerator and denominator by sec x + tan x. To me it seemed like a highly unintuitive step. Integrating sec x by using partial fractions – a longer but more intuitive proof, originally discovered by Barrow is the one I prefer.

    This is pretty cool too. Thanks for the insight!

    Log in to Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply Cancel reply

You must be logged in to post a comment.

Trending Articles

  • Explosion-Generated Collapsing Vacuum Bubbles Reach 20,000 Kelvin
  • Explore Some Sins in Physics Didactics
  • It’s Elemental! The Periodic Table Quiz
  • Do Black Holes Really Exist?
  • Grab Bag Science Quiz and Trivia

Physics Forums

  • Classical Physics
  • Atomic and Condensed Matter
  • Quantum Physics
  • Special and General Relativity
  • Beyond the Standard Model
  • High Energy, Nuclear, Particle Physics
  • Astronomy and Astrophysics
  • Cosmology
  • Other Physics Topics

Receive Insights Articles to Your Inbox

Enter your email address:

Blog Information

  • Become a Member!
  • Write for Us!
  • Table of Contents
  • Blog Author List

Popular Topics

astronomy (17) black holes (17) classical physics (35) cosmology (16) education (23) electromagnetism (19) general relativity (19) gravity (24) interview (21) mathematics (39) mathematics self-study (21) Physicist (26) programming (18) Quantum Field Theory (31) quantum mechanics (36) quantum physics (24) relativity (40) Special Relativity (16) technology (19) universe (21)
2026 © Physics Forums, ALL RIGHTS RESERVED - Contact Us - Privacy Policy - About PF Insights
  • Link to X
  • Link to Facebook
  • Link to LinkedIn
  • Link to Youtube
Link to: Frames of Reference: Linear Acceleration View Link to: Frames of Reference: Linear Acceleration View Frames of Reference: Linear Acceleration ViewlinearaccelerationLink to: Learning to Learn: Key Skill for Aspiring Physicists Link to: Learning to Learn: Key Skill for Aspiring Physicists learnedLearning to Learn: Key Skill for Aspiring Physicists
Scroll to top Scroll to top Scroll to top