I have to plot, in the plane, the following equation
$$ (x_1+x_2-2)^6=64(2x_2-3x_1+1),\quad x_1\leq 0 $$ $$ (x_1+x_2+2)^6=64(-2x_2+3x_1+1),\quad x_1\geq 0.$$
Maybe there is a more appropriate function to plot this but I managed something with ContourPlot
:
Show[
{
ContourPlot[{(x1 + x2 - 2)^6 == 64 (2 x2 - 3 x1 + 1)}, {x1, -8,
8}, {x2, -8, 8}, GridLines -> Automatic,
ContourStyle -> {Black, Dashed}],
ContourPlot[{(x1 + x2 + 2)^6 == 64 (-2 x2 + 3 x1 + 1)}, {x1, -8,
8}, {x2, -8, 8}, GridLines -> Automatic,
ContourStyle -> {Red, Dashed}]
}
]
However, for the black-dashed curve, I only need the lower portion (for which $x_1\leq 0$) and for the red-dashed curve, I only need the upper portion (for which $x_1\geq 0$).
I tried using the RegionFunction
option but I could only eliminate a portion of what needed to be taken off:
How can I manage this?