Domain of a logarithm function with fraction

681 Views Asked by At

Let´s say we have the following function:

$$f(x)= \log\left(\frac{x + 3}{x-3}\right)$$

Now we are looking for the domain of $f(x)$. The argument has to be strictly positive. The are two cases:

1) Numerator and denominator are strictly positive.

$x+3>0 \cap x-3>0 \Rightarrow x>3$

2) Numerator and denominator are strictly negative.

$x+3<0 \cap x-3<0 \Rightarrow x<-3$

The union is $x\in(-\infty,-3)\cup(3,\infty)$. So far so good. Now we can write $f(x)$ in a different way by using logarithm rules.

$$f(x)= \log(x + 3)-\log(x-3)$$

In this case $f(x)$ is not defined for $x<-3$, since both arguments are negative.

My Question: How can this (apparent) contradiction be resolved?

Thanks for reading my question.

2

There are 2 best solutions below

5
On BEST ANSWER

There's no contradiction: in fact $\log(ab)=\log(a)+\log(b)$ if and only if $a,b>0$.

1
On

Adding to the answer above, which correctly states that the logarithmic property $\log (xy) = \log x + \log y$ holds iff $x,y > 0$ :

If you are given the expression $f(x) = \log\left( \frac{x+3}{x-3}\right)$ then your argument is $\frac{x+3}{x-3}$ and you need to work with the domain restrictions applying to that. Furthermore, applying the property will only be viable for the corresponding parts of the domain.

This means, that $f(x) = \log\left(\frac{x+3}{x-3}\right)$ and $g(x) = \log(x+3) - \log(x-3)$ are two different functions.