How to use roots (√, ∛) in LaTeX?
In this tutorial, you will learn how to use square root, cube root, and nth root in LaTeX. Follow the given table to get all the required commands.
| Name | Command | Output |
|---|---|---|
| Square root | \sqrt{x} | |
| Cube root | \sqrt[3]{x} | |
| Fourth root | \sqrt[4]{x} | |
| nth root | \sqrt[n]{x} |
\documentclass{article}
\begin{document}
$$ \verb|\sqrt{x}| \rightarrow \sqrt{x}$$
$$ \verb|\sqrt[3]{x}| \rightarrow \sqrt[3]{x}$$
$$ \verb|\sqrt[4]{x}| \rightarrow \sqrt[4]{x}$$
$$ \verb|\sqrt[n]{x}| \rightarrow \sqrt[n]{x}$$
\centering Some examples:
$$ \frac{-b \pm \sqrt{b^2-4ac}}{2a} $$
$$ t^\prime=\frac{t}{\sqrt{1-\frac{v^2}{c^2}}} $$
\end{document}Output:

Uncovered Roots (√) symbol
In order to get an uncovered Root symbol, you can use the * symbol with the \sqrt command. In this case, you have to load the mdwmath package in the preamble of your document.
\documentclass{article}
\usepackage{mdwmath}
\begin{document}
$$ \verb|\sqrt*{x}| \rightarrow \sqrt*{x}$$
$$ \verb|\sqrt*[3]{x}| \rightarrow \sqrt*[3]{x}$$
$$ \verb|\sqrt*[4]{x}| \rightarrow \sqrt*[4]{x}$$
$$ \verb|\sqrt*[n]{x}| \rightarrow \sqrt*[n]{x}$$
\end{document}Output:

Leave a Reply