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

If I solved an example equation like |x|+|y|=1 numerically, I would to get a 90° rotated rectangle. If I was to plot the equation, it would result in an image like the following:

example problem

As an example, this is the problem I want to solve:

Sin[x] Sin[2y] + Sin[y] Sin[2x] = 0

May I get suggestions on the best method to plot the example problem achieving the same result?

share|improve this question
I suppose you looked in the documentation for Solve? What problem did you encounter? – Oleksandr R. Jan 14 '14 at 14:24
up vote 4 down vote accepted
ContourPlot[Abs[x] + Abs[y] == 1, {x, -2, 2}, {y, -2, 2}]

enter image description here

ContourPlot[Sin[x] Sin[2 y] + Sin[y] Sin[2 x] == 0, {x, -5, 5}, {y, -5, 5}, PlotPoints -> 100]

enter image description here

You can change the limits of the ContourPlot if there's a particular region or feature you want to illustrate.

share|improve this answer
Thanks a lot! It helped me. – Andy Jan 14 '14 at 14:36

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.