MathJax: Crafting Elegant Mathematical Formulas for Web Browsers
How to type mathematical formulas using MathJax
The mathematical formulas can be written using MathJax which would produce mathematical equations for viewing in any modern browser.
Few examples are given below with their TeX commands. It should be enclosed within \\(........\\\) for inline and $$ __ $$ for separate line.
Polynomial Equation
x^3+y^2+z = 15 $$ x^3+y^2+z = 15 $$
Logarithm Function
\log_2 2^n \sin x $$ \log_2 2^n \sin x $$
Summation Formula
\sum_1^n x^2 $$ \sum_1^n x^2 $$
If more digits such as i=0 want to be mentioned, then it should be written inside the curly bracket. \sum_{i=0}^n y^3
$$ \sum_{i=0}^n y^3 $$
Matrices
\ begin{matrix} x & 0 & z^2 \\ 0 & y^2 & z \\ x^2 & y & 0 \\ \ end{matrix}
$$ \begin{matrix} x & 0 & z^2 \\\\ 0 & y^2 & z \\\\ x^2 & y & 0 \\\\ \end{matrix} $$
To add brackets
\left[\ begin{matrix} x & 0 & z^2 \\ 0 & y^2 & z \\ x^2 & y & 0 \\ \ end{matrix}\right]
$$ \left[\begin{matrix} x & 0 & z^2 \\\\ 0 & y^2 & z \\\\ x^2 & y & 0 \\\\ \end{matrix}\right] $$
Fractional formula
\frac{\sqrt y}{2} $$ \frac{\sqrt y}{2} $$
The size of the brackets shall be adjusted when the command written as
\left(\frac{2z^2+2z+7}{z^3+3}\right) $$ \left(\frac{2z^2+2z+7}{z^3+3}\right) $$
Integral Formula
\int_1^\infty $$ \int_1^\infty $$
Limit function
\lim_{x\to 0}
$$ \lim_{x\to 0} $$
Symbols
\lt \gt \le \leq \ge \geq \neq \pm \forall \approx \ldots \cdots \vdots
$$ \lt \; \gt \; \le \; \leq \; \ge \; \geq \; \neq \; \pm \; \forall \; \approx \; \ldots \; \cdots \; \vdots $$
Greek Letters
\alpha, \beta, \omega, \Alpha, \Gamma, \Delta, \Omega, \epsilon, \phi $$ \alpha, \beta, \omega, \Gamma, \Delta, \Omega, \epsilon, \phi $$
Hope the above examples would give an idea how to write mathematical formulas directly into the blog page. If you like my post, give an appreciation.