How to write this expression in LaTeX?
Asked
Active
Viewed 244 times
3 Answers
7
Mathematics teacher's hat on. Can you point to some real world mathematical problem that leads to consider such a beast? I'm sure you can't. If you plan to inflict this to some student, please, don't. Mathematics teacher's hat off.
I'll assume it's just academic interest to explore the possibilities of TeX.
It's actually straightforward. A few points to note:
- with
delarraywe can make the fences as high as the expression; \vphantom{\Big|}is used to move the big exponent a bit higher;- a handful of thin spaces helps to control the spacing;
- an optional argument needs surrounding braces, because of the nested
\sqrtwith an optional argument.
\documentclass{article}
\usepackage{amsmath,delarray}
\begin{document}
\[
\begin{array}\lbrack{@{}c}\rbrack
\!\!\sqrt[{\sqrt[\sqrt{3}]{\sqrt{3}}}]{
(3\sqrt{3})^{\vphantom{\Big|}\!
\sqrt[\sqrt{3}]{
\sqrt{3}^{\sqrt{3}+1}
}
}
}
\end{array}^{\sqrt{3}}
\]
\end{document}
egreg
- 1,121,712
1
The following gives the expected result,

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\left[ \sqrt[{\sqrt[\sqrt{3}]{\sqrt{3}}}]{%
{(3\sqrt{3})}^{\sqrt[\sqrt{3}]{{\sqrt{3}}^{\sqrt{3}+1}}}%
} \right]^{\sqrt{3}}
\]
\end{document}
I'm not sure why, but LaTeX will throw an Argument of \@sqrt has an extra } error if the root index \sqrt[\sqrt{3}]{\sqrt{3}} is not surrounded by extra curly braces.
Vincent
- 20,157



\sqrt[\sqrt[3]{x}]{x}, the first\sqrtwill grab its optional argument delimited by the[and the next], which ends up being\sqrt[3, and then you can see where this goes. Adding braces makes the outermost\sqrtgrab the correct argument. See here: https://tex.stackexchange.com/a/515152/134574 – Phelype Oleinik Feb 01 '20 at 21:18