[Math] Does a square have an equation?

analytic geometry

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 ?

Best Answer

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.