1、四則運算
$a+b$
顯示效果
$a-b$
顯示效果
$a*b$
顯示效果
$\frac{a}{b}$
顯示效果
2、冪指對
$x^n$
顯示效果
$\log_a^b$
顯示效果
$\ln x$
顯示效果
由此可以知道:
上標用’^
’,下標用’_
’;
如果上標或者下表不止一個符號,請用’{}
’括起來;
3、根號,省略號,向量,特殊符號
$\sqrt x$
顯示效果
$\sqrt[n]{x}$
顯示效果
$\dots x$
顯示效果
$\vec x$
顯示效果
由此可以知道,鍵盤不能直接輸入的符號,用’+
英文單詞
4、累加,累乘
$\sum_{i=1}^{n} a_i^2x_i$
顯示效果
$\displaystyle\sum_{i=1}^{n} a_i^2x_i$
顯示效果
$\prod_{i=1}^{n} a_i^2x_i$
顯示效果
$\displaystyle\prod_{i=1}^{n} a_i^2x_i$
顯示效果
5、矩陣
$\begin{matrix} 1&2&3\\ 4&5&6\end{matrix}$
顯示效果
$\begin{bmatrix} 1&2&3\\ 4&5&6\end{bmatrix}$
顯示效果
$\begin{pmatrix} 1&2&3\\ 4&5&6\end{pmatrix}$
顯示效果
$\begin{bmatrix} 1&&\\ &1&\\&&1\end{bmatrix}$
顯示效果
6、公式中更改顏色
$\displaystyle\sum_{i=1}^{n}\color{red}{a_i^2}x_i$
顯示效果