# Question on logarithmic differentiation and absolute value

For the problem of differentiating ##y = x^5(3x-1)^3## using logarithmic differentiation, the solution provides the first step as rewriting the functions as ##\left |y \right | = \left | x \right |^5 \cdot \left | 3x-1 \right |^3##. This confuses me. First, how are we, mathematically, able to do this? How can we just select which terms inside of the function to take the absolute value of? Why wouldn't it be ##\left |y \right | = \left | x^5(3x-1)^3 \right |##? I would love for someone to explain this to me. Second of all, why is this an essential step in logarithmic differentiation? Why can't we just take the natural log of ##y = x^5(3x-1)^3## and be done with it?