My code is as follows:
Clear["Global`*"]
eq = (y - x^2) (y - 2 x^2) == 0;
branches = y /. Solve[eq, y];
Plot[branches, {x, -1, 1}, AspectRatio -> 1, PlotLabel -> eq]
eqExpand = eq // Expand;
tmp = eqExpand[[1, 3]] == -eqExpand[[1, 2]] - eqExpand[[1, 1]]
ContourPlot[y^2 == -2 x^4 + 3 x^2 y, {x, -1, 1}, {y, 0, 2}]
Plot[]
works without problems. However, ContourPlot[]
shows nothing when I use tmp
(built in the previous line); I must write the expression by hand. I am unable to upload images at this time, will try later. Thx!
eq
for theContourPlot
, rather than just usingContourPlot[eq, {x, -1, 1}, {y, 0, 2}, PlotPoints -> 200]
$\endgroup$