Plotting a non-closed form of an equation

  • Thread starter Thread starter rubenvb
  • Start date Start date
  • Tags Tags
    Form Plotting
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 3K views
rubenvb
Messages
9
Reaction score
0
Hi,

I need to plot this function z(B) with B=0...100 for an assignment:

[tex](1+z)^{\frac{2}{3}}-(1-z)^{\frac{2}{3}} = B[/tex]

But can't seem to discover how. Mathematica can't calculate the inverse (for rather obvious reasons), and neither can Matlab.

A solution in either program is fine. Thanks!
 
Physics news on Phys.org
This is just a start and I have some doubts about it's accuracy. The resulting solution has roots which Mathematica extracts default values which may not be the values you want. Would need to work with it further and back-substitute values both for z and b to make sure your answer is correct. For example, what happens to (1-z)^(2/3) when z becomes greater than one?

Code:
mysols = z /. Solve[(1 + z)^(2/3) - (1 - z)^(2/3) == b, z]
Plot[Re[mysols], {b, 0, 100}]
 
Last edited:
jackmell said:
For example, what happens to (1-z)^(2/3) when z becomes greater than one?

Thanks for the answer, will check on it tomorrow (too late here now). z is defined to be no greater than 1 in absolute value, so the expression is symmetrical in z and there is no z>1.

PS: z is actually [tex]\zeta[/tex]=polarisation)