When I solve the function f[x] = 3x^(2/3)-2x at the x values of [-1,0,1], the independent value of -1 gives a complex number and I cannot understand why - see attached.
When I treat the statement of x^(2/3) as the cubed root of x squared and solve the function, I get an answer of 5, which is the same answer that I get on my TI-89.
Obviously I am not understanding what Mathematica is doing in performing this calculation so I would certainly appreciate any clarification.
Great question. I'm not sure if this is your issue, but it is something to keep in mind.
When I first started using Wolfram I assumed that order of precedence would be what I think I learned many years ago in school. But, either I am remembering wrong or Wolfram is a bit different.
It's not a question of precedence but one of parsing. WL does follow the traditional rules for order of operations in arithmetic. The FrontEnd parses the input and gives it to the Kernel for evaluation. To see how the FrontEnd interprets your input, wrap your expression in Hold and then in FullForm, then evaluate it:
Use parentheses to coerce the interpretation into the form you want:
This is something that often creates confusion.
In Mathematica x^(1/3) returns the principal root, which is complex. But CubeRoot[x] returns the real root.
f[x_] := 3 CubeRoot[x]^2 - 2 x
(* 5 *)
x^(2/3) is the same as (x^(1/3))^2 which is not the same as (x^2)^(1/3). This treatment of rational powers is standard.