Integration of a trig function

In summary, the conversation discusses different approaches to solving a problem involving the integral of the secant function. The first attempt uses substitution and partial fractions, while the second attempt uses the derivative of the secant function. The expert summarizer notes that there is an error in the second attempt's derivative and provides the correct formula. The conversation ends with a clarification on which post the expert's replies are referring to.
  • #1

chwala

Gold Member
2,438
316
Homework Statement
##\int\frac {tan x}{1+ cos^2x}dx##
Relevant Equations
integration
1610142259269.png

This is my first attempt ...
 
Last edited:
Physics news on Phys.org
  • #2
1610143868268.png

my second attempt...
 
Last edited:
  • #3
1610144392604.png


My third attempt...bingo, I got it!
 
Last edited:
  • Like
Likes Charles Link and SammyS
  • #4
Your method works, but I did it with ## \tan{x}=\sin{x}/\cos{x} ##, and ## \sin{x} \, dx=-d \cos{x} ##.
With ## u=\cos{x} ##, the problem then becomes an exercise in partial fractions, and it also gets the same answer as that of the above post.
 
  • Like
Likes chwala
  • #5
chwala said:
my other approach...
Capture_Chwala.PNG



This works nicely, but you have an error in differentiating.

The derivative of ##\sec x ## is ##\tan x \cdot \sec x##,

so that ##du=2\tan x \cdot \sec^2 x \ dx##.

The rest of the work will follow nicely from that.
 
  • #6
Yeah I noticed that...thanks slight error, I left out ##dx##
 
  • #7
chwala said:
Yeah I noticed that...thanks slight error, I left out ##dx##
You also missed squaring the secant function.
 
  • #8
SammyS said:
You also missed squaring the secant function.
I think you are looking at the wrong page, check my post number ##3##
 
  • #9
chwala said:
I think you are looking at the wrong page, check my post number ##3##
No. My replies are referring to Post # 2.

You have the following:
Capture_Chwala.PNG

But you have an error in du.

It should be ##du=2\tan x \cdot \sec^2 x \ dx ## .

Thus your integral becomes ##\displaystyle \frac 1 2 \int \frac{du}{u} ## .

Etc.
 
Last edited:
  • #10
SammyS said:
No. My replies are referring to Post # 2.

You have the following:
View attachment 275901
But you have an error in du.

It should be ##du=2\tan x \cdot \sec^2 x \ dx ## .

Thus your integral becomes ##\displaystyle \frac 1 2 \int \frac{du}{u} ## .

Etc.

Noted cheers...
 

Suggested for: Integration of a trig function

Replies
3
Views
882
Replies
14
Views
806
Replies
4
Views
725
Replies
7
Views
262
Replies
4
Views
1K
Replies
8
Views
83
Replies
5
Views
708
Back
Top