6
$\begingroup$

The following two calculations should give the same result. After all, integration is a linear operation.

enter image description here


I have pasted the code below in case you want to play with it.

Integrate[Integrate[v[x], x] - 
     Integrate[Integrate[v[x], x] * u'[x], x]/u[x], x]

Integrate[Integrate[v[x], x], x] - 
   Integrate[Integrate[Integrate[v[x], x] * u'[x], x]/u[x], x]
$\endgroup$
  • $\begingroup$ if i plug in example functions for v,u I get the same result (not zero) $\endgroup$ – george2079 Nov 15 '13 at 20:52
  • $\begingroup$ Should I tag this question as "bug"? $\endgroup$ – Hector Nov 16 '13 at 14:36
  • 1
    $\begingroup$ @Hector No, every integration is defined up to an additive constant. Therefore answer is defined up to a nontrivial function. $\endgroup$ – ybeltukov Nov 16 '13 at 14:48
  • 3
    $\begingroup$ @Hector Indeed. Most likely Mathematica think that Integrate[v[x], x] is a constant (i.e. bug). $\endgroup$ – ybeltukov Nov 16 '13 at 15:45
  • 1
    $\begingroup$ Simpler example illustrating @ybeltukov's comment: Integrate[Integrate[Integrate[v[x], x] * Derivative[1][u][x], x] - Integrate[v[x], x] * Integrate[Derivative[1][u][x], x], x] evaluates to zero. Note that it does not evaluate to zero if the outside Integrate is removed. $\endgroup$ – Michael E2 Nov 17 '13 at 15:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.