Double Checking Integral of 1/(1+sin(theta)) using WolframAlpha

  • Thread starter Thread starter zoxee
  • Start date Start date
  • Tags Tags
    Integral
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
7 replies · 2K views
zoxee
Messages
37
Reaction score
0
##\displaystyle \int \dfrac{1}{1+sin(\theta)}\ d\theta ##

I got ## -2(1+tan(\frac{\theta}{2}))^{-1} ## however wolframalpha got a different result than me, could anyone double check this for me as I've been over it a lot of times and can't get the wolframalpha equivalent
 
Physics news on Phys.org
vela said:
Just differentiate your answer and see if you recover the integrand.

yes done that no problem,

just curious on how wolframalpha got their answer is all
 
##\dfrac{2sin(x/2)}{sin(x/2) + cos(x/2)}##
 
vela said:
Hint:
$$\frac{\tan x}{1+\tan x} = \frac{\tan x + 1 - 1}{1+\tan x} = 1 - \frac{1}{1+\tan x}$$

Can't seem to use that hint... what do I need to do to get from my step to their step? They are not equivalent as the constant of integration is different