Two different results depending on integration technique

  • Context: Undergrad 
  • Thread starter Thread starter awelex
  • Start date Start date
  • Tags Tags
    Integration
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
1 reply · 2K views
awelex
Messages
44
Reaction score
0
Hi,

I'm having peculiar difficulties with a rather easy integral, namely the integral of -sin(x) / (cos(x))^3. The problem is that depending on which integration technique I choose, I end up with two different result. Moreover, Mathematica gives me one of these two results, while the solution book gives me the other. But the two cannot possibly be the same, unless I'm really overlooking something.

Method One: substitution

u = cos(x)
du = -sin(x) dx

[itex]\int[/itex]-sin(x)/cos^3(x) = [itex]\int[/itex]u^(-3) = -1/2 u^(-2) = -1/2 sec^2 x

That is also the result that Mathematica gives me

Method Two: Trig Identities, then substitution

-sin x / cos^3 x = -tan x * sec^2 x

u = tan x
du = sec^2 x dx

[itex]\int[/itex]-sin(x)/cos^3(x) = - [itex]\int[/itex]u = -1/2 u^2 = -1/2 tan^2 x

That's the result that the solution book gives.

It is obvious that the two resulting functions are different. What is wrong here?

Thanks,
Alex
 
Physics news on Phys.org
Sorry to say that both results are false because the constants have been forgotten.
If the constants are there, both results are correct and identical :
-(1/2)sec^2 (x) +C1 = -(1/2)tan^2 (x) +C2
C1 = (1/2) + C2