Integrating Trigonometric and Exponential Functions with Integration by Parts

Click For Summary

Homework Help Overview

The discussion revolves around integrating various functions, specifically ln(2x+1), arctan(4x), and ecos(x)sin(2x), using integration by parts and substitution techniques. Participants are exploring the nuances of these methods within the context of calculus.

Discussion Character

  • Mixed

Approaches and Questions Raised

  • Participants discuss their attempts at integrating the functions, with some expressing uncertainty about their methods, particularly regarding integration by parts. There are questions about the correctness of their integrals and the application of substitution techniques.

Discussion Status

Several participants have provided guidance on the integration process, suggesting alternative approaches and corrections to previous attempts. There is ongoing exploration of different methods, with no explicit consensus reached on the final answers.

Contextual Notes

Some participants mention discrepancies between their results and those found in textbooks, indicating a potential misunderstanding of integration techniques or errors in their calculations. There is also a focus on ensuring the correct application of substitution and integration by parts.

MHrtz
Messages
53
Reaction score
0

Homework Statement


Take the integral of the following:

1. ln(2x+1)
2. arctan4x
3. ecosxsin2x evaluated from 0 to pi


The Attempt at a Solution



1. took the derivative of ln(2x+1) and integrated dx. my solution was:

xln(2x +1) + x + [(2x + 1)-2]/2 + C

The books answer was:

(1/2)(2x + 1)ln(2x + 1) - x + C

2. took the derivative of arctan4x and the integrated dx. My solution was:

xarctan4x - (1+ x2)-2 + C

The books answer was:

xarctan 4x - (1/8)ln(1 + 16x2) + C

3. I derived sin2x and integrated ecosx but I got something more complex than what I started with.
 
Physics news on Phys.org
MHrtz said:

Homework Statement


Take the integral of the following:

1. ln(2x+1)
2. arctan4x
3. ecosxsin2x evaluated from 0 to pi


The Attempt at a Solution



1. took the derivative of ln(2x+1) and integrated dx. my solution was:

xln(2x +1) + x + [(2x + 1)-2]/2 + C
I'm not sure that you understand how integration by parts works. When you do this, you get a product of functions (xln(2x + 1) in this case) and another integral, that should be simpler than the one you started with.

\int \ln{(2x+1)}dx = x~ln(2x + 1) - \int \frac{2xdx}{2x + 1}
You didn't mention getting the integral on the right. If you did get it, I don't think you integrated correctly.
MHrtz said:
The books answer was:

(1/2)(2x + 1)ln(2x + 1) - x + C

2. took the derivative of arctan4x and the integrated dx. My solution was:

xarctan4x - (1+ x2)-2 + C

The books answer was:

xarctan 4x - (1/8)ln(1 + 16x2) + C

3. I derived sin2x and integrated ecosx but I got something more complex than what I started with.
 
I did get the integral on the right then I made u = 2x + 1, du = 2 dx, and (u - 1) = 2x
 
For the third integral, start by changing sin(2x) to 2 sin(x) cos(x) using the double angle rule, then substitute u=cos(x). Only then should you integrate by parts.
 
If u = cosx then does this mean that dv = 2sinx ecosx dx?
 
No, I mean make a u-substitution first. THEN integrate by parts. Use s=cos(x) if you're too used to using u and dv for integration by parts.
 
MHrtz said:
I did get the integral on the right then I made u = 2x + 1, du = 2 dx, and (u - 1) = 2x
So it looks like you are doing an ordinary substitution. There are two other approaches that are more direct.
1. Rewrite the integrand of the integral on the right like so.
\frac{2x}{2x + 1} = \frac{2x + 1 - 1}{2x + 1} = \frac{2x + 1}{2x + 1} - \frac{1}{2x + 1} = 1 - \frac{1}{2x + 1}
So
-\int \frac{2xdx}{2x+1} = -\int\left(1 - \frac{1}{2x + 1} \right)dx
This is an easy integral.
2. Use polynomial division to divide 2x by 2x + 1. This results in 1 - 1/(2x + 1), the same as above.
 
Char. Limit said:
For the third integral, start by changing sin(2x) to 2 sin(x) cos(x) using the double angle rule, then substitute u=cos(x). Only then should you integrate by parts.

