$\let\divisionsymbol\div \let\oldRe\Re \let\oldIm\Im$

Exponent and Logarithm

power

$2^3$

2^3
Copy

To write a number in the upper right corner, use "^".

power 2

$e^{ i \pi }$

e^{ i \pi }
Copy

If you want to write multiple numbers or letters in the upper right corner, put them in braces.

exponential function

$\exp ( x )$

\exp ( x )
Copy
square root

$\sqrt{ 2 }$

\sqrt{ 2 }
Copy

\sqrt comes from "square root".

square root same height

$\sqrt{ \mathstrut a } + \sqrt{ \mathstrut b }$

\sqrt{ \mathstrut a } + \sqrt{ \mathstrut b }
Copy

Using \mathstrut, you can align the height of the square root.

nth root

$\sqrt[ n ]{ x }$

\sqrt[ n ]{ x }
Copy

When writing power roots, use brackets.

logarithm

$\log x$

\log x
Copy
logarithm to base

$\log_{ 2 } x$

\log_{ 2 } x
Copy

The logarithm base is specified using the "_".

natural logarithm

$\ln x$

\ln x
Copy