Writing an expression as a single logarithm