You are here:

Calculus/Integration of Sec(x)dx

Advertisement


Question
I have a question about the Integration of Sec(x)dx which is: ln|sec(x)+tan(x)|
sec(x)=sec(-x) for -π/2<x<π/2, but ln|Sec(x)+Tan(x)| != ln|Sec(-x)+Tan(-x)|
so integrating for example sec(x) from 0 to π/4 (= ln|Sec(π/4)+Tan(π/4)|-ln|Sec(0)+Tan(0)| = 0.693-0 = 0.693) gives a different result from integrating sec(x) from -π/4 to 0 (= ln|Sec(0)+Tan(0)-ln|Sec(-π/4)+Tan(-π/4)| = 0-( -36.737)= 36.737).
Why is this, is it because this result is only viable for 0<x<π/2? If so, can you explain it?

Answer
Questioner: jan
Country: Netherlands
Category: Calculus
Private: No
Subject: Integration of Sec(x)dx
Question: I have a question about the Integration of Sec(x)dx which is:

ln|sec(x)+tan(x)|

sec(x)=sec(-x) for -π/2<x<π/2,
but ln|Sec(x)+Tan(x)| != ln|Sec(-x)+Tan(-x)|

so integrating for example sec(x) from 0 to π/4  
= ln|Sec(π/4)+Tan(π/4)| - ln|Sec(0)+Tan(0)| = 0.693-0 = 0.693
...........................
>> Is that right?

= ln|Sec(π/4)+Tan(π/4)| - ln|Sec(0)+Tan(0)| =
= ln|sqrt(2) + 1| - ln| 1 + 0| =

= ln|sqrt(2) + 1|

= 0.88137
..........................................
gives a different result from integrating sec(x) from -π/4 to 0  =
ln|Sec(0)+Tan(0)-ln|Sec(-π/4)+Tan(-π/4)| = 0-( -36.737)= 36.737)
.......................................
>> Wait a second --

ln|Sec(0)+Tan(0) - ln|Sec(-π/4)+Tan(-π/4)| =

ln| 1 + 0 | - ln| sqrt(2) - 1 |

- ln| sqrt(2) - 1 |

0.88137

>> So they are the same.  
As they should be.  Sec x is an even function, so the integral on either side of zero should be the same. (assuming you don't hit any singular points, like pi/2, etc.)

Calculus

All Answers


Answers by Expert:


Ask Experts

Volunteer


Paul Klarreich

Expertise

All topics in first-year calculus including infinite series, max-min and related rate problems. Also trigonometry and complex numbers, theory of equations, exponential and logarithmic functions. I can also try (but not guarantee) to answer questions on Analysis -- sequences, limits, continuity.

Experience

I taught all mathematics subjects from elementary algebra to differential equations at a two-year college in New York City for 25 years.

Education/Credentials
(See above.)

©2012 About.com, a part of The New York Times Company. All rights reserved.