MHrtz said:
If u = cosx then does this mean that dv = 2sinx ecosx dx?

Yes. When you integrate dv you will get -ecosx. Integration by parts results in the following:
-cosx~e^{cosx} - \int e^{cosx}~sinx~dx

The integral on the right can be done with a substitution.
 
Oh right... I guess you could do integration by parts that way too.
 
  • #10
I tried your method for the third integral but still got a wrong answer. I used a calculator and determined that the actual answer was e - (1/e). Here's what I did:

s = cosx
ds = -sinx dx

\int2sinxcosxecosxdx = -2\intsesds

u = s
du = ds
dv = esds
v = es

-2ses - \intesds

-2cosxecosx + \intsinxecosx dx

Let me know if that much is right so I can continue.
 
  • #11
MHrtz said:
I tried your method for the third integral but still got a wrong answer. I used a calculator and determined that the actual answer was e - (1/e). Here's what I did:

s = cosx
ds = -sinx dx

\int2sinxcosxecosxdx = -2\intsesds

u = s
du = ds
dv = esds
v = es

-2ses - \intesds

-2cosxecosx + \intsinxecosx dx
In the line above, the + in the middle should be =. Also, there should be a coefficient of 2 on the integral at the right. These two errors would cause you to get an incorrect answer.
MHrtz said:
Let me know if that much is right so I can continue.
 
  • #12
-2cosxecosx - 2\intsinxecosx dx

u = cosx
du = -sinx dx

2\inteudu

-2cosxecosx + 2eu

[-2cosxecosx + 2ecosx] evaulated from 0 to pi

What about this?
 
  • #13
I get 4/e, which is the same as what wolframalpha gets. The value you reported earlier (e - 1/e) is apparently incorrect.
 
  • #14
Ok. So I get 4/e now as my final answer. My mistake was that I dropped a negative while carrying out my evaluation. For the first integral I tried a different attempt but the answer is still off:

u = ln(2x+1)
du = 2/(2x+1) dx
dv = dx
v = x

xln(2x+1) - \int 2x/(2x+1) dx

u = 2x + 1
du = 2 dx
x = (u-1)

xln(2x+1) - (1/2)\int(u-1)/u du

xln(2x+1) - (1/2)\int1 - u-1 du

xln(2x+1) - (1/2)x - (1/2)ln(2x + 1) + C

Can this be simplified to look like the book's answer or am I still integrating incorrectly?
 
Last edited:
  • #15
MHrtz said:
Ok. So I get 4/e now as my final answer. My mistake was that I dropped a negative while carrying out my evaluation. For the first integral I tried a different attempt but the answer is still off:

u = ln(2x+1)
du = 2/(2x+1) dx
dv = dx
v = x

xln(2x+1) - \int 2x/(2x+1) dx

u = 2x + 1
du = 2 dx
x = (u-1)
The line above is wrong. u = 2x + 1 ==> x = (u - 1)/2
MHrtz said:
xln(2x+1) - (1/2)\int(u-1)/u du

xln(2x+1) - (1/2)\int1 - u-1 du

xln(2x+1) - (1/2)x - (1/2)ln(2x + 1) + C

Can this be simplified to look like the book's answer or am I still integrating incorrectly?
No and yes. See above.
 
  • #16
MHrtz said:
Ok. So I get 4/e now as my final answer. My mistake was that I dropped a negative while carrying out my evaluation. For the first integral I tried a different attempt but the answer is still off:

u = ln(2x+1)
du = 2/(2x+1) dx
dv = dx
v = x

xln(2x+1) - \int 2x/(2x+1) dx

u = 2x + 1
du = 2 dx
x = (u-1)

It's actually 2x = (u - 1). Which still gives the correct integral in the next line, I believe.

x ln(2x+1) - \frac{1}{2}\int\frac{u-1}{u} du

xln(2x+1) - (1/2)\int1 - u-1 du

xln(2x+1) - (1/2)x - (1/2)ln(2x + 1) + C

Can this be simplified to look like the book's answer or am I still integrating incorrectly?
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
Replies
7
Views
2K
Replies
19
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K