Typesetting Square Roots

Introduction

In Writing Math in LaTeX, we have already covered math mode, subscripts and superscripts, and the \frac command for building fractions. This fourth lesson out of seven means we are well past the halfway mark, and each new tool we pick up makes the previous ones more powerful. Today we turn to square roots and nth roots, learning how the \sqrt command wraps a radical sign around any expression — including fractions, exponents, and other nested elements you already know how to write.

Why Roots Need a Special Command

The \sqrt Command

Nth Roots

Nesting Expressions Inside Roots

Roots in Compound Expressions

Common Mistakes to Avoid

Conclusion and Next Steps

Sign up

Join the 1M+ learners on CodeSignal

Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal