1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Integrating tan(x)

  1. Sep 7, 2004 #1
    Today I was reading my favorite calculus textbook, that saw the integration formula for tan(x).
    It was : Integral of tan(x) = -ln|cosx| + C .

    I know that when we say integral of tanx we mean, what is the function whose derivative is tanx. So started to take the derivative of -ln |cosx|, in order to prove the formula. But what could I do with the absolute value sign ? I just ignored it and took the derivative. It worked and I arrived at the answer, tan(x). Now there are 2 questions. 1. why is the sign there anymore? 2. what is the right approach while taking derivative of functions involving absolute value sign? Do we ignore them always, as I did in this case ?
  2. jcsd
  3. Sep 7, 2004 #2


    User Avatar
    Science Advisor
    Homework Helper

    Real values integrate to real values, so if we didn't have the modulus symbol we would be taking the natural logarithm of a negative number when [itex]\cos x < 0[/itex].

    Anyway you do know to integrate [itex]\tan x[/itex] you just just write it as [tex]\frac{\sin x}{\cos x}[/tex]?
  4. Sep 8, 2004 #3


    User Avatar
    Science Advisor
    Homework Helper
    Gold Member
    Dearly Missed

    The absolute value sign is needed in order to gain the proper integral value of the function [tex]\frac{1}{x}[/tex] on intervals where x<0
    (Remember, you can't find the natural logarithm of a negative real number among the reals!)
    To illustrate:
    Given x>0, we may show that a proper anti-derivative is ln(x).
    For example,

    Let's consider:
    Let us make the substitution t=-x:

    Or, further:

    Hence, we see that a proper anti-derivative valid for both x greater and less than zero is ln|x|
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Integrating tan(x)
  1. Integral of sqrt(tan x) (Replies: 10)