Find the domain of the given function

f(x) = log(2-x)

also I don't know how to do this one

h(x) = log(-x)

you know that the domain of log(n) is n>0

So, the domain of log(2-x) is

2-x > 0
x < 2

similarly for the even easier 2nd one.

To find the domain of a function, we need to determine the values of x for which the function is defined. In this case, we have the function f(x) = log(2-x).

The domain of the logarithmic function is restricted to positive real numbers. This means that the argument of the logarithm, 2-x, must be greater than zero.

To solve the inequality 2-x > 0, we can isolate x by subtracting 2 from both sides:

(2-x) - 2 > 0 - 2

-x > -2

Since we multiplied by -1, we need to reverse the inequality sign:

x < 2

Therefore, the domain of the function f(x) = log(2-x) is all real numbers less than 2.