Improve issue 15 approach to handle log_3x^2/5