0

Say I have a function

How can I plot the following function

enter image description here

Thank you for your help!

corey979
  • 23,947
  • 7
  • 58
  • 101
Emad kareem
  • 864
  • 1
  • 5
  • 13
  • 1
    Look up the documentation for ContourPlot. – march Feb 10 '17 at 19:24
  • I imagine you want the full heart. You can use the real-valued cube root instead of the principal valued one: ContourPlot[x^2 + (y - CubeRoot[x]^2)^2 == 1, {x, -1, 1}, {y, -1, 2}] – Greg Hurst Feb 10 '17 at 21:18

1 Answers1

3

Using the suggestion of @march:

ContourPlot[x^2 + (y - x^(2/3))^2 == 1, {x, -1, 1}, {y, -1, 2}]

enter image description here

Alternatively, if you are more comfortable with the use of Plot:

Plot[Flatten@Solve[x^2 + (y - x^(2/3))^2 == 1, y][[;; , ;; , 2]], {x, -1, 1}]

enter image description here

Marchi
  • 1,838
  • 9
  • 7