Graph of $|x| + |y| = 1$

374 Views Asked by At

Can anybody explain as how to plot a graph of $|x| + |y| = 1$. Here $|x|$ and $|y|$ are absolute values.

3

There are 3 best solutions below

0
On

HINT:

As $|y|\ge0,|x|=1-|y|\le1\implies-1\le x\le1$

Now use $$|x|=\begin{cases} x &\mbox{if } x\ge 0 \\-x & \mbox{if } x<0\end{cases}$$

0
On

Two solutions here (at least).

  1. Notice that $|x|+|y|=1$ is the boundary of the ball of radius $1$ for the 1-norm and knowing what it does look like.
  2. Or just split the cases for every quadrant ${\lbrace x \geq 0,y \geq 0 \rbrace},{\lbrace x \geq 0,y \leq0 \rbrace},\dots$

For example in ${\lbrace x \geq 0,y \geq 0 \rbrace}$, your equation is $x+y=1$.

0
On

Following the method given by lab bhattacharjee, this is the graph you get :

The Graph of |x| + |y| = 1