20
$\begingroup$

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.

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

The output

Exp[t[2]^2]/2 

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.

$\endgroup$
3
  • 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$ Commented 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$ Commented Nov 8, 2019 at 2:29
  • 4
    $\begingroup$ Please report the issue to the support. $\endgroup$ Commented Nov 8, 2019 at 15:31

1 Answer 1

8
$\begingroup$

Fixed in 12.1


Mathematica graphics


ClearAll[t]; Integrate[t[2]*Exp[t[2]], t[2]] 
$\endgroup$

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.