6

can you model a square in an equation ?

like a circle for example $r^2 = x^2 + y^2$

and lets say we have a square with: centered at $(3,3)$

$2 \leq x \leq 4$ and $2 \leq y\leq 4$

can we somehow make an equation for that square ?

user26857
  • 52,094
AnarKi
  • 267
  • you can use the min() and absolute value functions – Guy Mar 11 '14 at 16:55
  • http://math.stackexchange.com/questions/69099/equation-of-a-rectangle – lab bhattacharjee Mar 11 '14 at 16:57
  • You can regard the square as the limiting set of the graphs of $$|x-3|^p + |y-3|^p=1$$ as $p\rightarrow +\infty$. Unfortunately, you can't really write $|x-3|^{\infty} + |y-3|^{\infty}=1$ without rigorously defining the symbols used. – MPW Mar 11 '14 at 17:34

1 Answers1

7

enter image description here

In general, $\left|(x - h) + (y - k) \right|+\left| (x - h) - (y - k) \right|=r$ describes a square centered at (h,k) and having side length r.

Alan
  • 2,239
  • 13
  • 15