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

Homework Help Overview

The discussion revolves around the integration of the function 2x/(1+2x) and the appearance of the constant (1/2) in the result. Participants are comparing their manual calculations with outputs from Mathematica, questioning the source of the constant and its implications for grading.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants are examining the integration process and the differences in results between manual calculations and software outputs. There are questions about the significance of the constant (1/2) and whether it affects the correctness of the solution. Some participants are considering substitution methods versus partial fractions.

Discussion Status

The discussion is ongoing, with various interpretations of the integration process being explored. Some participants suggest that the constant does not affect the overall solution due to the presence of an arbitrary constant 'c'. There is no explicit consensus on the correct approach or the implications of the constant.

Contextual Notes

Participants mention potential grading implications based on the presence or absence of the constant (1/2) in their answers. There is also a reference to reliance on computational tools versus manual methods, indicating a broader concern about understanding versus obtaining correct 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
11K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
10
Views
2K
  • · Replies 23 ·
Replies
23
Views
2K