By the quotient rule:
log5 (x2-16) - log5 (x2-2x-8) = log5 [(x2-16)/(x2-2x-8)]
Now,
x2-16 is a subtraction of squares, so it can be factorized like this:
x2-16 = (x+4)(x-4)
x2-2x-8 can also be factorized:
x2-2x-8 = (x-4)(x+2)
We can simplify the fraction:
(x2-16)/(x2-2x-8)= (x+4)/(x+2)
log5 [(x2-16)/(x2-2x-8)] = log5 [(x+4)/(x+2)] is the simplified form of the 1st formula.
However, we need to carry forward the constraints.
The value inside a log must be greater than 0 so:
x2-16 = (x+4)(x-4) > 0
The zeros are at: -4, 4
If we sample a value at x = 0, we get a negative value. So, the function must be positive at:
x < -4, x > 4
and
x2-2x-8 = (x-4)(x+2) > 0
The zeros are at: -2, 4
If we sample a value at x = 0, we get a negative value, So, the function must be positive at:
x < -2, x > 4
The overall constraint must satisfy both constraints, so: x < -4, x > 4
Note that the zeros of the denominator are already handled by this constraint because x cannot equal 4 or -2.

Louis-Dominique D.
06/24/24