How can I put brackets under a certain equation like this?


This is not a duplicate of this because I've tried the solution and this is what I get:


This is my code:

\[\underbrace{\sqrt{2+\sqrt{2+\sqrt{2+...+\sqrt{2}}}}_\text{$n$ nested square roots}} = 2\cos({\frac{\pi}{2^{n+1}}})\]
  • Welcome to TeX.SX! Please convert your snippet into a complete minimal working example (MWE) including the document class.
    – epR8GaYuh
    Commented Sep 25, 2020 at 7:08

1 Answer 1


Welcome to TeX.SE... You almost did, just a small change need to get your output, to keep subscript for the underbrace will meet the requirement, modified MWE is:

nested square roots}} = 2\cos\left({\frac{\pi}{2^{n+1}}}\right)

PS: I've introduce \left and \right to increase the bracket size to cover the fraction size...

  • 1
    Thank you! I was also going to google to get bigger bracket but you also solved this haha. Commented Sep 25, 2020 at 6:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .