Integrating tan(x): Solving the Absolute Value Puzzle

  • Thread starter Thread starter Omid
  • Start date Start date
  • Tags Tags
    Integrating
Click For Summary
The integration of tan(x) results in the formula -ln|cos(x)| + C, which requires the absolute value to ensure the function remains defined across all real numbers. When differentiating -ln|cos(x)|, the absolute value can be ignored in certain cases, as demonstrated in the discussion, but it is crucial for maintaining the integrity of the logarithmic function when cos(x) is negative. The absolute value is essential for integrating functions like 1/x over intervals that include negative values, preventing the logarithm of a negative number. The discussion emphasizes that proper anti-derivatives must account for both positive and negative intervals, leading to the conclusion that ln|x| is the appropriate form. Understanding these principles is vital for accurately solving integrals involving absolute values.
Omid
Messages
181
Reaction score
0
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 ?
Thanks
 
Physics news on Phys.org
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 \cos x < 0.

Anyway you do know to integrate \tan x you just just write it as \frac{\sin x}{\cos x}?
 
The absolute value sign is needed in order to gain the proper integral value of the function \frac{1}{x} 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,
\int_{a}^{b}\frac{1}{x}dx=ln(b)-ln(a)=ln(|b|)-ln(|a|)(a,b&gt;0)

Let's consider:
\int_{-b}^{-a}\frac{1}{x}dx
Let us make the substitution t=-x:
\int_{-b}^{-a}\frac{1}{x}dx=\int_{b}^{a}\frac{1}{t}dt=-\int_{a}^{b}\frac{1}{t}dt=-\frac{ln(b)}{ln(a)}

Or, further:
=-\frac{ln(b)}{ln(a)}=\frac{ln(a)}{ln(b)}=ln(|-a|)-ln(|-b|)

Hence, we see that a proper anti-derivative valid for both x greater and less than zero is ln|x|
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K