Docsity

Integration of tan(x) using u-substitution and partial fractions, Study notes of Calculus

Toggle sidebar
bg1
tan
x
dx
∫
At first glance, this integral looks incredibly intimidating. And sadly, it is. There really
is no easy way to evaluate this integral. We begin with a u-substitution. Let tanux=.
Then that means that 2
2
sec 1
2tan 2cos tan
x
du
x
xx
== . However, we don’t have the du
anywhere in the integral. Let us work to get something.
Recall, 22
cos sin 1
x
x+=
. If we factor out a 2
cos
x
from both terms on the left side,
we get . Now let us begin to rewrite the integral.
()( )
22
cos 1 tan 1xx+=
()( )
22
tan
tan cos 1 tan
x
x
dx dx
xx
=+
∫∫
Now, multiply the top and bottom by
(
)
2tan
x
⋅. Doing this, we get:
()()
22
2tan
tan 2cos tan 1 tan
x
x
dx dx
xx x
=+
∫∫
Notice that we finally have our du. We have some extra stuff, but that can be
expressed in terms of u.
()
2
2tan 2
u= and
(
)
2
1tan 1 4
x
u
+
=+ . If we replace everything
in the integral with the u-substitution, we get:
2
4
2
tan 1
u
x
dx du
u
=+
∫∫
.
Well, the integral definitely looks prettier. However, how do we continue? It would be
good if we could factor 1 + u4. Thankfully, we can.
(
)()
42 2
121uuu uu21
+
=+ + − +.
Rewriting the integral again, we have the following:
()()
2
22
2
tan 21 21
u
x
dx du
uu uu
=++ −+
∫∫ .
Now, in order to continue, we have to use partial fractions.
()()()()
2
22 2 2
2
21 21 21 21
uAuBC
uu uu uu uu
++
=+
++ −+ ++ −+
uD
.
pf3
pf4
pf5

Partial preview of the text

Download Integration of tan(x) using u-substitution and partial fractions and more Study notes Calculus in PDF only on Docsity!

∫ tan^ xdx

At first glance, this integral looks incredibly intimidating. And sadly, it is. There really

is no easy way to evaluate this integral. We begin with a u -substitution. Let u = tan x.

Then that means that

2

2

sec 1

2 tan 2 cos tan

x du x x x

= =. However, we don’t have the du

anywhere in the integral. Let us work to get something.

Recall, cos 2 x + sin 2 x = 1. If we factor out a cos 2 x from both terms on the left side,

we get (^) ( )( ). Now let us begin to rewrite the integral.

2 2 cos x 1 + tan x = 1

( )( )

2 2

tan tan cos 1 tan

x xdx dx x x

Now, multiply the top and bottom by 2 ⋅ tan ( x ). Doing this, we get:

( ) ( )

2 2

2 tan tan 2 cos tan 1 tan

x xdx dx x x x

Notice that we finally have our du. We have some extra stuff, but that can be

expressed in terms of u. ( )

2

2 tan x = 2 u and ( )

2 1 tan 1

4

  • x = + u. If we replace everything

in the integral with the u -substitution, we get:

2

4

tan 1

u xdx du u

Well, the integral definitely looks prettier. However, how do we continue? It would be

good if we could factor 1 + u

4

. Thankfully, we can. (^) ( )( )

4 2 2 1 + u = u + u 2 + 1 u − u 2 + 1.

Rewriting the integral again, we have the following:

( )( )

2

2 2

tan 2 1 2 1

u xdx du u u u u

Now, in order to continue, we have to use partial fractions.

( )( ) ( ) ( )

2

2 2 2 2

u Au B C

u u u u u u u u

u D .

We get a common denominator on the right side and then foil out terms. Then we go

through and equate the coefficients of each power of u so that we can solve for A , B , C ,

and D.

2

2 2 2 2

2 2 2

2 2 2 2

2 2 2

2 3 2 2 3 2 2

2 3 2

u Au B Cu D

