Double-check a step-by-step solution?

How is this last equality true? which restricted values of x?

thanks for your answers!

The 3 \log{1/4} goes into the constant part.