2

We have $$\left|y\right|=x $$$$\Leftrightarrow y=x \text{ or } y=-x. $$ Now consider this $$y=\left|x\right| $$$$\Leftrightarrow y=x \text{ or } y=-x .$$ Hence $$y=\left|x\right|\Leftrightarrow |y|=x.$$

That is both the equations are equivalent. But when I plot the graph of the equations I don't get the same graph:

enter image description here

The black curve represents $y=\left|x\right|$ and the blue one $\left|y\right|=x.$

Later
  • 722
  • 2
  • 8
  • 24
Osmium
  • 379

3 Answers3

5

Your claim $$y=\vert x\vert\iff y=x\mbox{ or } y=-x$$ is false: for example, if we take $y=-2, x=2$ then the right hand side is true but the left hand side is false.

The right equivalence is $$y=\vert x\vert\iff [y=x\mbox{ or }y=-x]\mbox{ AND }y\ge0.$$ Note that each side of this equivalence displays a clear $y/x$ asymmetry. This asymmetry means that, when we swap $x$ and $y$, we should expect the graph to change, and indeed it does.

As a coda, an equation which is equivalent to "$y=x$ or $y=-x$" is $$\vert y\vert=\vert x\vert.$$ This is symmetric in $x$ and $y$, and at this point you should be able to guess what its graph is without actually plotting it.

Noah Schweber
  • 245,398
2

They are not equivalent.

$y=|x|$ means $y$ is always non negative whatever be the value of $x$.

$x=|y|$ means $x$ is always non negative whatever be the value of $y$.

$(-1,1)$ satisfies $y =|x|$ but $(-1,1)$ does not satisfy $x=|y|$

0

Yeah, the cases are same, but they appear at different times. Just put one variable negative. Then the equation with that other variable absolute value is unsatisfiable.

Let $x = -5$, the $|y| = x$ equation can't work since $|y| \ge 0$.

Siong Thye Goh
  • 149,520
  • 20
  • 88
  • 149
Anonymous
  • 1
  • 2