# Logarithm problem

1. Jul 5, 2011

### Bassalisk

I have a strange problem.

Have this example.

log(x-2)+log(x+1)=0

Domain of these functions are: x>2, x>-1 resulting in x>2;

by logarithm rule we can combine these 2 logarithms and make one logarithm.

log(x-2)(x+1)=0

(-infinity,-1) U (2,+infinity)

But the domain of this changes. How can we combine these 2 logarithms if the domain changes? Am I missing something here?

2. Jul 5, 2011

### I like Serena

In your original problem you have 2 log functions.
The domain of both needs to be respected for any solution to be a proper solution.

When you multiply the 2 factors, you effectively extend the domain.
This is because both factors might be negative, yielding a positive number that is inside the domain of the log function.

However, solutions for which these numbers are negative do not satisfy the original problem and will have to be discarded.

3. Jul 5, 2011

### Bassalisk

Yes but how can logarithm rule then stand if the domain changes, shouldn't I change the domains too?

log(x-2)+log(x+1)=log(x-2)(x+1) how can this equality hold?

4. Jul 5, 2011

### I like Serena

The equality only holds for values of x with which the domains of all log functions in the expression are satisfied.
Otherwise it is undefined.

5. Jul 5, 2011

### Bassalisk

So basically yes, I do have to change the domain.

6. Jul 5, 2011

### I like Serena

Uhh, noooo! :uhh:
At the start of the problem, the domain is (2, +infinity).
This never changes throughout the problem.

7. Jul 5, 2011

### Bassalisk

Thank you, I understand now ^^

8. Jul 5, 2011

### BobG

ILike Serena's explanation is correct. The domain won't change, since you're dealing with real numbers.

However, you illustrate and interesting point. If x = -2, then the complex solution is:

ln (-4) + ln (-1) = ln (-4*-1)
(1.386,pi) + (0,pi) = (1.386,2pi)

And, if you start at 0 and go 2pi radians around a circle, you wind up back at 0. The discrepancy is because you're restricting yourself solely to the real numbers. (Plus, the result is only meaningful when you're using natural logarithms.)

So, suffice it to say, x has to be greater than 2 and that won't change when you combine them.

9. Jul 6, 2011

### Bassalisk

But what if I start with the problem log(x-2)(x+1)=0 and I divide into 2 parts,

log(x-2)+log(x+1)=0. Do I have to change the domain then?

because domain of the first is
(-infinity,-1) U (2,+infinity) and the domain after the transformation is (2,+infinity)

10. Jul 6, 2011

### I like Serena

This would mean that you have to distinguish two cases: the case x < -1 and the case x > 2.

In the case x < -1 you would get:
log(-(x-2)) + log(-(x+1)) = 0​
which you have to solve separately.

When you have solved both cases, you need to combine all the solutions that you found.

11. Jul 6, 2011

### Bassalisk

Thank you, I totally forgot about that. Mind filled with transistors and diodes :p