# Integrate x/(2x+1) dx

srfriggen

## Homework Statement

$$\int$$ x/(2x+1) dx

## The Attempt at a Solution

I tried factoring out the 2 on the bottom to get 1/2 $$\int$$ x/(x+1/2). then I put 1/2 $$\int$$ x+(1/2)-(1/2)/(x+1/2) dx.

from that i had, 1/2 $$\int$$dx - 1/2$$\int$$dx/(x+1/2)

finally x/2 - 1/4 ln lx+1/2l + C

My calculator keeps telling me it should be x/2 - 1/4 ln l2x+1l + C and every time try using a different trick i get a different answer. i'm sure i need to add 0, a-a, to get the answer but I can't figure out how to make it work.

If someone could please help me out it and show the steps as to where i went wrong it would be much appreciated. Been racking my brain over this seemingly simple problem. just can't seem to make it work.

## The Attempt at a Solution

Staff Emeritus
Gold Member
finally x/2 - 1/4 ln lx+1/2l + C

My calculator keeps telling me it should be x/2 - 1/4 ln l2x+1l + C and every time try using a different trick i get a different answer.
Wait, why do you think those are different?

Staff Emeritus
Gold Member
P.S. there is an easy way to check your answer, isn't there?

Homework Helper
Wait, why do you think those are different?

They are, unless the C in one expression is not necessarily the C in the other expression :P

srfriggen
Hey all, thanks for responding so quickly. I was able to figure out the problem. It was a simple issue of order of operations. When I factored out the 1/2 I didn't realize I have to basically wait till the end of the problem (when all within the brackets [well i wasn't using brackets, that was the problem] is simplified. That made everything work perfectly. whether factoring out a 1/2, or substituting x=u/2, it was all just a simple mistake. Thank god i noticed it now before i went on to my test! i only wonder how many times this mistake has been screwing me in the past!

Also, I knew the answers were different because I graphed them and they were off slightly.

ahh, off to bed.

Staff Emeritus
Gold Member
Also, I knew the answers were different because I graphed them and they were off slightly.
You didn't graph the answers. You graphed one element from each family of answers. Those two particular functions were different, but why do you think the two families were different?

srfriggen
You didn't graph the answers. You graphed one element from each family of answers. Those two particular functions were different, but why do you think the two families were different?

Probably because this is all new to me:) I'm not sure I follow. Are you talking about how each solvable indefinite integral has an infinite number of answers all dependent on "+C"? (The graphs were identical except for a small shift in the y-direction).

If that is so then does it matter when i distribute the 1/2 in the front? If I wait until the end of the problem I get the calculator answer. If I distribute it earlier I get my answer.

are the two answers equal except for the constant +C? If so, how would I manipulate the constant to have them be identical?

If that made no sense I'm sorry, like I said i'm still new to this. To me indefinite integrals don't really mean much. I grasp that an integral is the area under a line or curve (a definite integral), but it just seems indefinite integrals are the half-assed version of a definite integral. What else does it tell you?

Fightfish
are the two answers equal except for the constant +C? If so, how would I manipulate the constant to have them be identical?
$$\frac{x}{2}\, -\, \frac{1}{4} ln |2x+1|\, +\, C = \frac{x}{2}\, -\, \frac{1}{4} ln (|2||x + \frac{1}{2}|)\, +\, C = \frac{x}{2}\, -\, \frac{1}{4} ln |x + \frac{1}{2}| \,-\, \frac{1}{4} ln 2 \,+\, C = \frac{x}{2}\, -\, \frac{1}{4} ln |x + \frac{1}{2}|\, +\, C'$$

srfriggen
$$\frac{x}{2}\, -\, \frac{1}{4} ln |2x+1|\, +\, C = \frac{x}{2}\, -\, \frac{1}{4} ln (|2||x + \frac{1}{2}|)\, +\, C = \frac{x}{2}\, -\, \frac{1}{4} ln |x + \frac{1}{2}| \,-\, \frac{1}{4} ln 2 \,+\, C = \frac{x}{2}\, -\, \frac{1}{4} ln |x + \frac{1}{2}|\, +\, C'$$

Thanks! god it seems to me most of the time that calculus is easy... it's the algebra that I took in 1996 that's what gets me (and most of my class actually).

But thanks again.

srfriggen
when I take the derivative of either my answer or the calculator answer I get:

$$\frac{x}{2}$$ - $$\frac{1}{4x+2}$$

But I can't seem to manipulate that answer to get the original fraction:

$$\frac{x}{2x+1}$$

Any ideas?

Homework Helper

Then, how do you add two fractions (like 1/3 and 2/5)?

srfriggen
ah, got it, thanks!

starthaus
from that i had, 1/2 $$\int$$dx - 1/2$$\int$$dx/(x+1/2)

finally x/2 - 1/4 ln lx+1/2l + C

My calculator keeps telling me it should be x/2 - 1/4 ln l2x+1l + C and every time try using a different trick i get a different answer.

The "two" answers are in reality one and the same answer, with C-ln(2)=C'