I wish to plot the real roots of the following equation as a graph of L versus r.
L^3 - L*b (P - r) == 0
with b=2.6666, P=10, for r in (1,100) with step size 0.1. I have tried the following which does not seem to work.
sol = Solve[L^3 - L*b (P - r) == 0, L];
With[{b = 2.6666, P = 10}, Plot[{f[L]}, {r, 1, 100, 0.1}]]
How can I plot L (y-axis) versus r (x-axis) for the given range of r?
ContourPlot
$\endgroup$