Function to return nothing for a defined range of input values

graphing-functions

If I have the function f(x) = 2x + 1, is there something I can do to the function that will make it undefined for certain input values, for example input values where x ≥ 1. This would give the graph an endpoint. It is easy enough to just write {2x + 1 | x ≥ 2} but I am looking for a one line equation. The type of answer I am looking for, if you were to graph it, would look like a line that goes from the point (1,3) to infinity to the right and nothing but an endpoint on the left. First, is this even possible and second, how would we achieve this?

Thanks in advance.

Edit: I am looking for an approach that would work in a graphing calculator or a program like Wolfram|Alpha or Symbolab; something generalized.

Best Answer

For the example you've described:

$\frac{(2x+1)\sqrt{x-1}}{\sqrt{x-1}}$ is probably the simplest solution.

You can generalize it to limit the domains of other functions.

Related Question