# Why Mathematica is not computing this integral? [closed]

Why is the following integral not computed

 Integrate[(Exp[-t] - 1)/
Sqrt[2 + Exp[-2 t] - Exp[-t] -
Exp[t (-(1/2) - I a) - Exp[t (-(1/2) + I a)]]], {t, 0, 1}]?

• Rubi cannot do it either. Some integrals are just too hard - some even have no closed form in elementary functions - and your double exponential under a square root is probably what makes it so difficult. You will need to resort to numerics with NIntegrate, but to do that you must give a some value - it cannot remain a symbol but you could make a function: intg[a_?NumericQ]:= NIntegrate[...] May 30, 2021 at 10:18
• Thanks @flinty. Actually I need to plot the result with respect to $a$. Don't know how to proceed...
– Mike
May 30, 2021 at 10:30
• From comment of user @flinty, try: Plot[intg[a] // ReIm // Evaluate, {a, -2, 2}] May 30, 2021 at 10:54
• You also could try using ParametricNDSolveValue with a as the parameter. It may be faster than NIntegrate, provided a is not too large. May 30, 2021 at 12:38
• Personal opinion: I think any similar question should be closed unless the asker can convincingly explain why they believe that Mathematica should be able to solve the integral, differential equation, or any other hard problem. May 30, 2021 at 13:24