Exponent and Logarithm
power
$2^3$
2^3
To write a number in the upper right corner, use "^".
power 2
$e^{ i \pi }$
e^{ i \pi }
If you want to write multiple numbers or letters in the upper right corner, put them in braces.
exponential function
$\exp ( x )$
\exp ( x )
square root
$\sqrt{ 2 }$
\sqrt{ 2 }
\sqrt comes from "square root".
square root same height
$\sqrt{ \mathstrut a } + \sqrt{ \mathstrut b }$
\sqrt{ \mathstrut a } + \sqrt{ \mathstrut b }
Using \mathstrut, you can align the height of the square root.
nth root
$\sqrt[ n ]{ x }$
\sqrt[ n ]{ x }
When writing power roots, use brackets.
logarithm
$\log x$
\log x
logarithm to base
$\log_{ 2 } x$
\log_{ 2 } x
The logarithm base is specified using the "_".
natural logarithm
$\ln x$
\ln x