MathJax Cheat Sheet for Obsidian
Start creating polished formulas and equations for your notes and documents!
Hey folks! If you're an Obsidian user and love math as much as I do, you'll be excited to know that Obsidian supports MathJax right out of the box, without any need to install new community extensions. So, how do we get started to make our notes math-friendly? Follow along! In all of these examples, the correct notation is denoted between the two $ dollar signs $. 👇
Basic Syntax: Let's Start Simple
MathJax uses specific "wrappers" to identify what to convert into sleek math formulas.
- Inline Math: For equations within your text, wrap your formula with a single dollar sign on each side `$`. Example: Type $x = 5$ and you'll see `x = 5` inline.
- Display Math: For equations that should stand alone, use double dollar signs `$$` on separate lines. Example:
```latex
$$
x = 5
$$
```
Powers and Indices: Going Up and Down
- Superscript: Use $x^{2}$ for
- Subscript: Type $x_{1}$ for
Fractions and Roots: Breaking It Down
- Fraction: $\frac{1}{2}$ will show as
- Square Root: $\sqrt{4}$ gets you
- n-th Root: Use $\sqrt[n]{x}$ for an n-th root like:.
Greek Out: Add Some Flair
To insert Greek letters, use a backslash and the letter name.
- For alpha: $\alpha$ shows
- For beta: $\beta$ shows
Trig It Up: Sines, Cosines, and More
Sine: $\sin(x)$
Cosine: $\cos(x)$
Tangent: $\tan(x)$
Example: $\sin(30) = \frac{1}{2}$ gives you
Going Big: Sums and Integrals
Summation: $\sum_{i=1}^{n}$
Integral: $\int_{a}^{b}$
Quadratic formula: x=−b±b2−4ac2a
Example: `$\sum_{i=1}^{n} i$`
Example: `$e=mc^2$`
Building Blocks: Matrices
You can create matrices with the `pmatrix` environment:
$$\begin{pmatrix}
a & b \\
c & d
\end{pmatrix}$$
This gives you a nice 2x2 matrix centered on a new line.
Wrap-Up
And there you go! These are the essentials you need to make your Obsidian notes rich with mathematical notations. If you found this helpful and want to delve into more topics like this, feel free to follow and connect with me on Facebook, LinkedIn, or Twitter. Questions? Reach out anytime! 🌟