Bug introduced in 12.0 and fixed in 12.1

After upgrading to mathematica 12, this integral gives the wrong result, also with other types of similar integrals.


The output


is wrong (it should be E^t[2] (-1 + t[2])). Such problem does not exist in previous versions.

PS, I have to use a lot of t[i] in my program, even if I change the [i] to subscripts, the problem is still there.

  • 2
    $\begingroup$ It is interesting to note that if I pick a variable without index, then it gives you what you expect. In other words, Integrate[blah*Exp[blah], blah] gives (-1 + blah) E^blah as you expect. OK, a new wrinkle: when using the t[2], I notice that it doesn't properly highlight the variables over which we are integrating. $\endgroup$
    – Mark R
    Nov 8, 2019 at 0:30
  • 7
    $\begingroup$ Integrate[t[1] Sin[t[1]], t[1]] fails, but Integrate[t@Hold[2]*Exp[t@Hold[2]], t@Hold[2]] succeeds. $\endgroup$
    – Michael E2
    Nov 8, 2019 at 2:29
  • 4
    $\begingroup$ Please report the issue to the support. $\endgroup$ Nov 8, 2019 at 15:31

1 Answer 1


Fixed in 12.1

Mathematica graphics

Integrate[t[2]*Exp[t[2]], t[2]]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.