The equation can be written as
log10(x2−x−6x+2)=x−4
or log10((x−3)(x+2)x+2)=x−4
or log10(x−3)=x−4
or x−3=10x−4
By trial, x = 4 is the solution of (1) which is, therefore, the solution of the given equation.
Observe that x > 4 or x < 4 does not satisfy (1).
Hence x = 4 is the only solution of the original equation.