I want to create the following set of curves. However, 2) is not ill-defined because it's not bijective. How can this graphed on Tikz? I tried drawing, but this doesn't produce smooth looking curves.

1) y=x^0.5-x

2) x=y^0.5-y

enter image description here

  • 2
    These are called parametric plots and can be made easily.
    – user121799
    Mar 27, 2018 at 18:06
  • 1
    "ill-defined because it's not bijective" should be ""well-defined because it's multivalued" Mar 27, 2018 at 19:07

1 Answer 1


Here an example using pgfplots, but you can do the same with TikZ only.

\tikzset{declare function={f(\x)=(\x)^(1/2)-\x;}}

  \addplot[very thick] {f(x)};
  \addplot[very thick] ({f(x)},{x});


enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .