how to write in logarithmic form