freeCodeCamp/guide/english/mathematics/what-is-the-domain-of-a-fun.../index.md

835 B

title
What Is the Domain of a Function

What Is the Domain of a Function

The domain of a function is the complete set of possible values of the independent variable. In other words, the domain is the set of all possible x-values which will make the function "work", and will output real y-values.

For example, for y = sqrt(x + 2), the domain of this function is x >= -2.

More Information:

Domain and Range of a Function