Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I need to produce orbit diagrams for different values of x for the following equation:

f[r_][x_]:= r*x - x^3

I'm fairly new to Mathematica, so I haven't had a lot of practice using it. Basically I need to produce bifurcation diagrams for different values of x; then, using these plots, identify r values at which bifurcation occurs and determine the convergence ratio.

Any help would be much appreciated.

share|improve this question

1 Answer 1

A bit of help with the first stage...

f[r_,x_]:=r x-x^3;

To generate a bifurcation diagram...

ListPlot[
  Module[{x=0.5, n=1000},Apply[Join,Table[Thread[{r,NestList[f[r,#]&,x,n][[n/2;;-1]]}],{r,0,3,0.0125}]]], 
  Frame->True,Axes->False, ImageSize->600, PlotStyle->PointSize[Tiny]]

If you start reading up on the various functions used here you should be on your way at least.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.