Why I'm Getting Wrong Answer With This Method: f(x)=\int\frac{x+1}{x^2+2x}

  • Thread starter Thread starter e^(i Pi)+1=0
  • Start date Start date
  • Tags Tags
    Method
Click For Summary

Homework Help Overview

The discussion revolves around the integral of the function f(x) = ∫(x+1)/(x²+2x) and the challenges faced by the original poster in obtaining the correct result using different methods of integration.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • The original poster attempts to solve the integral using substitution and expresses confusion over why their method yields an incorrect answer. They question the validity of using logarithmic integration for certain functions, particularly when nested functions are involved.
  • Some participants suggest that the original poster's approach may not be appropriate due to the nature of the integrand and the need for trigonometric substitution or partial fractions.
  • Others raise questions about the general applicability of the logarithmic integration rule, particularly in cases where the integrand is not a simple function.

Discussion Status

The discussion is active, with participants providing insights into the original poster's confusion regarding integration techniques. Some guidance has been offered regarding the use of substitution methods and the importance of recognizing when logarithmic integration is applicable. There is an exploration of different methods, but no consensus has been reached on the best approach.

Contextual Notes

Participants note the original poster's recent learning of integration techniques and their desire for explicit explanations. There is also mention of the need for understanding the chain rule and its implications for integration.

e^(i Pi)+1=0
Messages
246
Reaction score
1

Homework Statement


[itex]f(x)=\int\frac{x+1}{x^2+2x}[/itex]


The Attempt at a Solution



I know that this can be solved with substitution. I'm wondering why I get the wrong answer when using this other method...

[itex]f(x)=\int\frac{x+1}{x^2+2x}[/itex]

[itex]=\int\frac{x}{x^2+2x}+\frac{1}{x^2+2x}[/itex]


[itex]=\int\frac{1}{x+2}+\int\frac{1}{x^2+2}[/itex]

[itex]=ln(x+2)+ln(x^2+2) + c[/itex]

I could simplify more, but it's wrong. It should be [itex].5(x^2+2) + c[/itex]

I'm guessing that [itex]\int\frac{1}{x^2+2}\neq ln(x^2+2)[/itex] so in what cases does [itex]\int \frac{1}{x} = ln(x) + c[/itex] not hold?? I just learned this stuff today so any answers will have to be rather explicit please.
 
Physics news on Phys.org
e^(i Pi)+1=0 said:
I'm guessing that ∫ 1/(x2+2) dx ≠ ln(x2+2)

This.

d/dx ln(x2+2) = 2x/(x2+2), which is obviously not equal to 1/(x2+2). Never forget the chain rule.

To integrate 1/(x2+2), you need to use trigonometric substitution.
 
Last edited by a moderator:
Don't know that yet. So I guess that any time there's a nested function then ∫(1/x) dx=ln(x)+c doesn't hold?
 
Last edited by a moderator:
Do you know of the chain rule?
 
Last edited by a moderator:
e^(i Pi)+1=0 said:
Don't know that yet. So I guess that any time there's a nested function then ∫(1/x) dx=ln(x)+c doesn't hold?
Of course [itex]\displaystyle \int \frac{1}{x}\,dx=\ln|x|+C[/itex] always holds.

What doesn't hold in general is [itex]\displaystyle \int \frac{1}{f(x)}\,dx=\ln|f(x)|+C[/itex]
 
Last edited by a moderator:
Harrisonized said:
Do you know of the chain rule?

Yes, I meant I don't know trig substitution.
 
Last edited by a moderator:
SammyS said:
Of course [itex]\displaystyle \int \frac{1}{x}\,dx=\ln|x|+C[/itex] always holds.

What doesn't hold in general is [itex]\displaystyle \int \frac{1}{f(x)}\,dx=\ln|f(x)|+C[/itex]

Could you provide a few examples please?
 
Last edited by a moderator:
You did this problem the hard way, by splitting in into two integrals. An easy substitution will do the trick.

Let u = x2 + 2x, so du = (2x + 2)dx
Notice any similarity to the numerator of your original integral?
 
Last edited:
e^(i Pi)+1=0 said:
Yes, I meant I don't know trig substitution.

It's not a trig substitution. It's a u substitution. Try putting u=x^2+2x. What is du?
 
  • #10
To the above two posts -

I know it's not trig substitution, I only mentioned I don't know that because it was mentioned by someone else. U-sub is easy, but I was trying to solve it this way because I'm trying to get a handle on derivatives and integrals of ln(x)
 
  • #11
e^(i Pi)+1=0 said:
To the above two posts -

I know it's not trig substitution, I only mentioned I don't know that because it was mentioned by someone else. U-sub is easy, but I was trying to solve it this way because I'm trying to get a handle on derivatives and integrals of ln(x)

If you don't want to do it the easy way using U-sub, then you'll need to do partial fractions on the second integral. Do you know that?
 
  • #12
Dick said:
If you don't want to do it the easy way using U-sub, then you'll need to do partial fractions on the second integral.

Or complete the square and use a trig substitution?
 
  • #13
Bohrok said:
Or complete the square and use a trig substitution?

If doing it the hard way isn't enough and you want to do it the REALLY hard way, that should work.
 
  • #14
SammyS said:
Of course [itex]\displaystyle \int \frac{1}{x}\,dx=\ln|x|+C[/itex] always holds.

What doesn't hold in general is [itex]\displaystyle \int \frac{1}{f(x)}\,dx=\ln|f(x)|+C[/itex]

e^(i Pi)+1=0 said:
Could you provide a few examples please?

For instance, if f(x) = x2, then

[itex]\displaystyle \int \frac{1}{f(x)}\,dx=\int\frac{1}{x^2}\,dx=\int x^{-2}\,dx=-x^{-1}+C\ne\ln(x^2)+C[/itex]
 
  • #15
e^(i Pi)+1=0 said:
Could you provide a few examples please?

[tex]\int\frac{1}{x}dx=\ln|x|+c[/tex] only holds because [tex]\frac{d}{dx}\left(\ln|x|+c\right)[/tex][tex]=\frac{1}{x}\cdot \frac{d}{dx}(x)=\frac{1}{x}[/tex] by use of the chain rule, while, in general, [tex]\frac{d}{dx}\left(\ln|f(x)|+c\right)[/tex][tex]=\frac{1}{f(x)}\cdot\frac{d}{dx}f(x)=\frac{f'(x)}{f(x)}[/tex]

So if you have some f(x) in the denominator that needs integrating, unless the numerator is the derivative of the denomintor (or at least a constant multiplied by the derivative) then you can't take the log.
 

Similar threads

  • · Replies 105 ·
4
Replies
105
Views
11K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
2
Views
2K
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 7 ·
Replies
7
Views
1K
Replies
9
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
Replies
20
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K