Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I plot the hyperbola represented by the following complex equation:


Should I convert (1) into the following form?

ContourPlot[x^2 - y^2 == 1, {x, -2, 2}, {y, -2, 2}]

contour plot of hyperbola

share|improve this question
You can start from ComplexExpand[Abs[x + I y - a] - Abs[x + I y - b], TargetFunctions -> {Re, Im}], which doe not give an hyperbola though. – b.gatessucks Jul 21 '13 at 8:59
Are you sure the complex expression above is a hyperbola? What do the $a, b, t$ stand for? Assuming that the $a$ and $b$ are the same as in $\frac{x^2}{a^2} - \frac{y^2}{b^2} = 1$, then that is not a hyperbola. For instance, what happens when $a=b$? – R. M. Jul 21 '13 at 16:36
You can the function defined here: Coloring a shape according to a function, e.g. ParametricPlot[cc[u, 3/2], {u, 0, 2 Pi}, Axes -> False, PlotStyle -> Thick, ColorFunction -> Function[{x, y, u}, Hue[u/(2 Pi)]], ColorFunctionScaling -> False, Exclusions -> {Cos[u] == 2/3, Cos[u] == -2/3}] – Artes Jul 21 '13 at 18:21

Since you're trying to plot an implicit equation, you would normally use ContourPlot. For example, to get two branches satisfying the equation for $t = 1$, just do this:

With[{a = 2, b = 1},
  Abs[x + I y - a] - Abs[x + I y - b], {x, -1, 3}, {y, -2, 2}, 
  Contours -> {1/2, -1/2}, ContourShading -> False, 
  ContourStyle -> ColorData[1][1]


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.