一个纯数值的做法
ContourPlot[(1 - a) (x - 3 a)^3 == (2 a)^2, {a, 0, 1}, {x, 0, 100},
PlotPoints -> 50, MaxRecursion -> 3] //
Cases[Normal@#,
Line[pts_] :> (pts /. {a_Real, x_Real} :> {x, (2 a)/(
1 + x - 2 a)}), Infinity] & // ListLinePlot
修改一下减小计算量
ContourPlot[(1 - a) (x - 3 a)^3 == (2 a)^2, {a, 0, 1}, {x, 0, 100}] //
Cases[Normal@#,
Line[pts_] :> (pts /. {a0_Real,
x0_Real} :> {x0, (2 a)/(1 + x0 - 2 a) /.
FindRoot[(1 - a) (x0 - 3 a)^3 == (2 a)^2, {a, a0}]}),
Infinity] & // ListLinePlot