In a function f(x), "x" is the domain. if there is a value of x where you can not work out f(x) it means that f(x) is undefined for that value of x.
Let's analyze an example:
f(x)=a/b
This function is defined for every value of b (with b been a real number) different from zero, remember we can not divide by zero.
In every function where the denominator is zero there is an undefinition.
Another example:
f(x)= square root of x, in this case the function is defined for zero and every positive value of "x", we can not work out a square root of negative numbers, at least no in domain of the real numbers.
So, all you need to do is:
Check the operations in the equation of the function:
+, -, *, powers when the index is an integer; those always can be worked out.
divisions: the values where the divisor is zero are undefinitions.
even roots can not be worked out when the number inside the root is negative therefore, where the expression inside the root is smaller than zero we have undefinitions.
Logarithm: in a logarithm based a of b where "a" is smaller than zero or "a" is equal to 1 or "b" is smaller than zero you can not work out the logarithm, therefore in those places we also have undefinitions.