1

I have a function

 g[x_] := (x^3 - x^2)^(1/3)

that I want to plot. The plot I am getting gives me strange results. There is nothing plotted for x < 1, contrary to the results that I can obtain from my calculator. Do you have a idea why?

m_goldberg
  • 107,779
  • 16
  • 103
  • 257
Bendesarts
  • 1,099
  • 5
  • 12

1 Answers1

5

You probably want to use Surd rather than Power. Mathematica normally treats expressions as complex-valued, which may give results differing from most calculators, which are restricted to the reals. Surd is provided to give calculator-like behavior when that is desired.

g[x_] := Surd[x^3 - x^2, 3]
With[{a = 3}, Plot[g[x], {x, -a, a}]]

plot

m_goldberg
  • 107,779
  • 16
  • 103
  • 257