I need to integrate the expression (t^(1/3)-t^(2/3)) from t=-1 to t=0, using Mathematica version 7, and I want the real answer only. How do I do this? I am not sure whether I use NIntegrate or if it must be done with Integrate and somehow later evaluate it. Obviously I want whichever should be used restricted to Reals only. I’ve looked at Assumptions, Assuming, Element, and many other things, but I am totally a beginner, and I can’t get anything to work. I have spent many hours trying to do this. Would you give me the code to do it? (Please assume I know little to nothing.)
Copyable code:
NIntegrate[t^(1/3)-t^(2/3), {t,-1,0}]
Surd
? $\endgroup$Integrate[Surd[t, 3] - Surd[t^2, 3], {t, -1, 0}]
. $\endgroup$Surd
was introduced in V9. The OP is specifically asking about V7. $\endgroup$Power
is always real:newintegrand = integrand /. Power[b_, x_Rational] /; OddQ@Denominator@x :> Simplify[Sign[b]^Numerator[x], b \[Element] Reals && b != 0] Power[Abs[b], x]
$\endgroup$