Written plainly, sin is three variables multiplied — s times i times n — and it is set in italic. The known functions have their own commands (\sin, \log, \exp, \lim) which print upright and space correctly. For a name of your own, \mathrm{} keeps it upright and \text{} prints real words, spaces included.
Step 9 of 17 of the LaTeX tutorial. The formula of the step, \lim_{x \to 0} \frac{\sin x}{x} = 1 \quad \mathrm{pH} = -\log[\mathrm{H}^+], opens in a live playground you can edit.
Write a LaTeX or mhchem formula and see it drawn as you type, save it as an SVG that opens again, learn the notation step by step, and practise it with graded exercises. The tool needs JavaScript, because the formulas are drawn in your browser.