LaTeX logarithm symbols

Symbol Command
$\log_{2} 8 = 3$ \log_{2} 8 = 3
$\log_2 8 = 3$ \log_2 8 = 3
$\log e^3 = 3$ \log e^3 = 3

Natural logarithm

Symbol Command
$\ln e^3 = 3$ \ln e^3 = 3
$\ln{xy} = \ln{x} + \ln{y}$ \ln{xy} = \ln{x} + \ln{y}

LaTeX function

LaTeX