Why is my answer for integrating tan^3(x) dx wrong?

  • Thread starter Thread starter LusTRouZ
  • Start date Start date
  • Tags Tags
    Dx Integrating
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 · 3K views
LusTRouZ
Messages
3
Reaction score
0
I'm not understanding why my answer is wrong

Homework Statement


[tex]\int[/tex]tan^3(x) dx
This is the solution I've been getting for this problem, but I notice you get a different answer when you let u = tan(x) and du = sec^2(x) dx

Homework Equations


tan^2(x) = (sec^2(x) - 1)

The Attempt at a Solution


[tex]\int[/tex]tan(x) (sec^2(x) - 1) dx
[tex]\int[/tex]tan(x) sec^2(x) - [tex]\int[/tex]tan(x) dx
. // u = sec(x) du = sec(x)tan(x) dx
[tex]\int[/tex]u du - [tex]\int[/tex]sin(x) dx[tex]/[/tex]cos(x)
. // z = cos(x) zu = -sin(x) dx
[tex]\int[/tex]u du - [tex]\int[/tex]-zu[tex]/[/tex]z
(1[tex]/[/tex]2)u^2 - (-ln |z|)
(1[tex]/[/tex]2)sec^2(x) + ln |cos(x)|

Homework Statement


Homework Equations


The Attempt at a Solution

 
Last edited:
Physics news on Phys.org
What you have there is correct, up to a constant at least.