Integration of a trig function

chwala
Gold Member
Messages
2,827
Reaction score
415
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
1610143868268.png

my second attempt...
 
Last edited:
1610144392604.png


My third attempt...bingo, I got it!
 
Last edited:
  • Like
Likes Charles Link and SammyS
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
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.
 
Yeah I noticed that...thanks slight error, I left out ##dx##
 
chwala said:
Yeah I noticed that...thanks slight error, I left out ##dx##
You also missed squaring the secant function.
 
SammyS said:
You also missed squaring the secant function.
I think you are looking at the wrong page, check my post number ##3##
 
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...
 
Back
Top