Bug introduced in 12.0 or earlier and persisting through 14.0
CASE:4539809
I think there is a bug here:
In[1]:= Integrate[Abs[Cos[x^4]], {x, 0, Infinity}]
Out[1]= Cos[\[Pi]/8] Gamma[5/4]
In[2]:= Integrate[Cos[x^4], {x, 0, Infinity}]
Out[2]= Cos[\[Pi]/8] Gamma[5/4]
Maple finds the same answer (albeit not as simplified) for the latter, and no answer for the former. Obviously, the values can't be equal, so I'm rather confident there is indeed a bug.
It might be worth noting that with RealAbs
, Mathematica leaves the integral unevaluated.
Mathematica 12.1.0 on Windows 10
RealAbs
does not evaluate, using the equivalentIntegrate[Sqrt[Cos[x^4]^2], {x, 0, Infinity}]
gives the erroneous result. v12.1 $\endgroup$