# Team:DTU-Denmark/LaTexEquations

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

# LatexEquations

Latex

How to make special symbols $\alpha$, $\beta$, $\gamma$, $\delta$,$\pi$, $\sin x$, $\hbar$, $\lambda$, $\ldots$ We also can make subscripts $A_{x}$, $A_{xy}$ and superscripts, $e^x$, $e^{x^2}$, and $e^{a^b}$.

How to write equations. $$\Delta =\sum_{i=1}^N w_i (x_i - \bar{x})^2 .$$ It is a good idea to number equations, but we can have an equation without a number by writing $$P(x) = \frac{x - a}{b - a} , \nonumber$$ and $$g = \frac{1}{2} \sqrt{2\pi} . \nonumber$$

Examples of more complicated equations: $$I = \! \int_{-\infty}^\infty f(x)\,dx \label{eq:fine}.$$

How to align several equations: \begin{align} a & = b \\ c &= d , \end{align}

We can also have different cases: $$\label{eq:mdiv} m(T) = \begin{cases} 0 & \text{T > T_c} \\ \bigl(1 - [\sinh 2 \beta J]^{-4} \bigr)^{\! 1/8} & \text{T < T_c} \end{cases}$$

Common Greek letters: $\alpha, \beta, \gamma, \Gamma, \delta,\Delta, \epsilon, \zeta, \eta, \theta, \Theta, \kappa, \lambda, \Lambda, \mu, \nu, \xi, \Xi, \pi, \Pi, \rho, \sigma, \tau, \phi, \Phi, \chi, \psi, \Psi, \omega, \Omega$

Special Symbols: The derivative is defined as $$\frac{dy}{dx} = \lim_{\Delta x \to 0} \frac{\Delta y} {\Delta x}$$ $$f(x) \to y \quad \mbox{as} \quad x \to x_{0}$$ $$f(x) \mathop {\longrightarrow} \limits_{x \to x_0} y$$

Order of magnitude: $$\log_{10}f \simeq n$$ $$f(x)\sim 10^{n}$$ Approximate equality: $$f(x)\simeq g(x)$$ Remember to keep everything in proportion: $$f(x) \propto x^3 .$$

## Chemical Formulas

$$\textrm{NO}_{2}^{-} \rightarrow \textrm{N}_{2}\textrm{O}$$

Or you can have inline formulas if you want to talk about $\textrm{NH}_{4}^{+}$ being converted into $\textrm{N}_{2}\textrm{O}$, or whatever.