So I ran into this contradiction and I'd appreciate if someone could help explain what is happening: So when i perform the following integral on paper:
$$\int_{-1}^1(\sqrt[3]{x} -2)\;dx \; = [\frac 34 x^{\frac 43} \, -2x]_{-1}^1\; =$$
$$=\frac 34 1^{\frac 43} -2 -(\frac 34 (-1)^{\frac 43} +2)= \frac 34 - 2 -\frac 34 -2 = -4$$
I get -4 as an answer, and when i input the same thing into WolframAlpha, the result is a complex number (-2.875 +0.649* i), as can be seen in the following photo. Can anyone explain this discrepancy? Does it have to do with the computer using approximations?
cuberoot has three possible answers. WolframAlpha (and many other software) picks the one with the smallest argument. If you tried to find the cuberoot of -1, it would give you 0.5 +0.866 i
http://www.wolframalpha.com/input/?i=%28-1%29%5E%281%2F3%29
In the future, if you want to avoid this, use sign(x)(|x|)^(1/3) (for real x)