# .css-1p792ld{margin-top:unset;}.css-1p792ld:hover > span{opacity:1;-webkit-transform:none;-ms-transform:none;transform:none;-webkit-transform-duration:0.1s;-ms-transform-duration:0.1s;transform-duration:0.1s;}How to write LaTeX.css-14vda7h{font-size:15px;margin-inline-start:0.5rem;opacity:0;position:absolute;-webkit-transform:translateX(-4px);-ms-transform:translateX(-4px);transform:translateX(-4px);-webkit-transition:opacity 0.2s ease-out 0s,-webkit-transform 0.2s ease-out 0s;-webkit-transition:opacity 0.2s ease-out 0s,transform 0.2s ease-out 0s;transition:opacity 0.2s ease-out 0s,transform 0.2s ease-out 0s;}

LaTeX's math mode makes it simple to write arithmetic in plain text. To enter math mode in LaTeX, you must use one of several commands:

For example:

"$$E = mc2$$"

The LaTeX Math macro handles this for you. You only need to enter the math; the equation is rendered automatically.

LaTeX

Output

LaTeX

Output

E = mc^2 \pi = \frac c d \frac{a + b}{2} e = \lim_{x\to\infty} \left(1+\dfrac{1}{n}\right)^n \begin{matrix} a & b & c \\ d & e & f \\ g & h & i \end{matrix} \begin{align*} f(x) &= (x+a)(x+b) \\ &= x^2 + (a+b)x + ab \end{align*} com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'appfire-docs-analytics' is unknown.