Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. 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

I want to visualize the following set in Maple:

$\lbrace (x+y,x-y) \vert (x,y)\in (-\frac{1}{2},\frac{1}{2})^{2} \rbrace$

Which commands should I use? Is it even possible?

share|cite|improve this question
You are trying to visualize a function that has two inputs and two outputs. So That is like trying to graph a four dimensional object. Your function is really a 2 by 2 matrix, or linear transformation. There are ways of graphing it but only based on limiting your input or output to certain regions. – Maesumi Jan 13 '13 at 16:43
Your input is square. Your may trace what happens to edges of the square and see where each point goes. So you are mapping a square from your initial coordinate system to a familiar shape in another coordinate system. – Maesumi Jan 13 '13 at 16:46
Why don't you try at I asked some question there. I agree with @Maesumi, but do try at there. I am eager to know the commands. :-) – Babak S. Jan 13 '13 at 16:50
To correct my comments: Upon re-reading your question I realize you are asking for a set to be graphed, not a function. This problem is doable by hand, but of course Maple commands can help when the problem is more involved. – Maesumi Jan 13 '13 at 16:55
up vote 0 down vote accepted

Try this:

for i from $0$ to $100$ do
$a_i$ := evalf($-\frac12+\frac{i}{100}$):
$b_i$ := evalf($-\frac12+\frac{i}{100}$):
points := ${\text{seq}(\text{seq}([a_n+b_m, \ a_n-b_m, \ 1], n = 0 .. 100), m = 0 .. 100)}$:
pointplot3d(points, axes = normal, symbol = box);

share|cite|improve this answer

The domain S can be visualized as a plot of the shaded interior of a polygon (square). This plot can be transformed by the given mapping.

f := plottools:-transform((x,y)->[x+y,x-y]):

S := plots:-polygonplot([[-1/2,-1/2], [-1/2,1/2],
                         [1/2,1/2], [1/2,-1/2]],

plots:-display(Array([S, f(S)]));
share|cite|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.