how to solve log with square root base