how do you find the function of the domaine

Hmmm. What you ask does not make sense?

functions are operations on a variable, and the variable has a domain of allowed values.