Q:Why to type \log in LaTeX?
A:If you just type log in LaTeX, it will automatically think that l, o, and g are variables, and it will automatically become italic. If you typed \log, it will be normal but not italic.
LaTeX code 'log' : \(log\)
LaTeX code '\log' : \(\log\)
Also I found out \sin , \cos, and \tan works too
LaTeX code 'sin':\(sin\)
LaTeX code '\sin':\(\sin\)
LaTeX code 'cos':\(cos\)
LaTeX code '\cos':\(\cos\)
LaTeX code 'tan':\(tan\)
LaTeX code '\tan':\(\tan\)
.