You are correct that, if you want to exclude a point from an interval, you can write it as the union of two intervals that are open on the ends of the point you want to exclude. In other words if you have three numbers such that , and you want to exclude
, you can write the resulting set as
. There are other notations, such as
or
, but those are rarely used in precalculus courses, so it might be best to stick with whatever notation you recognize.
Unfortunately, the relation that you have described is not a function.
The intervals and
overlap on the interval
. Therefore, there will be two values for the relation on that interval.