Correctness checking the domain

They will just be entering it in a line of the graph. Here is the activity I am working on. They are asked to restrict the function on slide 3.

I experimented on this activity but didn’t have any luck: