Where Did I Go Wrong with the Definite Integral of ln(x+2)dx?

  • Thread starter Thread starter Saladsamurai
  • Start date Start date
  • Tags Tags
    Integral
Click For Summary
SUMMARY

The discussion revolves around the evaluation of the definite integral of ln(x+2) using integration by parts. The user initially struggles with the indefinite integral and makes an error in their calculations, leading to confusion when comparing results with an online tool. Ultimately, they confirm that their integral is correct but realize the importance of notation and the use of logarithmic functions, specifically the distinction between ln and log. The conversation highlights common pitfalls in calculus and the significance of understanding differentiation rules.

PREREQUISITES
  • Integration by parts technique
  • Understanding of logarithmic functions (ln vs. log)
  • Basic calculus concepts, including differentiation
  • Long division for integrals
NEXT STEPS
  • Practice integration by parts with various functions
  • Study the properties and applications of logarithmic functions
  • Explore advanced integration techniques, including substitution methods
  • Learn how to use online integral calculators effectively
USEFUL FOR

Students and educators in calculus, particularly those focusing on integration techniques and logarithmic functions. This discussion is beneficial for anyone looking to deepen their understanding of integration by parts and common errors in calculus.

Saladsamurai
Messages
3,009
Reaction score
7
So I am using int by parts to evaluate \int_{-1}^1\ln(x+2)dx

I am doing something incorrectly with the indefinite int part of this problem, but I can'y find my error, can you?

\int udv=uv-\int vdu
u=ln(x+2)
\Rightarrow du=\frac{dx}{x+2}
dv=dx
\Rightarrow v=x

So I get:
x\ln(x+2)-\int\frac{x}{x+2}dx

Working on only the last part ^^^by long division I get:
\int\frac{x}{x+2}dx=\int(1-\frac{2}{x+2})dx

=x-2\ln(x+2)

and recombining with the top:

x\ln(x+2)-x+2\ln(x+2)

But when I evaluate this on my calculator, I get the incorrect answer. Any ideas?

Casey
 
Last edited:
Physics news on Phys.org
Why use integration by parts? Why not just use substiution?

u=x+2
du/dx=1
 
mdk31 said:
Why use integration by parts? Why not just use substiution?

u=x+2
du/dx=1

Because that is not the point of the exercise.:biggrin: A u-sub will do no good if we have not yet learned the integral of lnu

Casey

But, nonetheless, my integral is correct. I am doing something incorrectly with my calculator.

edit: I figured it out. damn. what a waste of typing
 
Last edited:
The answer seems fine to me...

-x + (2 + x)*Log[2 + x]

Use the distributive law to 'pull' the ln(x+2) out.
 
yeah i also got the same thing,
 
neutrino said:
The answer seems fine to me...
Use the distributive law to 'pull' the ln(x+2) out.

wow...yeah. The things I forget sometimes:redface:

Thanks guys.

BTW, it is common too use, as Wolfram does, LOG instead of LN...I thought that Log implied base 10 always?
 
Saladsamurai said:
BTW, it is common too use, as Wolfram does, LOG instead of LN...I thought that Log implied base 10 always?

To each his own. It's best to use what is being used in your course/textbook, at least for now.
 
Saladsamurai said:
wow...yeah. The things I forget sometimes:redface:

Thanks guys.

BTW, it is common too use, as Wolfram does, LOG instead of LN...I thought that Log implied base 10 always?
Well, this depends pretty much on the author. Here at my country when we write only Log we assume it to be with base 10, and Ln to be the natural logarithm with base e. However i have seen some proffesors at some universities usually at US universities often use Log to mean Ln.
 
  • #10
'Pure' mathematicians will generally have log denote the logarithm with base e. This is natural as all power functions (a^x) are really just scaled exponentials and we have a similar result for logs as a consequence.
 
  • #11
I 've been trying to work out an integral similar to the one above but i can't seem to get it correct
\int \ln(x+x^{2}) dx

u = \ln(x+x^{2})
du = dx/(x+x^{2})

dv = dx : v = x

\int \ln(x+x^{2})= x \ln (x+x^{2})+ \int x /(x+x^{2})dx

To figure out the last part of the integral for some reason has me stuck :(
 
Last edited:
  • #12
Your du is incorrect.
 
  • #13
Defennder said:
Your du is incorrect.

ok. but the differential of \ln(x) = 1/x
 
  • #14
But the expression inside the ln is x^2+x and not x. So you have to apply the general rule for differentiating ln(f(x)).
 
  • #15
mj12, you forgot the most important rule of differential calculus ;)
 
  • #16
By General rule you mean :ln f(x) = f`(x) / f(x)

which would give me 1 + 2x / x + x^2
 
  • #17
Yes.
 
  • #18
Ahhh, your notation had me confused for a second. If you mean (1+2x)/(x+x^2), you are correct. Now multiply that by x (to get vdu) and see if you can integrate that (it's a bit tricky).
 
  • #19
Try factoring x+x^2[/tex] and then use the identity \log(ab) = \log a + \log b.
 
  • #20
That surprisingly, is the harder way to do it, mostly because it's easier to remember the anti-derivative of f'(x)/f(x) than that of ln(x).
 
  • #21
snipez90 said:
Ahhh, your notation had me confused for a second. If you mean (1+2x)/(x+x^2), you are correct. Now multiply that by x (to get vdu) and see if you can integrate that (it's a bit tricky).

Tricky indeed because i still haven't got it right...I think i need a break from Calc, been at it for a couple of hours now, didnt even notice the thread had a page 2 :|
 
  • #22
Ok well after multiplying by x you get (x+2x^2)/(x+x^2), factoring out an x and canceling gives (2x+1)/(x+1). Now we can manipulate this expression a bit. What happens if you add and subtract 1 from the numerator? In one sense this doesn't change the expression since it's just adding 0 but notice that you get a term in the numerator that is a multiple of the denominator.
 
Last edited:
  • #23
ok and that would give me 1/(x+1) - 2 ?
which would become ln(x+1) -2x
 
  • #24
Hmm (2x+2-1)/(x+1) = 2 - 1/(x+1), so you should get 2x - ln(x+1). Don't forget the constant and differentiate to check of course.

Wait sorry, you must've accounted for the -1 factor already...
 
  • #25
Oops, that's what i mean :P so

\int \ln(x+x^{2}) dx

u = \ln(x+x^{2})
du = (1 +2x)/(x+x^{2})

dv = dx : v = x

\int \ln(x+x^{2})= x \ln (x+x^{2})+ \int (x+ 2x^{2}) /(x+x^{2})dx

= x \ln (x+x^{2}) - 2x + \ln (x + 1) + C

Thanks for your help guys really appreciate it. Tomorrow I tackle

\int (sin^{-1} x)^{2} dx
 
  • #26
Nope, you forgot the derivative of -2x.
 
  • #27
Cyosis said:
Nope, you forgot the derivative of -2x.

Yah, deleted the post after I looked a little closer.

However, I am still not sure why mj12 has an addition between
uv + \int\ vdu

when it should be a subtraction?
 
  • #28
Yep there should be a - there, probably just a typo.
 
  • #29
Ah, okay.

The typo threw me off. Finally worked out the integral and resulted in that. Thanks.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 105 ·
4
Replies
105
Views
7K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 54 ·
2
Replies
54
Views
15K
Replies
3
Views
2K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K