Loading [MathJax]/jax/output/SVG/jax.js
 
+0  
 
0
1045
9
avatar+9675 

Integrate:

11+sinx+cosxdx

Please use LaTeX or Image to reply. I am not used to something like int(1/(1 + sin x + cos x ))dx 

 Jan 1, 2017

Best Answer 

 #3
avatar
+9

Take the integral:
 integral1/(sin(x) + cos(x) + 1) dx
For the integrand 1/(sin(x) + cos(x) + 1), substitute u = tan(x/2) and du = 1/2 dx sec^2(x/2). Then transform the integrand using the substitutions sin(x) = (2 u)/(u^2 + 1), cos(x) = (1 - u^2)/(u^2 + 1) and dx = (2 du)/(u^2 + 1):
 = integral2/((u^2 + 1) ((2 u)/(u^2 + 1) + (1 - u^2)/(u^2 + 1) + 1)) du
Simplify the integrand 2/((u^2 + 1) ((2 u)/(u^2 + 1) + (1 - u^2)/(u^2 + 1) + 1)) to get 1/(u + 1):
 = integral1/(u + 1) du
For the integrand 1/(u + 1), substitute s = u + 1 and ds = du:
 = integral1/s ds
The integral of 1/s is log(s):
 = log(s) + constant
Substitute back for s = u + 1:
 = log(u + 1) + constant
Substitute back for u = tan(x/2):
 = log(tan(x/2) + 1) + constant
Which is equivalent for restricted x values to:
Answer: |= log(sin(x/2) + cos(x/2)) - log(cos(x/2)) + constant   P.S. log=ln

 Jan 1, 2017
 #1
avatar
0

Sorry Max: I can give you the answer but don't know how to use LaTex!!.

 Jan 1, 2017
 #2
avatar+9675 
+5

It is Okay you don't know how to use LaTeX, you still have 2 ways to give me the answer......

1) Do the LaTeX with assistance of my LaTeX tutorial posts in the 'Sticky Topics'

2) Write it on a paper, Take a photo, import in computer, and use the Image function of the forum to import the photo into the post.

MaxWong  Jan 1, 2017
 #3
avatar
+9
Best Answer

Take the integral:
 integral1/(sin(x) + cos(x) + 1) dx
For the integrand 1/(sin(x) + cos(x) + 1), substitute u = tan(x/2) and du = 1/2 dx sec^2(x/2). Then transform the integrand using the substitutions sin(x) = (2 u)/(u^2 + 1), cos(x) = (1 - u^2)/(u^2 + 1) and dx = (2 du)/(u^2 + 1):
 = integral2/((u^2 + 1) ((2 u)/(u^2 + 1) + (1 - u^2)/(u^2 + 1) + 1)) du
Simplify the integrand 2/((u^2 + 1) ((2 u)/(u^2 + 1) + (1 - u^2)/(u^2 + 1) + 1)) to get 1/(u + 1):
 = integral1/(u + 1) du
For the integrand 1/(u + 1), substitute s = u + 1 and ds = du:
 = integral1/s ds
The integral of 1/s is log(s):
 = log(s) + constant
Substitute back for s = u + 1:
 = log(u + 1) + constant
Substitute back for u = tan(x/2):
 = log(tan(x/2) + 1) + constant
Which is equivalent for restricted x values to:
Answer: |= log(sin(x/2) + cos(x/2)) - log(cos(x/2)) + constant   P.S. log=ln

Guest Jan 1, 2017
 #4
avatar+118696 
0

Hi guest,

Could you (or someone else) please elaborate on the first step.  Thanks :)

Melody  Jan 2, 2017
 #5
avatar+9675 
+5

I looked up the Internet and this may be useful.

http://www-math.mit.edu/~djk/18_01/chapter24/proof01.html

MaxWong  Jan 2, 2017
 #6
avatar+118696 
0

Thank you Max,

It looks like it might be useful but I will have to take a better look before I really know :)

Melody  Jan 2, 2017
 #7
avatar
+5

If t = tan(x/2), then tan(x) = 2t/(1 - t^2) and, from the rt-angled triangle, sin(x) = 2t/(1 + t^2) and cos(x) = (1 - t^2)/(1 + t^2) .

dt = (1/2)sec^2(x/2)dx, so dx = 2/(1 + t^2).

On substitution, the (1 + t^2) terms tend to cancel.

 Jan 2, 2017
 #8
avatar
+5

Sorry, missed a dt at the end of the last equation.

 

If t = tan(x/2), then tan(x) = 2t/(1 - t^2) and, from the rt-angled triangle, sin(x) = 2t/(1 + t^2) and cos(x) = (1 - t^2)/(1 + t^2) .

dt = (1/2)sec^2(x/2)dx, so dx = 2/(1 + t^2)dt.

On substitution, the (1 + t^2) terms tend to cancel.

 Jan 2, 2017
 #9
avatar+118696 
+5

I know that this has already been answered perfectly well, and I have learned from all those answers,

but I want to put up my version  :)

 

Integrate:

11+sinx+cosxdx

 

Please use LaTeX or Image to reply. I am not used to something like int(1/(1 + sin x + cos x ))dx 

 

Express in terms of t  where   t=tan(x2)

 

We are suppose to remember what sin(x) and cos(x) equals in terms of t but I never can so I'll derive it.

 

sin(x)=2sin(x2)cos(x2)cos(x)=cos2(x2)sin2(x2)=2tan(x2)cos2(x2)=cos2(x2)[1tan2(x2)]=2tan(x2)sec2(x2)=[1tan2(x2)]sec2(x2)=2tan(x2)1+tan2(x2)=1tan2(x2)1+tan2(x2)=2t1+t2=1t21+t2 

so

1+sin(x)+cos(x)=1+t2+2t+1t21+t2=1+t2+2t+1t21+t2=2(t+1)1+t2 11+sin(x)+cos(x)=1+t22(t+1)

 

 

t=tan(x2)dtdx=12sec2(x2)=12[1tan2(x2)]=1t22dxdt=21t2dx=21t2dt

 

 

11+sin(x)+cos(x)dx=1+t22(t+1)21+t2dt=1t+1dt =ln(1+t)=ln[1+tan(x2)]+c

 

Restrictions on the domain.

x2nπnZsox2πnalso1+tan(x2)>0π2+2πn<x<π+2πnnZ

 

 

also

ln[1+tan(x2)]+c=ln[cos(x2)+sin(x2)cos(x2)]+c=ln[cos(x2)+sin(x2)]ln[cos(x2)]+c

 

Here is the graph of the solution is you want to play with it.

https://www.desmos.com/calculator/6sbycp3ee2

 

and here it is just to look at :)    (this is for c=1)

 

I have included two of the asymptotes.     x=π/2andx=π

 

 Jan 7, 2017

0 Online Users