MHB How do you solve this calculus 2 integration problem?

harpazo
Messages
208
Reaction score
16
I am currently studying calculus 3. However, once in a while, I like to review single variable calculus. I decided to tackle the following calculus 2 integration problem:

∫ tan^3 x dx

Solution:

Separate into two tangent functions.

(tan^2 x)(tan x)

Rewrite tan^2 x as sec^2 x - 1 using its equivalent trig identity.

∫ (tan x)(sec^2 x - 1) dx

Let u = sec^2 x

du/dx = tan x

dx = du/ tan x

∫ (tan x)(u^2 - 1) du/tan x

∫ (u^2 - 1) du

(u^3/3) - u + C

Back-substitute for u.

We know that u = sec^2 x.

[(sec^2 x)^3]/3 - sec^2 x + C

What do you say?
 
Physics news on Phys.org
If you differentiate your result w.r.t $x$, do you get your original integrand as the result?
 
MarkFL said:
If you differentiate your result w.r.t $x$, do you get your original integrand as the result?

No. I did not get back the original problem. Can you go through my reply to see where I went wrong?
 
Harpazo said:
No. I did not get back the original problem. Can you go through my reply to see where I went wrong?

We are given:

$$I=\int\tan^3(x)\,dx$$

I agree that a good strategy is to write this as:

$$I=\int\tan^2(x)\cdot\tan(x)\,dx$$

Now we can use the Pythagorean identity:

$$\tan^2(\theta)=\sec^2(\theta)-1$$

To write the integral as:

$$I=\int\tan(x)\left(\sec^2(x)-1\right)\,dx$$

Distribute:

$$I=\int\tan(x)\sec^2(x)-\tan(x)\,dx=\int \tan(x)\,\sec^2(x)\,dx+\int \frac{-\sin(x)}{\cos(x)}\,dx$$

Can you now spot the appropriate substitutions to be used on the two integrals?
 
∫ (tan x)(sec^2 x) dx + ∫ -(sin x)/(cos x) dx

For the left side integral, let u = tan x

du/dx = sec^2 x

dx = du/sec^2 x

∫ u• sec^2 x • du/sec^2 x

∫ u du + ∫ -(sin x)/(cos x) dx

For the integral on the right side,
let u = cos x

du/dx = - sin x

dx = du/-sin x

∫ u du + ∫ -(sin x)/u • du/-sin x

∫ u du + ∫ 1/u • du

(u^2)/2 + ln u + C

Back-substitute for u.

[(sec^2 x)^2]/2 + ln (cos x) + C
 
Harpazo said:
∫ (tan x)(sec^2 x) dx + ∫ -(sin x)/(cos x) dx

For the left side integral, let u = tan x

du/dx = sec^2 x

dx = du/sec^2 x

∫ u• sec^2 x • du/sec^2 x

∫ u du + ∫ -(sin x)/(cos x) dx

For the integral on the right side,
let u = cos x

du/dx = - sin x

dx = du/-sin x

∫ u du + ∫ -(sin x)/u • du/-sin x

∫ u du + ∫ 1/u • du

(u^2)/2 + ln u + C

Back-substitute for u.

[(sec^2 x)^2]/2 + ln (cos x) + C

For the first integral, you let:

$$u=\tan(x)$$

And so you would have:

$$I=\frac{1}{2}\tan^2(x)+\ln|\cos(x)|+C$$

Now, suppose that for the first integral, we let:

$$u=\sec(x)\implies du=\sec(x)\tan(x)\,dx$$

And so we eventually get:

$$I=\frac{1}{2}\sec^2(x)+\ln|\cos(x)|+C$$

How do we justify that both are correct? (Thinking)
 
MarkFL said:
For the first integral, you let:

$$u=\tan(x)$$

And so you would have:

$$I=\frac{1}{2}\tan^2(x)+\ln|\cos(x)|+C$$

Now, suppose that for the first integral, we let:

$$u=\sec(x)\implies du=\sec(x)\tan(x)\,dx$$

And so we eventually get:

$$I=\frac{1}{2}\sec^2(x)+\ln|\cos(x)|+C$$

How do we justify that both are correct? (Thinking)

We take the derivative to check our answer.
 
Harpazo said:
We take the derivative to check our answer.

Well, yes differentiating both forms gets us back to the original integrand, but how do we "justify" that both are correct?
 
MarkFL said:
Well, yes differentiating both forms gets us back to the original integrand, but how do we "justify" that both are correct?

I do not understand your question.
 
  • #10
Harpazo said:
I do not understand your question.

In post #6, I gave two different anti-derivatives...how can we show both are correct?
 
  • #11
MarkFL said:
In post #6, I gave two different anti-derivatives...how can we show both are correct?

We can show they are both correct by setting them equal to each other.
 
  • #12
MarkFL said:
For the first integral, you let:

$$u=\tan(x)$$

And so you would have:

$$I=\frac{1}{2}\tan^2(x)+\ln|\cos(x)|+C$$

Now, suppose that for the first integral, we let:

$$u=\sec(x)\implies du=\sec(x)\tan(x)\,dx$$

And so we eventually get:

$$I=\frac{1}{2}\sec^2(x)+\ln|\cos(x)|+C$$

How do we justify that both are correct? (Thinking)

Would showing that the two anti-derivative forms differ by a constant suffice as justification?

$$I=\frac{1}{2}\tan^2(x)+\ln|\cos(x)|+C$$

$$I=\frac{1}{2}[\sec^2(x)-1]+\ln|\cos(x)|+C$$

$$I=\frac{1}{2}\sec^2(x)-\frac{1}{2}+\ln|\cos(x)|+C$$

$$I=\frac{1}{2}\sec^2(x)+\ln|\cos(x)|+C_2$$
 
  • #13
JorgeLuna said:
Would showing that the two anti-derivative forms differ by a constant suffice as justification?

$$I=\frac{1}{2}\tan^2(x)+\ln|\cos(x)|+C$$

$$I=\frac{1}{2}[\sec^2(x)-1]+\ln|\cos(x)|+C$$

$$I=\frac{1}{2}\sec^2(x)-\frac{1}{2}+\ln|\cos(x)|+C$$

$$I=\frac{1}{2}\sec^2(x)+\ln|\cos(x)|+C_2$$

Yes, that was exactly the kind of thing I was hoping the OP would state. (Yes)
 
  • #14
I don't know...
 

Similar threads

Replies
3
Views
2K
Replies
6
Views
2K
Replies
1
Views
1K
Replies
6
Views
3K
Replies
20
Views
4K
Replies
4
Views
2K
Replies
6
Views
2K
Back
Top