Two different methods give two different answer
Maths and statistics discussion, revision, exam and homework help.
-
Two different methods give two different answer
I was solving a differential equation and got to the step where I had to integrate. I did it two different methods to get two different answers. I was wondering if anyone knows why one method must not work.
Method 1

let
therefore:



so:


Method 2



As you see both gives different answer but I'm sure both methods are correct.
Thanks,
Kieron -
Re: Two different methods give two different answer
The key is the "+C", which you forgot to add.
Notice that if
then
, so when you integrate two things then you can end up with two different answers, but they will always only differ by a constant.
Here,
, so you get
. The
is a constant, and so (if you add your constants of integration) the two answers are actually the same -- this
can then be absorbed into the constant of integration in your first method to give
.
-
Re: Two different methods give two different answerI can't believe something so simple drove me crazy. Most of the times the constant doesn't change the answer so I tend to forget to put it.(Original post by nuodai)
The key is the "+C", which you forgot to add.
Notice that if
then
, so when you integrate two things then you can end up with two different answers, but they will always only differ by a constant.
Here,
, so you get
. The
is a constant, and so (if you add your constants of integration) the two answers are actually the same -- this
can then be absorbed into the constant of integration in your first method to give
.
Thanks
-
Re: Two different methods give two different answerIndeed! In regards to forgetting about the constant, try integrating 1/x dx by parts some time, with u = 1/x, v' = 1.(Original post by Darkening Light)
I can't believe something so simple drove me crazy. Most of the times the constant doesn't change the answer so I tend to forget to put it.
Thanks