\sqrt draws the radical over its argument, and it accepts an optional argument in square brackets for the order of the root. Square brackets before braces are the general shape of an option in LaTeX.
Step 5 of 17 of the LaTeX tutorial. The formula of the step, \sqrt{b^2 - 4ac} \quad \sqrt[3]{x}, 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.