0

Usually to plot an equation like $y=f(x)$, you do so by using

Plot[f[x],{x,0,10}]

However, my equation takes the form $f(x,y)=0$ and $y$ can't be separated to make an equation like $y=f(x)$. Is there a way to plot the values of $y$ by plotting $f(x,y)$ over $x$.

m_goldberg
  • 107,779
  • 16
  • 103
  • 257
MrDi
  • 474
  • 4
  • 10

1 Answers1

5

ContourPlot is probably the solution you are looking for. Here is an example using the function $f(x, y)=x^2 - y^2 - 1$:

f[x_, y_] := x^2 - y^2 - 1
ContourPlot[f[x, y] == 0, {x, -3, 3}, {y, -3, 3}]

Mathematica graphics

MarcoB
  • 67,153
  • 18
  • 91
  • 189