Having math equations in a report can be painful. Here are some LaTeX commands often used in scientific reports. I will try to keep this post updated.
The LaTeX rendering on this website is done by an open-source package KaTeX.
- Full list of supported symbols of Katex: Supported Functions
- Also check https://www.mathcha.io/editor for a powerful online math and diagram editor.
Common Structures
LaTeX Code | Output |
---|---|
\frac{abc}{xyz} |
|
\overline{abc} |
|
\underline{abc} |
|
\overrightarrow{abc} |
|
\overleftarrow{abc} |
|
\sqrt{abc} |
|
\sqrt[n]{abc} |
|
\widehat{abc} |
|
\widetilde{abc} |
|
𝚏'' |
|
\overbrace{abc} |
|
\underbrace{abc} |
|
\underbrace{x+\cdots+x}_{n\text{ times}} |
|
\frac{\partial y}{\partial x1} |
|
\frac{\mathrm{d} Q}{\mathrm{d} t} |
|
\sum^{n}_{i=1} |
$$\sum^{n}_{i=1}$$ |
\prod^{n}_{i=1} |
$$\prod^{n}_{i=1}$$ |
\lim_{x\to\infty} f(x) |
$$\lim_{x\to\infty} f(x)$$ |
\int_{a}^{b} x^2 dx |
$$\int_{a}^{b} x^2 dx$$ |
Math Operators
Code | Output |
---|---|
\delta |
|
\Delta |
|
\nabla |
|
\forall |
|
\mathbb{R} |
|
\in |
Arrows and Brackets
Code | Output |
---|---|
\leftarrow |
|
\Leftarrow |
|
\rightarrow |
|
\Rightarrow |
|
\leftrightarrow |
|
\Leftrightarrow |
Greek Letters
\alpha
α \beta
β \gamma
γ \delta
δ \epsilon
ϵ \zeta
ζ \eta
η \theta
θ \iota
ι \kappa
κ \lambda
λ \mu
μ \nu
ν \xi
ξ \omicron
ο \pi
π \rho
ρ \sigma
σ \tau
τ \upsilon
υ \phi
ϕ \chi
χ \psi
ψ \omega
ω \varepsilon
ε \vartheta
ϑ \varkappa
ϰ \varpi
ϖ \varrho
ϱ \varsigma
ς \varphi
φ \digamma
ϝ
Sample Equations
1. Code
\frac{\mathrm{d}}{\mathrm{d} x}\left[|w x-y|^{2}\right]=2(w x-y) \cdot w
1. Output
2. Code
\sigma=\frac{e^z}{1+e^z}
\sigma’=\frac{e^z}{(1+e^z)^2}=\frac{e^z}{1+e^z} \cdot \frac{1}{1+e^z} =\sigma(1-\sigma)
2. Output
3.Code
\left\{
\begin{array}{lr}
x=\dfrac{3\pi}{2}(1+2t)\cos(\dfrac{3\pi}{2}(1+2t)), & \\
y=s, & 0\leq s\leq L,|t|\leq1.\\
z=\dfrac{3\pi}{2}(1+2t)\sin(\dfrac{3\pi}{2}(1+2t)), &
\end{array}
\right.
3.Output