If the distance of any point $(x,y)$ from the origin is defined as $d(x,y)=max\{|x|,|y|\}$ where $|.|$ represents the absolute value function, and $d(x,y)=a$ whre $a$ is a non-zero constant, then the locus of the resulting curve is:
(A) Circle
(B) Straight Line
(C) Square
(D) Triangle
I know the meaning of $max\{b,c\}$ which gives the maximum of $b$ or $c$ as its output. How to deal with the case $max\{|x|,|y|\}$? Since $d(x,y)=a$, I concluded the locus must be a circle, but the answer is a square. How can this be possible?
This problem is not as difficult as it looks!
Let us consider the graph of $|y|=|x|$ which is equivalent to $y=\pm x$ :
It can be seen that the lines $y=x$ and $y=-x$ divides the two-dimensional cartesian plane into four different regions. Any point on these lines are either of the form $(p,p)$ or $(p,-p)$ where $p$ is any real number. The points inside the four regions satisfy any of the two inequalities : $|y|<|x|$ or $|y|>|x|$
The following graph shows the regions $|y|<|x|$ and $|y|>|x|$ in blue and red respectively:
If we focus our attention on points in the four regions demarcated by $|y|=|x|$, two cases arise:
Case-I: When $|y|<|x|$ (Blue coloured region)
Here, $d(x,y)=max\{|x|,|y|\}=|x|=a$
So, $x=\pm a$
Case-II: When $|y|>|x|$ (Red coloured region)
Here, $d(x,y)=max\{|x|,|y|\}=|y|=a$
So, $y=\pm a$
From the above two cases, we get the following graph (assuming $a=4$, of course it can be any non-zero constant):
Click Here to open the graph in Desmos.
Clearly, the locus is a square.