How do you state restrictions for a function?

With equations or inequalities that define the restriction.