I have a problem where my answer does not seem to be right anywhere. For the following set up:
Budget constraint: $400=40x+20y$
Utility function: $u(x,y)=3x+y$
the problems asks to derive the demand function for $x$ (for the given $p_y$). And I get to:
$$x=f(p_x)= \begin{cases} \frac{400}{p_x}\quad\quad &if\quad p_x<60\\ 0\quad\quad &if\quad p_x>60\\ \left(0,\frac{400}{p_x}\right)\quad\quad &if\quad p_x=60 \end{cases} $$
When I graph this, I get the following chart:
I was told that the step between 40 and 60 for $p_x$ should not be there, but I can not figure out why. Can someone please explain what am I missing?