When x = 2, 2 lg ( x - 5) = 2 lg (2 - 5) = 2 lg (-3) and therefore it is undefined.
But 2 lg (x - 5) = lg (x - 5)^2 = lg (2 - 5)^2 = lg 9 and therefore it is defined.
Can anyone explain this?