u u u u u u u u

u Au^ B^ u^ u^ Cu^ D^ u^ u

u u u u u u u u

u Au B u u Cu D u u

u Au Au Au Bu Bu B Cu Cu Cu Du Du D

u A C u A B C D u A B

( 2 +^ C^ +^ D^^2 ) u^ +^ (^ B^ + D )

Now, by equating the coefficients, the above equations tell us that

( i ) A + C = 0 ( iii ) A − B 2 + C + D 2 = 0

( ii ) − A 2 + B + C 2 + D = 2

A

( iv ) B + D = 0

Equations ( i ) and ( iv ) tell us that C = − and D = − B. Using that information, we

replace the expressions in equations ( ii ) and ( iii ). This gives us the following:

2 2

A B A B A A

A B A B B B

And so, we see that

2 2

C = and D = 0. Now, we go back to our partial fractions and

fill in A , B , C , and D. Doing this, we have the following:

2

2 2 2 2

2 2

2 2 2 2

2 2 2 2

u u u

u u u u u u u u

u u

u u u u

Finally, returning to the original problem, we can rewrite the integral as the following:

2 2

2 2

tan 2 2 2 1 2 1

u u xdx du u u u u

( )

2 2

dv du u v

Evaluating this, we have ( )

( )

1 2 2

1 (^2 2) tan 2 1 2 1 2

du u C u u

− = + +

Putting this all together, we have done half of the integration. So far, we have shown:

( )

( )

2 1 2 1 2

2 (^2 2) ln 2 1 2 tan 2 1 2 1 4 2

u du u u C u C u u

−

+ + ⎜^ ⎟^ ⎜

Now, thankfully, something similar happens for ( )

2

2 2 2 1

u du u + u +

We rewrite ( )

2

2 2 2 1

u du u − u +

∫ as^

( )

( ) ( )

2 2

(^2 ) (^4 )

u du du u u u u

For the first integral, we again use a substitution. Let v = u^2^ − u 2 + 1. Then that

means that dv = 2 u − 2 du , which is precisely what we have on the top. (The constant

can be factored out.) That means that we have:

( )

( )

2 2 3 3

2 4

ln ln 2 1 2 1 4 4 4

u (^) dv du v C u u C u u v

And for the second integral, we again use a trick to change ( )

2

1 2 2 1

du u − u +

∫ into

something more manageable. Following the steps from above, we see that:

( ) (^) ( )

2 2

1 2 2 2 (^2 1 22 1 )

du du u u (^) u

Again, we use a substitution. Let v = u 2 − 1 , then dv = 2 du. This yields:

( )

( )

1 2 2 4

tan 2 1 2 2 1 1 2 1 2

dv du u C u v

− = = −

That means we have the following:

( )

( )

2 1 2 3 4

2 (^2 2) ln 2 1 2 tan 2 1 2 1 4 2

u du u u C u C u u

= ⎛^ − + + ⎞^ + ⎛^ − − +

And so, putting together everything from above, we see that

( ) ( )

( )

( )

2 2

2 1 1 2

2 1 3 4

2 2

tan 2 2 2 1 2 1

ln 2 1 tan 2 1 4 2

ln 2 1 tan 2 1 4 2

u u xdx du du u u u u

u u C u C

u u C u C

−

−

Now, we can simplify the above expression just a bit. We can factor

2 2

out of all

terms. Also, we can use a property of logs to simplify the two natural log expressions.

Doing so, we get the following expression:

( ) ( )

2 1 1 2

tan tan 2 1 tan 2 1 ln (^2 2 2 )

u u 2 1 xdx u u C u u

Lastly, we replace u with its expression from the first page. Doing this, we get our

final answer. And so, we see after much laborious work that

( ) ( ) tan 2 tan 1 2 tan 1 tan 1 2 tan 1 1 ln tan (^2 2) tan 2 tan 1

x 2 tan x 1 xdx x x C x x

= ⎛^ −^ + + − − + −^ + ⎞