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

  • Thread starter Saladsamurai
  • Start date
  • Tags
    Integral
In summary, the conversation discusses the use of integration by parts to evaluate the integral of ln(x+2) from -1 to 1. The individual is struggling with finding the error in their calculation and asks for help. They share their solution but realize they made a mistake when comparing it to an online calculator. The conversation then shifts to discussing the use of logarithms and their base, and how to properly use substitution in integrals. Finally, they work through another integral together and successfully find the correct solution.
  • #1
Saladsamurai
3,020
7
So I am using int by parts to evaluate [tex]\int_{-1}^1\ln(x+2)dx[/tex]

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

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

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

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

[tex]=x-2\ln(x+2)[/tex]

and recombining with the top:

[tex]x\ln(x+2)-x+2\ln(x+2)[/tex]

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

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

u=x+2
du/dx=1
 
  • #3
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:
  • #5
The answer seems fine to me...

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

Use the distributive law to 'pull' the ln(x+2) out.
 
  • #6
yeah i also got the same thing,
 
  • #7
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?
 
  • #8
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.
 
  • #9
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
[tex]\int \ln(x+x^{2}) dx[/tex]

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

[tex]dv = dx[/tex] : [tex]v = x[/tex]

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

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 [tex] \ln(x) = 1/x [/tex]
 
  • #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 [itex]x+x^2[/tex] and then use the identity [itex]\log(ab) = \log a + \log b[/itex].
 
  • #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

[tex]\int \ln(x+x^{2}) dx[/tex]

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

[tex]dv = dx[/tex] : [tex]v = x[/tex]

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

= [tex]x \ln (x+x^{2}) - 2x + \ln (x + 1) + C [/tex]

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

[tex]\int (sin^{-1} x)^{2} dx[/tex]
 
  • #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
[tex] uv + \int\ vdu [/tex]

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.
 

1. What is the definition of the integral of ln(x+2)dx?

The integral of ln(x+2)dx is a mathematical concept that represents the area under the curve of the function ln(x+2) from a given interval. It is a way to find the total change of a function over a specific range of values.

2. How is the integral of ln(x+2)dx calculated?

The integral of ln(x+2)dx can be calculated using the integration by parts method or by using the substitution method. It is important to follow the proper steps and use the correct formula to accurately calculate the integral.

3. What is the significance of the integral of ln(x+2)dx?

The integral of ln(x+2)dx has many applications in mathematics, physics, and engineering. It is used to calculate areas, volumes, and other quantities in real-world problems. It also has connections to the natural logarithm function, which is commonly used in many scientific fields.

4. What are the limits of integration for ln(x+2)dx?

The limits of integration for ln(x+2)dx depend on the given interval. If the integral is being evaluated from 0 to a, then the lower limit is 0 and the upper limit is a. If the integral is being evaluated from a to b, then the lower limit is a and the upper limit is b.

5. Are there any special properties of the integral of ln(x+2)dx?

Yes, the integral of ln(x+2)dx has a few special properties. It is an odd function, meaning that its integral over a symmetric interval is equal to 0. It is also a continuous and differentiable function on its domain. Additionally, it is related to the natural logarithm function, which has many unique properties.

Similar threads

  • Calculus and Beyond Homework Help
Replies
3
Views
326
  • Calculus and Beyond Homework Help
Replies
15
Views
773
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
  • Calculus and Beyond Homework Help
2
Replies
54
Views
7K
  • Calculus and Beyond Homework Help
Replies
22
Views
1K
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
7
Views
686
  • Calculus and Beyond Homework Help
Replies
8
Views
749
  • Calculus and Beyond Homework Help
Replies
2
Views
889
  • Calculus and Beyond Homework Help
Replies
12
Views
1K
Back
Top