How to write square root symbol in LaTex ?

Latex square root symbol of x

$$\sqrt{x}$$

\(\sqrt{x}\) produces the square root of x.

Latex square root symbol of fraction a/b

$$\sqrt{\frac{a}{b}}$$
\[\sqrt{\frac{a}{b}}\]

Latex cube root symbol

$$\sqrt[3]{x}$$
\[\sqrt[3]{x}\]

Latex n-th root symbol of x

$$\sqrt[n]{x}$$
\[\sqrt[n]{x}\]

Latex root square samples

The roots of a quadratic polynomial $a x^2 + bx + c$ with $a \neq 0$ are given by

$$\frac{-b \pm \sqrt{b^2-4ac}}{2a}$$
\[\frac{-b \pm \sqrt{b^2-4ac}}{2a}\]

The faster you move through space the slower you move through time

$$t'=\frac{t}{\sqrt{1-\frac{v^2}{c^2}}}$$
\[t'=\frac{t}{\sqrt{1-\frac{v^2}{c^2}}}\]