Where Does the Constant (1/2) Come From When Integrating 2x/(1+2x)?

  • Thread starter Thread starter farleyknight
  • Start date Start date
  • Tags Tags
    Integrate
Click For Summary
SUMMARY

The discussion centers on the integration of the function 2x/(1 + 2x) using Mathematica and manual calculations. The user queries the origin of the constant (1/2) in the output from Mathematica, which yields 1/2 + x - 1/2 Log[1 + 2 x]. The correct approach involves substitution, leading to the integral being expressed as (1 + 2x)/2 - 1/2 Log[1 + 2x] + c. The consensus is that Mathematica's output is accurate, and the constant (1/2) is a result of the integration process, which can be adjusted by the arbitrary constant 'c'.

PREREQUISITES
  • Understanding of integral calculus, specifically integration techniques.
  • Familiarity with substitution methods in integration.
  • Knowledge of logarithmic properties and their applications in calculus.
  • Experience with Mathematica or similar computational tools for verifying integrals.
NEXT STEPS
  • Study integration techniques involving substitution, particularly in rational functions.
  • Learn about the implications of arbitrary constants in indefinite integrals.
  • Explore the use of Mathematica for advanced calculus problems and its output interpretation.
  • Review partial fraction decomposition as an alternative method for integration.
USEFUL FOR

Students and educators in mathematics, particularly those studying calculus, as well as anyone using computational tools like Mathematica for verifying integration results.

farleyknight
Messages
143
Reaction score
0

Homework Statement



When I plug in

Integrate[ x/(1 + x), x]

into Mathematica, I get

x - Log[1 + x]

which I've been able to recreate on paper. However, when I plug in

Integrate[ 2 x/(1 + 2 x), x]

I get

1/2 + x - 1/2 Log[1 + 2 x]

but on paper I get

x - 1/2 Log[1 + 2 x]

My question is, where does the constant (1/2) come from? Is it me or Mathematica that's wrong?
 
Physics news on Phys.org
Integrate[ x/(1 + x), x] =

x - 1/2 Log[1 + 2 x] + 1/2
or
x - 1/2 Log[1 + 2 x]
or
x - 1/2 Log[1 + 2 x] + c

What's the difference?
 
rootX said:
Integrate[ x/(1 + x), x] =

x - 1/2 Log[1 + 2 x] + 1/2
or
x - 1/2 Log[1 + 2 x]
or
x - 1/2 Log[1 + 2 x] + c

What's the difference?

5 or 10 points on a test :) depending on how a teacher would grade such mistakes. I'm using Mathematica to check my work and these kinds of things make me wonder if my procedure was off or not.
 
I remember asking same question like two years ago. I don't think there's any difference. Here's the matlab:

>> syms x;
>> int( 2*x/(1 + 2*x), x)
ans =
x-1/2*log(1+2*x)

But, regardless of what constant you get, in the end there's always "c"
one constant+1/2 = another constant ('c'). The question doesn't have one single answer.

(Also, I don't know why Mathematica is giving 1/2 in the end)
 
You guys rely WAAAY too much on machines for simple calculations. Back in the native American reservation, I only had small beads for calculus.

Anyway, you are doing it wrong, Mathematica is right.

Int[2x/(1+2x)] dx
Substitute u=1+2x so that dx=du/2
Notice that u-1=2x

Therefore, the integral is
Int[(u-1)/2u] du
which, by splitting it up, is
Int[1/2] du +Int[-1/2u]
which is
u/2 -1/2 ln(u)+c
Don't forget to put it in terms of x

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

This is probably where you messed up you thought (1+2x)/2 is x.
Well, it is actually,

1/2+x-1/2ln(1+2x)+c
 
Pinu7 said:
Anyway, you are doing it wrong, Mathematica is right.

I wasn't thinking about substitution then but here's how he/me were doing (I think):

=int (2x / (1+2x))
= int (1-1/(1+2x))
=x - 1/2.ln(1+2x) + c

I wouldn't call missing 1/2 wrong if you are using partial fractions (not substitution).
 
rootX said:
I wasn't thinking about substitution then but here's how he/me were doing (I think):

=int (2x / (1+2x))
= int (1-1/(1+2x))
=x - 1/2.ln(1+2x) + c

I wouldn't call missing 1/2 wrong if you are using partial fractions (not substitution).

*Slaps hand on face* forgot that the +c made the 1/2 completely meaningless. Sorry, that's a habit of mine.

Of course, x - 1/2 Log[1 + 2 x] + c is the simplified solution and your professor may take off some points if you hand in my/Mathematica's answer.
 

Similar threads

  • · Replies 105 ·
4
Replies
105
Views
7K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
7
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
2
Views
1K
Replies
10
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 23 ·
Replies
23
Views
2K