You are here:

Calculus/Integral with arctangent.

Advertisement


Question
Hi there
I have a small problem
How do i integrate: ( cosx + sinx + 1 )/(1 + (sinx)^2)

??

Answer
Questioner:   iwinux
Category:  Calculus
 
Subject:  Integral
Question:  Hi there
I have a small problem
How do i integrate: ( cosx + sinx + 1 )/(1 + (sinx)^2)

************ USE COURIER FONT TO VIEW THIS.*********

There are three terms, and you will handle each one separately:

{    cos x
| -------------- dx
} 1 + (sin x)^2

{    sin x
| -------------- dx
} 1 + (sin x)^2

{      1
| -------------- dx
} 1 + (sin x)^2
. . . . . . . . . . . . . . . . . . .
The first one is a  u = sin x substitution.  du = cos x dx, and the integral becomes:

{    1
| -------- du
} 1 + u^2

That will be an arctan(u), etc, and you will back substitute.
. . . . . . . . . . . . . . . . .
The second can be written:

{    sin x
| ---------------- dx
} 1 + 1 - (cos x)^2

{    sin x
| ------------- dx
} 2 - (cos x)^2

Now use  u = cos x.  This will also involve an arctan.  There will be a minus in there somewhere, and you will have to deal with a factor of  sqrt(2), but you can handle it.
. . . . . . . . . . . . . . . .
Third one:

{      1
| -------------- dx
} 1 + (sin x)^2

This is not so easy.  Try this: Make the same transformation as in part 2:

{      1
| ------------- dx
} 2 - (cos x)^2

Next multiply top and bottom by sec^2(x):

{    sec^2 x
| ------------- dx
} 2sec^2(x) - 1

Now, remembering that sec^2(x) is the derivative of tan x, AND that  sec^2(x) = 1 + tan^2(x):

{    sec^2 x
| ------------------- dx
} 2(1 + tan^2(x)) - 1

{    sec^2 x
| ------------------- dx
} 2 + 2 tan^2(x)) - 1

{    sec^2 x
| --------------- dx
} 1 + 2 tan^2(x))

Now let  u = tan x,  du = sec^2 x dx

{    1
| ---------- du
} 1 + 2 u^2

Now do this one like the others.  There will be a sqrt(2) in there, perhaps in a couple of places, but you can handle that.
. . . . . . . . . . . . . . .  
FULL DISCLOSURE STATEMENT.

I cheated.  There is a program on the web called 'The Integrator'.  (No, that is not the name of an Arnold Schwarzenegger movie.)  That program says the answer is:

arctan( sqrt(2) tan(x) )/sqrt(2)

Using this hint, I was able to figure a way.

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.